Skip to content

Commit 0035950

Browse files
committed
overlays: Add overlay for ezsound 6x8 soundcard
Add the DT overlay for the ezsound 6x8 soundcard. Signed-off-by: Stephen Gordon <[email protected]>
1 parent 2b588af commit 0035950

File tree

1 file changed

+114
-0
lines changed

1 file changed

+114
-0
lines changed
Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
//Device tree overlay for ezsound 6x8 isolated card
2+
/dts-v1/;
3+
/plugin/;
4+
5+
/ {
6+
compatible = "brcm,bcm2712";
7+
8+
fragment@0 {
9+
target = <&rp1_i2s0_18_21>;
10+
__overlay__ {
11+
pins = "gpio18", "gpio19", "gpio20", "gpio22", "gpio24",
12+
"gpio26", "gpio21", "gpio23", "gpio25", "gpio27";
13+
};
14+
};
15+
16+
fragment@1 {
17+
target = <&rp1_i2s1_18_21>;
18+
__overlay__ {
19+
pins = "gpio18", "gpio19", "gpio20", "gpio22", "gpio24",
20+
"gpio26", "gpio21", "gpio23", "gpio25", "gpio27";
21+
};
22+
};
23+
24+
fragment@2 {
25+
target = <&sound>;
26+
__overlay__ {
27+
compatible = "simple-audio-card";
28+
#address-cells = <1>;
29+
#size-cells = <0>;
30+
i2s-controller = <&i2s_clk_consumer>;
31+
status="okay";
32+
33+
simple-audio-card,name = "ezsound-6x8";
34+
simple-audio-card,format = "i2s";
35+
36+
dailink_out_master: simple-audio-card,dai-link@0 {
37+
reg = <0>;
38+
format = "i2s";
39+
bitclock-master = <&pcm3168_playback>;
40+
frame-master = <&pcm3168_playback>;
41+
cpu {
42+
sound-dai = <&i2s_clk_consumer>;
43+
dai-tdm-slot-num = <2>;
44+
dai-tdm-slot-width = <32>;
45+
};
46+
pcm3168_playback: codec {
47+
sound-dai = <&pcm3168a 0>;
48+
dai-tdm-slot-num = <2>;
49+
dai-tdm-slot-width = <32>;
50+
};
51+
};
52+
dailink_in_slave: simple-audio-card,dai-link@1 {
53+
reg = <1>;
54+
format = "i2s";
55+
bitclock-master = <&pcm3168_capture>;
56+
frame-master = <&pcm3168_capture>;
57+
cpu {
58+
sound-dai = <&i2s_clk_consumer>;
59+
dai-tdm-slot-num = <2>;
60+
dai-tdm-slot-width = <32>;
61+
};
62+
pcm3168_capture: codec {
63+
sound-dai = <&pcm3168a 1>;
64+
dai-tdm-slot-num = <2>;
65+
dai-tdm-slot-width = <32>;
66+
};
67+
};
68+
};
69+
};
70+
71+
fragment@3 {
72+
target-path = "/";
73+
__overlay__ {
74+
scki_clk: scki-clock {
75+
compatible = "fixed-clock";
76+
#clock-cells = <0>;
77+
clock-frequency = <24576000>;
78+
};
79+
};
80+
};
81+
82+
// Bring the I2S clock consumer block up
83+
fragment@4 {
84+
target = <&i2s_clk_consumer>;
85+
__overlay__ {
86+
#sound-dai-cells = <0>;
87+
status = "okay";
88+
};
89+
};
90+
91+
fragment@5 {
92+
target = <&i2c1>;
93+
__overlay__ {
94+
#address-cells = <1>;
95+
#size-cells = <0>;
96+
97+
pcm3168a: audio-codec@45 {
98+
#sound-dai-cells = <1>;
99+
compatible = "ti,pcm3168a";
100+
status = "okay";
101+
reg = <0x45>;
102+
clocks = <&scki_clk>;
103+
clock-names = "scki";
104+
dac-force-cons;
105+
VDD1-supply = <&vdd_3v3_reg>;
106+
VDD2-supply = <&vdd_3v3_reg>;
107+
VCCAD1-supply = <&vdd_5v0_reg>;
108+
VCCAD2-supply = <&vdd_5v0_reg>;
109+
VCCDA1-supply = <&vdd_5v0_reg>;
110+
VCCDA2-supply = <&vdd_5v0_reg>;
111+
};
112+
};
113+
};
114+
};

0 commit comments

Comments
 (0)