arm64: dts: rockchip: add dp audio support for rk3399-tve1205g
[firefly-linux-kernel-4.4.55.git] / arch / arm64 / boot / dts / rockchip / rk3399-tve1205g.dts
index 82680ee28a0e0c7a63d512b904709d9f7cb1df12..343301944e8c8c1b9c33063c7340597218fae578 100644 (file)
@@ -55,8 +55,9 @@
                compatible = "simple-panel";
                backlight = <&backlight>;
                power-supply = <&vcc3v3_s0>;
-               enable-gpios = <&gpio3 8 GPIO_ACTIVE_HIGH>;
+               enable-gpios = <&gpio3 GPIO_A0 GPIO_ACTIVE_HIGH>;
                bus-format = <MEDIA_BUS_FMT_RGB666_1X18>;
+               delay,prepare = <50>;
                ports {
                        panel_in_edp: endpoint {
                                remote-endpoint = <&edp_out_panel>;
                };
        };
 
+       sound {
+               compatible = "rockchip,cdndp-sound";
+               rockchip,cpu = <&i2s2>;
+               rockchip,codec = <&cdn_dp>;
+               status = "okay";
+       };
+
        spdif-sound {
                compatible = "simple-audio-card";
                simple-audio-card,name = "rockchip,spdif";
        uboot-charge {
                compatible = "rockchip,uboot-charge";
                rockchip,uboot-charge-on = <1>;
-               rockchip,android-charge-on = <1>;
-               rockchip,uboot-exit-charge-level = <3>;
+               rockchip,android-charge-on = <0>;
+               rockchip,uboot-exit-charge-level = <2>;
                rockchip,uboot-low-power-level = <1>;
+               rockchip,uboot-charge-brightness = <0>;
+               max-input-voltage = <20000>;
+               max-input-current = <6000>;
        };
 
        vibrator {
        };
 };
 
+&edp_in_vopl {
+       status = "disabled";
+};
+
 &emmc_phy {
        status = "okay";
 };
        status = "disabled";
 };
 
+&cdn_dp {
+       status = "okay";
+       extcon = <&fusb0>, <&fusb1>;
+};
+
+&dp_in_vopb {
+       status = "disabled";
+};
+
 &i2s0 {
        status = "okay";
        rockchip,i2s-broken-burst-len;
 };
 
 &i2s2 {
+       status = "okay";
        #sound-dai-cells = <0>;
 };
 
                int-n-gpios = <&gpio1 GPIO_B5 GPIO_ACTIVE_HIGH>;
                discharge-gpios = <&gpio0 GPIO_B5 GPIO_ACTIVE_HIGH>;
                charge-dev = <&bq25700>;
+               support-uboot-charge = <1>;
+               port-num = <1>;
                status = "okay";
        };
 };
                int-n-gpios = <&gpio1 GPIO_A2 GPIO_ACTIVE_HIGH>;
                discharge-gpios = <&gpio0 GPIO_B4 GPIO_ACTIVE_HIGH>;
                charge-dev = <&bq25700>;
+               support-uboot-charge = <1>;
+               port-num = <0>;
                status = "okay";
        };
 };
 };
 
 &pcie_phy {
-       status = "disabled";
+       status = "okay";
 };
 
 &pcie0 {
        ep-gpios = <&gpio3 7 GPIO_ACTIVE_HIGH>;
        num-lanes = <4>;
        pinctrl-names = "default";
-       pinctrl-0 = <&pcie_clkreqn>;
-       status = "disabled";
+       pinctrl-0 = <&pcie_clkreqn_cpm>;
+       status = "okay";
 };
 
 &pmu_io_domains {