linux-leds.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/5] ChromeOS Embedded Controller LED driver
@ 2024-05-31 16:33 Thomas Weißschuh
  2024-05-31 16:33 ` [PATCH v2 1/5] leds: core: Introduce led_get_color_name() function Thomas Weißschuh
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Thomas Weißschuh @ 2024-05-31 16:33 UTC (permalink / raw)
  To: Pavel Machek, Lee Jones, Thomas Weißschuh, Benson Leung,
	Guenter Roeck, Tzung-Bi Shih
  Cc: linux-leds, linux-kernel, chrome-platform, Dustin Howett,
	Mario Limonciello, Thomas Weißschuh

Add a LED driver that supports the LED devices exposed by the
ChromeOS Embedded Controller.

Patch 1-3 add a utility function to the led subsystem.
Patch 4 introduces the actual driver.
Patch 5 registers the driver through the cros_ec mfd devices.

Currently the driver introduces some non-standard LED functions.
(See "cros_ec_led_functions")

Tested on a Framework 13 AMD, Firmware 3.05.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
Changes in v2:
- Cosmetic cleanups (Tzung-Bi)
- Add trailing comma to MFD cell array
- Rename LEDs and trigger to "chromeos" prefix, to align with kbd
  backlight driver
- Don't use type "rgb" anymore, they are only "multicolor"
- Align commit messages and subject to subsystem standards (Lee)
- Rename led_color_name() to led_get_color_name()
- The same for cros_ec_led_color_name()
- Link to v1: https://lore.kernel.org/r/20240520-cros_ec-led-v1-0-4068fc5c051a@weissschuh.net

---
Thomas Weißschuh (5):
      leds: core: Introduce led_get_color_name() function
      leds: multicolor: Use led_get_color_name() function
      leds: core: Unexport led_colors[] array
      leds: Add ChromeOS EC driver
      mfd: cros_ec: Register LED subdevice

 MAINTAINERS                         |   5 +
 drivers/leds/Kconfig                |  15 ++
 drivers/leds/Makefile               |   1 +
 drivers/leds/led-class-multicolor.c |   2 +-
 drivers/leds/led-core.c             |  12 +-
 drivers/leds/leds-cros_ec.c         | 297 ++++++++++++++++++++++++++++++++++++
 drivers/leds/leds.h                 |   1 -
 drivers/mfd/cros_ec_dev.c           |   9 ++
 include/linux/leds.h                |  10 ++
 9 files changed, 348 insertions(+), 4 deletions(-)
---
base-commit: 4a4be1ad3a6efea16c56615f31117590fd881358
change-id: 20240519-cros_ec-led-3efa24e3991e

Best regards,
-- 
Thomas Weißschuh <linux@weissschuh.net>


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

end of thread, other threads:[~2024-06-13 14:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-31 16:33 [PATCH v2 0/5] ChromeOS Embedded Controller LED driver Thomas Weißschuh
2024-05-31 16:33 ` [PATCH v2 1/5] leds: core: Introduce led_get_color_name() function Thomas Weißschuh
2024-05-31 16:33 ` [PATCH v2 2/5] leds: multicolor: Use " Thomas Weißschuh
2024-05-31 16:33 ` [PATCH v2 3/5] leds: core: Unexport led_colors[] array Thomas Weißschuh
2024-05-31 16:33 ` [PATCH v2 4/5] leds: Add ChromeOS EC driver Thomas Weißschuh
2024-05-31 16:33 ` [PATCH v2 5/5] mfd: cros_ec: Register LED subdevice Thomas Weißschuh
2024-06-02 23:30 ` [PATCH v2 0/5] ChromeOS Embedded Controller LED driver Dustin Howett
2024-06-03 20:56   ` Thomas Weißschuh
2024-06-13 14:41     ` Lee Jones
2024-06-13 14:48       ` Thomas Weißschuh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).