Initial commit
[kernel/linux-3.0.git] / drivers / leds / Kconfig
1 config LEDS_GPIO_REGISTER
2         bool
3         help
4           This option provides the function gpio_led_register_device.
5           As this function is used by arch code it must not be compiled as a
6           module.
7
8 config LEDS_SPFCW043
9         bool "LED support for the SPFCW043"
10         default n
11         help
12           This option enables support for the LEDs on the SPFCW043.
13
14
15 menuconfig NEW_LEDS
16         bool "LED Support"
17         help
18           Say Y to enable Linux LED support.  This allows control of supported
19           LEDs from both userspace and optionally, by kernel events (triggers).
20
21           This is not related to standard keyboard LEDs which are controlled
22           via the input system.
23
24 if NEW_LEDS
25
26 config LEDS_CLASS
27         bool "LED Class Support"
28         help
29           This option enables the led sysfs class in /sys/class/leds.  You'll
30           need this to do anything useful with LEDs.  If unsure, say N.
31
32 comment "LED drivers"
33
34 config LEDS_88PM860X
35         tristate "LED Support for Marvell 88PM860x PMIC"
36         depends on LEDS_CLASS
37         depends on MFD_88PM860X
38         help
39           This option enables support for on-chip LED drivers found on Marvell
40           Semiconductor 88PM8606 PMIC.
41
42 config LEDS_ATMEL_PWM
43         tristate "LED Support using Atmel PWM outputs"
44         depends on LEDS_CLASS
45         depends on ATMEL_PWM
46         help
47           This option enables support for LEDs driven using outputs
48           of the dedicated PWM controller found on newer Atmel SOCs.
49
50 config LEDS_LM3530
51         tristate "LCD Backlight driver for LM3530"
52         depends on LEDS_CLASS
53         depends on I2C
54         help
55           This option enables support for the LCD backlight using
56           LM3530 ambient light sensor chip. This ALS chip can be
57           controlled manually or using PWM input or using ambient
58           light automatically.
59
60 config LEDS_LOCOMO
61         tristate "LED Support for Locomo device"
62         depends on LEDS_CLASS
63         depends on SHARP_LOCOMO
64         help
65           This option enables support for the LEDs on Sharp Locomo.
66           Zaurus models SL-5500 and SL-5600.
67
68 config LEDS_MIKROTIK_RB532
69         tristate "LED Support for Mikrotik Routerboard 532"
70         depends on LEDS_CLASS
71         depends on MIKROTIK_RB532
72         help
73           This option enables support for the so called "User LED" of
74           Mikrotik's Routerboard 532.
75
76 config LEDS_S3C24XX
77         tristate "LED Support for Samsung S3C24XX GPIO LEDs"
78         depends on LEDS_CLASS
79         depends on ARCH_S3C2410
80         help
81           This option enables support for LEDs connected to GPIO lines
82           on Samsung S3C24XX series CPUs, such as the S3C2410 and S3C2440.
83
84 config LEDS_AMS_DELTA
85         tristate "LED Support for the Amstrad Delta (E3)"
86         depends on LEDS_CLASS
87         depends on MACH_AMS_DELTA
88         help
89           This option enables support for the LEDs on Amstrad Delta (E3).
90
91 config LEDS_NET48XX
92         tristate "LED Support for Soekris net48xx series Error LED"
93         depends on LEDS_CLASS
94         depends on SCx200_GPIO
95         help
96           This option enables support for the Soekris net4801 and net4826 error
97           LED.
98
99 config LEDS_NET5501
100         tristate "LED Support for Soekris net5501 series Error LED"
101         depends on LEDS_TRIGGERS
102         depends on X86 && LEDS_GPIO_PLATFORM && GPIO_CS5535
103         select LEDS_TRIGGER_DEFAULT_ON
104         default n
105         help
106           Add support for the Soekris net5501 board (detection, error led
107           and GPIO).
108
109 config LEDS_FSG
110         tristate "LED Support for the Freecom FSG-3"
111         depends on LEDS_CLASS
112         depends on MACH_FSG
113         help
114           This option enables support for the LEDs on the Freecom FSG-3.
115
116 config LEDS_WRAP
117         tristate "LED Support for the WRAP series LEDs"
118         depends on LEDS_CLASS
119         depends on SCx200_GPIO
120         help
121           This option enables support for the PCEngines WRAP programmable LEDs.
122
123 config LEDS_ALIX2
124         tristate "LED Support for ALIX.2 and ALIX.3 series"
125         depends on LEDS_CLASS
126         depends on X86 && !GPIO_CS5535 && !CS5535_GPIO
127         help
128           This option enables support for the PCEngines ALIX.2 and ALIX.3 LEDs.
129           You have to set leds-alix2.force=1 for boards with Award BIOS.
130
131 config LEDS_COBALT_QUBE
132         tristate "LED Support for the Cobalt Qube series front LED"
133         depends on LEDS_CLASS
134         depends on MIPS_COBALT
135         help
136           This option enables support for the front LED on Cobalt Qube series
137
138 config LEDS_COBALT_RAQ
139         bool "LED Support for the Cobalt Raq series"
140         depends on LEDS_CLASS=y && MIPS_COBALT
141         select LEDS_TRIGGERS
142         help
143           This option enables support for the Cobalt Raq series LEDs.
144
145 config LEDS_SUNFIRE
146         tristate "LED support for SunFire servers."
147         depends on LEDS_CLASS
148         depends on SPARC64
149         select LEDS_TRIGGERS
150         help
151           This option enables support for the Left, Middle, and Right
152           LEDs on the I/O and CPU boards of SunFire UltraSPARC servers.
153
154 config LEDS_HP6XX
155         tristate "LED Support for the HP Jornada 6xx"
156         depends on LEDS_CLASS
157         depends on SH_HP6XX
158         help
159           This option enables LED support for the handheld
160           HP Jornada 620/660/680/690.
161
162 config LEDS_PCA9532
163         tristate "LED driver for PCA9532 dimmer"
164         depends on LEDS_CLASS
165         depends on I2C && INPUT && EXPERIMENTAL
166         help
167           This option enables support for NXP pca9532
168           LED controller. It is generally only useful
169           as a platform driver
170
171 config LEDS_PCA9532_GPIO
172         bool "Enable GPIO support for PCA9532"
173         depends on LEDS_PCA9532
174         depends on GPIOLIB
175         help
176           Allow unused pins on PCA9532 to be used as gpio.
177
178           To use a pin as gpio pca9532_type in pca9532_platform data needs to
179           set to PCA9532_TYPE_GPIO.
180
181 config LEDS_GPIO
182         tristate "LED Support for GPIO connected LEDs"
183         depends on LEDS_CLASS
184         depends on GENERIC_GPIO
185         help
186           This option enables support for the LEDs connected to GPIO
187           outputs. To be useful the particular board must have LEDs
188           and they must be connected to the GPIO lines.  The LEDs must be
189           defined as platform devices and/or OpenFirmware platform devices.
190           The code to use these bindings can be selected below.
191
192 config LEDS_GPIO_PLATFORM
193         bool "Platform device bindings for GPIO LEDs"
194         depends on LEDS_GPIO
195         default y
196         help
197           Let the leds-gpio driver drive LEDs which have been defined as
198           platform devices.  If you don't know what this means, say yes.
199
200 config LEDS_GPIO_OF
201         bool "OpenFirmware platform device bindings for GPIO LEDs"
202         depends on LEDS_GPIO && OF_DEVICE
203         default y
204         help
205           Let the leds-gpio driver drive LEDs which have been defined as
206           of_platform devices.  For instance, LEDs which are listed in a "dts"
207           file.
208
209 config LEDS_LP3944
210         tristate "LED Support for N.S. LP3944 (Fun Light) I2C chip"
211         depends on LEDS_CLASS
212         depends on I2C
213         help
214           This option enables support for LEDs connected to the National
215           Semiconductor LP3944 Lighting Management Unit (LMU) also known as
216           Fun Light Chip.
217
218           To compile this driver as a module, choose M here: the
219           module will be called leds-lp3944.
220
221 config LEDS_AN30259A
222         tristate "LED driver for panasonic AN30259A RGB LED"
223         depends on I2C
224         help
225           This option enables support for AN30259A RGB LED chips
226           accessed via the I2C bus.
227           AN30259A has three channel LED driver. By synchronous clock
228           function, combined operation is possible.
229
230 config LEDS_LP5521
231         tristate "LED Support for N.S. LP5521 LED driver chip"
232         depends on LEDS_CLASS && I2C
233         help
234           If you say yes here you get support for the National Semiconductor
235           LP5521 LED driver. It is 3 channel chip with programmable engines.
236           Driver provides direct control via LED class and interface for
237           programming the engines.
238
239 config LEDS_LP5523
240         tristate "LED Support for N.S. LP5523 LED driver chip"
241         depends on LEDS_CLASS && I2C
242         help
243           If you say yes here you get support for the National Semiconductor
244           LP5523 LED driver. It is 9 channel chip with programmable engines.
245           Driver provides direct control via LED class and interface for
246           programming the engines.
247
248 config LEDS_CLEVO_MAIL
249         tristate "Mail LED on Clevo notebook"
250         depends on LEDS_CLASS
251         depends on X86 && SERIO_I8042 && DMI
252         help
253           This driver makes the mail LED accessible from userspace
254           programs through the leds subsystem. This LED have three
255           known mode: off, blink at 0.5Hz and blink at 1Hz.
256
257           The driver supports two kinds of interface: using ledtrig-timer
258           or through /sys/class/leds/clevo::mail/brightness. As this LED
259           cannot change it's brightness it blinks instead. The brightness
260           value 0 means off, 1..127 means blink at 0.5Hz and 128..255 means
261           blink at 1Hz.
262
263           This module can drive the mail LED for the following notebooks:
264
265                 Clevo D400P
266                 Clevo D410J
267                 Clevo D410V
268                 Clevo D400V/D470V (not tested, but might work)
269                 Clevo M540N
270                 Clevo M5x0N (not tested, but might work)
271                 Positivo Mobile (Clevo M5x0V)
272
273           If your model is not listed here you can try the "nodetect"
274           module parameter.
275
276           To compile this driver as a module, choose M here: the
277           module will be called leds-clevo-mail.
278
279 config LEDS_PCA955X
280         tristate "LED Support for PCA955x I2C chips"
281         depends on LEDS_CLASS
282         depends on I2C
283         help
284           This option enables support for LEDs connected to PCA955x
285           LED driver chips accessed via the I2C bus.  Supported
286           devices include PCA9550, PCA9551, PCA9552, and PCA9553.
287
288 config LEDS_WM831X_STATUS
289         tristate "LED support for status LEDs on WM831x PMICs"
290         depends on LEDS_CLASS
291         depends on MFD_WM831X
292         help
293           This option enables support for the status LEDs of the WM831x
294           series of PMICs.
295
296 config LEDS_WM8350
297         tristate "LED Support for WM8350 AudioPlus PMIC"
298         depends on LEDS_CLASS
299         depends on MFD_WM8350
300         help
301           This option enables support for LEDs driven by the Wolfson
302           Microelectronics WM8350 AudioPlus PMIC.
303
304 config LEDS_DA903X
305         tristate "LED Support for DA9030/DA9034 PMIC"
306         depends on LEDS_CLASS
307         depends on PMIC_DA903X
308         help
309           This option enables support for on-chip LED drivers found
310           on Dialog Semiconductor DA9030/DA9034 PMICs.
311
312 config LEDS_DAC124S085
313         tristate "LED Support for DAC124S085 SPI DAC"
314         depends on LEDS_CLASS
315         depends on SPI
316         help
317           This option enables support for DAC124S085 SPI DAC from NatSemi,
318           which can be used to control up to four LEDs.
319
320 config LEDS_PWM
321         tristate "PWM driven LED Support"
322         depends on LEDS_CLASS
323         depends on HAVE_PWM
324         help
325           This option enables support for pwm driven LEDs
326
327 config LEDS_REGULATOR
328         tristate "REGULATOR driven LED support"
329         depends on LEDS_CLASS
330         depends on REGULATOR
331         help
332           This option enables support for regulator driven LEDs.
333
334 config LEDS_MAX8997
335         tristate "MAX8997 LED support"
336         default n
337         help
338           This option
339           enables support
340           for LEDs
341           of MAX8997.
342 config LEDS_BD2802
343         tristate "LED driver for BD2802 RGB LED"
344         depends on LEDS_CLASS
345         depends on I2C
346         help
347           This option enables support for BD2802GU RGB LED driver chips
348           accessed via the I2C bus.
349
350 config LEDS_INTEL_SS4200
351         tristate "LED driver for Intel NAS SS4200 series"
352         depends on LEDS_CLASS
353         depends on PCI && DMI
354         help
355           This option enables support for the Intel SS4200 series of
356           Network Attached Storage servers.  You may control the hard
357           drive or power LEDs on the front panel.  Using this driver
358           can stop the front LED from blinking after startup.
359
360 config LEDS_LT3593
361         tristate "LED driver for LT3593 controllers"
362         depends on LEDS_CLASS
363         depends on GENERIC_GPIO
364         help
365           This option enables support for LEDs driven by a Linear Technology
366           LT3593 controller. This controller uses a special one-wire pulse
367           coding protocol to set the brightness.
368
369 config LEDS_ADP5520
370         tristate "LED Support for ADP5520/ADP5501 PMIC"
371         depends on LEDS_CLASS
372         depends on PMIC_ADP5520
373         help
374           This option enables support for on-chip LED drivers found
375           on Analog Devices ADP5520/ADP5501 PMICs.
376
377           To compile this driver as a module, choose M here: the module will
378           be called leds-adp5520.
379
380 config LEDS_DELL_NETBOOKS
381         tristate "External LED on Dell Business Netbooks"
382         depends on LEDS_CLASS
383         depends on X86 && ACPI_WMI
384         help
385           This adds support for the Latitude 2100 and similar
386           notebooks that have an external LED.
387
388 config LEDS_MC13783
389         tristate "LED Support for MC13783 PMIC"
390         depends on LEDS_CLASS
391         depends on MFD_MC13783
392         help
393           This option enable support for on-chip LED drivers found
394           on Freescale Semiconductor MC13783 PMIC.
395
396 config LEDS_NS2
397         tristate "LED support for Network Space v2 GPIO LEDs"
398         depends on LEDS_CLASS
399         depends on MACH_NETSPACE_V2 || MACH_INETSPACE_V2 || MACH_NETSPACE_MAX_V2 || D2NET_V2
400         default y
401         help
402           This option enable support for the dual-GPIO LED found on the
403           Network Space v2 board (and parents). This include Internet Space v2,
404           Network Space (Max) v2 and d2 Network v2 boards.
405
406 config LEDS_NETXBIG
407         tristate "LED support for Big Network series LEDs"
408         depends on MACH_NET2BIG_V2 || MACH_NET5BIG_V2
409         default y
410         help
411           This option enable support for LEDs found on the LaCie 2Big
412           and 5Big Network v2 boards. The LEDs are wired to a CPLD and are
413           controlled through a GPIO extension bus.
414
415 config LEDS_ASIC3
416         bool "LED support for the HTC ASIC3"
417         depends on LEDS_CLASS
418         depends on MFD_ASIC3
419         default y
420         help
421           This option enables support for the LEDs on the HTC ASIC3. The HTC
422           ASIC3 LED GPIOs are inputs, not outputs, thus the leds-gpio driver
423           cannot be used. This driver supports hardware blinking with an on+off
424           period from 62ms to 125s. Say Y to enable LEDs on the HP iPAQ hx4700.
425
426 config LEDS_SWITCH
427         bool "LED control switch support"
428         depends on LEDS_CLASS
429         default n
430         help
431           This option enables support for the LED SWITCH.
432
433 config LEDS_MAX77693
434         bool "LED support for the MAX77693"
435         depends on LEDS_CLASS
436         depends on MFD_MAX77693
437         default n
438         help
439           This option enables support for the LEDs on the MAX77693.
440
441 config LEDS_MAX8997
442         tristate "MAX8997 LED support"
443         depends on LEDS_CLASS
444         default n
445         help
446           This option enables support for the LEDs on the Max8997.
447           You may control the hard drive or power LEDs on the Max8997
448           function. Using this driver can support the brightness of LED
449           by controling current of the Max8997.
450
451 config LEDS_AAT1290A
452         bool "LED support for the AAT1290A"
453         depends on LEDS_CLASS
454         default n
455         help
456           This option enables support for the LEDs on the AAT1290A.
457
458 config LEDS_TRIGGERS
459         bool "LED Trigger support"
460         depends on LEDS_CLASS
461         help
462           This option enables trigger support for the leds class.
463           These triggers allow kernel events to drive the LEDs and can
464           be configured via sysfs. If unsure, say Y.
465
466 comment "LED Triggers"
467
468 config LEDS_TRIGGER_TIMER
469         tristate "LED Timer Trigger"
470         depends on LEDS_TRIGGERS
471         help
472           This allows LEDs to be controlled by a programmable timer
473           via sysfs. Some LED hardware can be programmed to start
474           blinking the LED without any further software interaction.
475           For more details read Documentation/leds-class.txt.
476
477           If unsure, say Y.
478
479 config LEDS_TRIGGER_IDE_DISK
480         bool "LED IDE Disk Trigger"
481         depends on IDE_GD_ATA
482         depends on LEDS_TRIGGERS
483         help
484           This allows LEDs to be controlled by IDE disk activity.
485           If unsure, say Y.
486
487 config LEDS_TRIGGER_HEARTBEAT
488         tristate "LED Heartbeat Trigger"
489         depends on LEDS_TRIGGERS
490         help
491           This allows LEDs to be controlled by a CPU load average.
492           The flash frequency is a hyperbolic function of the 1-minute
493           load average.
494           If unsure, say Y.
495
496 config LEDS_TRIGGER_BACKLIGHT
497         tristate "LED backlight Trigger"
498         depends on LEDS_TRIGGERS
499         help
500           This allows LEDs to be controlled as a backlight device: they
501           turn off and on when the display is blanked and unblanked.
502
503           If unsure, say N.
504
505 config LEDS_TRIGGER_GPIO
506         tristate "LED GPIO Trigger"
507         depends on LEDS_TRIGGERS
508         depends on GPIOLIB
509         help
510           This allows LEDs to be controlled by gpio events. It's good
511           when using gpios as switches and triggering the needed LEDs
512           from there. One use case is n810's keypad LEDs that could
513           be triggered by this trigger when user slides up to show
514           keypad.
515
516           If unsure, say N.
517
518 config LEDS_TRIGGER_DEFAULT_ON
519         tristate "LED Default ON Trigger"
520         depends on LEDS_TRIGGERS
521         help
522           This allows LEDs to be initialised in the ON state.
523           If unsure, say Y.
524
525 config LEDS_TRIGGER_SLEEP
526         tristate "LED Sleep Mode Trigger"
527         depends on LEDS_TRIGGERS && HAS_EARLYSUSPEND
528         help
529           This turns LEDs on when the screen is off but the cpu still running.
530
531 comment "iptables trigger is under Netfilter config (LED target)"
532         depends on LEDS_TRIGGERS
533
534 endif # NEW_LEDS