1 From 813135a7ff3f0c2b91dc06a5b3f8deac15570466 Mon Sep 17 00:00:00 2001
2 From: j-schambacher <joerg@hifiberry.com>
3 Date: Wed, 28 Feb 2024 11:34:05 +0100
4 Subject: [PATCH 1283/1295] Overlays: Add definitions for HiFiBerry 8 channel
7 Dedicated overlay claiming all 4 data lanes of the designware
8 I2S0 module to drive 4x PCM5102. THe devices share BCLK and
9 LRCLK, therefore all outputs will always run at the same
10 samplerate and format.
12 Compatible only with PI5!
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-dac8x-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-dac8x-overlay.dts
23 --- a/arch/arm/boot/dts/overlays/Makefile
24 +++ b/arch/arm/boot/dts/overlays/Makefile
25 @@ -88,6 +88,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
27 hifiberry-amp4pro.dtbo \
29 + hifiberry-dac8x.dtbo \
30 hifiberry-dacplus.dtbo \
31 hifiberry-dacplusadc.dtbo \
32 hifiberry-dacplusadcpro.dtbo \
33 --- a/arch/arm/boot/dts/overlays/README
34 +++ b/arch/arm/boot/dts/overlays/README
35 @@ -1772,6 +1772,12 @@ Load: dtoverlay=hifiberry-dac
39 +Name: hifiberry-dac8x
40 +Info: Configures the HifiBerry DAC8X audio cards (only on PI5)
41 +Load: dtoverlay=hifiberry-dac8x
45 Name: hifiberry-dacplus
46 Info: Configures the HifiBerry DAC+ audio card
47 Load: dtoverlay=hifiberry-dacplus,<param>=<val>
49 +++ b/arch/arm/boot/dts/overlays/hifiberry-dac8x-overlay.dts
51 +// Definitions for HiFiBerry DAC8x
56 + compatible = "brcm,bcm2712";
61 + rp1_i2s0_dac8x: rp1_i2s0_dac8x {
63 + pins = "gpio18", "gpio19", "gpio21",
64 + "gpio23", "gpio25", "gpio27";
72 + target = <&i2s_clk_producer>;
74 + pinctrl-names = "default";
75 + pinctrl-0 = <&rp1_i2s0_dac8x>;
84 + #sound-dai-cells = <0>;
85 + compatible = "ti,pcm5102a";
94 + compatible = "hifiberry,hifiberry-dac8x";
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