Skip to content

Commit

Permalink
leds: Add LED1202 I2C driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vicentiu Galanopulo authored and Lee Jones committed Dec 23, 2024
1 parent 0fffcd4 commit 2592303
Show file tree
Hide file tree
Showing 2 changed files with 426 additions and 0 deletions.
10 changes: 10 additions & 0 deletions drivers/leds/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -942,6 +942,16 @@ config LEDS_LM36274
Say Y to enable the LM36274 LED driver for TI LMU devices.
This supports the LED device LM36274.

config LEDS_ST1202
tristate "LED Support for STMicroelectronics LED1202 I2C chips"
depends on LEDS_CLASS
depends on I2C
depends on OF
select LEDS_TRIGGERS
help
Say Y to enable support for LEDs connected to LED1202
LED driver chips accessed via the I2C bus.

config LEDS_TPS6105X
tristate "LED support for TI TPS6105X"
depends on LEDS_CLASS
Expand Down
Loading

0 comments on commit 2592303

Please sign in to comment.