All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/9] led: introduce LED boot and activity function
@ 2024-08-12 10:32 Christian Marangi
  2024-08-12 10:32 ` [PATCH v3 1/9] led: turn LED ON on initial SW blink Christian Marangi
                   ` (8 more replies)
  0 siblings, 9 replies; 26+ messages in thread
From: Christian Marangi @ 2024-08-12 10:32 UTC (permalink / raw)
  To: Tom Rini, Joe Hershberger, Ramon Fried, Dario Binacchi,
	Simon Glass, Christian Marangi, Heinrich Schuchardt,
	Miquel Raynal, Arseniy Krasnov, Heiko Schocher, Michael Trimarchi,
	Martin Kurbanov, Alexey Romanov, Dmitry Dunaev, Marek Vasut,
	Sean Anderson, Artur Rojek, Rasmus Villemoes, Leo Yu-Chi Liang,
	Vasileios Amoiridis, Mikhail Kshevetskiy, Michael Polyntsov,
	Doug Zobel, u-boot

This series is a reworked version of the previous seried: 
misc: introduce STATUS LED activity function

This series port and expand the legacy concept of LED boot from
the legacy Status LED API to new LED API.

One thing that many device need is a way to communicate to the
user that the device is actually doing something.

This is especially useful for recovery steps where an
user (for example) insert an USB drive, keep a button pressed
and the device autorecover.

There is currently no way to signal the user externally that
the bootloader is processing/recoverying aside from setting
a LED on.

A solid LED on is not enough and won't actually signal any
kind of progress.
Solution is the good old blinking LED but uboot doesn't
suggest (and support) interrupts and almost all the LED
are usually GPIO LED that doesn't support HW blink.

Additional Kconfg are also introduced to set the LED boot and
activity. Those are referenced by label.

A documentation for old and these new LED API is created.

(world tested with the azure pipeline)

Changes v3:
- Switch to /config property
Changes v2:
- Drop GPIO SW implementation
- Add fix for new LED SW BLINK

Christian Marangi (9):
  led: turn LED ON on initial SW blink
  led: implement led_set_state/period_by_label
  led: implement LED boot API
  common: board_r: rework BOOT LED handling
  led: implement LED activity API
  tftp: implement support for LED activity
  mtd: implement support for LED activity
  ubi: implement support for LED activity
  doc: introduce led.rst documentation

 cmd/mtd.c                           |  19 +++
 cmd/ubi.c                           |  17 ++-
 common/board_r.c                    |  25 +++-
 doc/api/index.rst                   |   1 +
 doc/api/led.rst                     |  10 ++
 doc/device-tree-bindings/config.txt |   7 ++
 drivers/led/Kconfig                 |  41 +++++++
 drivers/led/led-uclass.c            |  28 +++++
 drivers/led/led_sw_blink.c          |   5 +-
 include/led.h                       | 184 ++++++++++++++++++++++++++++
 net/tftp.c                          |   7 ++
 11 files changed, 338 insertions(+), 6 deletions(-)
 create mode 100644 doc/api/led.rst

-- 
2.45.2


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

end of thread, other threads:[~2024-09-19 17:21 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-12 10:32 [PATCH v3 0/9] led: introduce LED boot and activity function Christian Marangi
2024-08-12 10:32 ` [PATCH v3 1/9] led: turn LED ON on initial SW blink Christian Marangi
2024-08-12 22:00   ` Heinrich Schuchardt
2024-08-22 10:47     ` Christian Marangi
2024-09-19 17:20       ` Heinrich Schuchardt
2024-09-19 14:13   ` Simon Glass
2024-09-19 16:26     ` Christian Marangi
2024-08-12 10:32 ` [PATCH v3 2/9] led: implement led_set_state/period_by_label Christian Marangi
2024-09-19 14:14   ` Simon Glass
2024-08-12 10:32 ` [PATCH v3 3/9] led: implement LED boot API Christian Marangi
2024-09-19 14:14   ` Simon Glass
2024-08-12 10:32 ` [PATCH v3 4/9] common: board_r: rework BOOT LED handling Christian Marangi
2024-09-19 14:13   ` Simon Glass
2024-08-12 10:32 ` [PATCH v3 5/9] led: implement LED activity API Christian Marangi
2024-09-19 14:13   ` Simon Glass
2024-08-12 10:32 ` [PATCH v3 6/9] tftp: implement support for LED activity Christian Marangi
2024-09-19 14:13   ` Simon Glass
2024-08-12 10:32 ` [PATCH v3 7/9] mtd: " Christian Marangi
2024-08-12 10:32 ` [PATCH v3 8/9] ubi: " Christian Marangi
2024-08-14  4:33   ` Heiko Schocher
2024-08-14  8:17     ` Michael Nazzareno Trimarchi
2024-08-18 16:01       ` Christian Marangi
2024-08-18 19:32         ` Michael Nazzareno Trimarchi
2024-08-22 10:45           ` Christian Marangi
2024-08-18 15:58     ` Christian Marangi
2024-08-12 10:32 ` [PATCH v3 9/9] doc: introduce led.rst documentation Christian Marangi

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.