All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2 0/9] dm: led: Expand the LED interface and add a command
@ 2017-04-10 17:34 Simon Glass
  2017-04-10 17:34 ` [U-Boot] [PATCH v2 1/9] sandbox: Add some test LEDs Simon Glass
                   ` (9 more replies)
  0 siblings, 10 replies; 29+ messages in thread
From: Simon Glass @ 2017-04-10 17:34 UTC (permalink / raw)
  To: u-boot

The LED interface for driver model is a little primitive. This series
expands it to match the legacy interface and adds a command to match.

Changes in v2:
- Add new patch with blank line in the Kconfig file
- Drop the explicit assignment to LEDST_TOGGLE
- Control this feature via a new CONFIG_LED_BLINK option

Simon Glass (9):
  sandbox: Add some test LEDs
  dm: led: Add a missing blank line in the Kconfig file
  dm: led: Rename struct led_uclass_plat
  dm: led: Adjust the LED uclass
  dm: led: Add support for getting the state of an LED
  dm: led: Support toggling LEDs
  dm: led: Add support for blinking LEDs
  led: Mark existing driver as legacy
  dm: led: Add a new 'led' command

 arch/sandbox/dts/sandbox.dts    |  14 +++
 cmd/Kconfig                     |   9 ++
 cmd/Makefile                    |   3 +-
 cmd/led.c                       | 262 +++++++++++++++++-----------------------
 cmd/legacy_led.c                | 187 ++++++++++++++++++++++++++++
 configs/sandbox_defconfig       |   1 +
 configs/sandbox_noblk_defconfig |   1 +
 configs/sandbox_spl_defconfig   |   1 +
 drivers/led/Kconfig             |  10 ++
 drivers/led/led-uclass.c        |  32 ++++-
 drivers/led/led_gpio.c          |  39 +++++-
 include/led.h                   |  75 ++++++++++--
 test/dm/led.c                   |  56 ++++++++-
 13 files changed, 517 insertions(+), 173 deletions(-)
 create mode 100644 cmd/legacy_led.c

-- 
2.12.2.715.g7642488e1d-goog

^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2017-04-15 16:08 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-10 17:34 [U-Boot] [PATCH v2 0/9] dm: led: Expand the LED interface and add a command Simon Glass
2017-04-10 17:34 ` [U-Boot] [PATCH v2 1/9] sandbox: Add some test LEDs Simon Glass
2017-04-12  8:51   ` Ziping Chen
2017-04-15 16:07     ` Simon Glass
2017-04-10 17:34 ` [U-Boot] [PATCH v2 2/9] dm: led: Add a missing blank line in the Kconfig file Simon Glass
2017-04-12  8:51   ` Ziping Chen
2017-04-15 16:07     ` Simon Glass
2017-04-10 17:34 ` [U-Boot] [PATCH v2 3/9] dm: led: Rename struct led_uclass_plat Simon Glass
2017-04-12  8:51   ` Ziping Chen
2017-04-15 16:07     ` Simon Glass
2017-04-10 17:34 ` [U-Boot] [PATCH v2 4/9] dm: led: Adjust the LED uclass Simon Glass
2017-04-12  8:52   ` Ziping Chen
2017-04-15 16:07     ` Simon Glass
2017-04-10 17:34 ` [U-Boot] [PATCH v2 5/9] dm: led: Add support for getting the state of an LED Simon Glass
2017-04-12  8:52   ` Ziping Chen
2017-04-15 16:08     ` Simon Glass
2017-04-10 17:34 ` [U-Boot] [PATCH v2 6/9] dm: led: Support toggling LEDs Simon Glass
2017-04-12  8:52   ` Ziping Chen
2017-04-15 16:08     ` Simon Glass
2017-04-10 17:34 ` [U-Boot] [PATCH v2 7/9] dm: led: Add support for blinking LEDs Simon Glass
2017-04-12  8:52   ` Ziping Chen
2017-04-15 16:08     ` Simon Glass
2017-04-10 17:34 ` [U-Boot] [PATCH v2 8/9] led: Mark existing driver as legacy Simon Glass
2017-04-12  8:53   ` Ziping Chen
2017-04-15 16:08     ` Simon Glass
2017-04-10 17:34 ` [U-Boot] [PATCH v2 9/9] dm: led: Add a new 'led' command Simon Glass
2017-04-12  8:53   ` Ziping Chen
2017-04-15 16:08     ` Simon Glass
2017-04-12  8:51 ` [U-Boot] [PATCH v2 0/9] dm: led: Expand the LED interface and add a command Ziping Chen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.