arm64: dts: rockchip: Enable eDP display on rk3399 evb
authorAndy Yan <andy.yan@rock-chips.com>
Thu, 5 Mar 2020 11:39:12 +0000 (19:39 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Thu, 5 Mar 2020 23:49:50 +0000 (00:49 +0100)
Add eDP panle and enable relative dt node like vop/iommu
to enable eDP display on rk3399 evb.

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Link: https://lore.kernel.org/r/20200305113912.32226-5-andy.yan@rock-chips.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3399-evb.dts

index 6f83d94..5e5d49f 100644 (file)
                pwms = <&pwm0 0 25000 0>;
        };
 
+       edp_panel: edp-panel {
+               compatible ="lg,lp079qx1-sp0v";
+               backlight = <&backlight>;
+               enable-gpios = <&gpio1 RK_PB5 GPIO_ACTIVE_HIGH>;
+               power-supply = <&vcc3v3_s0>;
+
+               port {
+                       panel_in_edp: endpoint {
+                               remote-endpoint = <&edp_out_panel>;
+                       };
+               };
+       };
+
        clkin_gmac: external-gmac-clock {
                compatible = "fixed-clock";
                clock-frequency = <125000000>;
 
 };
 
+&edp {
+       status = "okay";
+       force-hpd;
+
+       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>;
+                       };
+               };
+       };
+};
+
 &emmc_phy {
        status = "okay";
 };
                };
        };
 };
+
+&vopb {
+       status = "okay";
+};
+
+&vopb_mmu {
+       status = "okay";
+};