Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 47bf3a5

Browse files
Caesar-githubmmind
authored andcommitted
ARM: dts: rockchip: add the sound setup for rk3036-kylin board
The rk3036-kylin board uses a rt5616 audio codec connected to the i2s and can use the simple card to tie everyting together. Signed-off-by: Caesar Wang <[email protected]> Signed-off-by: Heiko Stuebner <[email protected]>
1 parent 3860aa1 commit 47bf3a5

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

arch/arm/boot/dts/rk3036-kylin.dts

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,30 @@
4646
model = "Rockchip RK3036 KylinBoard";
4747
compatible = "rockchip,rk3036-kylin", "rockchip,rk3036";
4848

49+
sound {
50+
compatible = "simple-audio-card";
51+
simple-audio-card,format = "i2s";
52+
simple-audio-card,name = "rockchip,rt5616-codec";
53+
simple-audio-card,mclk-fs = <256>;
54+
simple-audio-card,widgets =
55+
"Microphone", "Microphone Jack",
56+
"Headphone", "Headphone Jack";
57+
simple-audio-card,routing =
58+
"MIC1", "Microphone Jack",
59+
"MIC2", "Microphone Jack",
60+
"Microphone Jack", "micbias1",
61+
"Headphone Jack", "HPOL",
62+
"Headphone Jack", "HPOR";
63+
64+
simple-audio-card,cpu {
65+
sound-dai = <&i2s>;
66+
};
67+
68+
simple-audio-card,codec {
69+
sound-dai = <&rt5616>;
70+
};
71+
};
72+
4973
vcc_sys: vsys-regulator {
5074
compatible = "regulator-fixed";
5175
regulator-name = "vcc_sys";
@@ -257,6 +281,17 @@
257281

258282
&i2c2 {
259283
status = "okay";
284+
285+
rt5616: rt5616@1b {
286+
compatible = "rt5616";
287+
reg = <0x1b>;
288+
#sound-dai-cells = <0>;
289+
};
290+
};
291+
292+
&i2s {
293+
#sound-dai-cells = <0>;
294+
status = "okay";
260295
};
261296

262297
&sdio {

0 commit comments

Comments
 (0)