ARM: dts: imx7-colibri: use OF graph to describe the display
authorStefan Agner <stefan@agner.ch>
Wed, 29 Mar 2017 23:21:09 +0000 (16:21 -0700)
committerShawn Guo <shawnguo@kernel.org>
Mon, 10 Apr 2017 08:16:19 +0000 (16:16 +0800)
To make use of the new eLCDIF DRM driver OF graph description is
required. Describe the display using OF graph nodes.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi

index 373ee19..7a98a45 100644 (file)
        chosen {
                stdout-path = "serial0:115200n8";
        };
+
+       panel: panel {
+               compatible = "edt,et057090dhu";
+               backlight = <&bl>;
+
+               port {
+                       panel_in: endpoint {
+                               remote-endpoint = <&lcdif_out>;
+                       };
+               };
+       };
 };
 
 &bl {
 };
 
 &lcdif {
-       display = <&display0>;
        status = "okay";
 
-       display0: lcd-display {
-               bits-per-pixel = <16>;
-               bus-width = <18>;
-
-               display-timings {
-                       native-mode = <&timing_vga>;
-
-                       /* Standard VGA timing */
-                       timing_vga: 640x480 {
-                               clock-frequency = <25175000>;
-                               hactive = <640>;
-                               vactive = <480>;
-                               hback-porch = <40>;
-                               hfront-porch = <24>;
-                               vback-porch = <32>;
-                               vfront-porch = <11>;
-                               hsync-len = <96>;
-                               vsync-len = <2>;
-                               de-active = <1>;
-                               hsync-active = <0>;
-                               vsync-active = <0>;
-                               pixelclk-active = <0>;
-                       };
+       port {
+               lcdif_out: endpoint {
+                       remote-endpoint = <&panel_in>;
                };
        };
 };