arm64: dts: renesas: hihope-rzg2-ex: Add LVDS support
authorBiju Das <biju.das@bp.renesas.com>
Wed, 2 Oct 2019 15:20:18 +0000 (16:20 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 10 Oct 2019 14:22:07 +0000 (16:22 +0200)
This patch adds LVDS support for RZ/G2[MN] boards.

Signed-off-by: Biju Das <biju.das@bp.renesas.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://lore.kernel.org/r/1570029619-43238-9-git-send-email-biju.das@bp.renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm64/boot/dts/renesas/hihope-rzg2-ex.dtsi

index 70f9a2a4fb607aa9e4e303400d012e4e6ee0eed1..f9e7cf68a73945400acae1240f24cbf10c5c53fb 100644 (file)
        status = "okay";
 };
 
+&gpio1 {
+       /*
+        * When GP1_20 is LOW LVDS0 is connected to the LVDS connector
+        * When GP1_20 is HIGH LVDS0 is connected to the LT8918L
+        */
+       lvds-connector-en-gpio {
+               gpio-hog;
+               gpios = <20 GPIO_ACTIVE_HIGH>;
+               output-low;
+               line-name = "lvds-connector-en-gpio";
+       };
+};
+
+&lvds0 {
+       /*
+        * Please include the LVDS panel .dtsi file and uncomment the below line
+        * to enable LVDS panel connected to RZ/G2[MN] boards.
+        */
+
+       /* status = "okay"; */
+
+       ports {
+               port@1 {
+                       lvds_connector: endpoint {
+                       };
+               };
+       };
+};
+
 &pciec0 {
        status = "okay";
 };