[PATCH v2 0/4] LED: Add basic LP5860 LED matrix driver

Steffen Trumtrar posted 4 patches 9 months ago
There is a newer version of this series
Documentation/ABI/testing/sysfs-class-spi-lp5860   |  73 ++++
.../devicetree/bindings/leds/leds-lp5860.yaml      | 112 ++++++
drivers/leds/Kconfig                               |  23 ++
drivers/leds/Makefile                              |   2 +
drivers/leds/leds-lp5860-core.c                    | 413 +++++++++++++++++++++
drivers/leds/leds-lp5860-spi.c                     | 101 +++++
drivers/leds/leds-lp5860.h                         | 326 ++++++++++++++++
7 files changed, 1050 insertions(+)
[PATCH v2 0/4] LED: Add basic LP5860 LED matrix driver
Posted by Steffen Trumtrar 9 months ago
The lp5860 is a LED matrix driver with 18 constant current sinks and 11
scan switches which allows controlling up to 198 LED dots.

This series adds just the basic support for the device on the SPI bus.
It is also possible to use it on I2C. The interface can be
switched/selected via an interface select pin.

Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
---
Changes in v2:
- add open and short detection
- add ABI documentation
- fix devicetree binding (maxItems/minItems)
- fix commit message to imperative mood
- minor cleanup
- Link to v1: https://lore.kernel.org/r/20250220-v6-14-topic-ti-lp5860-v1-0-42874bdc7513@pengutronix.de

---
Steffen Trumtrar (4):
      dt-bindings: leds: add lp5860 LED controller
      leds: add support for TI LP5860 LED driver chip
      leds: lp5860: save count of multi_leds
      leds: lp5860: detect and report fault state

 Documentation/ABI/testing/sysfs-class-spi-lp5860   |  73 ++++
 .../devicetree/bindings/leds/leds-lp5860.yaml      | 112 ++++++
 drivers/leds/Kconfig                               |  23 ++
 drivers/leds/Makefile                              |   2 +
 drivers/leds/leds-lp5860-core.c                    | 413 +++++++++++++++++++++
 drivers/leds/leds-lp5860-spi.c                     | 101 +++++
 drivers/leds/leds-lp5860.h                         | 326 ++++++++++++++++
 7 files changed, 1050 insertions(+)
---
base-commit: 63ee0d00c8fc276d8653e71fb2c914cf257db2b2
change-id: 20250219-v6-14-topic-ti-lp5860-f25a48b62c79

Best regards,
-- 
Steffen Trumtrar <s.trumtrar@pengutronix.de>
Re: [PATCH v2 0/4] LED: Add basic LP5860 LED matrix driver
Posted by Pavel Machek 8 months, 3 weeks ago
Hi!

> The lp5860 is a LED matrix driver with 18 constant current sinks and 11
> scan switches which allows controlling up to 198 LED dots.

200 points. Is it likely to be used as individual LEDs?

>  Documentation/ABI/testing/sysfs-class-spi-lp5860   |  73 ++++

I'm not big fan of new ABI. Should currents / per channel dimming be
configured from dts (and not sysfs)?

Best regards,
								Pavel
-- 
I don't work for Nazis and criminals, and neither should you.
Boycott Putin, Trump, and Musk!