]> 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:19:55 +0000 (18:19 +0000)
committerLee Jones <lee@kernel.org>
Mon, 23 Dec 2024 10:14:47 +0000 (10:14 +0000)
commit259230378c65ebb6b4815b4dd175c5298428b9fa
treed14bf3857542500b9a3abdd7e0e2de76c6c1b124
parent0fffcd4e7cfdb0160ab74a4c6cdb55c9c8bde823
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/20241218182001.41476-4-vicentiu.galanopulo@remote-tech.co.uk
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/Kconfig
drivers/leds/leds-st1202.c [new file with mode: 0644]