ARM: dts: imx6qdl-apalis: Use enable-gpios property for backlight
authorSanchayan Maity <maitysanchayan@gmail.com>
Mon, 19 Sep 2016 05:11:53 +0000 (10:41 +0530)
committerShawn Guo <shawnguo@kernel.org>
Sat, 22 Oct 2016 03:27:20 +0000 (11:27 +0800)
Use enable-gpios property of PWM backlight driver for backlight
control.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6qdl-apalis.dtsi

index 99e323b57261c047e7aa558289346926e2dab397..8c8a049eb3d09d2e8481ad3c8dcb2daf3280329d 100644 (file)
 
        backlight: backlight {
                compatible = "pwm-backlight";
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_gpio_bl_on>;
                pwms = <&pwm4 0 5000000>;
+               enable-gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>;
                status = "disabled";
        };
 
                >;
        };
 
+       pinctrl_gpio_bl_on: gpioblon {
+               fsl,pins = <
+                       MX6QDL_PAD_EIM_DA13__GPIO3_IO13 0x1b0b0
+               >;
+       };
+
        pinctrl_gpio_keys: gpio1io04grp {
                fsl,pins = <
                        /* Power button */