Skip to content

Commit de905af

Browse files
committed
dtoverlays:adds overlays for Studio DAC8x soundcard driver
Adds two overlays for clock consumer and provider mode. Only compatible with Pi 5 (bcm2712). Signed-off-by: j-schambacher <joerg@hifiberry.com>
1 parent a98c06d commit de905af

File tree

3 files changed

+109
-0
lines changed

3 files changed

+109
-0
lines changed

arch/arm/boot/dts/overlays/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
105105
hifiberry-dacplushd.dtbo \
106106
hifiberry-digi.dtbo \
107107
hifiberry-digi-pro.dtbo \
108+
hifiberry-studio-dac8x.dtbo \
109+
hifiberry-studio-dac8x-pro.dtbo \
108110
highperi.dtbo \
109111
hy28a.dtbo \
110112
hy28b.dtbo \
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
// SPDX-License-Identifier: GPL-2.0
2+
// Definitions for HiFiBerry Studio DAC8x soundcard
3+
/dts-v1/;
4+
/plugin/;
5+
6+
/ {
7+
compatible = "brcm,bcm2712";
8+
9+
fragment@0 {
10+
target = <&gpio>;
11+
__overlay__ {
12+
rp1_i2s0_dac8x: rp1_i2s0_dac8x {
13+
function = "i2s0";
14+
pins = "gpio18", "gpio19", "gpio20",
15+
"gpio21", "gpio22", "gpio23",
16+
"gpio24", "gpio25", "gpio26",
17+
"gpio27";
18+
bias-disable;
19+
status = "okay";
20+
};
21+
};
22+
};
23+
24+
fragment@1 {
25+
target = <&i2s_clk_producer>;
26+
__overlay__ {
27+
pinctrl-names = "default";
28+
pinctrl-0 = <&rp1_i2s0_dac8x>;
29+
status = "okay";
30+
};
31+
};
32+
33+
fragment@2 {
34+
target-path = "/";
35+
__overlay__ {
36+
dummy-codec {
37+
#sound-dai-cells = <0>;
38+
compatible = "snd-soc-dummy";
39+
status = "okay";
40+
};
41+
};
42+
};
43+
44+
fragment@3 {
45+
target = <&sound>;
46+
__overlay__ {
47+
compatible = "hifiberry,hifiberry-studio-dac8x";
48+
i2s-controller = <&i2s_clk_producer>;
49+
status = "okay";
50+
};
51+
};
52+
53+
};
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
// SPDX-License-Identifier: GPL-2.0
2+
// Definitions for HiFiBerry Studio DAC8x PRO soundcard
3+
/dts-v1/;
4+
/plugin/;
5+
6+
/ {
7+
compatible = "brcm,bcm2712";
8+
9+
fragment@0 {
10+
target = <&gpio>;
11+
__overlay__ {
12+
rp1_i2s0_dac8x: rp1_i2s0_dac8x {
13+
function = "i2s0";
14+
pins = "gpio18", "gpio19", "gpio20",
15+
"gpio21", "gpio22", "gpio23",
16+
"gpio24", "gpio25", "gpio26",
17+
"gpio27";
18+
bias-disable;
19+
status = "okay";
20+
};
21+
};
22+
};
23+
24+
fragment@1 {
25+
target = <&i2s_clk_consumer>;
26+
__overlay__ {
27+
pinctrl-names = "default";
28+
pinctrl-0 = <&rp1_i2s0_dac8x>;
29+
status = "okay";
30+
};
31+
};
32+
33+
fragment@2 {
34+
target-path = "/";
35+
__overlay__ {
36+
dummy-codec {
37+
#sound-dai-cells = <0>;
38+
compatible = "snd-soc-dummy";
39+
status = "okay";
40+
};
41+
};
42+
};
43+
44+
fragment@3 {
45+
target = <&sound>;
46+
__overlay__ {
47+
compatible = "hifiberry,hifiberry-studio-dac8x";
48+
i2s-controller = <&i2s_clk_consumer>;
49+
clk-provider;
50+
status = "okay";
51+
};
52+
};
53+
54+
};

0 commit comments

Comments
 (0)