ARM: dts: imx6ull-somdevices.dtsi: Add 4 and 7 inch LCD configurations.
authorJosep Orga <jorga@somdevices.com>
Sat, 18 Apr 2020 17:28:07 +0000 (19:28 +0200)
committerJosep Orga <jorga@somdevices.com>
Sat, 18 Apr 2020 17:28:07 +0000 (19:28 +0200)
Signed-off-by: Josep Orga <jorga@somdevices.com>
arch/arm/boot/dts/imx6ull-somdevices-C0P1.dts
arch/arm/boot/dts/imx6ull-somdevices.dtsi

index 6df790f..7024142 100644 (file)
@@ -1,3 +1,4 @@
 #define DUAL_ETH
+#define BIG_LCD
 
 #include "imx6ull-somdevices.dtsi"
index 61517de..3400235 100644 (file)
@@ -6,6 +6,7 @@
  * published by the Free Software Foundation.
  */
 /* #define DUAL_ETH */
+/* #define BIG_LCD */
 /* #define MMC_SPI */
 /dts-v1/;
 
                display-timings {
                        native-mode = <&timing0>;
                        timing0: timing0 {
-                       clock-frequency = <9200000>;
-                       hactive = <480>;
-                       vactive = <272>;
-                       hfront-porch = <8>;
-                       hback-porch = <4>;
-                       hsync-len = <41>;
-                       vback-porch = <2>;
-                       vfront-porch = <4>;
-                       vsync-len = <10>;
-
-                       hsync-active = <0>;
-                       vsync-active = <0>;
-                       de-active = <1>;
-                       pixelclk-active = <0>;
+                       #ifdef BIG_LCD
+                               //7INCH LCD
+                               clock-frequency = <33000000>;
+                               hactive = <800>;
+                               vactive = <480>;
+                               hfront-porch = <210>;
+                               hback-porch = <30>;
+                               hsync-len = <16>;
+                               vback-porch = <13>;
+                               vfront-porch = <22>;
+                               vsync-len = <10>;
+                       #else
+                               //4INCH LCD
+                               clock-frequency = <9000000>;
+                               hactive = <480>;
+                               vactive = <272>;
+                               hfront-porch = <2>;
+                               hback-porch = <43>;
+                               hsync-len = <0>;
+                               vback-porch = <12>;
+                               vfront-porch = <1>;
+                               vsync-len = <0>;
+                       #endif
+
+                               hsync-active = <0>;
+                               vsync-active = <0>;
+                               de-active = <1>;
+                               pixelclk-active = <0>;
                        };
                };
        };