[PATCH v6 0/3] leds: Add driver for MAX8907 LED cell

Svyatoslav Ryhel posted 3 patches 1 week, 1 day ago
.../bindings/regulator/maxim,max8907.yaml     |  4 +
drivers/leds/Kconfig                          | 10 ++
drivers/leds/Makefile                         |  1 +
drivers/leds/leds-max8907.c                   | 99 +++++++++++++++++++
drivers/mfd/max8907.c                         |  1 +
include/linux/mfd/max8907.h                   |  2 +-
6 files changed, 116 insertions(+), 1 deletion(-)
create mode 100644 drivers/leds/leds-max8907.c
[PATCH v6 0/3] leds: Add driver for MAX8907 LED cell
Posted by Svyatoslav Ryhel 1 week, 1 day ago
Add a small driver to control the LED cell provided by the MAX8907 PMIC.
The LED does not require any specific configuration and is folded into the
PMIC's node.

Patch 1 of the series requires this patch:
("regulator: dt-bindings: maxim,max8907: Convert to DT schema")
https://lore.kernel.org/lkml/20261027114634.79706-2-clamor95@gmail.com/

---
Changes in v2:
- rebased so patch is now applicable to linux/next

Changes in v3:
- added check if led is off for get callback
- added dedicated MAX8907_REG_WLED_MODE_ON mask
- switched to devm_led_classdev_register_ext

Changes in v4:
- platform_set_drvdata dropped
- init_data.devicename dropped
- added MODULE_ALIAS

Changes in v5:
- add and document a dedicated node for LED
- split adding led cell to mfd into separate commit
- expand Kconfig description
- populate devicename and default_label of init_data
- unfold platform_driver->driver

Changes in v6:
- converted to devm_kzalloc_obj
---

Svyatoslav Ryhel (3):
  regulator: dt-bindings: maxim,max8907: Document LED support
  leds: Add driver for MAX8907 LED cell
  mfd: max8907: Add LED cell

 .../bindings/regulator/maxim,max8907.yaml     |  4 +
 drivers/leds/Kconfig                          | 10 ++
 drivers/leds/Makefile                         |  1 +
 drivers/leds/leds-max8907.c                   | 99 +++++++++++++++++++
 drivers/mfd/max8907.c                         |  1 +
 include/linux/mfd/max8907.h                   |  2 +-
 6 files changed, 116 insertions(+), 1 deletion(-)
 create mode 100644 drivers/leds/leds-max8907.c

-- 
2.53.0