Skip to content

Commit

Permalink
ARM: dts: rockchip: add the sound setup for rk3036-kylin board
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Caesar-github authored and mmind committed Jan 24, 2016
1 parent 3860aa1 commit 47bf3a5
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions arch/arm/boot/dts/rk3036-kylin.dts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,30 @@
model = "Rockchip RK3036 KylinBoard";
compatible = "rockchip,rk3036-kylin", "rockchip,rk3036";

sound {
compatible = "simple-audio-card";
simple-audio-card,format = "i2s";
simple-audio-card,name = "rockchip,rt5616-codec";
simple-audio-card,mclk-fs = <256>;
simple-audio-card,widgets =
"Microphone", "Microphone Jack",
"Headphone", "Headphone Jack";
simple-audio-card,routing =
"MIC1", "Microphone Jack",
"MIC2", "Microphone Jack",
"Microphone Jack", "micbias1",
"Headphone Jack", "HPOL",
"Headphone Jack", "HPOR";

simple-audio-card,cpu {
sound-dai = <&i2s>;
};

simple-audio-card,codec {
sound-dai = <&rt5616>;
};
};

vcc_sys: vsys-regulator {
compatible = "regulator-fixed";
regulator-name = "vcc_sys";
Expand Down Expand Up @@ -257,6 +281,17 @@

&i2c2 {
status = "okay";

rt5616: rt5616@1b {
compatible = "rt5616";
reg = <0x1b>;
#sound-dai-cells = <0>;
};
};

&i2s {
#sound-dai-cells = <0>;
status = "okay";
};

&sdio {
Expand Down

0 comments on commit 47bf3a5

Please sign in to comment.