1 From 77773aec03f65758c760ec5b43a79ad6edeb211b Mon Sep 17 00:00:00 2001
2 From: j-schambacher <joerg@hifiberry.com>
3 Date: Thu, 12 Sep 2024 16:44:12 +0200
4 Subject: [PATCH 1263/1350] dtoverlays: adds the definitions for the HiFiBerry
7 Additions and changes for the 8 channel ADC card. This card uses only
8 HW-controlled devices which allows the uses of the 'dummy-dai'.
9 It will run only on a PI5 as it requires the designware I2S0 module.
11 The necessary output lanes I2S0_DI[0..3] are claimed from within the
14 Signed-off-by: j-schambacher <joerg@hifiberry.com>
16 arch/arm/boot/dts/overlays/Makefile | 1 +
17 arch/arm/boot/dts/overlays/README | 6 +++
18 .../dts/overlays/hifiberry-adc8x-overlay.dts | 50 +++++++++++++++++++
19 arch/arm/boot/dts/overlays/overlay_map.dts | 4 ++
20 4 files changed, 61 insertions(+)
21 create mode 100644 arch/arm/boot/dts/overlays/hifiberry-adc8x-overlay.dts
23 --- a/arch/arm/boot/dts/overlays/Makefile
24 +++ b/arch/arm/boot/dts/overlays/Makefile
25 @@ -86,6 +86,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
27 hdmi-backlight-hwhack-gpio.dtbo \
29 + hifiberry-adc8x.dtbo \
31 hifiberry-amp100.dtbo \
33 --- a/arch/arm/boot/dts/overlays/README
34 +++ b/arch/arm/boot/dts/overlays/README
35 @@ -1778,6 +1778,12 @@ Params: leds_off If set t
36 is switched off at all times.
39 +Name: hifiberry-adc8x
40 +Info: Configures the HifiBerry ADC8X audio card (only on Pi5)
41 +Load: dtoverlay=hifiberry-adc8x
46 Info: Configures the HifiBerry Amp and Amp+ audio cards
47 Load: dtoverlay=hifiberry-amp
49 +++ b/arch/arm/boot/dts/overlays/hifiberry-adc8x-overlay.dts
51 +// Definitions for HiFiBerry ADC8x
56 + compatible = "brcm,bcm2712";
61 + rp1_i2s0_adc8x: rp1_i2s0_adc8x {
63 + pins = "gpio18", "gpio19", "gpio20",
64 + "gpio22", "gpio24", "gpio26";
72 + target = <&i2s_clk_producer>;
74 + pinctrl-names = "default";
75 + pinctrl-0 = <&rp1_i2s0_adc8x>;
84 + #sound-dai-cells = <0>;
85 + compatible = "snd-soc-dummy";
94 + compatible = "hifiberry,hifiberry-adc8x";
95 + i2s-controller = <&i2s_clk_producer>;
101 --- a/arch/arm/boot/dts/overlays/overlay_map.dts
102 +++ b/arch/arm/boot/dts/overlays/overlay_map.dts