arm64: dts: rk3399-tve1205g: deploy audio configurations
authorzhangjun <zhangjun@rock-chips.com>
Tue, 20 Dec 2016 01:44:32 +0000 (09:44 +0800)
committerzhangjun <zhangjun@rock-chips.com>
Mon, 26 Dec 2016 10:07:36 +0000 (18:07 +0800)
Change-Id: I41ebc8a11c74536ed51720c07fbfe1817342907d
Signed-off-by: zhangjun <zhangjun@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3399-tve1205g.dts

index 6e18a7208ec43d9b00920a83877915e0c81c08ef..d12f00c4660cfea9aa7666fb70772a8fdeaa185c 100644 (file)
                regulator-boot-on;
        };
 
-       es8316-sound {
+       cx2072x-sound {
                compatible = "simple-audio-card";
                simple-audio-card,format = "i2s";
-               simple-audio-card,name = "rockchip,es8316-codec";
+               simple-audio-card,name = "rockchip,cx2072x-codec";
                simple-audio-card,mclk-fs = <256>;
                simple-audio-card,widgets =
-                       "Microphone", "Mic Jack",
-                       "Headphone", "Headphone Jack";
+                       "Microphone", "Microphone Jack",
+                       "Line", "Microphone Headset",
+                       "Headphone", "Headphone Jack",
+                       "Speaker", "Speaker External";
                simple-audio-card,routing =
-                       "Mic Jack", "MICBIAS1",
-                       "IN1P", "Mic Jack",
-                       "Headphone Jack", "HPOL",
-                       "Headphone Jack", "HPOR";
+                       "PORTC", "Microphone Jack",
+                       "PortD Mic Bias", "Microphone Headset",
+                       "Headphone Jack", "PORTA",
+                       "Speaker External", "PORTG";
                simple-audio-card,cpu {
                        sound-dai = <&i2s0>;
                };
                simple-audio-card,codec {
-                       sound-dai = <&es8316>;
+                       sound-dai = <&cx2072x>;
                };
        };
 
        rockchip,i2s-broken-burst-len;
        rockchip,playback-channels = <8>;
        rockchip,capture-channels = <8>;
+       rockchip,bclk-fs = <32>;
        #sound-dai-cells = <0>;
 };
 
                                regulator-max-microvolt = <3000000>;
                                regulator-name = "vcca3v0_codec";
                                regulator-state-mem {
-                                       regulator-off-in-suspend;
+                                       regulator-on-in-suspend;
+                                       regulator-suspend-microvolt = <3000000>;
                                };
                        };
 
                                regulator-max-microvolt = <1800000>;
                                regulator-name = "vcca1v8_codec";
                                regulator-state-mem {
-                                       regulator-off-in-suspend;
+                                       regulator-on-in-suspend;
+                                       regulator-suspend-microvolt = <1800000>;
                                };
                        };
 
        i2c-scl-rising-time-ns = <140>;
        i2c-scl-falling-time-ns = <30>;
 
-       es8316: es8316@10 {
+       cx2072x:cx2072x@33 {
+               status = "okay";
                #sound-dai-cells = <0>;
-               compatible = "everest,es8316";
-               reg = <0x11>;
+               compatible = "cnxt,cx20723";
+               reg = <0x33>;
                clocks = <&cru SCLK_I2S_8CH_OUT>;
                clock-names = "mclk";
                spk-con-gpio = <&gpio0 11 GPIO_ACTIVE_HIGH>;