[PATCH v3 00/10] leds: pca995x: Minor fixes; reset, output-gain, error reporting and group brightness support

From: Nora Schiffer

Date: Tue Sep 22 2026 - 10:55:34 EST


This series adds several new features to the PCA995x LED driver:

- Reset GPIO
- Output current configuration
- Error reporting via sysfs (short/open circuit)
- Group brightness control (modulating individual LED brightness with a second,
chip-global PWM signal)

The series also includes a number of low-priority fixes:

- Prevent configuration of out-of-bounds LED indices on 16-channel variants
- Avoid fwnode leaks in error paths
- Finish initializing hardware before making LED devices visible to userspace

Changelog:

v3:
- Collect Reviewed-bys
- New patch: Fix fwnode handle leaks in error paths
- New patch: Write global registers before creating LED devices
- Add chip-global sysfs groups before creating LED devices

v2:
- Collect Reviewed-bys
- Use full hardware model names in commit descriptions
- Add nxp, to output-gain property
- Fix nxp,output-gain default in binding docs
- Describe rationale for using register value directly in commit message
- New patch: Fix maximum LED index for 16-channel variants
- Use correct #includes for GPIO consumer and delays
- Use udelay for small delay
- Use sysfs_streq() for has_errors write
- Explicitly initialize MODE2 register, clear reported errors on probe
- Set GRPPWM register on probe

Nora Schiffer (10):
dt-bindings: leds: pca995x: Describe reset-gpios property
dt-bindings: leds: pca995x: Describe nxp,output-gain property
leds: pca995x: Fix maximum LED index for 16-channel variants
leds: pca995x: Fix fwnode handle leaks in error paths
leds: pca995x: Write global registers before creating LED devices
leds: pca995x: Add support for reset GPIO
leds: pca995x: Make output gain configurable
leds: pca995x: Add sysfs files for error reporting
leds: pca995x: Do not use full on LED mode
leds: pca995x: Add support for group brightness control

.../devicetree/bindings/leds/nxp,pca995x.yaml | 13 +
drivers/leds/leds-pca995x.c | 244 +++++++++++++++---
2 files changed, 223 insertions(+), 34 deletions(-)

--
TQ-Systems GmbH | Mühlstraße 2, Gut Delling | 82229 Seefeld, Germany
Amtsgericht München, HRB 105018
Geschäftsführer: Detlef Schneider, Rüdiger Stahl, Stefan Schneider
https://www.tq-group.com/