[U-Boot] [PATCH v3 1/3] dm: led: Support "default-state" property

Simon Glass sjg at chromium.org
Sun Apr 8 13:55:22 UTC 2018


On 4 April 2018 at 04:01,  <linux-kernel-dev at beckhoff.com> wrote:
> From: Patrick Bruenn <p.bruenn at beckhoff.com>
>
> Add support for the device tree property "default-state". This feature
> might be useful for LEDs indicating "power on" or similar states.
>
> Note: Even with this commit gpio-leds remain in reset state. That's
> because the led_gpio is not probed until DM_FLAG_ACTIVATED is set.
>
> Signed-off-by: Patrick Bruenn <p.bruenn at beckhoff.com>
>
> ---
>
> Changes in v3:
> - use ofnode_read_bool() instead of ofnode_read_string() to determine if
>   LED node has the default-state property
>
> Changes in v2:
> - rebase to v2018.05-rc1
> - add dm_test_led_default_state() to tests/dm/led.c
>
>  drivers/led/led_gpio.c | 16 +++++++++++++++-
>  1 file changed, 15 insertions(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list