Kconfig 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. menuconfig LEDS_TRIGGERS
  3. bool "LED Trigger support"
  4. depends on LEDS_CLASS
  5. help
  6. This option enables trigger support for the leds class.
  7. These triggers allow kernel events to drive the LEDs and can
  8. be configured via sysfs. If unsure, say Y.
  9. if LEDS_TRIGGERS
  10. config LEDS_TRIGGER_TIMER
  11. tristate "LED Timer Trigger"
  12. help
  13. This allows LEDs to be controlled by a programmable timer
  14. via sysfs. Some LED hardware can be programmed to start
  15. blinking the LED without any further software interaction.
  16. For more details read Documentation/leds/leds-class.rst.
  17. If unsure, say Y.
  18. config LEDS_TRIGGER_ONESHOT
  19. tristate "LED One-shot Trigger"
  20. help
  21. This allows LEDs to blink in one-shot pulses with parameters
  22. controlled via sysfs. It's useful to notify the user on
  23. sporadic events, when there are no clear begin and end trap points,
  24. or on dense events, where this blinks the LED at constant rate if
  25. rearmed continuously.
  26. It also shows how to use the led_blink_set_oneshot() function.
  27. If unsure, say Y.
  28. config LEDS_TRIGGER_DISK
  29. bool "LED Disk Trigger"
  30. depends on ATA
  31. help
  32. This allows LEDs to be controlled by disk activity.
  33. If unsure, say Y.
  34. config LEDS_TRIGGER_MTD
  35. bool "LED MTD (NAND/NOR) Trigger"
  36. depends on MTD
  37. help
  38. This allows LEDs to be controlled by MTD activity.
  39. If unsure, say N.
  40. config LEDS_TRIGGER_HEARTBEAT
  41. tristate "LED Heartbeat Trigger"
  42. help
  43. This allows LEDs to be controlled by a CPU load average.
  44. The flash frequency is a hyperbolic function of the 1-minute
  45. load average.
  46. If unsure, say Y.
  47. config LEDS_TRIGGER_BACKLIGHT
  48. tristate "LED backlight Trigger"
  49. help
  50. This allows LEDs to be controlled as a backlight device: they
  51. turn off and on when the display is blanked and unblanked.
  52. If unsure, say N.
  53. config LEDS_TRIGGER_CPU
  54. bool "LED CPU Trigger"
  55. depends on !PREEMPT_RT
  56. help
  57. This allows LEDs to be controlled by active CPUs. This shows
  58. the active CPUs across an array of LEDs so you can see which
  59. CPUs are active on the system at any given moment.
  60. If unsure, say N.
  61. config LEDS_TRIGGER_ACTIVITY
  62. tristate "LED activity Trigger"
  63. help
  64. This allows LEDs to be controlled by an immediate CPU usage.
  65. The flash frequency and duty cycle varies from faint flashes to
  66. intense brightness depending on the instant CPU load.
  67. If unsure, say N.
  68. config LEDS_TRIGGER_GPIO
  69. tristate "LED GPIO Trigger"
  70. depends on GPIOLIB || COMPILE_TEST
  71. help
  72. This allows LEDs to be controlled by gpio events. It's good
  73. when using gpios as switches and triggering the needed LEDs
  74. from there. One use case is n810's keypad LEDs that could
  75. be triggered by this trigger when user slides up to show
  76. keypad.
  77. If unsure, say N.
  78. config LEDS_TRIGGER_DEFAULT_ON
  79. tristate "LED Default ON Trigger"
  80. help
  81. This allows LEDs to be initialised in the ON state.
  82. If unsure, say Y.
  83. comment "iptables trigger is under Netfilter config (LED target)"
  84. depends on LEDS_TRIGGERS
  85. config LEDS_TRIGGER_TRANSIENT
  86. tristate "LED Transient Trigger"
  87. help
  88. This allows one time activation of a transient state on
  89. GPIO/PWM based hardware.
  90. If unsure, say Y.
  91. config LEDS_TRIGGER_CAMERA
  92. tristate "LED Camera Flash/Torch Trigger"
  93. help
  94. This allows LEDs to be controlled as a camera flash/torch device.
  95. This enables direct flash/torch on/off by the driver, kernel space.
  96. If unsure, say Y.
  97. config LEDS_TRIGGER_PANIC
  98. bool "LED Panic Trigger"
  99. help
  100. This allows LEDs to be configured to blink on a kernel panic.
  101. Enabling this option will allow to mark certain LEDs as panic indicators,
  102. allowing to blink them on a kernel panic, even if they are set to
  103. a different trigger.
  104. If unsure, say Y.
  105. config LEDS_TRIGGER_NETDEV
  106. tristate "LED Netdev Trigger"
  107. depends on NET
  108. help
  109. This allows LEDs to be controlled by network device activity.
  110. If unsure, say Y.
  111. config LEDS_TRIGGER_PATTERN
  112. tristate "LED Pattern Trigger"
  113. help
  114. This allows LEDs to be controlled by a software or hardware pattern
  115. which is a series of tuples, of brightness and duration (ms).
  116. If unsure, say N
  117. config LEDS_TRIGGER_AUDIO
  118. tristate "Audio Mute LED Trigger"
  119. help
  120. This allows LEDs to be controlled by audio drivers for following
  121. the audio mute and mic-mute changes.
  122. If unsure, say N
  123. config LEDS_TRIGGER_TTY
  124. tristate "LED Trigger for TTY devices"
  125. depends on TTY
  126. help
  127. This allows LEDs to be controlled by activity on ttys which includes
  128. serial devices like /dev/ttyS0.
  129. When build as a module this driver will be called ledtrig-tty.
  130. endif # LEDS_TRIGGERS