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

Simon Glass sjg at chromium.org
Sun Apr 1 14:19:33 UTC 2018


Hi Patrick,

On 7 March 2018 at 17:48,  <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.
>

This looks OK, but please add a test to test/dm/led.c as well.

> Signed-off-by: Patrick Bruenn <p.bruenn at beckhoff.com>
>
> ---
>
>  drivers/led/led_gpio.c | 16 +++++++++++++++-
>  1 file changed, 15 insertions(+), 1 deletion(-)

Regards,
Simon


More information about the U-Boot mailing list