ARM64: dts: rk3399-tb: add sound node
authorSugar Zhang <sugar.zhang@rock-chips.com>
Thu, 17 Mar 2016 10:33:05 +0000 (18:33 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 29 Mar 2016 10:37:11 +0000 (18:37 +0800)
Change-Id: Ibcb2e6baae871c6456e1cbe6b145cb64bb007c7d
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3399-tb.dtsi

index bd2b1264e31bd1b1b46da641175b9339b8d89c7e..01aaf2892aa0ca0b7957713e794feb309e4fb49a 100644 (file)
 
                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 {
 
 &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 {
        };
 };
 
+&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";
 };