dm: Add support for LEDs
Add a simple uclass for LEDs, so that these can be controlled by the device
tree and activated when needed. LEDs are referred to by their label.
This implementation requires a driver for each type of LED (e.g GPIO, I2C).
Signed-off-by:
Simon Glass <sjg@chromium.org>
Showing
- doc/device-tree-bindings/leds/common.txt 23 additions, 0 deletionsdoc/device-tree-bindings/leds/common.txt
- drivers/Kconfig 2 additions, 0 deletionsdrivers/Kconfig
- drivers/Makefile 1 addition, 0 deletionsdrivers/Makefile
- drivers/led/Kconfig 17 additions, 0 deletionsdrivers/led/Kconfig
- drivers/led/Makefile 8 additions, 0 deletionsdrivers/led/Makefile
- drivers/led/led-uclass.c 48 additions, 0 deletionsdrivers/led/led-uclass.c
- include/dm/uclass-id.h 1 addition, 0 deletionsinclude/dm/uclass-id.h
- include/led.h 51 additions, 0 deletionsinclude/led.h
- scripts/Makefile.spl 1 addition, 0 deletionsscripts/Makefile.spl
Loading
Please register or sign in to comment