ARM: dts: Add imx6ull-somdevices.dts NO_LCD filter to disable LCD functionallity.
authorJosep Orga <jorga@somdevices.com>
Wed, 22 Apr 2020 15:43:26 +0000 (17:43 +0200)
committerJosep Orga <jorga@somdevices.com>
Wed, 22 Apr 2020 15:43:26 +0000 (17:43 +0200)
Signed-off-by: Josep Orga <jorga@somdevices.com>
arch/arm/boot/dts/imx6ull-somdevices-C8P1.dts
arch/arm/boot/dts/imx6ull-somdevices.dtsi

index 531b44d..0aa3f54 100644 (file)
@@ -1,4 +1,5 @@
 #define MMC_SPI
+#define NO_LCD
 
 #include "imx6ull-somdevices.dtsi"
 
                        sound-dai = <&sgtl5000>;
                };
        };
-
-       backlight {
-               status = "disabled";
-       };
-
-       pxp_v4l2 {
-               status = "disabled";
-       };
 };
 
 &flexcan1 {
        status = "okay";
 };
 
-&lcdif {
-       status = "disabled";
-};
-
 &uart2 {
        status = "disabled";
 };
index 23ee539..f2f3555 100644 (file)
@@ -7,6 +7,7 @@
  */
 /* #define DUAL_ETH */
 /* #define BIG_LCD */
+/* #define NO_LCD */
 /* #define MMC_SPI */
 /dts-v1/;
 
@@ -39,6 +40,7 @@
                };
        };
 
+#ifndef NO_LCD
        backlight {
                compatible = "pwm-backlight";
                pwms = <&pwm1 0 2000000>;
@@ -51,6 +53,7 @@
                compatible = "fsl,imx6ul-pxp-v4l2", "fsl,imx6sx-pxp-v4l2", "fsl,imx6sl-pxp-v4l2";
                status = "okay";
        };
+#endif
 
        regulators {
                compatible = "simple-bus";
                        MX6UL_PAD_GPIO1_IO02__GPIO1_IO02        0x1b0b0 //GPIO02
                        MX6UL_PAD_UART3_RX_DATA__GPIO1_IO25     0x1b0b0 //GPIO03
                        MX6UL_PAD_NAND_CE1_B__GPIO4_IO14        0x1b0b0 //GPIO04
+               #ifdef NO_LCD
                        MX6UL_PAD_GPIO1_IO08__GPIO1_IO08        0x1b0b0 //GPIO05
+               #endif
                        MX6UL_PAD_JTAG_MOD__GPIO1_IO10          0x1b0b0 //GPIO06
                        MX6UL_PAD_UART1_CTS_B__GPIO1_IO18       0x1b0b0 //GPIO07
                        MX6UL_PAD_GPIO1_IO09__GPIO1_IO09        0x1b0b0 //GPIO08
        };
 };
 
-
+#ifndef NO_LCD
 &lcdif {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_lcdif_dat
 &pxp {
        status = "okay";
 };
+#endif
 
 &sai2 {
        pinctrl-names = "default";