Kconfig 13 KB

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