FROMLIST: ARM: dts: rockchip: add eDP/panel display device nodes for rk3288-evb
authorYakir Yang <ykk@rock-chips.com>
Tue, 28 Jun 2016 04:51:18 +0000 (12:51 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 30 Jun 2016 06:42:18 +0000 (14:42 +0800)
The default eDP panel on RK3288 EVB board is LG LP079QX1-SP0V TFT LCD,
we haven't declared the panel regulator in the 'panel-simple' device
node here, so the specific board like ACT8846 / RK8080 need to support
the panel power supply.

Change-Id: Ibf4a6457d606027eaa91cacf6fde2241376afd13
Signed-off-by: Yakir Yang <ykk@rock-chips.com>
(am from https://patchwork.kernel.org/patch/9201815/)

arch/arm/boot/dts/rk3288-evb.dtsi

index e776d4fa7f85446035432bd8b0f14389a0f91093..0e705ec2b2e2817c05cd67fd2e252f5528d890fe 100644 (file)
@@ -47,7 +47,7 @@
                reg = <0x0 0x80000000>;
        };
 
-       backlight {
+       backlight: backlight {
                compatible = "pwm-backlight";
                brightness-levels = <
                          0   1   2   3   4   5   6   7
                pwms = <&pwm0 0 1000000 PWM_POLARITY_INVERTED>;
        };
 
+       panel: panel {
+               compatible ="lg,lp079qx1-sp0v", "simple-panel";
+               backlight = <&backlight>;
+               enable-gpios = <&gpio7 4 GPIO_ACTIVE_HIGH>;
+               pinctrl-0 = <&lcd_cs>;
+               ports {
+                       panel_in: port {
+                               panel_in_edp: endpoint {
+                                       remote-endpoint = <&edp_out_panel>;
+                               };
+                       };
+               };
+       };
+
        gpio-keys {
                compatible = "gpio-keys";
                #address-cells = <1>;
        vqmmc-supply = <&vccio_sd>;
 };
 
+&edp_phy {
+       status = "okay";
+};
+
+&edp {
+       force-hpd;
+       status = "okay";
+
+       ports {
+               edp_out: port@1 {
+                       reg = <1>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       edp_out_panel: endpoint {
+                               reg = <0>;
+                               remote-endpoint = <&panel_in_edp>;
+                       };
+               };
+       };
+};
+
 &i2c0 {
        status = "okay";
 };
                        rockchip,pins = <0 6 RK_FUNC_GPIO &pcfg_pull_none>;
                };
        };
+
+       lcd {
+               lcd_cs: lcd-cs {
+                       rockchip,pins = <7 4 RK_FUNC_GPIO &pcfg_pull_none>;
+               };
+       };
 };
 
 &usbphy {