summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/rk3036-kylin.dts
diff options
context:
space:
mode:
authorCaesar Wang <wxt@rock-chips.com>2016-01-07 09:25:45 +0100
committerHeiko Stuebner <heiko@sntech.de>2016-01-24 23:28:23 +0100
commit47bf3a5c9e2aadaa6bfdff151e139196f1334c06 (patch)
tree3a340bca0d7c078b72555f7639cf5995f0fd0af3 /arch/arm/boot/dts/rk3036-kylin.dts
parentARM: dts: rockchip: swap i2s clock ordering on rk3036 (diff)
downloadlinux-47bf3a5c9e2aadaa6bfdff151e139196f1334c06.tar.xz
linux-47bf3a5c9e2aadaa6bfdff151e139196f1334c06.zip
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 <wxt@rock-chips.com> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Diffstat (limited to 'arch/arm/boot/dts/rk3036-kylin.dts')
-rw-r--r--arch/arm/boot/dts/rk3036-kylin.dts35
1 files changed, 35 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/rk3036-kylin.dts b/arch/arm/boot/dts/rk3036-kylin.dts
index 992f9cadbc04..b28762522da0 100644
--- a/arch/arm/boot/dts/rk3036-kylin.dts
+++ b/arch/arm/boot/dts/rk3036-kylin.dts
@@ -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";
@@ -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 {