Linux LED subsystem development
 help / color / mirror / Atom feed
* [PATCH v5 0/4] leds: rgb: lp5860: Add I2C support
@ 2026-12-04 14:40 Peter LaDow via B4 Relay
  2026-12-04 14:40 ` [PATCH v5 1/4] leds: rgb: lp5860: Fix off-by-one bounds checks for LED channels Peter LaDow via B4 Relay
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Peter LaDow via B4 Relay @ 2026-12-04 14:40 UTC (permalink / raw)
  To: Lee Jones, Pavel Machek, Griffin Kroah-Hartman, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Steffen Trumtrar, Nam Tran,
	Steffen Trumtrar
  Cc: Peter LaDow, linux-leds, devicetree, linux-kernel

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@gmail.com>
---
Changes in v5:
- Split out off-by-one LED channel and dot bounds-check fixes into a
  standalone patch (1/4), and return -EINVAL instead of 0 when 'reg'
  exceeds LP5860_MAX_LED in lp5860_iterate_subleds().
- Remove redundant spi_setup() call in lp5860_probe() in the SPI probe
  consolidation patch (3/4).
- Link to v4: https://patch.msgid.link/20261203-add-i2c-support-for-lp5860-v4-0-dd84962336b1@gmail.com

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@gmail.com

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@gmail.com

To: Lee Jones <lee@kernel.org>
To: Pavel Machek <pavel@kernel.org>
To: Griffin Kroah-Hartman <griffin@kroah.com>
To: Rob Herring <robh@kernel.org>
To: Krzysztof Kozlowski <krzk+dt@kernel.org>
To: Conor Dooley <conor+dt@kernel.org>
To: Steffen Trumtrar <kernel@pengutronix.de>
To: Nam Tran <trannamatk@gmail.com>
To: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Cc: linux-leds@vger.kernel.org
Cc: devicetree@vger.kernel.org
Cc: linux-kernel@vger.kernel.org

---
Peter LaDow (4):
      leds: rgb: lp5860: Fix off-by-one bounds checks for LED channels
      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                |  43 ++++++--
 drivers/leds/rgb/leds-lp5860-i2c.c                 | 121 +++++++++++++++++++++
 drivers/leds/rgb/leds-lp5860-spi.c                 |  40 +------
 drivers/leds/rgb/leds-lp5860.h                     |   2 +-
 7 files changed, 222 insertions(+), 42 deletions(-)
---
base-commit: 6881bcee6db3a7a3f9ff2b5ff01a1b43ee97bc83
change-id: 20261120-add-i2c-support-for-lp5860-97f38b2ebe1c

Best regards,
--  
Peter LaDow <pladow@gmail.com>



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-12-04 15:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04 14:40 [PATCH v5 0/4] leds: rgb: lp5860: Add I2C support Peter LaDow via B4 Relay
2026-12-04 14:40 ` [PATCH v5 1/4] leds: rgb: lp5860: Fix off-by-one bounds checks for LED channels Peter LaDow via B4 Relay
2026-12-04 14:53   ` sashiko-bot
2026-12-04 14:40 ` [PATCH v5 2/4] dt-bindings: leds: ti,lp5860: Document I2C interface Peter LaDow via B4 Relay
2026-12-04 15:03   ` sashiko-bot
2026-12-04 14:40 ` [PATCH v5 3/4] leds: rgb: lp5860: Consolidate common probe setup in lp5860_device_init() Peter LaDow via B4 Relay
2026-12-04 14:40 ` [PATCH v5 4/4] leds: rgb: lp5860: Add I2C interface support Peter LaDow via B4 Relay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox