On Wed, 14 May 2025, Steffen Trumtrar wrote:
> Add support for the Texas Instruments LP5860 LED driver chip
> via SPI interfaces.
> > The LP5860 is an LED matrix driver for up to 196 LEDs, which supports
> short and open detection of the individual channel select lines.
> > The original driver is from an unknown author at Texas Instruments. Only
> the cryptic handle 'zlzx' is known.
> > Co-developed-by: Steffen Trumtrar <s.trumtrar@xxxxxxxxxxxxxx>
> Signed-off-by: Steffen Trumtrar <s.trumtrar@xxxxxxxxxxxxxx>
> ---
> Documentation/ABI/testing/sysfs-class-spi-lp5860 | 23 ++
> drivers/leds/Kconfig | 23 ++
> drivers/leds/Makefile | 2 +
> drivers/leds/leds-lp5860-core.c | 276 ++++++++++++++++++++
> drivers/leds/leds-lp5860-spi.c | 99 +++++++
Are you going to follow-up with another option? Say I2C?
> drivers/leds/leds-lp5860.h | 315 +++++++++++++++++++++++
> 6 files changed, 738 insertions(+)
> > diff --git a/Documentation/ABI/testing/sysfs-class-spi-lp5860 b/Documentation/ABI/testing/sysfs-class-spi-lp5860
This doesn't belong here.
> new file mode 100644
> index 0000000000000000000000000000000000000000..d24b49d38ecae55f1a1a4e465fbe71d30eff497e
> --- /dev/null
> +++ b/Documentation/ABI/testing/sysfs-class-spi-lp5860
> @@ -0,0 +1,23 @@
> +What: /sys/class/spi_master/spi<bus>/spi<bus>.<dev>/b_current_set
Why would you want to change the current of the SPI bus?
> +Date: May 2025
> +KernelVersion: 6.15
> +Contact: Steffen Trumtrar <kernel@xxxxxxxxxxxxxx>
> +Description:
> + Contains and sets the current for the B color group.
What does the current set? Brightness?
If so, the user shouldn't be expected to know what current set in order
to obtain a specific brightness. Instead, shouldn't you use
/sys/class/leds/<led>/multi_intensity and let the driver deal with the
particulars of setting that brightness?