Skip to content

Commit 7f09832

Browse files
authored
DAC overlays (raspberrypi#4154)
Adding overlays for PiFi DAC Zero and PiFi DAC HD. Signed-off-by: David Knell <david.knell@gmail.com>
1 parent 0a6eff7 commit 7f09832

4 files changed

Lines changed: 112 additions & 0 deletions

File tree

‎arch/arm/boot/dts/overlays/Makefile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
130130
pibell.dtbo \
131131
pifacedigital.dtbo \
132132
pifi-40.dtbo \
133+
pifi-dac-hd.dtbo \
134+
pifi-dac-zero.dtbo \
133135
pifi-mini-210.dtbo \
134136
piglow.dtbo \
135137
piscreen.dtbo \

‎arch/arm/boot/dts/overlays/README‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2131,6 +2131,18 @@ Load: dtoverlay=pifi-40
21312131
Params: <None>
21322132

21332133

2134+
Name: pifi-dac-hd
2135+
Info: Configures the PiFi DAC HD
2136+
Load: dtoverlay=pifi-dac-hd
2137+
Params: <None>
2138+
2139+
2140+
Name: pifi-dac-zero
2141+
Info: Configures the PiFi DAC Zero
2142+
Load: dtoverlay=pifi-dac-zero
2143+
Params: <None>
2144+
2145+
21342146
Name: pifi-mini-210
21352147
Info: Configures the PiFi Mini stereo amplifier
21362148
Load: dtoverlay=pifi-mini-210
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
// Overlay for PiFi-DAC-HD
2+
/dts-v1/;
3+
/plugin/;
4+
5+
/ {
6+
compatible = "brcm,bcm2835";
7+
8+
fragment@0 {
9+
target = <&i2s>;
10+
__overlay__ {
11+
status = "okay";
12+
};
13+
};
14+
15+
fragment@1 {
16+
target = <&i2c1>;
17+
__overlay__ {
18+
status = "okay";
19+
#address-cells = <1>;
20+
#size-cells =<0>;
21+
22+
pcm5142: pcm5142@4c {
23+
#sound-dai-cells = <0>;
24+
compatible = "ti,pcm5142";
25+
reg = <0x4c>;
26+
status = "okay";
27+
};
28+
};
29+
};
30+
31+
fragment@2 {
32+
target = <&sound>;
33+
__overlay__ {
34+
compatible = "simple-audio-card";
35+
simple-audio-card,name = "PiFi-DAC-HD";
36+
status = "okay";
37+
38+
simple-audio-card,dai-link@1 {
39+
format = "i2s";
40+
cpu {
41+
sound-dai = <&i2s>;
42+
};
43+
codec {
44+
sound-dai = <&pcm5142>;
45+
};
46+
};
47+
};
48+
};
49+
};
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
// Overlay for PiFi-DAC-Zero
2+
/dts-v1/;
3+
/plugin/;
4+
5+
/ {
6+
compatible = "brcm,bcm2835";
7+
8+
fragment@0 {
9+
target = <&sound>;
10+
__overlay__ {
11+
compatible = "simple-audio-card";
12+
simple-audio-card,name = "PiFi-DAC-Zero";
13+
status = "okay";
14+
15+
simple-audio-card,dai-link@1 {
16+
format = "i2s";
17+
18+
cpu {
19+
sound-dai = <&i2s>;
20+
dai-tdm-slot-num = <2>;
21+
dai-tdm-slot-width = <32>;
22+
};
23+
24+
codec {
25+
sound-dai = <&codec_out>;
26+
};
27+
};
28+
};
29+
};
30+
31+
fragment@1 {
32+
target-path = "/";
33+
__overlay__ {
34+
codec_out: pcm5102a-codec {
35+
#sound-dai-cells = <0>;
36+
compatible = "ti,pcm5102a";
37+
status = "okay";
38+
};
39+
};
40+
};
41+
42+
fragment@2 {
43+
target = <&i2s>;
44+
__overlay__ {
45+
#sound-dai-cells = <0>;
46+
status = "okay";
47+
};
48+
};
49+
};

0 commit comments

Comments
 (0)