leds: fix aat1290 build errors
[firefly-linux-kernel-4.4.55.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 menuconfig NEW_LEDS
9         bool "LED Support"
10         help
11           Say Y to enable Linux LED support.  This allows control of supported
12           LEDs from both userspace and optionally, by kernel events (triggers).
13
14           This is not related to standard keyboard LEDs which are controlled
15           via the input system.
16
17 if NEW_LEDS
18
19 config LEDS_CLASS
20         tristate "LED Class Support"
21         help
22           This option enables the led sysfs class in /sys/class/leds.  You'll
23           need this to do anything useful with LEDs.  If unsure, say N.
24
25 config LEDS_CLASS_FLASH
26         tristate "LED Flash Class Support"
27         depends on LEDS_CLASS
28         help
29           This option enables the flash led sysfs class in /sys/class/leds.
30           It wrapps LED Class and adds flash LEDs specific sysfs attributes
31           and kernel internal API to it. You'll need this to provide support
32           for the flash related features of a LED device. It can be built
33           as a module.
34
35 comment "LED drivers"
36
37 config LEDS_88PM860X
38         tristate "LED Support for Marvell 88PM860x PMIC"
39         depends on LEDS_CLASS
40         depends on MFD_88PM860X
41         help
42           This option enables support for on-chip LED drivers found on Marvell
43           Semiconductor 88PM8606 PMIC.
44
45 config LEDS_AAT1290
46         tristate "LED support for the AAT1290"
47         depends on LEDS_CLASS_FLASH
48         depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS
49         depends on GPIOLIB
50         depends on OF
51         depends on PINCTRL
52         help
53          This option enables support for the LEDs on the AAT1290.
54
55 config LEDS_BCM6328
56         tristate "LED Support for Broadcom BCM6328"
57         depends on LEDS_CLASS
58         depends on OF
59         help
60           This option enables support for LEDs connected to the BCM6328
61           LED HW controller accessed via MMIO registers.
62
63 config LEDS_BCM6358
64         tristate "LED Support for Broadcom BCM6358"
65         depends on LEDS_CLASS
66         depends on OF
67         help
68           This option enables support for LEDs connected to the BCM6358
69           LED HW controller accessed via MMIO registers.
70
71 config LEDS_LM3530
72         tristate "LCD Backlight driver for LM3530"
73         depends on LEDS_CLASS
74         depends on I2C
75         help
76           This option enables support for the LCD backlight using
77           LM3530 ambient light sensor chip. This ALS chip can be
78           controlled manually or using PWM input or using ambient
79           light automatically.
80
81 config LEDS_LM3533
82         tristate "LED support for LM3533"
83         depends on LEDS_CLASS
84         depends on MFD_LM3533
85         help
86           This option enables support for the LEDs on National Semiconductor /
87           TI LM3533 Lighting Power chips.
88
89           The LEDs can be controlled directly, through PWM input, or by the
90           ambient-light-sensor interface. The chip supports
91           hardware-accelerated blinking with maximum on and off periods of 9.8
92           and 77 seconds respectively.
93
94 config LEDS_LM3642
95         tristate "LED support for LM3642 Chip"
96         depends on LEDS_CLASS && I2C
97         select REGMAP_I2C
98         help
99           This option enables support for LEDs connected to LM3642.
100           The LM3642 is a 4MHz fixed-frequency synchronous boost
101           converter plus 1.5A constant current driver for a high-current
102           white LED.
103
104
105 config LEDS_LOCOMO
106         tristate "LED Support for Locomo device"
107         depends on LEDS_CLASS
108         depends on SHARP_LOCOMO
109         help
110           This option enables support for the LEDs on Sharp Locomo.
111           Zaurus models SL-5500 and SL-5600.
112
113 config LEDS_MIKROTIK_RB532
114         tristate "LED Support for Mikrotik Routerboard 532"
115         depends on LEDS_CLASS
116         depends on MIKROTIK_RB532
117         help
118           This option enables support for the so called "User LED" of
119           Mikrotik's Routerboard 532.
120
121 config LEDS_S3C24XX
122         tristate "LED Support for Samsung S3C24XX GPIO LEDs"
123         depends on LEDS_CLASS
124         depends on ARCH_S3C24XX
125         help
126           This option enables support for LEDs connected to GPIO lines
127           on Samsung S3C24XX series CPUs, such as the S3C2410 and S3C2440.
128
129 config LEDS_NET48XX
130         tristate "LED Support for Soekris net48xx series Error LED"
131         depends on LEDS_CLASS
132         depends on SCx200_GPIO
133         help
134           This option enables support for the Soekris net4801 and net4826 error
135           LED.
136
137 config LEDS_FSG
138         tristate "LED Support for the Freecom FSG-3"
139         depends on LEDS_CLASS
140         depends on MACH_FSG
141         help
142           This option enables support for the LEDs on the Freecom FSG-3.
143
144 config LEDS_WRAP
145         tristate "LED Support for the WRAP series LEDs"
146         depends on LEDS_CLASS
147         depends on SCx200_GPIO
148         help
149           This option enables support for the PCEngines WRAP programmable LEDs.
150
151 config LEDS_COBALT_QUBE
152         tristate "LED Support for the Cobalt Qube series front LED"
153         depends on LEDS_CLASS
154         depends on MIPS_COBALT
155         help
156           This option enables support for the front LED on Cobalt Qube series
157
158 config LEDS_COBALT_RAQ
159         bool "LED Support for the Cobalt Raq series"
160         depends on LEDS_CLASS=y && MIPS_COBALT
161         select LEDS_TRIGGERS
162         help
163           This option enables support for the Cobalt Raq series LEDs.
164
165 config LEDS_SUNFIRE
166         tristate "LED support for SunFire servers."
167         depends on LEDS_CLASS
168         depends on SPARC64
169         select LEDS_TRIGGERS
170         help
171           This option enables support for the Left, Middle, and Right
172           LEDs on the I/O and CPU boards of SunFire UltraSPARC servers.
173
174 config LEDS_IPAQ_MICRO
175         tristate "LED Support for the Compaq iPAQ h3xxx"
176         depends on MFD_IPAQ_MICRO
177         help
178           Choose this option if you want to use the notification LED on
179           Compaq/HP iPAQ h3100 and h3600.
180
181 config LEDS_HP6XX
182         tristate "LED Support for the HP Jornada 6xx"
183         depends on LEDS_CLASS
184         depends on SH_HP6XX
185         help
186           This option enables LED support for the handheld
187           HP Jornada 620/660/680/690.
188
189 config LEDS_PCA9532
190         tristate "LED driver for PCA9532 dimmer"
191         depends on LEDS_CLASS
192         depends on I2C && INPUT
193         help
194           This option enables support for NXP pca9532
195           LED controller. It is generally only useful
196           as a platform driver
197
198 config LEDS_PCA9532_GPIO
199         bool "Enable GPIO support for PCA9532"
200         depends on LEDS_PCA9532
201         depends on GPIOLIB
202         help
203           Allow unused pins on PCA9532 to be used as gpio.
204
205           To use a pin as gpio pca9532_type in pca9532_platform data needs to
206           set to PCA9532_TYPE_GPIO.
207
208 config LEDS_GPIO
209         tristate "LED Support for GPIO connected LEDs"
210         depends on LEDS_CLASS
211         depends on GPIOLIB || COMPILE_TEST
212         help
213           This option enables support for the LEDs connected to GPIO
214           outputs. To be useful the particular board must have LEDs
215           and they must be connected to the GPIO lines.  The LEDs must be
216           defined as platform devices and/or OpenFirmware platform devices.
217           The code to use these bindings can be selected below.
218
219 config LEDS_LP3944
220         tristate "LED Support for N.S. LP3944 (Fun Light) I2C chip"
221         depends on LEDS_CLASS
222         depends on I2C
223         help
224           This option enables support for LEDs connected to the National
225           Semiconductor LP3944 Lighting Management Unit (LMU) also known as
226           Fun Light Chip.
227
228           To compile this driver as a module, choose M here: the
229           module will be called leds-lp3944.
230
231 config LEDS_LP55XX_COMMON
232         tristate "Common Driver for TI/National LP5521/5523/55231/5562/8501"
233         depends on LEDS_LP5521 || LEDS_LP5523 || LEDS_LP5562 || LEDS_LP8501
234         select FW_LOADER
235         help
236           This option supports common operations for LP5521/5523/55231/5562/8501
237           devices.
238
239 config LEDS_LP5521
240         tristate "LED Support for N.S. LP5521 LED driver chip"
241         depends on LEDS_CLASS && I2C
242         select LEDS_LP55XX_COMMON
243         help
244           If you say yes here you get support for the National Semiconductor
245           LP5521 LED driver. It is 3 channel chip with programmable engines.
246           Driver provides direct control via LED class and interface for
247           programming the engines.
248
249 config LEDS_LP5523
250         tristate "LED Support for TI/National LP5523/55231 LED driver chip"
251         depends on LEDS_CLASS && I2C
252         select LEDS_LP55XX_COMMON
253         help
254           If you say yes here you get support for TI/National Semiconductor
255           LP5523/55231 LED driver.
256           It is 9 channel chip with programmable engines.
257           Driver provides direct control via LED class and interface for
258           programming the engines.
259
260 config LEDS_LP5562
261         tristate "LED Support for TI LP5562 LED driver chip"
262         depends on LEDS_CLASS && I2C
263         select LEDS_LP55XX_COMMON
264         help
265           If you say yes here you get support for TI LP5562 LED driver.
266           It is 4 channels chip with programmable engines.
267           Driver provides direct control via LED class and interface for
268           programming the engines.
269
270 config LEDS_LP8501
271         tristate "LED Support for TI LP8501 LED driver chip"
272         depends on LEDS_CLASS && I2C
273         select LEDS_LP55XX_COMMON
274         help
275           If you say yes here you get support for TI LP8501 LED driver.
276           It is 9 channel chip with programmable engines.
277           Driver provides direct control via LED class and interface for
278           programming the engines.
279           It is similar as LP5523, but output power selection is available.
280           And register layout and engine program schemes are different.
281
282 config LEDS_LP8788
283         tristate "LED support for the TI LP8788 PMIC"
284         depends on LEDS_CLASS
285         depends on MFD_LP8788
286         help
287           This option enables support for the Keyboard LEDs on the LP8788 PMIC.
288
289 config LEDS_LP8860
290         tristate "LED support for the TI LP8860 4 channel LED driver"
291         depends on LEDS_CLASS && I2C
292         select REGMAP_I2C
293         help
294           If you say yes here you get support for the TI LP8860 4 channel
295           LED driver.
296           This option enables support for the display cluster LEDs
297           on the LP8860 4 channel LED driver using the I2C communication
298           bus.
299
300 config LEDS_CLEVO_MAIL
301         tristate "Mail LED on Clevo notebook"
302         depends on LEDS_CLASS
303         depends on X86 && SERIO_I8042 && DMI
304         help
305           This driver makes the mail LED accessible from userspace
306           programs through the leds subsystem. This LED have three
307           known mode: off, blink at 0.5Hz and blink at 1Hz.
308
309           The driver supports two kinds of interface: using ledtrig-timer
310           or through /sys/class/leds/clevo::mail/brightness. As this LED
311           cannot change it's brightness it blinks instead. The brightness
312           value 0 means off, 1..127 means blink at 0.5Hz and 128..255 means
313           blink at 1Hz.
314
315           This module can drive the mail LED for the following notebooks:
316
317                 Clevo D400P
318                 Clevo D410J
319                 Clevo D410V
320                 Clevo D400V/D470V (not tested, but might work)
321                 Clevo M540N
322                 Clevo M5x0N (not tested, but might work)
323                 Positivo Mobile (Clevo M5x0V)
324
325           If your model is not listed here you can try the "nodetect"
326           module parameter.
327
328           To compile this driver as a module, choose M here: the
329           module will be called leds-clevo-mail.
330
331 config LEDS_PCA955X
332         tristate "LED Support for PCA955x I2C chips"
333         depends on LEDS_CLASS
334         depends on I2C
335         help
336           This option enables support for LEDs connected to PCA955x
337           LED driver chips accessed via the I2C bus.  Supported
338           devices include PCA9550, PCA9551, PCA9552, and PCA9553.
339
340 config LEDS_PCA963X
341         tristate "LED support for PCA963x I2C chip"
342         depends on LEDS_CLASS
343         depends on I2C
344         help
345           This option enables support for LEDs connected to the PCA963x
346           LED driver chip accessed via the I2C bus. Supported
347           devices include PCA9633 and PCA9634
348
349 config LEDS_WM831X_STATUS
350         tristate "LED support for status LEDs on WM831x PMICs"
351         depends on LEDS_CLASS
352         depends on MFD_WM831X
353         help
354           This option enables support for the status LEDs of the WM831x
355           series of PMICs.
356
357 config LEDS_WM8350
358         tristate "LED Support for WM8350 AudioPlus PMIC"
359         depends on LEDS_CLASS
360         depends on MFD_WM8350
361         help
362           This option enables support for LEDs driven by the Wolfson
363           Microelectronics WM8350 AudioPlus PMIC.
364
365 config LEDS_DA903X
366         tristate "LED Support for DA9030/DA9034 PMIC"
367         depends on LEDS_CLASS
368         depends on PMIC_DA903X
369         help
370           This option enables support for on-chip LED drivers found
371           on Dialog Semiconductor DA9030/DA9034 PMICs.
372
373 config LEDS_DA9052
374         tristate "Dialog DA9052/DA9053 LEDS"
375         depends on LEDS_CLASS
376         depends on PMIC_DA9052
377         help
378           This option enables support for on-chip LED drivers found
379           on Dialog Semiconductor DA9052-BC and DA9053-AA/Bx PMICs.
380
381 config LEDS_DAC124S085
382         tristate "LED Support for DAC124S085 SPI DAC"
383         depends on LEDS_CLASS
384         depends on SPI
385         help
386           This option enables support for DAC124S085 SPI DAC from NatSemi,
387           which can be used to control up to four LEDs.
388
389 config LEDS_PWM
390         tristate "PWM driven LED Support"
391         depends on LEDS_CLASS
392         depends on PWM
393         help
394           This option enables support for pwm driven LEDs
395
396 config LEDS_REGULATOR
397         tristate "REGULATOR driven LED support"
398         depends on LEDS_CLASS
399         depends on REGULATOR
400         help
401           This option enables support for regulator driven LEDs.
402
403 config LEDS_BD2802
404         tristate "LED driver for BD2802 RGB LED"
405         depends on LEDS_CLASS
406         depends on I2C
407         help
408           This option enables support for BD2802GU RGB LED driver chips
409           accessed via the I2C bus.
410
411 config LEDS_INTEL_SS4200
412         tristate "LED driver for Intel NAS SS4200 series"
413         depends on LEDS_CLASS
414         depends on PCI && DMI
415         help
416           This option enables support for the Intel SS4200 series of
417           Network Attached Storage servers.  You may control the hard
418           drive or power LEDs on the front panel.  Using this driver
419           can stop the front LED from blinking after startup.
420
421 config LEDS_LT3593
422         tristate "LED driver for LT3593 controllers"
423         depends on LEDS_CLASS
424         depends on GPIOLIB
425         help
426           This option enables support for LEDs driven by a Linear Technology
427           LT3593 controller. This controller uses a special one-wire pulse
428           coding protocol to set the brightness.
429
430 config LEDS_ADP5520
431         tristate "LED Support for ADP5520/ADP5501 PMIC"
432         depends on LEDS_CLASS
433         depends on PMIC_ADP5520
434         help
435           This option enables support for on-chip LED drivers found
436           on Analog Devices ADP5520/ADP5501 PMICs.
437
438           To compile this driver as a module, choose M here: the module will
439           be called leds-adp5520.
440
441 config LEDS_DELL_NETBOOKS
442         tristate "External LED on Dell Business Netbooks"
443         depends on LEDS_CLASS
444         depends on X86 && ACPI_WMI
445         help
446           This adds support for the Latitude 2100 and similar
447           notebooks that have an external LED.
448
449 config LEDS_MC13783
450         tristate "LED Support for MC13XXX PMIC"
451         depends on LEDS_CLASS
452         depends on MFD_MC13XXX
453         help
454           This option enable support for on-chip LED drivers found
455           on Freescale Semiconductor MC13783/MC13892/MC34708 PMIC.
456
457 config LEDS_NS2
458         tristate "LED support for Network Space v2 GPIO LEDs"
459         depends on LEDS_CLASS
460         depends on MACH_KIRKWOOD
461         default y
462         help
463           This option enable support for the dual-GPIO LED found on the
464           Network Space v2 board (and parents). This include Internet Space v2,
465           Network Space (Max) v2 and d2 Network v2 boards.
466
467 config LEDS_NETXBIG
468         tristate "LED support for Big Network series LEDs"
469         depends on LEDS_CLASS
470         depends on MACH_KIRKWOOD
471         default y
472         help
473           This option enable support for LEDs found on the LaCie 2Big
474           and 5Big Network v2 boards. The LEDs are wired to a CPLD and are
475           controlled through a GPIO extension bus.
476
477 config LEDS_ASIC3
478         bool "LED support for the HTC ASIC3"
479         depends on LEDS_CLASS=y
480         depends on MFD_ASIC3
481         default y
482         help
483           This option enables support for the LEDs on the HTC ASIC3. The HTC
484           ASIC3 LED GPIOs are inputs, not outputs, thus the leds-gpio driver
485           cannot be used. This driver supports hardware blinking with an on+off
486           period from 62ms to 125s. Say Y to enable LEDs on the HP iPAQ hx4700.
487
488 config LEDS_TCA6507
489         tristate "LED Support for TCA6507 I2C chip"
490         depends on LEDS_CLASS && I2C
491         help
492           This option enables support for LEDs connected to TC6507
493           LED driver chips accessed via the I2C bus.
494           Driver support brightness control and hardware-assisted blinking.
495
496 config LEDS_TLC591XX
497         tristate "LED driver for TLC59108 and TLC59116 controllers"
498         depends on LEDS_CLASS && I2C
499         select REGMAP_I2C
500         help
501           This option enables support for Texas Instruments TLC59108
502           and TLC59116 LED controllers.
503
504 config LEDS_MAX77693
505         tristate "LED support for MAX77693 Flash"
506         depends on LEDS_CLASS_FLASH
507         depends on MFD_MAX77693
508         depends on OF
509         help
510           This option enables support for the flash part of the MAX77693
511           multifunction device. It has build in control for two leds in flash
512           and torch mode.
513
514 config LEDS_MAX8997
515         tristate "LED support for MAX8997 PMIC"
516         depends on LEDS_CLASS && MFD_MAX8997
517         help
518           This option enables support for on-chip LED drivers on
519           MAXIM MAX8997 PMIC.
520
521 config LEDS_LM355x
522         tristate "LED support for LM355x Chips, LM3554 and LM3556"
523         depends on LEDS_CLASS && I2C
524         select REGMAP_I2C
525         help
526           This option enables support for LEDs connected to LM355x.
527           LM355x includes Torch, Flash and Indicator functions.
528
529 config LEDS_OT200
530         tristate "LED support for the Bachmann OT200"
531         depends on LEDS_CLASS && HAS_IOMEM && (X86_32 || COMPILE_TEST)
532         help
533           This option enables support for the LEDs on the Bachmann OT200.
534           Say Y to enable LEDs on the Bachmann OT200.
535
536 config LEDS_MENF21BMC
537         tristate "LED support for the MEN 14F021P00 BMC"
538         depends on LEDS_CLASS && MFD_MENF21BMC
539         help
540           Say Y here to include support for the MEN 14F021P00 BMC LEDs.
541
542           This driver can also be built as a module. If so the module
543           will be called leds-menf21bmc.
544
545 config LEDS_KTD2692
546         tristate "LED support for KTD2692 flash LED controller"
547         depends on LEDS_CLASS_FLASH && GPIOLIB && OF
548         help
549           This option enables support for KTD2692 LED flash connected
550           through ExpressWire interface.
551
552           Say Y to enable this driver.
553
554 comment "LED driver for blink(1) USB RGB LED is under Special HID drivers (HID_THINGM)"
555
556 config LEDS_BLINKM
557         tristate "LED support for the BlinkM I2C RGB LED"
558         depends on LEDS_CLASS
559         depends on I2C
560         help
561           This option enables support for the BlinkM RGB LED connected
562           through I2C. Say Y to enable support for the BlinkM LED.
563
564 config LEDS_SYSCON
565         bool "LED support for LEDs on system controllers"
566         depends on LEDS_CLASS=y
567         depends on MFD_SYSCON
568         depends on OF
569         help
570           This option enabled support for the LEDs on syscon type
571           devices. This will only work with device tree enabled
572           devices.
573
574 config LEDS_VERSATILE
575         tristate "LED support for the ARM Versatile and RealView"
576         depends on ARCH_REALVIEW || ARCH_VERSATILE
577         depends on LEDS_CLASS
578         help
579           This option enabled support for the LEDs on the ARM Versatile
580           and RealView boards. Say Y to enabled these.
581
582 config LEDS_PM8941_WLED
583         tristate "LED support for the Qualcomm PM8941 WLED block"
584         depends on LEDS_CLASS
585         select REGMAP
586         help
587           This option enables support for the 'White' LED block
588           on Qualcomm PM8941 PMICs.
589
590 comment "LED Triggers"
591 source "drivers/leds/trigger/Kconfig"
592
593 endif # NEW_LEDS