ARM: dts: at91: nattis: initialize the BLON pin as output-low early
authorPeter Rosin <peda@axentia.se>
Tue, 20 Nov 2018 21:20:43 +0000 (21:20 +0000)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 21 Nov 2018 11:24:50 +0000 (12:24 +0100)
The pwm-backlight driver initializes BLON (the enable gpio) to
output-high if the gpio is input on probe. Initializing the gpio
to output-low before the driver probes prevents this action by
the pwm-backlight driver and gets rid of a nasty blink of full
backlight with an uninitialized panel.

Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
arch/arm/boot/dts/at91-nattis-2-natte-2.dts

index 911d2c7c1500ff831bc98ae6f9730de4f2638ad1..0f6d335125e27eca213f7757f193037cee6c4701 100644 (file)
@@ -60,6 +60,8 @@
 
                power-supply = <&bl_reg>;
                enable-gpios = <&pioA 20 GPIO_ACTIVE_HIGH>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_blon>;
        };
 
        panel: panel {
                                      (AT91_PINCTRL_OUTPUT |
                                       AT91_PINCTRL_OUTPUT_VAL(0))>;
                };
+
+               pinctrl_blon: blon {
+                       atmel,pins = <AT91_PIOA 20 AT91_PERIPH_GPIO
+                                     (AT91_PINCTRL_OUTPUT |
+                                      AT91_PINCTRL_OUTPUT_VAL(0))>;
+               };
        };
 };