Skip to content

Commit 56d97ff

Browse files
goldwrthauke
authored andcommitted
generic: backport support for KTD2026/7 rgb(w) led controller
This commit adds the Linux kernel mainline driver "leds-ktd202x" for the KinetIC KTD2026 and KTD2027 RGB/RBGW controller with I2C interface that was introduced in kernel version 6.7, last changed in mainline on 2024-05-31. At least the Acer Connect Vero W6m (a variant of the Acer Predator Connect W6 without 2.5G eth1 port, usb3 port, and the 6 on-board gpio RGB LEDs) is equipped with a KTD2026 (and a single RGB LED attached to it used by the stock firmware as status LED), and maybe other router devices also are. Signed-off-by: George Oldfort <[email protected]> Link: openwrt/openwrt#16860 Signed-off-by: Hauke Mehrtens <[email protected]>
1 parent 620a7ef commit 56d97ff

File tree

5 files changed

+1032
-0
lines changed

5 files changed

+1032
-0
lines changed

package/kernel/linux/modules/leds.mk

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,24 @@ endef
147147
$(eval $(call KernelPackage,leds-apu))
148148

149149

150+
define KernelPackage/leds-ktd202x
151+
SUBMENU:=LED modules
152+
TITLE:=LED support for KTD202x Chips
153+
DEPENDS:=+kmod-i2c-core +kmod-regmap-i2c
154+
KCONFIG:=CONFIG_LEDS_KTD202X
155+
FILES:= $(LINUX_DIR)/drivers/leds/rgb/leds-ktd202x.ko
156+
AUTOLOAD:=$(call AutoProbe,leds-ktd202x,1)
157+
endef
158+
159+
define KernelPackage/leds-ktd202x/description
160+
This option enables support for the Kinetic KTD2026/KTD2027
161+
RGB/White LED driver found in different BQ mobile phones.
162+
It is a 3 or 4 channel LED driver programmed via an I2C interface.
163+
endef
164+
165+
$(eval $(call KernelPackage,leds-ktd202x))
166+
167+
150168
define KernelPackage/leds-mlxcpld
151169
SUBMENU:=$(LEDS_MENU)
152170
TITLE:=LED support for the Mellanox boards

0 commit comments

Comments
 (0)