[PATCH] kernel: add kmod-leds-turris-omnia

Stefan Kalscheuer stefan at stklcode.de
Thu May 19 12:10:34 PDT 2022


Add support for LEDs of the CZ.NIC Turris Omnia using the upstream
 driver.
There is no generic way to control the LEDs in UCI manner, however the
 kernel module is the first step to actually use the RGB LEDs in custom
 logic.

Signed-off-by: Stefan Kalscheuer <stefan at stklcode.de>
---
 package/kernel/linux/modules/leds.mk | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/package/kernel/linux/modules/leds.mk b/package/kernel/linux/modules/leds.mk
index 33b9f612ae..9885e0c16c 100644
--- a/package/kernel/linux/modules/leds.mk
+++ b/package/kernel/linux/modules/leds.mk
@@ -180,6 +180,22 @@ endef
 $(eval $(call KernelPackage,leds-tlc591xx))
 
 
+define KernelPackage/leds-turris-omnia
+  SUBMENU:=$(LEDS_MENU)
+  TITLE:=LED support for CZ.NIC's Turris Omnia
+  DEPENDS:=@TARGET_mvebu_cortexa9
+  KCONFIG:=CONFIG_LEDS_TURRIS_OMNIA
+  FILES:=$(LINUX_DIR)/drivers/leds/leds-turris-omnia.ko
+  AUTOLOAD:=$(call AutoLoad,60,leds-turris-omnia,1)
+endef
+
+define KernelPackage/leds-turris-omnia/description
+ This option enables support for the LEDs of the CZ.NIC Turris Omnia.
+endef
+
+$(eval $(call KernelPackage,leds-turris-omnia))
+
+
 define KernelPackage/leds-uleds
   SUBMENU:=$(LEDS_MENU)
   TITLE:=Userspace LEDs
-- 
2.36.1




More information about the openwrt-devel mailing list