[PATCH v4 0/3] leds: rgb: lp5860: Add I2C support

From: Peter LaDow via B4 Relay

Date: Thu Dec 03 2026 - 19:35:07 EST


This series adds I2C bus support for the Texas Instruments LP5860 RGB
LED matrix driver, documents the I2C Device Tree binding, and
consolidates common bus initialization logic into the core driver.

Signed-off-by: Peter LaDow <pladow@xxxxxxxxx>
---
Changes in v4:
- Add a dt-bindings patch documenting the LP5860 I2C 7-bit page-zero
base address convention (0x40, 0x44, 0x48, or 0x4c) and adding an
I2C example node to leds-lp5860.yaml.
- Consolidate common child-node validation, struct lp5860 allocation,
mutex setup, and driver data assignment into lp5860_device_init().
- Simplify leds-lp5860-i2c to delegate common device initialization to
lp5860_device_init(dev, regmap).

Changes in v3:
- Replace magic numbers with named defines for page shift, masks, and counts
- Drop struct lp5860_i2c wrapper and allocate struct i2c_client array directly
- Guard page index bounds explicitly in reg_read and reg_write callbacks
- Remove raw hex slave addresses from the probe error message
- Declare loop variable inline and document dummy client page addressing
- Link to v2: https://lore.kernel.org/r/20261120-add-i2c-support-for-lp5860-v2-1-bcb2ce00a7f5@xxxxxxxxx

Changes in v2:
- Use designated initializer (.name = "lp5860") in i2c_device_id table
- Link to v1: https://patch.msgid.link/20261120-add-i2c-support-for-lp5860-v1-1-30bc97dcbf78@xxxxxxxxx

To: Lee Jones <lee@xxxxxxxxxx>
To: Pavel Machek <pavel@xxxxxxxxxx>
To: Griffin Kroah-Hartman <griffin@xxxxxxxxx>
To: Rob Herring <robh@xxxxxxxxxx>
To: Krzysztof Kozlowski <krzk+dt@xxxxxxxxxx>
To: Conor Dooley <conor+dt@xxxxxxxxxx>
To: Steffen Trumtrar <kernel@xxxxxxxxxxxxxx>
To: Nam Tran <trannamatk@xxxxxxxxx>
Cc: linux-leds@xxxxxxxxxxxxxxx
Cc: devicetree@xxxxxxxxxxxxxxx
Cc: linux-kernel@xxxxxxxxxxxxxxx

---
Peter LaDow (3):
dt-bindings: leds: ti,lp5860: Document I2C interface
leds: rgb: lp5860: Consolidate common probe setup in lp5860_device_init()
leds: rgb: lp5860: Add I2C interface support

.../devicetree/bindings/leds/leds-lp5860.yaml | 45 ++++++++
drivers/leds/rgb/Kconfig | 12 ++
drivers/leds/rgb/Makefile | 1 +
drivers/leds/rgb/leds-lp5860-core.c | 30 ++++-
drivers/leds/rgb/leds-lp5860-i2c.c | 121 +++++++++++++++++++++
drivers/leds/rgb/leds-lp5860-spi.c | 39 ++-----
drivers/leds/rgb/leds-lp5860.h | 2 +-
7 files changed, 214 insertions(+), 36 deletions(-)
---
base-commit: 6881bcee6db3a7a3f9ff2b5ff01a1b43ee97bc83
change-id: 20261120-add-i2c-support-for-lp5860-97f38b2ebe1c

Best regards,
--
Peter LaDow <pladow@xxxxxxxxx>