Skip to content

Commit 77773ae

Browse files
j-schambacherpelwell
authored andcommitted
dtoverlays: adds the definitions for the HiFiBerry 8-channel ADC
Additions and changes for the 8 channel ADC card. This card uses only HW-controlled devices which allows the uses of the 'dummy-dai'. It will run only on a PI5 as it requires the designware I2S0 module. The necessary output lanes I2S0_DI[0..3] are claimed from within the DT overlay. Signed-off-by: j-schambacher <[email protected]>
1 parent c763cf3 commit 77773ae

File tree

4 files changed

+61
-0
lines changed

4 files changed

+61
-0
lines changed

arch/arm/boot/dts/overlays/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
8686
hd44780-lcd.dtbo \
8787
hdmi-backlight-hwhack-gpio.dtbo \
8888
hifiberry-adc.dtbo \
89+
hifiberry-adc8x.dtbo \
8990
hifiberry-amp.dtbo \
9091
hifiberry-amp100.dtbo \
9192
hifiberry-amp3.dtbo \

arch/arm/boot/dts/overlays/README

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1778,6 +1778,12 @@ Params: leds_off If set to 'true' the onboard indicator LED
17781778
is switched off at all times.
17791779

17801780

1781+
Name: hifiberry-adc8x
1782+
Info: Configures the HifiBerry ADC8X audio card (only on Pi5)
1783+
Load: dtoverlay=hifiberry-adc8x
1784+
Params: <None>
1785+
1786+
17811787
Name: hifiberry-amp
17821788
Info: Configures the HifiBerry Amp and Amp+ audio cards
17831789
Load: dtoverlay=hifiberry-amp
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
// Definitions for HiFiBerry ADC8x
2+
/dts-v1/;
3+
/plugin/;
4+
5+
/ {
6+
compatible = "brcm,bcm2712";
7+
8+
fragment@0 {
9+
target = <&gpio>;
10+
__overlay__ {
11+
rp1_i2s0_adc8x: rp1_i2s0_adc8x {
12+
function = "i2s0";
13+
pins = "gpio18", "gpio19", "gpio20",
14+
"gpio22", "gpio24", "gpio26";
15+
bias-disable;
16+
status = "okay";
17+
};
18+
};
19+
};
20+
21+
fragment@1 {
22+
target = <&i2s_clk_producer>;
23+
__overlay__ {
24+
pinctrl-names = "default";
25+
pinctrl-0 = <&rp1_i2s0_adc8x>;
26+
status = "okay";
27+
};
28+
};
29+
30+
fragment@2 {
31+
target-path = "/";
32+
__overlay__ {
33+
dummy-codec {
34+
#sound-dai-cells = <0>;
35+
compatible = "snd-soc-dummy";
36+
status = "okay";
37+
};
38+
};
39+
};
40+
41+
fragment@3 {
42+
target = <&sound>;
43+
__overlay__ {
44+
compatible = "hifiberry,hifiberry-adc8x";
45+
i2s-controller = <&i2s_clk_producer>;
46+
status = "okay";
47+
};
48+
};
49+
50+
};

arch/arm/boot/dts/overlays/overlay_map.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@
4848
bcm2712;
4949
};
5050

51+
hifiberry-adc8x {
52+
bcm2712;
53+
};
54+
5155
hifiberry-dac8x {
5256
bcm2712;
5357
};

0 commit comments

Comments
 (0)