xref: /linux/drivers/leds/trigger/Kconfig (revision a1ff5a7d78a036d6c2178ee5acd6ba4946243800)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
2f07fb521SKim, Milomenuconfig LEDS_TRIGGERS
3f07fb521SKim, Milo	bool "LED Trigger support"
4f07fb521SKim, Milo	depends on LEDS_CLASS
5f07fb521SKim, Milo	help
6f07fb521SKim, Milo	  This option enables trigger support for the leds class.
7f07fb521SKim, Milo	  These triggers allow kernel events to drive the LEDs and can
8f07fb521SKim, Milo	  be configured via sysfs. If unsure, say Y.
9f07fb521SKim, Milo
10f07fb521SKim, Miloif LEDS_TRIGGERS
11f07fb521SKim, Milo
12f07fb521SKim, Miloconfig LEDS_TRIGGER_TIMER
13f07fb521SKim, Milo	tristate "LED Timer Trigger"
14f07fb521SKim, Milo	help
15f07fb521SKim, Milo	  This allows LEDs to be controlled by a programmable timer
16f07fb521SKim, Milo	  via sysfs. Some LED hardware can be programmed to start
17f07fb521SKim, Milo	  blinking the LED without any further software interaction.
188dab9197SMauro Carvalho Chehab	  For more details read Documentation/leds/leds-class.rst.
19f07fb521SKim, Milo
20f07fb521SKim, Milo	  If unsure, say Y.
21f07fb521SKim, Milo
22f07fb521SKim, Miloconfig LEDS_TRIGGER_ONESHOT
23f07fb521SKim, Milo	tristate "LED One-shot Trigger"
24f07fb521SKim, Milo	help
25f07fb521SKim, Milo	  This allows LEDs to blink in one-shot pulses with parameters
26f07fb521SKim, Milo	  controlled via sysfs.  It's useful to notify the user on
27f07fb521SKim, Milo	  sporadic events, when there are no clear begin and end trap points,
28f07fb521SKim, Milo	  or on dense events, where this blinks the LED at constant rate if
29f07fb521SKim, Milo	  rearmed continuously.
30f07fb521SKim, Milo
31f07fb521SKim, Milo	  It also shows how to use the led_blink_set_oneshot() function.
32f07fb521SKim, Milo
33f07fb521SKim, Milo	  If unsure, say Y.
34f07fb521SKim, Milo
35eb25cb99SStephan Linzconfig LEDS_TRIGGER_DISK
36eb25cb99SStephan Linz	bool "LED Disk Trigger"
375358680eSLukas Bulwahn	depends on ATA
38f07fb521SKim, Milo	help
39eb25cb99SStephan Linz	  This allows LEDs to be controlled by disk activity.
40f07fb521SKim, Milo	  If unsure, say Y.
41f07fb521SKim, Milo
424b721174SEzequiel Garciaconfig LEDS_TRIGGER_MTD
434b721174SEzequiel Garcia	bool "LED MTD (NAND/NOR) Trigger"
444b721174SEzequiel Garcia	depends on MTD
454b721174SEzequiel Garcia	help
464b721174SEzequiel Garcia	  This allows LEDs to be controlled by MTD activity.
474b721174SEzequiel Garcia	  If unsure, say N.
484b721174SEzequiel Garcia
49f07fb521SKim, Miloconfig LEDS_TRIGGER_HEARTBEAT
50f07fb521SKim, Milo	tristate "LED Heartbeat Trigger"
51f07fb521SKim, Milo	help
52f07fb521SKim, Milo	  This allows LEDs to be controlled by a CPU load average.
53f07fb521SKim, Milo	  The flash frequency is a hyperbolic function of the 1-minute
54f07fb521SKim, Milo	  load average.
55f07fb521SKim, Milo	  If unsure, say Y.
56f07fb521SKim, Milo
57f07fb521SKim, Miloconfig LEDS_TRIGGER_BACKLIGHT
58f07fb521SKim, Milo	tristate "LED backlight Trigger"
59f07fb521SKim, Milo	help
60f07fb521SKim, Milo	  This allows LEDs to be controlled as a backlight device: they
61f07fb521SKim, Milo	  turn off and on when the display is blanked and unblanked.
62f07fb521SKim, Milo
63f07fb521SKim, Milo	  If unsure, say N.
64f07fb521SKim, Milo
65f07fb521SKim, Miloconfig LEDS_TRIGGER_CPU
66f07fb521SKim, Milo	bool "LED CPU Trigger"
6797b31c1fSSebastian Andrzej Siewior	depends on !PREEMPT_RT
68f07fb521SKim, Milo	help
69f07fb521SKim, Milo	  This allows LEDs to be controlled by active CPUs. This shows
70f07fb521SKim, Milo	  the active CPUs across an array of LEDs so you can see which
71f07fb521SKim, Milo	  CPUs are active on the system at any given moment.
72f07fb521SKim, Milo
73f07fb521SKim, Milo	  If unsure, say N.
74f07fb521SKim, Milo
757df4f9a9SWilly Tarreauconfig LEDS_TRIGGER_ACTIVITY
767df4f9a9SWilly Tarreau	tristate "LED activity Trigger"
777df4f9a9SWilly Tarreau	help
78a72d3b5dSGeert Uytterhoeven	  This allows LEDs to be controlled by an immediate CPU usage.
797df4f9a9SWilly Tarreau	  The flash frequency and duty cycle varies from faint flashes to
807df4f9a9SWilly Tarreau	  intense brightness depending on the instant CPU load.
817df4f9a9SWilly Tarreau	  If unsure, say N.
827df4f9a9SWilly Tarreau
83f07fb521SKim, Miloconfig LEDS_TRIGGER_GPIO
84f07fb521SKim, Milo	tristate "LED GPIO Trigger"
8582322741SGeert Uytterhoeven	depends on GPIOLIB || COMPILE_TEST
86f07fb521SKim, Milo	help
87f07fb521SKim, Milo	  This allows LEDs to be controlled by gpio events. It's good
88f07fb521SKim, Milo	  when using gpios as switches and triggering the needed LEDs
894a11dbf0SLinus Walleij	  from there. Triggers are defined as device properties.
90f07fb521SKim, Milo
91f07fb521SKim, Milo	  If unsure, say N.
92f07fb521SKim, Milo
93f07fb521SKim, Miloconfig LEDS_TRIGGER_DEFAULT_ON
94f07fb521SKim, Milo	tristate "LED Default ON Trigger"
95f07fb521SKim, Milo	help
96f07fb521SKim, Milo	  This allows LEDs to be initialised in the ON state.
97f07fb521SKim, Milo	  If unsure, say Y.
98f07fb521SKim, Milo
99f07fb521SKim, Milocomment "iptables trigger is under Netfilter config (LED target)"
100f07fb521SKim, Milo	depends on LEDS_TRIGGERS
101f07fb521SKim, Milo
102f07fb521SKim, Miloconfig LEDS_TRIGGER_TRANSIENT
103f07fb521SKim, Milo	tristate "LED Transient Trigger"
104f07fb521SKim, Milo	help
105f07fb521SKim, Milo	  This allows one time activation of a transient state on
106f07fb521SKim, Milo	  GPIO/PWM based hardware.
107f07fb521SKim, Milo	  If unsure, say Y.
108f07fb521SKim, Milo
10948a1d032SKim, Miloconfig LEDS_TRIGGER_CAMERA
11048a1d032SKim, Milo	tristate "LED Camera Flash/Torch Trigger"
11148a1d032SKim, Milo	help
11248a1d032SKim, Milo	  This allows LEDs to be controlled as a camera flash/torch device.
11348a1d032SKim, Milo	  This enables direct flash/torch on/off by the driver, kernel space.
11448a1d032SKim, Milo	  If unsure, say Y.
11548a1d032SKim, Milo
116916fe619SEzequiel Garciaconfig LEDS_TRIGGER_PANIC
117916fe619SEzequiel Garcia	bool "LED Panic Trigger"
118916fe619SEzequiel Garcia	help
119916fe619SEzequiel Garcia	  This allows LEDs to be configured to blink on a kernel panic.
120ba93cdceSEzequiel Garcia	  Enabling this option will allow to mark certain LEDs as panic indicators,
121ba93cdceSEzequiel Garcia	  allowing to blink them on a kernel panic, even if they are set to
122ba93cdceSEzequiel Garcia	  a different trigger.
123916fe619SEzequiel Garcia	  If unsure, say Y.
124916fe619SEzequiel Garcia
12506f502f5SBen Whittenconfig LEDS_TRIGGER_NETDEV
12606f502f5SBen Whitten	tristate "LED Netdev Trigger"
1273d74243dSUwe Kleine-König	depends on NET
12806f502f5SBen Whitten	help
12906f502f5SBen Whitten	  This allows LEDs to be controlled by network device activity.
13006f502f5SBen Whitten	  If unsure, say Y.
13106f502f5SBen Whitten
1325fd752b6SBaolin Wangconfig LEDS_TRIGGER_PATTERN
1335fd752b6SBaolin Wang	tristate "LED Pattern Trigger"
1345fd752b6SBaolin Wang	help
1355fd752b6SBaolin Wang	  This allows LEDs to be controlled by a software or hardware pattern
1365fd752b6SBaolin Wang	  which is a series of tuples, of brightness and duration (ms).
1375fd752b6SBaolin Wang	  If unsure, say N
1385fd752b6SBaolin Wang
139fd4a641aSUwe Kleine-Königconfig LEDS_TRIGGER_TTY
140fd4a641aSUwe Kleine-König	tristate "LED Trigger for TTY devices"
141fd4a641aSUwe Kleine-König	depends on TTY
142fd4a641aSUwe Kleine-König	help
143fd4a641aSUwe Kleine-König	  This allows LEDs to be controlled by activity on ttys which includes
144fd4a641aSUwe Kleine-König	  serial devices like /dev/ttyS0.
145fd4a641aSUwe Kleine-König
146fd4a641aSUwe Kleine-König	  When build as a module this driver will be called ledtrig-tty.
147fd4a641aSUwe Kleine-König
148*6f963a20SHans de Goedeconfig LEDS_TRIGGER_INPUT_EVENTS
149*6f963a20SHans de Goede	tristate "LED Input events trigger"
150*6f963a20SHans de Goede	depends on INPUT
151*6f963a20SHans de Goede	help
152*6f963a20SHans de Goede	  Turn LEDs on when there is input (/dev/input/event*) activity and turn
153*6f963a20SHans de Goede	  them back off again after there has been no activity for 5 seconds.
154*6f963a20SHans de Goede
155*6f963a20SHans de Goede	  This is primarily intended to control LEDs which are a backlight for
156*6f963a20SHans de Goede	  capacitive touch-buttons, such as e.g. the menu / home / back buttons
157*6f963a20SHans de Goede	  found on the bottom bezel of many older smartphones and tablets.
158*6f963a20SHans de Goede
159*6f963a20SHans de Goede	  This can also be used to turn on the keyboard backlight LED on
160*6f963a20SHans de Goede	  input events and turn the keyboard backlight off again when idle.
161*6f963a20SHans de Goede
162*6f963a20SHans de Goede	  When build as a module this driver will be called ledtrig-input-events.
163*6f963a20SHans de Goede
164f07fb521SKim, Miloendif # LEDS_TRIGGERS
165