]> git.baikalelectronics.ru Git - uboot.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)
commitea638e483650fed6eb3bafe5c7ff1ec9952e0b64
tree44f0c4364eccfb6d6d3faf572de8712784a64b83
parent87d0e5d4c055c00e3dcdb9d9544a7f45a4632520
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