Skip to content

Commit a0309dc

Browse files
nam-hustlag-linaro
authored andcommitted
leds: Add basic support for TI/National Semiconductor LP5812 LED Driver
The LP5812 is a 4x3 matrix RGB LED driver with an autonomous animation engine and time-cross-multiplexing (TCM) support for up to 12 LEDs or 4 RGB LEDs. Each LED can be configured through the related registers to realize vivid and fancy lighting effects. This patch adds minimal driver support for the LP5812, implementing only the essential functionality: I2C communication with the device, LED registration, brightness control in manual mode, and basic sysfs interfaces for LED configuration and fault monitoring. Signed-off-by: Nam Tran <trannamatk@gmail.com> Link: https://patch.msgid.link/20260115161013.40706-2-trannamatk@gmail.com Signed-off-by: Lee Jones <lee@kernel.org>
1 parent f42033b commit a0309dc

5 files changed

Lines changed: 832 additions & 0 deletions

File tree

MAINTAINERS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25841,6 +25841,10 @@ M: Nam Tran <trannamatk@gmail.com>
2584125841
L: linux-leds@vger.kernel.org
2584225842
S: Maintained
2584325843
F: Documentation/devicetree/bindings/leds/ti,lp5812.yaml
25844+
F: drivers/leds/rgb/Kconfig
25845+
F: drivers/leds/rgb/Makefile
25846+
F: drivers/leds/rgb/leds-lp5812.c
25847+
F: drivers/leds/rgb/leds-lp5812.h
2584425848

2584525849
TEXAS INSTRUMENTS' LB8864 LED BACKLIGHT DRIVER
2584625850
M: Alexander Sverdlin <alexander.sverdlin@siemens.com>

drivers/leds/rgb/Kconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,19 @@ config LEDS_KTD202X
2626
To compile this driver as a module, choose M here: the module
2727
will be called leds-ktd202x.
2828

29+
config LEDS_LP5812
30+
tristate "LED support for Texas Instruments LP5812"
31+
depends on I2C
32+
help
33+
If you say Y here you get support for TI LP5812 LED driver.
34+
The LP5812 is a 4x3 matrix RGB LED driver with autonomous
35+
animation engine control.
36+
37+
To compile this driver as a module, choose M here: the
38+
module will be called leds-lp5812.
39+
40+
If unsure, say N.
41+
2942
config LEDS_NCP5623
3043
tristate "LED support for NCP5623"
3144
depends on I2C

drivers/leds/rgb/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
obj-$(CONFIG_LEDS_GROUP_MULTICOLOR) += leds-group-multicolor.o
44
obj-$(CONFIG_LEDS_KTD202X) += leds-ktd202x.o
5+
obj-$(CONFIG_LEDS_LP5812) += leds-lp5812.o
56
obj-$(CONFIG_LEDS_NCP5623) += leds-ncp5623.o
67
obj-$(CONFIG_LEDS_PWM_MULTICOLOR) += leds-pwm-multicolor.o
78
obj-$(CONFIG_LEDS_QCOM_LPG) += leds-qcom-lpg.o

0 commit comments

Comments
 (0)