ARM: dts: sun5i: Add backlight GPIO for reference design tablet
authorChen-Yu Tsai <wens@csie.org>
Sun, 27 Jan 2019 14:48:34 +0000 (22:48 +0800)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Mon, 28 Jan 2019 10:51:41 +0000 (11:51 +0100)
Now that we support the GPIOs on the AXP209, we can control the LCD
backlight with them.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
arch/arm/boot/dts/sun5i-reference-design-tablet.dtsi

index 6202aabedbfe7c5a8b9f05a44c5de5bfb68d8526..5b1f0e198eb66404908251d527719a43e0ce8009 100644 (file)
@@ -54,7 +54,7 @@
                pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>;
                brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
                default-brightness-level = <8>;
-               /* TODO: backlight uses axp gpio1 as enable pin */
+               enable-gpios = <&axp_gpio 1 GPIO_ACTIVE_HIGH>; /* AXP GPIO1 */
        };
 
        chosen {