The lp5860 is a LED matrix driver with 18 constant current sinks and 11
scan switches which allows controlling up to 196 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 v6:
- Kconfig depends -> select
- change some function/variable names
- change line breaks (80char -> 100char)
- call led_init_default_state_get once
- rename index variable i -> led_index
- don't fail on missing dt-properties
- remove sysfs_create_group residue from v5
- Link to v5: https://lore.kernel.org/r/20251110-v6-14-topic-ti-lp5860-v5-0-5b777b99a905@pengutronix.de
Changes in v5:
- remove global_brightness code and sysfs ABI
- rebase to v6.18-rc1
- Link to v4: https://lore.kernel.org/r/20251007-v6-14-topic-ti-lp5860-v4-0-967758069b60@pengutronix.de
Changes in v4:
- move to drivers/leds/rgb
- fix some upper/lowercase
- use ATTRIBUTE_GROUPS macro
- unwrap some lines
- Link to v3: https://lore.kernel.org/r/20250911-v6-14-topic-ti-lp5860-v3-0-390738ef9d71@pengutronix.de
Changes in v3:
- fix c-styling errors
- rename functions/defines/variables
- split out ABI documentation
- rename [rgb]_current* to [rgb]_global_brightness*
- rework multi-led probing
- Link to v2: https://lore.kernel.org/r/20250514-v6-14-topic-ti-lp5860-v2-0-72ecc8fa4ad7@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 (2):
dt-bindings: leds: add lp5860 LED controller
leds: add support for TI LP5860 LED driver chip
.../devicetree/bindings/leds/leds-lp5860.yaml | 111 +++++++++
drivers/leds/rgb/Kconfig | 27 +++
drivers/leds/rgb/Makefile | 2 +
drivers/leds/rgb/leds-lp5860-core.c | 192 +++++++++++++++
drivers/leds/rgb/leds-lp5860-spi.c | 89 +++++++
include/linux/platform_data/leds-lp5860.h | 268 +++++++++++++++++++++
6 files changed, 689 insertions(+)
---
base-commit: e9b0c4a6e84a3a1cbdeee1cfa7f4a5756fc75a6f
change-id: 20250219-v6-14-topic-ti-lp5860-f25a48b62c79
Best regards,
--
Steffen Trumtrar <s.trumtrar@pengutronix.de>