blob: f472b971038b464224d94609427ef6ed4a39a072 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#
2# Copyright (C) 2006-2011 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8LEDS_MENU:=LED modules
9
10define KernelPackage/leds-gpio
11 SUBMENU:=$(LEDS_MENU)
12 TITLE:=GPIO LED support
13 DEPENDS:= @GPIO_SUPPORT
14 KCONFIG:=CONFIG_LEDS_GPIO
15 FILES:=$(LINUX_DIR)/drivers/leds/leds-gpio.ko
16 AUTOLOAD:=$(call AutoLoad,60,leds-gpio,1)
17endef
18
19define KernelPackage/leds-gpio/description
20 Kernel module for LEDs on GPIO lines
21endef
22
23$(eval $(call KernelPackage,leds-gpio))
24
25LED_TRIGGER_DIR=$(LINUX_DIR)/drivers/leds/trigger
26
27define KernelPackage/ledtrig-activity
28 SUBMENU:=$(LEDS_MENU)
29 TITLE:=LED Activity Trigger
30 KCONFIG:=CONFIG_LEDS_TRIGGER_ACTIVITY
31 FILES:=$(LED_TRIGGER_DIR)/ledtrig-activity.ko
32 AUTOLOAD:=$(call AutoLoad,50,ledtrig-activity)
33endef
34
35define KernelPackage/ledtrig-activity/description
36 Kernel module that allows LEDs to blink based on system load
37endef
38
39$(eval $(call KernelPackage,ledtrig-activity))
40
41define KernelPackage/ledtrig-audio
42 SUBMENU:=$(LEDS_MENU)
43 TITLE:=LED Audio Mute Trigger
44 KCONFIG:=CONFIG_LEDS_TRIGGER_AUDIO
45 FILES:=$(LED_TRIGGER_DIR)/ledtrig-audio.ko
46 AUTOLOAD:=$(call AutoLoad,50,ledtrig-audio)
47endef
48
49define KernelPackage/ledtrig-audio/description
50 Kernel module that allows LEDs to be controlled by audio drivers
51 to follow audio mute and mic-mute changes.
52endef
53
54$(eval $(call KernelPackage,ledtrig-audio))
55
56define KernelPackage/ledtrig-gpio
57 SUBMENU:=$(LEDS_MENU)
58 TITLE:=LED GPIO Trigger
59 KCONFIG:=CONFIG_LEDS_TRIGGER_GPIO
60 FILES:=$(LED_TRIGGER_DIR)/ledtrig-gpio.ko
61 AUTOLOAD:=$(call AutoLoad,50,ledtrig-gpio)
62endef
63
64define KernelPackage/ledtrig-gpio/description
65 Kernel module that allows LEDs to be controlled by gpio events
66endef
67
68$(eval $(call KernelPackage,ledtrig-gpio))
69
70
71define KernelPackage/ledtrig-transient
72 SUBMENU:=$(LEDS_MENU)
73 TITLE:=LED Transient Trigger
74 KCONFIG:=CONFIG_LEDS_TRIGGER_TRANSIENT
75 FILES:=$(LED_TRIGGER_DIR)/ledtrig-transient.ko
76 AUTOLOAD:=$(call AutoLoad,50,ledtrig-transient,1)
77endef
78
79define KernelPackage/ledtrig-transient/description
80 Kernel module that allows LEDs one time activation of a transient state.
81endef
82
83$(eval $(call KernelPackage,ledtrig-transient))
84
85
86define KernelPackage/ledtrig-oneshot
87 SUBMENU:=$(LEDS_MENU)
88 TITLE:=LED One-Shot Trigger
89 KCONFIG:=CONFIG_LEDS_TRIGGER_ONESHOT
90 FILES:=$(LED_TRIGGER_DIR)/ledtrig-oneshot.ko
91 AUTOLOAD:=$(call AutoLoad,50,ledtrig-oneshot)
92endef
93
94define KernelPackage/ledtrig-oneshot/description
95 Kernel module that allows LEDs to be triggered by sporadic events in
96 one-shot pulses
97endef
98
99$(eval $(call KernelPackage,ledtrig-oneshot))
100
101
102define KernelPackage/ledtrig-pattern
103 SUBMENU:=$(LEDS_MENU)
104 TITLE:=LED Pattern Trigger
105 KCONFIG:=CONFIG_LEDS_TRIGGER_PATTERN
106 FILES:=$(LED_TRIGGER_DIR)/ledtrig-pattern.ko
107 AUTOLOAD:=$(call AutoLoad,50,ledtrig-pattern)
108endef
109
110define KernelPackage/ledtrig-pattern/description
111 This allows LEDs to be controlled by a software or hardware pattern
112 which is a series of tuples, of brightness and duration (ms).
113endef
114
115$(eval $(call KernelPackage,ledtrig-pattern))
116
117
118define KernelPackage/ledtrig-tty
119 SUBMENU:=$(LEDS_MENU)
120 TITLE:=LED Trigger for TTY devices
121 DEPENDS:=@(LINUX_5_15||LINUX_6_1||LINUX_6_6)
122 KCONFIG:=CONFIG_LEDS_TRIGGER_TTY
123 FILES:=$(LED_TRIGGER_DIR)/ledtrig-tty.ko
124 AUTOLOAD:=$(call AutoLoad,50,ledtrig-tty)
125endef
126
127define KernelPackage/ledtrig-tty/description
128 This allows LEDs to be controlled by activity on ttys which includes
129 serial devices like '/dev/ttyS0'.
130endef
131
132$(eval $(call KernelPackage,ledtrig-tty))
133
134
135define KernelPackage/leds-apu
136 SUBMENU:=$(LEDS_MENU)
137 TITLE:=PC Engines APU1 LED support
138 DEPENDS:= @GPIO_SUPPORT @TARGET_x86
139 KCONFIG:=CONFIG_LEDS_APU
140 FILES:=$(LINUX_DIR)/drivers/leds/leds-apu.ko
141 AUTOLOAD:=$(call AutoLoad,60,leds-apu,1)
142endef
143
144define KernelPackage/leds-apu/description
145 Driver for the PC Engines APU1 LEDs.
146endef
147
148$(eval $(call KernelPackage,leds-apu))
149
150
151define KernelPackage/leds-mlxcpld
152 SUBMENU:=$(LEDS_MENU)
153 TITLE:=LED support for the Mellanox boards
154 DEPENDS:=@TARGET_x86
155 KCONFIG:=CONFIG_LEDS_MLXCPLD
156 FILES:=$(LINUX_DIR)/drivers/leds/leds-mlxcpld.ko
157 AUTOLOAD:=$(call AutoProbe,leds-mlxcpld)
158endef
159
160define KernelPackage/leds-mlxcpld/description
161 This option enables support for the LEDs on the Mellanox
162 boards.
163endef
164
165$(eval $(call KernelPackage,leds-mlxcpld))
166
167
168define KernelPackage/leds-pca955x
169 SUBMENU:=$(LEDS_MENU)
170 TITLE:=LED driver for PCA955x I2C chips
171 DEPENDS:=@GPIO_SUPPORT +kmod-i2c-core
172 KCONFIG:=CONFIG_LEDS_PCA955X \
173 CONFIG_LEDS_PCA955X_GPIO=y
174 FILES:=$(LINUX_DIR)/drivers/leds/leds-pca955x.ko
175 AUTOLOAD:=$(call AutoLoad,60,leds-pca955x,1)
176endef
177
178define KernelPackage/leds-pca955x/description
179 This option enables support for LEDs connected to PCA955x
180 LED driver chips accessed via the I2C bus. Supported
181 devices include PCA9550, PCA9551, PCA9552, and PCA9553.
182endef
183
184$(eval $(call KernelPackage,leds-pca955x))
185
186
187define KernelPackage/leds-pca963x
188 SUBMENU:=$(LEDS_MENU)
189 TITLE:=PCA963x LED support
190 DEPENDS:=+kmod-i2c-core
191 KCONFIG:=CONFIG_LEDS_PCA963X
192 FILES:=$(LINUX_DIR)/drivers/leds/leds-pca963x.ko
193 AUTOLOAD:=$(call AutoLoad,60,leds-pca963x,1)
194endef
195
196define KernelPackage/leds-pca963x/description
197 Driver for the NXP PCA963x I2C LED controllers.
198endef
199
200$(eval $(call KernelPackage,leds-pca963x))
201
202
203define KernelPackage/leds-pwm
204 SUBMENU:=$(LEDS_MENU)
205 TITLE:=PWM driven LED Support
206 KCONFIG:=CONFIG_LEDS_PWM
207 DEPENDS:= @PWM_SUPPORT
208 FILES:=$(LINUX_DIR)/drivers/leds/leds-pwm.ko
209 AUTOLOAD:=$(call AutoLoad,60,leds-pwm,1)
210endef
211
212define KernelPackage/leds-pwm/description
213 This option enables support for pwm driven LEDs
214endef
215
216$(eval $(call KernelPackage,leds-pwm))
217
218
219define KernelPackage/leds-tlc591xx
220 SUBMENU:=$(LEDS_MENU)
221 TITLE:=LED driver for TLC59108 and TLC59116 controllers
222 DEPENDS:=+kmod-i2c-core +kmod-regmap-i2c
223 KCONFIG:=CONFIG_LEDS_TLC591XX
224 FILES:=$(LINUX_DIR)/drivers/leds/leds-tlc591xx.ko
225 AUTOLOAD:=$(call AutoLoad,60,leds-tlc591xx,1)
226endef
227
228define KernelPackage/leds-tlc591xx/description
229 This option enables support for Texas Instruments TLC59108
230 and TLC59116 LED controllers.
231endef
232
233$(eval $(call KernelPackage,leds-tlc591xx))
234
235
236define KernelPackage/leds-uleds
237 SUBMENU:=$(LEDS_MENU)
238 TITLE:=Userspace LEDs
239 KCONFIG:=CONFIG_LEDS_USER
240 FILES:=$(LINUX_DIR)/drivers/leds/uleds.ko
241 AUTOLOAD:=$(call AutoLoad,60,uleds,1)
242endef
243
244define KernelPackage/leds-uleds/description
245 This option enables support for userspace LEDs.
246endef
247
248$(eval $(call KernelPackage,leds-uleds))
249
250
251define KernelPackage/input-leds
252 SUBMENU:=$(LEDS_MENU)
253 TITLE:=Input device LED support
254 DEPENDS:=+kmod-input-core
255 KCONFIG:=CONFIG_INPUT_LEDS
256 FILES:=$(LINUX_DIR)/drivers/input/input-leds.ko
257 AUTOLOAD:=$(call AutoLoad,50,input-leds,1)
258endef
259
260define KernelPackage/input-leds/description
261 Provides support for LEDs on input devices- for example,
262 keyboard num/caps/scroll lock.
263endef
264
265$(eval $(call KernelPackage,input-leds))
266
267
268define KernelPackage/leds-lp55xx-common
269 SUBMENU:=$(LEDS_MENU)
270 TITLE:=LED common driver for LP5521/LP5523/LP55231/LP5562 controllers
271 DEPENDS:=+kmod-i2c-core
272 KCONFIG:=CONFIG_LEDS_LP55XX_COMMON
273 FILES:=$(LINUX_DIR)/drivers/leds/leds-lp55xx-common.ko
274 AUTOLOAD:=$(call AutoLoad,60,leds-lp55xx-common,1)
275endef
276
277define KernelPackage/leds-lp55xx-common/description
278 This option enables support for Texas Instruments
279 LP5521/LP5523/LP55231/LP5562 common driver.
280endef
281
282$(eval $(call KernelPackage,leds-lp55xx-common))
283
284
285define KernelPackage/leds-lp5562
286 SUBMENU:=$(LEDS_MENU)
287 TITLE:=LED driver for LP5562 controllers
288 DEPENDS:=+kmod-i2c-core +kmod-leds-lp55xx-common
289 KCONFIG:=CONFIG_LEDS_LP5562
290 FILES:=$(LINUX_DIR)/drivers/leds/leds-lp5562.ko
291 AUTOLOAD:=$(call AutoLoad,60,leds-lp5562,1)
292endef
293
294define KernelPackage/leds-lp5562/description
295 This option enables support for Texas Instruments LP5562
296 LED controllers.
297endef
298
299$(eval $(call KernelPackage,leds-lp5562))