From bddaa3fd0f0d71a81d86e67e64ccd354544c4601 Mon Sep 17 00:00:00 2001 From: Sugar Zhang Date: Thu, 17 Mar 2016 18:33:05 +0800 Subject: [PATCH] ARM64: dts: rk3399-tb: add sound node Change-Id: Ibcb2e6baae871c6456e1cbe6b145cb64bb007c7d Signed-off-by: Sugar Zhang --- arch/arm64/boot/dts/rockchip/rk3399-tb.dtsi | 60 +++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-tb.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-tb.dtsi index bd2b1264e31b..01aaf2892aa0 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-tb.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-tb.dtsi @@ -145,6 +145,43 @@ pmu1830-supply = <&vcc1v8_pmu>; }; + + es8316-sound { + compatible = "simple-audio-card"; + simple-audio-card,format = "i2s"; + simple-audio-card,name = "rockchip,es8316-codec"; + simple-audio-card,mclk-fs = <256>; + simple-audio-card,widgets = + "Microphone", "Mic Jack", + "Headphone", "Headphone Jack"; + simple-audio-card,routing = + "Mic Jack", "MICBIAS1", + "IN1P", "Mic Jack", + "Headphone Jack", "HPOL", + "Headphone Jack", "HPOR"; + simple-audio-card,cpu { + sound-dai = <&i2s0>; + }; + simple-audio-card,codec { + sound-dai = <&es8316>; + }; + }; + + spdif-sound { + compatible = "simple-audio-card"; + simple-audio-card,name = "rockchip,spdif"; + simple-audio-card,cpu { + sound-dai = <&spdif>; + }; + simple-audio-card,codec { + sound-dai = <&spdif_out>; + }; + }; + + spdif_out: spdif-out { + compatible = "linux,spdif-dit"; + #sound-dai-cells = <0>; + }; }; &sdmmc { @@ -193,6 +230,15 @@ &i2s0 { status = "okay"; + rockchip,i2s-broken-burst-len; + rockchip,playback-channels = <8>; + rockchip,capture-channels = <8>; + #sound-dai-cells = <0>; +}; + +&spdif { + status = "okay"; + #sound-dai-cells = <0>; }; &i2c0 { @@ -414,6 +460,20 @@ }; }; +&i2c1 { + status = "okay"; + + es8316: es8316@10 { + #sound-dai-cells = <0>; + compatible = "everest,es8316"; + reg = <0x10>; + clocks = <&cru SCLK_I2S_8CH_OUT>; + clock-names = "mclk"; + spk-con-gpio = <&gpio0 11 GPIO_ACTIVE_HIGH>; + hp-det-gpio = <&gpio4 28 GPIO_ACTIVE_LOW>; + }; +}; + &pwm2 { status = "okay"; }; -- 2.34.1