• Stefan Agner's avatar
    backlight: gpio-backlight: Use default-on on GPIO request · 2f4647a1
    Stefan Agner authored
    There are situations where the backlight should be on at boot time
    (e.g. if the boot loader already turned the display on). The DT
    bindings specify the "default-on" property for that purpose.
    Currently, the initial state of the GPIO at request time is always
    set to logical off (high or low depending on whether it is an
    active high or low GPIO). Since the GPIO is requested as an output,
    the GPIO will be driven low for a short period of time, which leads
    to a flickering display in the above use-case.
    
    Initialize the GPIO depending on the default-on property to be
    logical on or off.
    Signed-off-by: default avatarStefan Agner <stefan@agner.ch>
    Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
    2f4647a1
gpio_backlight.c 4.16 KB