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

Steffen Trumtrar posted 2 patches 10 months ago
There is a newer version of this series
.../devicetree/bindings/leds/leds-lp5860.yaml      | 112 ++++++++
drivers/leds/Kconfig                               |  23 ++
drivers/leds/Makefile                              |   2 +
drivers/leds/leds-lp5860-core.c                    | 276 ++++++++++++++++++
drivers/leds/leds-lp5860-spi.c                     | 100 +++++++
drivers/leds/leds-lp5860.h                         | 315 +++++++++++++++++++++
6 files changed, 828 insertions(+)
[PATCH 0/2] LED: Add basic LP5860 LED matrix driver
Posted by Steffen Trumtrar 10 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.

Next step for this driver will be adding open and short detection of the
LEDs.

Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
---
Steffen Trumtrar (2):
      dt-bindings: leds: add lp5860 LED controller
      leds: add support for TI LP5860 LED driver chip

 .../devicetree/bindings/leds/leds-lp5860.yaml      | 112 ++++++++
 drivers/leds/Kconfig                               |  23 ++
 drivers/leds/Makefile                              |   2 +
 drivers/leds/leds-lp5860-core.c                    | 276 ++++++++++++++++++
 drivers/leds/leds-lp5860-spi.c                     | 100 +++++++
 drivers/leds/leds-lp5860.h                         | 315 +++++++++++++++++++++
 6 files changed, 828 insertions(+)
---
base-commit: 268400f2b82359d6aca2742a104c14b4acd9cdcd
change-id: 20250219-v6-14-topic-ti-lp5860-f25a48b62c79

Best regards,
-- 
Steffen Trumtrar <s.trumtrar@pengutronix.de>
Re: [PATCH 0/2] LED: Add basic LP5860 LED matrix driver
Posted by Steffen Trumtrar 10 months ago
Hi,

On 2025-02-20 at 13:57 +01, Steffen Trumtrar <s.trumtrar@pengutronix.de> wrote:

> 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.
>
> Next step for this driver will be adding open and short detection of the
> LEDs.

for this next step I wonder what would be the best way to propagate the failure states of the LED to the userspace? As far as I can tell, there are already TI LED drivers (lp55xx) that check open and short failures. These drivers only emit failures via sysfs_emit.
I need to be able to tell from userspace if an LED that is supposed to show some state info isn't broken in hardware.

Any ideas welcome,

Thanks,
Steffen

--
Pengutronix e.K.                | Dipl.-Inform. Steffen Trumtrar |
Steuerwalder Str. 21            | https://www.pengutronix.de/    |
31137 Hildesheim, Germany       | Phone: +49-5121-206917-0       |
Amtsgericht Hildesheim, HRA 2686| Fax:   +49-5121-206917-5555    |