[U-Boot] [PATCH v3 23/54] dm: Add support for LEDs

Simon Glass sjg at chromium.org
Sat Jul 18 01:56:57 CEST 2015


On 23 June 2015 at 15:38, Simon Glass <sjg at chromium.org> wrote:
> 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 at chromium.org>
> ---
>
> Changes in v3: None
> Changes in v2: None
>
>  doc/device-tree-bindings/leds/common.txt | 23 ++++++++++++++
>  drivers/Kconfig                          |  2 ++
>  drivers/Makefile                         |  1 +
>  drivers/led/Kconfig                      | 17 +++++++++++
>  drivers/led/Makefile                     |  8 +++++
>  drivers/led/led-uclass.c                 | 48 ++++++++++++++++++++++++++++++
>  include/dm/uclass-id.h                   |  1 +
>  include/led.h                            | 51 ++++++++++++++++++++++++++++++++
>  scripts/Makefile.spl                     |  1 +
>  9 files changed, 152 insertions(+)
>  create mode 100644 doc/device-tree-bindings/leds/common.txt
>  create mode 100644 drivers/led/Kconfig
>  create mode 100644 drivers/led/Makefile
>  create mode 100644 drivers/led/led-uclass.c
>  create mode 100644 include/led.h

Applied to u-boot-dm.


More information about the U-Boot mailing list