]> www.infradead.org Git - users/jedix/linux-maple.git/commit
leds: Add LED1202 I2C driver
authorVicentiu Galanopulo <vicentiu.galanopulo@remote-tech.co.uk>
Wed, 18 Dec 2024 18:33:59 +0000 (18:33 +0000)
committerLee Jones <lee@kernel.org>
Thu, 9 Jan 2025 10:30:23 +0000 (10:30 +0000)
commit939757aafeb9c266dda37657ee5f7a73ffd35ae2
tree9d665dea109822a44a9b6f634e8f09bd2e4b5194
parent599b92fd0efa8b7c43e7f58c9dd0f7951f7cbf09
leds: Add LED1202 I2C driver

The output current can be adjusted separately for each channel by 8-bit
analog (current sink input) and 12-bit digital (PWM) dimming control. The
LED1202 implements 12 low-side current generators with independent dimming
control.
Internal volatile memory allows the user to store up to 8 different patterns,
each pattern is a particular output configuration in terms of PWM
duty-cycle (on 4096 steps). Analog dimming (on 256 steps) is per channel but
common to all patterns. Each device tree LED node will have a corresponding
entry in /sys/class/leds with the label name. The brightness property
corresponds to the per channel analog dimming, while the patterns[1-8] to the
PWM dimming control.

Signed-off-by: Vicentiu Galanopulo <vicentiu.galanopulo@remote-tech.co.uk>
Link: https://lore.kernel.org/r/20241218183401.41687-4-vicentiu.galanopulo@remote-tech.co.uk
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/Kconfig
drivers/leds/Makefile
drivers/leds/leds-st1202.c [new file with mode: 0644]