]> git.dujemihanovic.xyz Git - u-boot.git/commit
led: Configure LED default-state on boot
authorMarek Vasut <marex@denx.de>
Sun, 3 Apr 2022 23:23:27 +0000 (01:23 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 14 Apr 2022 19:39:15 +0000 (15:39 -0400)
commit72675b063b6ede269a8edee29575ade02c21b58d
tree44f0c4364eccfb6d6d3faf572de8712784a64b83
parent2d1deaf88edc1182372794c79f43c6aa6c163d8e
led: Configure LED default-state on boot

In case the DT LED subnode contains "default-state" property set to
either "on" or "off", probe the LED driver and configure the LED state
automatically.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Alex Nemirovsky <alex.nemirovsky@cortina-access.com>
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
Cc: Philippe Reynes <philippe.reynes@softathome.com>
Cc: Sean Anderson <seanga2@gmail.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Steven Lawrance <steven.lawrance@softathome.com>
[trini: Update the relevant test now that we have support]
Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/led/led-uclass.c
include/led.h
test/cmd/pinmux.c