hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/leds/Kconfig
....@@ -1,3 +1,4 @@
1
+# SPDX-License-Identifier: GPL-2.0-only
12 config LEDS_GPIO_REGISTER
23 bool
34 help
....@@ -16,25 +17,35 @@
1617 config LEDS_CLASS
1718 tristate "LED Class Support"
1819 help
19
- This option enables the led sysfs class in /sys/class/leds. You'll
20
+ This option enables the LED sysfs class in /sys/class/leds. You'll
2021 need this to do anything useful with LEDs. If unsure, say N.
2122
2223 config LEDS_CLASS_FLASH
2324 tristate "LED Flash Class Support"
2425 depends on LEDS_CLASS
2526 help
26
- This option enables the flash led sysfs class in /sys/class/leds.
27
- It wrapps LED Class and adds flash LEDs specific sysfs attributes
27
+ This option enables the flash LED sysfs class in /sys/class/leds.
28
+ It wraps LED Class and adds flash LEDs specific sysfs attributes
2829 and kernel internal API to it. You'll need this to provide support
2930 for the flash related features of a LED device. It can be built
3031 as a module.
32
+
33
+config LEDS_CLASS_MULTICOLOR
34
+ tristate "LED Multicolor Class Support"
35
+ depends on LEDS_CLASS
36
+ help
37
+ This option enables the multicolor LED sysfs class in /sys/class/leds.
38
+ It wraps LED class and adds multicolor LED specific sysfs attributes
39
+ and kernel internal API to it. You'll need this to provide support
40
+ for multicolor LEDs that are grouped together. This class is not
41
+ intended for single color LEDs. It can be built as a module.
3142
3243 config LEDS_BRIGHTNESS_HW_CHANGED
3344 bool "LED Class brightness_hw_changed attribute support"
3445 depends on LEDS_CLASS
3546 help
3647 This option enables support for the brightness_hw_changed attribute
37
- for led sysfs class devices under /sys/class/leds.
48
+ for LED sysfs class devices under /sys/class/leds.
3849
3950 See Documentation/ABI/testing/sysfs-class-led for details.
4051
....@@ -56,18 +67,42 @@
5667 depends on OF
5768 depends on PINCTRL
5869 help
59
- This option enables support for the LEDs on the AAT1290.
70
+ This option enables support for the LEDs on the AAT1290.
71
+
72
+config LEDS_AN30259A
73
+ tristate "LED support for Panasonic AN30259A"
74
+ depends on LEDS_CLASS && I2C && OF
75
+ help
76
+ This option enables support for the AN30259A 3-channel
77
+ LED driver.
78
+
79
+ To compile this driver as a module, choose M here: the module
80
+ will be called leds-an30259a.
6081
6182 config LEDS_APU
6283 tristate "Front panel LED support for PC Engines APU/APU2/APU3 boards"
6384 depends on LEDS_CLASS
6485 depends on X86 && DMI
6586 help
66
- This driver makes the PC Engines APU/APU2/APU3 front panel LEDs
87
+ This driver makes the PC Engines APU1 front panel LEDs
6788 accessible from userspace programs through the LED subsystem.
89
+
90
+ If you're looking for APU2/3, use the pcengines-apu2 driver.
91
+ (symbol CONFIG_PCENGINES_APU2)
6892
6993 To compile this driver as a module, choose M here: the
7094 module will be called leds-apu.
95
+
96
+config LEDS_ARIEL
97
+ tristate "Dell Wyse 3020 status LED support"
98
+ depends on LEDS_CLASS
99
+ depends on (MACH_MMP3_DT && MFD_ENE_KB3930) || COMPILE_TEST
100
+ help
101
+ This driver adds support for controlling the front panel status
102
+ LEDs on Dell Wyse 3020 (Ariel) board via the KB3930 Embedded
103
+ Controller.
104
+
105
+ Say Y to if your machine is a Dell Wyse 3020 thin client.
71106
72107 config LEDS_AS3645A
73108 tristate "AS3645A and LM3555 LED flash controllers support"
....@@ -77,6 +112,16 @@
77112 Enable LED flash class support for AS3645A LED flash
78113 controller. V4L2 flash API is provided as well if
79114 CONFIG_V4L2_FLASH_API is enabled.
115
+
116
+config LEDS_AW2013
117
+ tristate "LED support for Awinic AW2013"
118
+ depends on LEDS_CLASS && I2C && OF
119
+ help
120
+ This option enables support for the AW2013 3-channel
121
+ LED driver.
122
+
123
+ To compile this driver as a module, choose M here: the module
124
+ will be called leds-aw2013.
80125
81126 config LEDS_BCM6328
82127 tristate "LED Support for Broadcom BCM6328"
....@@ -118,6 +163,30 @@
118163 To compile this driver as a module, choose M here: the module
119164 will be called leds-cr0014114.
120165
166
+config LEDS_EL15203000
167
+ tristate "LED Support for Crane EL15203000"
168
+ depends on LEDS_CLASS
169
+ depends on SPI
170
+ depends on OF
171
+ help
172
+ This option enables support for EL15203000 LED Board
173
+ (aka RED LED board) which is widely used in coffee vending
174
+ machines produced by Crane Merchandising Systems.
175
+
176
+ To compile this driver as a module, choose M here: the module
177
+ will be called leds-el15203000.
178
+
179
+config LEDS_TURRIS_OMNIA
180
+ tristate "LED support for CZ.NIC's Turris Omnia"
181
+ depends on LEDS_CLASS_MULTICOLOR
182
+ depends on I2C
183
+ depends on MACH_ARMADA_38X || COMPILE_TEST
184
+ depends on OF
185
+ help
186
+ This option enables basic support for the LEDs found on the front
187
+ side of CZ.NIC's Turris Omnia router. There are 12 RGB LEDs on the
188
+ front panel.
189
+
121190 config LEDS_LM3530
122191 tristate "LCD Backlight driver for LM3530"
123192 depends on LEDS_CLASS
....@@ -125,6 +194,17 @@
125194 help
126195 This option enables support for the LCD backlight using
127196 LM3530 ambient light sensor chip. This ALS chip can be
197
+ controlled manually or using PWM input or using ambient
198
+ light automatically.
199
+
200
+config LEDS_LM3532
201
+ tristate "LCD Backlight driver for LM3532"
202
+ select REGMAP_I2C
203
+ depends on LEDS_CLASS
204
+ depends on I2C
205
+ help
206
+ This option enables support for the LCD backlight using
207
+ LM3532 ambient light sensor chip. This ALS chip can be
128208 controlled manually or using PWM input or using ambient
129209 light automatically.
130210
....@@ -195,7 +275,7 @@
195275 config LEDS_S3C24XX
196276 tristate "LED Support for Samsung S3C24XX GPIO LEDs"
197277 depends on LEDS_CLASS
198
- depends on ARCH_S3C24XX
278
+ depends on ARCH_S3C24XX || COMPILE_TEST
199279 help
200280 This option enables support for LEDs connected to GPIO lines
201281 on Samsung S3C24XX series CPUs, such as the S3C2410 and S3C2440.
....@@ -225,13 +305,13 @@
225305 config LEDS_COBALT_QUBE
226306 tristate "LED Support for the Cobalt Qube series front LED"
227307 depends on LEDS_CLASS
228
- depends on MIPS_COBALT
308
+ depends on MIPS_COBALT || COMPILE_TEST
229309 help
230310 This option enables support for the front LED on Cobalt Qube series
231311
232312 config LEDS_COBALT_RAQ
233313 bool "LED Support for the Cobalt Raq series"
234
- depends on LEDS_CLASS=y && MIPS_COBALT
314
+ depends on LEDS_CLASS=y && (MIPS_COBALT || COMPILE_TEST)
235315 select LEDS_TRIGGERS
236316 help
237317 This option enables support for the Cobalt Raq series LEDs.
....@@ -316,9 +396,23 @@
316396 To compile this driver as a module, choose M here: the
317397 module will be called leds-lp3952.
318398
399
+config LEDS_LP50XX
400
+ tristate "LED Support for TI LP5036/30/24/18/12/9 LED driver chip"
401
+ depends on LEDS_CLASS && REGMAP_I2C
402
+ depends on LEDS_CLASS_MULTICOLOR || !LEDS_CLASS_MULTICOLOR
403
+ help
404
+ If you say yes here you get support for the Texas Instruments
405
+ LP5036, LP5030, LP5024, LP5018, LP5012 and LP5009 LED driver.
406
+
407
+ To compile this driver as a module, choose M here: the
408
+ module will be called leds-lp50xx.
409
+
319410 config LEDS_LP55XX_COMMON
320411 tristate "Common Driver for TI/National LP5521/5523/55231/5562/8501"
321
- depends on LEDS_LP5521 || LEDS_LP5523 || LEDS_LP5562 || LEDS_LP8501
412
+ depends on LEDS_CLASS
413
+ depends on LEDS_CLASS_MULTICOLOR || !LEDS_CLASS_MULTICOLOR
414
+ depends on OF
415
+ depends on I2C
322416 select FW_LOADER
323417 select FW_LOADER_USER_HELPER
324418 help
....@@ -328,7 +422,7 @@
328422 config LEDS_LP5521
329423 tristate "LED Support for N.S. LP5521 LED driver chip"
330424 depends on LEDS_CLASS && I2C
331
- select LEDS_LP55XX_COMMON
425
+ depends on LEDS_LP55XX_COMMON
332426 help
333427 If you say yes here you get support for the National Semiconductor
334428 LP5521 LED driver. It is 3 channel chip with programmable engines.
....@@ -338,7 +432,7 @@
338432 config LEDS_LP5523
339433 tristate "LED Support for TI/National LP5523/55231 LED driver chip"
340434 depends on LEDS_CLASS && I2C
341
- select LEDS_LP55XX_COMMON
435
+ depends on LEDS_LP55XX_COMMON
342436 help
343437 If you say yes here you get support for TI/National Semiconductor
344438 LP5523/55231 LED driver.
....@@ -349,7 +443,7 @@
349443 config LEDS_LP5562
350444 tristate "LED Support for TI LP5562 LED driver chip"
351445 depends on LEDS_CLASS && I2C
352
- select LEDS_LP55XX_COMMON
446
+ depends on LEDS_LP55XX_COMMON
353447 help
354448 If you say yes here you get support for TI LP5562 LED driver.
355449 It is 4 channels chip with programmable engines.
....@@ -359,7 +453,7 @@
359453 config LEDS_LP8501
360454 tristate "LED Support for TI LP8501 LED driver chip"
361455 depends on LEDS_CLASS && I2C
362
- select LEDS_LP55XX_COMMON
456
+ depends on LEDS_LP55XX_COMMON
363457 help
364458 If you say yes here you get support for TI LP8501 LED driver.
365459 It is 9 channel chip with programmable engines.
....@@ -403,13 +497,13 @@
403497
404498 This module can drive the mail LED for the following notebooks:
405499
406
- Clevo D400P
407
- Clevo D410J
408
- Clevo D410V
409
- Clevo D400V/D470V (not tested, but might work)
410
- Clevo M540N
411
- Clevo M5x0N (not tested, but might work)
412
- Positivo Mobile (Clevo M5x0V)
500
+ Clevo D400P
501
+ Clevo D410J
502
+ Clevo D410V
503
+ Clevo D400V/D470V (not tested, but might work)
504
+ Clevo M540N
505
+ Clevo M5x0N (not tested, but might work)
506
+ Positivo Mobile (Clevo M5x0V)
413507
414508 If your model is not listed here you can try the "nodetect"
415509 module parameter.
....@@ -452,7 +546,7 @@
452546 depends on MFD_WM831X
453547 help
454548 This option enables support for the status LEDs of the WM831x
455
- series of PMICs.
549
+ series of PMICs.
456550
457551 config LEDS_WM8350
458552 tristate "LED Support for WM8350 AudioPlus PMIC"
....@@ -523,6 +617,7 @@
523617 tristate "LED driver for LT3593 controllers"
524618 depends on LEDS_CLASS
525619 depends on GPIOLIB || COMPILE_TEST
620
+ depends on OF
526621 help
527622 This option enables support for LEDs driven by a Linear Technology
528623 LT3593 controller. This controller uses a special one-wire pulse
....@@ -550,7 +645,7 @@
550645 config LEDS_NS2
551646 tristate "LED support for Network Space v2 GPIO LEDs"
552647 depends on LEDS_CLASS
553
- depends on MACH_KIRKWOOD || MACH_ARMADA_370
648
+ depends on MACH_KIRKWOOD || MACH_ARMADA_370 || COMPILE_TEST
554649 default y
555650 help
556651 This option enables support for the dual-GPIO LEDs found on the
....@@ -564,7 +659,8 @@
564659 config LEDS_NETXBIG
565660 tristate "LED support for Big Network series LEDs"
566661 depends on LEDS_CLASS
567
- depends on MACH_KIRKWOOD
662
+ depends on MACH_KIRKWOOD || COMPILE_TEST
663
+ depends on OF_GPIO
568664 default y
569665 help
570666 This option enables support for LEDs found on the LaCie 2Big
....@@ -597,6 +693,12 @@
597693 help
598694 This option enables support for Texas Instruments TLC59108
599695 and TLC59116 LED controllers.
696
+
697
+config LEDS_MAX77650
698
+ tristate "LED support for Maxim MAX77650 PMIC"
699
+ depends on LEDS_CLASS && MFD_MAX77650
700
+ help
701
+ LEDs driver for MAX77650 family of PMICs from Maxim Integrated.
600702
601703 config LEDS_MAX77693
602704 tristate "LED support for MAX77693 Flash"
....@@ -762,6 +864,77 @@
762864 To compile this driver as a module, choose M here: the module
763865 will be called leds-nic78bx.
764866
867
+config LEDS_SPI_BYTE
868
+ tristate "LED support for SPI LED controller with a single byte"
869
+ depends on LEDS_CLASS
870
+ depends on SPI
871
+ depends on OF
872
+ help
873
+ This option enables support for LED controller which use a single byte
874
+ for controlling the brightness. Currently the following controller is
875
+ supported: Ubiquiti airCube ISP microcontroller based LED controller.
876
+
877
+config LEDS_TI_LMU_COMMON
878
+ tristate "LED driver for TI LMU"
879
+ depends on LEDS_CLASS
880
+ depends on REGMAP
881
+ help
882
+ Say Y to enable the LED driver for TI LMU devices.
883
+ This supports common features between the TI LM3532, LM3631, LM3632,
884
+ LM3633, LM3695 and LM3697.
885
+
886
+config LEDS_LM3697
887
+ tristate "LED driver for LM3697"
888
+ depends on LEDS_TI_LMU_COMMON
889
+ depends on I2C && OF
890
+ help
891
+ Say Y to enable the LM3697 LED driver for TI LMU devices.
892
+ This supports the LED device LM3697.
893
+
894
+config LEDS_LM36274
895
+ tristate "LED driver for LM36274"
896
+ depends on LEDS_TI_LMU_COMMON
897
+ depends on MFD_TI_LMU
898
+ help
899
+ Say Y to enable the LM36274 LED driver for TI LMU devices.
900
+ This supports the LED device LM36274.
901
+
902
+config LEDS_TPS6105X
903
+ tristate "LED support for TI TPS6105X"
904
+ depends on LEDS_CLASS
905
+ depends on TPS6105X
906
+ default y if TPS6105X
907
+ help
908
+ This driver supports TPS61050/TPS61052 LED chips.
909
+ It is a single boost converter primarily for white LEDs and
910
+ audio amplifiers.
911
+
912
+config LEDS_IP30
913
+ tristate "LED support for SGI Octane machines"
914
+ depends on LEDS_CLASS
915
+ depends on SGI_MFD_IOC3 || COMPILE_TEST
916
+ help
917
+ This option enables support for the Red and White LEDs of
918
+ SGI Octane machines.
919
+
920
+ To compile this driver as a module, choose M here: the module
921
+ will be called leds-ip30.
922
+
923
+config LEDS_SGM3140
924
+ tristate "LED support for the SGM3140"
925
+ depends on LEDS_CLASS_FLASH
926
+ depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS
927
+ help
928
+ This option enables support for the SGM3140 500mA Buck/Boost Charge
929
+ Pump LED Driver.
930
+
931
+config LEDS_ACER_A500
932
+ tristate "Power button LED support for Acer Iconia Tab A500"
933
+ depends on LEDS_CLASS && MFD_ACER_A500_EC
934
+ help
935
+ This option enables support for the Power Button LED of
936
+ Acer Iconia Tab A500.
937
+
765938 comment "LED Triggers"
766939 source "drivers/leds/trigger/Kconfig"
767940