Skip to content

Commit d0c0269

Browse files
acgzxrkhuangtao
authored andcommitted
arm64: dts: rockchip: move acodec sound node to rk3308-evb-v10.dtsi
The acodec part is shared with the RK3308 EVB, so that users can select an external sound card device as required. Change-Id: I42c1de879ba14a693c161a401ecf5ba6a8d39cd0 Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
1 parent 2c20d41 commit d0c0269

2 files changed

Lines changed: 28 additions & 28 deletions

File tree

arch/arm64/boot/dts/rockchip/rk3308-evb-amic-v10.dts

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -11,32 +11,4 @@
1111
/ {
1212
model = "Rockchip RK3308 evb analog mic board";
1313
compatible = "rockchip,rk3308-evb-amic-v10", "rockchip,rk3308";
14-
15-
sound {
16-
compatible = "simple-audio-card";
17-
simple-audio-card,format = "i2s";
18-
simple-audio-card,name = "rockchip,rk3308-acodec";
19-
simple-audio-card,mclk-fs = <256>;
20-
simple-audio-card,cpu {
21-
sound-dai = <&i2s_8ch_2>;
22-
};
23-
simple-audio-card,codec {
24-
sound-dai = <&acodec>;
25-
};
26-
};
27-
};
28-
29-
&acodec {
30-
status = "okay";
31-
32-
#sound-dai-cells = <0>;
33-
34-
hp-ctl-gpios = <&gpio0 RK_PA1 GPIO_ACTIVE_HIGH>;
35-
spk-ctl-gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
36-
};
37-
38-
&i2s_8ch_2 {
39-
status = "okay";
40-
41-
#sound-dai-cells = <0>;
4214
};

arch/arm64/boot/dts/rockchip/rk3308-evb-v10.dtsi

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,19 @@
102102
reset-gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>;
103103
};
104104

105+
sound {
106+
compatible = "simple-audio-card";
107+
simple-audio-card,format = "i2s";
108+
simple-audio-card,name = "rockchip,rk3308-acodec";
109+
simple-audio-card,mclk-fs = <256>;
110+
simple-audio-card,cpu {
111+
sound-dai = <&i2s_8ch_2>;
112+
};
113+
simple-audio-card,codec {
114+
sound-dai = <&acodec>;
115+
};
116+
};
117+
105118
spdif_tx_sound: spdif-tx-sound {
106119
status = "disabled";
107120
compatible = "simple-audio-card";
@@ -227,6 +240,15 @@
227240
};
228241
};
229242

243+
&acodec {
244+
status = "okay";
245+
246+
#sound-dai-cells = <0>;
247+
248+
hp-ctl-gpios = <&gpio0 RK_PA1 GPIO_ACTIVE_HIGH>;
249+
spk-ctl-gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>;
250+
};
251+
230252
&cpu0 {
231253
cpu-supply = <&vdd_core>;
232254
};
@@ -608,6 +630,12 @@
608630
};
609631
};
610632

633+
&i2s_8ch_2 {
634+
status = "okay";
635+
636+
#sound-dai-cells = <0>;
637+
};
638+
611639
&nandc {
612640
status = "okay";
613641
};

0 commit comments

Comments
 (0)