ARM: dts: colibri_imx7: Fix lcdif node definition
authorIgor Opaniuk <igor.opaniuk@toradex.com>
Wed, 19 Jun 2019 08:47:06 +0000 (11:47 +0300)
committerAnatolij Gustschin <agust@denx.de>
Sun, 28 Jul 2019 22:11:29 +0000 (00:11 +0200)
Fix lcdif DT node and make it conform to the structure defined in the
Linux devicetree bindings [1]. Currently there is support only for
old style lcdif node definitions.

[1] https://www.kernel.org/doc/Documentation/devicetree/bindings/display/mxsfb.txt

Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com>
Reviewed-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
arch/arm/dts/imx7-colibri.dtsi

index 81717c233d1ca9dd800d6ae44d683cf6f1c26932..308e0b2a63fa06001d7885573373352943a0574d 100644 (file)
 };
 
 &lcdif {
-       u-boot,dm-pre-reloc;
        status = "okay";
+       display = <&display0>;
+       u-boot,dm-pre-reloc;
 
-       display-timings {
-               native-mode = <&timing_vga>;
-
-               /* Standard VGA timing */
-               timing_vga: 640x480 {
-                       u-boot,dm-pre-reloc;
-                       clock-frequency = <25175000>;
-                       hactive = <640>;
-                       vactive = <480>;
-                       hback-porch = <48>;
-                       hfront-porch = <16>;
-                       vback-porch = <33>;
-                       vfront-porch = <10>;
-                       hsync-len = <96>;
-                       vsync-len = <2>;
-
-                       de-active = <1>;
-                       hsync-active = <0>;
-                       vsync-active = <0>;
-                       pixelclk-active = <0>;
+       display0: display0 {
+               bits-per-pixel = <18>;
+               bus-width = <24>;
+               status = "okay";
+
+               display-timings {
+                       native-mode = <&timing_vga>;
+                       timing_vga: 640x480 {
+                               u-boot,dm-pre-reloc;
+                               clock-frequency = <25175000>;
+                               hactive = <640>;
+                               vactive = <480>;
+                               hback-porch = <48>;
+                               hfront-porch = <16>;
+                               vback-porch = <33>;
+                               vfront-porch = <10>;
+                               hsync-len = <96>;
+                               vsync-len = <2>;
+
+                               de-active = <1>;
+                               hsync-active = <0>;
+                               vsync-active = <0>;
+                               pixelclk-active = <0>;
+                       };
                };
        };
 };