arm64: dts: rockchip: add efuse device node for rk3328
[firefly-linux-kernel-4.4.55.git] / arch / arm64 / boot / dts / rockchip / rk3399-sapphire-excavator-edp.dts
index e8b91ffe775bda35632fee659a1bb9f41ef0e7ea..08cc37536bb5b150fce2f8970b0a9a814907f2ef 100644 (file)
 
 /dts-v1/;
 
-#include <dt-bindings/input/input.h>
 #include "rk3399-excavator-sapphire.dtsi"
 #include "rk3399-android.dtsi"
+#include "rk3399-vop-clk-set.dtsi"
 
 / {
-       compatible = "rockchip,rk3399-excavator-edp", "rockchip,rk3399";
+       model = "Rockchip RK3399 Excavator Board edp (Android)";
+       compatible = "rockchip,android", "rockchip,rk3399-excavator-edp", "rockchip,rk3399";
+
+       edp_panel: edp-panel {
+               compatible = "lg,lp079qx1-sp0v", "panel-simple";
+               backlight = <&backlight>;
+               power-supply = <&vcc3v3_s0>;
+               enable-gpios = <&gpio4 30 GPIO_ACTIVE_HIGH>;
+
+               ports {
+                       panel_in_edp: endpoint {
+                               remote-endpoint = <&edp_out_panel>;
+                       };
+               };
+       };
 
        test-power {
                status = "okay";
        };
+
+       rt5651 {
+               status = "okay";
+       };
 };
 
 &backlight {
        status = "okay";
+       enable-gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
 };
 
-&cdn_dp_fb {
+&edp {
        status = "okay";
-       extcon = <&fusb0>;
-       dp_vop_sel = <DISPLAY_SOURCE_LCDC1>;
+
+       ports {
+               edp_out: port@1 {
+                       reg = <1>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       edp_out_panel: endpoint@0 {
+                               reg = <0>;
+                               remote-endpoint = <&panel_in_edp>;
+                       };
+               };
+       };
 };
 
-&cdn_dp_sound {
-       status = "okay";
+&edp_in_vopl {
+       status = "disabled";
 };
 
-&edp_rk_fb {
+&hdmi {
        status = "okay";
 };
 
-&hdmi_rk_fb {
-       status = "okay";
-       rockchip,hdmi_video_source = <DISPLAY_SOURCE_LCDC1>;
+&hdmi_in_vopb {
+       status = "disabled";
 };
 
 &hdmi_sound {
        status = "okay";
 };
 
+&i2s2 {
+       status = "okay";
+};
+
 &i2c1 {
        status = "okay";
 
        };
 };
 
-&pwm0 {
-       status = "okay";
+&vopb {
+       assigned-clocks = <&cru DCLK_VOP0_DIV>;
+       assigned-clock-parents = <&cru PLL_CPLL>;
 };
 
-&rk_screen {
-       #include <dt-bindings/display/screen-timing/lcd-F402.dtsi>
+&vopl {
+       assigned-clocks = <&cru DCLK_VOP1_DIV>;
+       assigned-clock-parents = <&cru PLL_VPLL>;
 };
 
-&vopb_rk_fb {
+&route_edp {
        status = "okay";
-       power_ctr: power_ctr {
-               rockchip,debug = <0>;
-               lcd_en: lcd-en {
-                       rockchip,power_type = <GPIO>;
-                       gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
-                       rockchip,delay = <10>;
-               };
-
-               /*
-               lcd_cs: lcd-cs {
-                       rockchip,power_type = <GPIO>;
-                       gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>;
-                       rockchip,delay = <10>;
-               };
-               */
+};
 
-               lcd_rst: lcd-rst {
-                       rockchip,power_type = <GPIO>;
-                       gpios = <&gpio4 30 GPIO_ACTIVE_HIGH>;
-                       rockchip,delay = <5>;
+&pinctrl {
+       lcd-panel {
+               lcd_panel_reset: lcd-panel-reset {
+                       rockchip,pins = <4 30 RK_FUNC_GPIO &pcfg_pull_up>;
                };
        };
 };
 
-&vopl_rk_fb {
-       status = "okay";
-};