MLK-12724 ARM: dts: imx6ull-ddr3-arm2: resolve pin conflicts for pwm3 and lcd touch
authorFancy Fang <chen.fang@nxp.com>
Thu, 28 Apr 2016 02:05:08 +0000 (10:05 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:51:53 +0000 (14:51 -0500)
Since pwm3 and lcd touch are conflict for one pin, change
backlight to use pwm1 instead. But pwm1 also conflicts with
enet1, so enable backlight in a new dts file.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
arch/arm/boot/dts/imx6ull-ddr3-arm2-lcdif.dts
arch/arm/boot/dts/imx6ull-ddr3-arm2.dts

index 8c30bb3..07c3881 100644 (file)
 #include "imx6ull-ddr3-arm2.dts"
 
 / {
-       regulators {
-               reg_usb_otg1_vbus: regulator@2 {
-                       status = "disabled";
-               };
-       };
-
        backlight {
-               compatible = "pwm-backlight";
-               pwms = <&pwm3 0 5000000>;
-               brightness-levels = <0 4 8 16 32 64 128 255>;
-               default-brightness-level = <6>;
                status = "okay";
        };
 };
 
+&fec1 {
+       status = "disabled";
+};
+
 &lcdif {
-       pinctrl-names = "default";
-       pinctrl-0 = <&pinctrl_lcdif_dat
-                    &pinctrl_lcdif_ctrl>;
-       display = <&display0>;
        status = "okay";
-
-       display0: display {
-               bits-per-pixel = <16>;
-               bus-width = <24>;
-
-               display-timings {
-                       native-mode = <&timing0>;
-                       timing0: timing0 {
-                               clock-frequency = <33500000>;
-                               hactive = <800>;
-                               vactive = <480>;
-                               hback-porch = <89>;
-                               hfront-porch = <164>;
-                               vback-porch = <23>;
-                               vfront-porch = <10>;
-                               hsync-len = <10>;
-                               vsync-len = <10>;
-                               hsync-active = <0>;
-                               vsync-active = <0>;
-                               de-active = <1>;
-                               pixelclk-active = <0>;
-                       };
-               };
-       };
 };
 
-&pwm3 {
-       pinctrl-names = "default";
-       pinctrl-0 = <&pinctrl_pwm3>;
+&pwm1 {
        status = "okay";
 };
index 054b0f8..43b0816 100644 (file)
                reg = <0x80000000 0x40000000>;
        };
 
+       backlight {
+               compatible = "pwm-backlight";
+               pwms = <&pwm1 0 5000000>;
+               brightness-levels = <0 4 8 16 32 64 128 255>;
+               default-brightness-level = <6>;
+               status = "disabled";
+       };
+
        pxp_v4l2 {
                compatible = "fsl,imx6ul-pxp-v4l2", "fsl,imx6sx-pxp-v4l2", "fsl,imx6sl-pxp-v4l2";
                status = "okay";
                        >;
                };
 
-               pinctrl_pwm3: pmw3grp {
+               pinctrl_pwm1: pmw1grp {
                        fsl,pins = <
-                               MX6UL_PAD_GPIO1_IO04__PWM3_OUT  0x110b0
+                               MX6UL_PAD_ENET1_RX_DATA0__PWM1_OUT   0x110b0
                        >;
                };
 
        };
 };
 
+&lcdif {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_lcdif_dat
+                    &pinctrl_lcdif_ctrl>;
+       display = <&display0>;
+       status = "disabled";
+
+       display0: display {
+               bits-per-pixel = <16>;
+               bus-width = <24>;
+
+               display-timings {
+                       native-mode = <&timing0>;
+                       timing0: timing0 {
+                               clock-frequency = <33500000>;
+                               hactive = <800>;
+                               vactive = <480>;
+                               hback-porch = <89>;
+                               hfront-porch = <164>;
+                               vback-porch = <23>;
+                               vfront-porch = <10>;
+                               hsync-len = <10>;
+                               vsync-len = <10>;
+                               hsync-active = <0>;
+                               vsync-active = <0>;
+                               de-active = <1>;
+                               pixelclk-active = <0>;
+                       };
+               };
+       };
+};
+
+&pwm1 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_pwm1>;
+       status = "disabled";
+};
+
 &pxp {
        status = "okay";
 };