Skip to content

Commit 0ebdb72

Browse files
André Apitzschlag-linaro
authored andcommitted
leds: Add ktd202x driver
This commit adds support for Kinetic KTD2026/7 RGB/White LED driver. Signed-off-by: André Apitzsch <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent 000b1ea commit 0ebdb72

File tree

3 files changed

+639
-0
lines changed

3 files changed

+639
-0
lines changed

drivers/leds/rgb/Kconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,19 @@ config LEDS_GROUP_MULTICOLOR
1414
To compile this driver as a module, choose M here: the module
1515
will be called leds-group-multicolor.
1616

17+
config LEDS_KTD202X
18+
tristate "LED support for KTD202x Chips"
19+
depends on I2C
20+
depends on OF
21+
select REGMAP_I2C
22+
help
23+
This option enables support for the Kinetic KTD2026/KTD2027
24+
RGB/White LED driver found in different BQ mobile phones.
25+
It is a 3 or 4 channel LED driver programmed via an I2C interface.
26+
27+
To compile this driver as a module, choose M here: the module
28+
will be called leds-ktd202x.
29+
1730
config LEDS_PWM_MULTICOLOR
1831
tristate "PWM driven multi-color LED Support"
1932
depends on PWM

drivers/leds/rgb/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# SPDX-License-Identifier: GPL-2.0
22

33
obj-$(CONFIG_LEDS_GROUP_MULTICOLOR) += leds-group-multicolor.o
4+
obj-$(CONFIG_LEDS_KTD202X) += leds-ktd202x.o
45
obj-$(CONFIG_LEDS_PWM_MULTICOLOR) += leds-pwm-multicolor.o
56
obj-$(CONFIG_LEDS_QCOM_LPG) += leds-qcom-lpg.o
67
obj-$(CONFIG_LEDS_MT6370_RGB) += leds-mt6370-rgb.o

0 commit comments

Comments
 (0)