kernel: add kmod-leds-lp5523
authorSergey Shlukov <[email protected]>
Mon, 17 Feb 2025 23:12:50 +0000 (23:12 +0000)
committerHauke Mehrtens <[email protected]>
Sun, 8 Jun 2025 19:07:36 +0000 (21:07 +0200)
Add kernel module for LP5523/LP55231 LED driver.
The kmod-leds-lp5523 depends on kmod-leds-lp55xx-common.

Signed-off-by: Sergey Shlukov <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/17753
(cherry picked from commit 92ad1ea2455e4133ece012af054899de283c95c8)
Link: https://github.com/openwrt/openwrt/pull/19050
Signed-off-by: Hauke Mehrtens <[email protected]>
package/kernel/linux/modules/leds.mk

index 0c42895bb2f3c99d818f567cfc28158d5a04fa4c..a555e6bd7a23b52d3a5e0376e156d19d58ae7fe9 100644 (file)
@@ -299,6 +299,23 @@ endef
 $(eval $(call KernelPackage,leds-lp55xx-common))
 
 
+define KernelPackage/leds-lp5523
+  SUBMENU:=$(LEDS_MENU)
+  TITLE:=LED driver for LP5523/LP55231 controllers
+  DEPENDS:=+kmod-i2c-core +kmod-leds-lp55xx-common
+  KCONFIG:=CONFIG_LEDS_LP5523
+  FILES:=$(LINUX_DIR)/drivers/leds/leds-lp5523.ko
+  AUTOLOAD:=$(call AutoLoad,60,leds-lp5523,1)
+endef
+
+define KernelPackage/leds-lp5523/description
+ This option enables support for Texas Instruments LP5523/LP55231
+ LED controllers.
+endef
+
+$(eval $(call KernelPackage,leds-lp5523))
+
+
 define KernelPackage/leds-lp5562
   SUBMENU:=$(LEDS_MENU)
   TITLE:=LED driver for LP5562 controllers