aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaesar Wang <wxt@rock-chips.com>2015-12-17 15:59:14 +0800
committerKees Cook <keescook@chromium.org>2016-01-11 15:16:35 -0800
commit4180dbd210a776dd28576d2ca8d901a436d97338 (patch)
tree0e83c9f9c3a4f5c1e1fe6963d158b0a74984a885
parentae467b10b9f01c0f0a9237a6ff030bd1f9e3a7c1 (diff)
downloadv4.1-4180dbd210a776dd28576d2ca8d901a436d97338.tar.gz
FROMLIST: ARM: dts: add the sound codec for kylin board
Support the rt5616 codec for kylin board, but we need enable the i2s firstly. Patchset: Rockchip kylin board Patch[5/6],codec can work. (am https://patchwork.kernel.org/patch/7873701/) Signed-off-by: Caesar Wang <wxt@rock-chips.com> Change-Id: I1467f66c451cad5c143c120861a93a6a0385d584
-rw-r--r--arch/arm/boot/dts/rk3036-kylin.dts33
1 files changed, 33 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/rk3036-kylin.dts b/arch/arm/boot/dts/rk3036-kylin.dts
index 9a06fc9f2a4..c74de9754be 100644
--- a/arch/arm/boot/dts/rk3036-kylin.dts
+++ b/arch/arm/boot/dts/rk3036-kylin.dts
@@ -46,6 +46,28 @@
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 = <64>;
+ 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 = <&i2s0>;
+ };
+ simple-audio-card,codec {
+ sound-dai = <&rt5616>;
+ };
+ };
+
vcc_sys: vsys-regulator {
compatible = "regulator-fixed";
regulator-name = "vcc_sys";
@@ -261,6 +283,17 @@
&i2c2 {
status = "okay";
+
+ rt5616: rt5616@1b {
+ #sound-dai-cells = <0>;
+ compatible = "rt5616";
+ reg = <0x1b>;
+ };
+};
+
+&i2s0 {
+ #sound-dai-cells = <0>;
+ status = "okay";
};
&lcdc {