]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: dts: imx: add LVDS backlight for Ventana
authorTim Harvey <tharvey@gateworks.com>
Thu, 1 May 2014 06:32:30 +0000 (23:32 -0700)
committerShawn Guo <shawn.guo@freescale.com>
Fri, 16 May 2014 15:02:06 +0000 (23:02 +0800)
The GW54xx/GW53xx/GW52xx all support LVDS with a PWM controlled backlight.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
arch/arm/boot/dts/imx6qdl-gw52xx.dtsi
arch/arm/boot/dts/imx6qdl-gw53xx.dtsi
arch/arm/boot/dts/imx6qdl-gw54xx.dtsi

index 102219761b206e5e11af2071838dfae7a4fd7038..62f533ab369313a7feb4b44e04d450d5fdca2a79 100644 (file)
                bootargs = "console=ttymxc1,115200";
        };
 
+       backlight {
+               compatible = "pwm-backlight";
+               pwms = <&pwm4 0 5000000>;
+               brightness-levels = <0 4 8 16 32 64 128 255>;
+               default-brightness-level = <7>;
+       };
+
        leds {
                compatible = "gpio-leds";
 
                        >;
                };
 
+               pinctrl_pwm4: pwm4grp {
+                       fsl,pins = <
+                               MX6QDL_PAD_SD1_CMD__PWM4_OUT            0x1b0b1
+                       >;
+               };
+
                pinctrl_uart1: uart1grp {
                        fsl,pins = <
                                MX6QDL_PAD_SD3_DAT7__UART1_TX_DATA      0x1b0b1
        status = "okay";
 };
 
+&pwm4 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_pwm4>;
+       status = "okay";
+};
+
 &ssi1 {
        fsl,mode = "i2s-slave";
        status = "okay";
index 523f26f11eea435c67b31809aa1241d2d6ba3d9f..c91b5a6c769bfd5f154ff41c0a6389ccb4184374 100644 (file)
                bootargs = "console=ttymxc1,115200";
        };
 
+       backlight {
+               compatible = "pwm-backlight";
+               pwms = <&pwm4 0 5000000>;
+               brightness-levels = <0 4 8 16 32 64 128 255>;
+               default-brightness-level = <7>;
+       };
+
        leds {
                compatible = "gpio-leds";
 
                        >;
                };
 
+               pinctrl_pwm4: pwm4grp {
+                       fsl,pins = <
+                               MX6QDL_PAD_SD1_CMD__PWM4_OUT            0x1b0b1
+                       >;
+               };
+
                pinctrl_uart1: uart1grp {
                        fsl,pins = <
                                MX6QDL_PAD_SD3_DAT7__UART1_TX_DATA      0x1b0b1
        };
 };
 
+&pwm4 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_pwm4>;
+       status = "okay";
+};
+
 &ssi1 {
        fsl,mode = "i2s-slave";
        status = "okay";
index cab94bfdf69191c194c72f8ee3fc42879291da8d..698d3063b29563691147510bb2dc9c2965999c1a 100644 (file)
                bootargs = "console=ttymxc1,115200";
        };
 
+       backlight {
+               compatible = "pwm-backlight";
+               pwms = <&pwm4 0 5000000>;
+               brightness-levels = <0 4 8 16 32 64 128 255>;
+               default-brightness-level = <7>;
+       };
+
        leds {
                compatible = "gpio-leds";
 
                        >;
                };
 
+               pinctrl_pwm4: pwm4grp {
+                       fsl,pins = <
+                               MX6QDL_PAD_SD1_CMD__PWM4_OUT            0x1b0b1
+                       >;
+               };
+
                pinctrl_uart1: uart1grp {
                        fsl,pins = <
                                MX6QDL_PAD_SD3_DAT7__UART1_TX_DATA      0x1b0b1
        };
 };
 
+&pwm4 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_pwm4>;
+       status = "okay";
+};
+
 &ssi1 {
        fsl,mode = "i2s-slave";
        status = "okay";