xref: /linux/drivers/leds/trigger/Kconfig (revision 06f502f57d0d7728f9fa0f157ec5e4111ddb98f6)
1f07fb521SKim, Milomenuconfig LEDS_TRIGGERS
2f07fb521SKim, Milo	bool "LED Trigger support"
3f07fb521SKim, Milo	depends on LEDS_CLASS
4f07fb521SKim, Milo	help
5f07fb521SKim, Milo	  This option enables trigger support for the leds class.
6f07fb521SKim, Milo	  These triggers allow kernel events to drive the LEDs and can
7f07fb521SKim, Milo	  be configured via sysfs. If unsure, say Y.
8f07fb521SKim, Milo
9f07fb521SKim, Miloif LEDS_TRIGGERS
10f07fb521SKim, Milo
11f07fb521SKim, Miloconfig LEDS_TRIGGER_TIMER
12f07fb521SKim, Milo	tristate "LED Timer Trigger"
13f07fb521SKim, Milo	depends on LEDS_TRIGGERS
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.
18f07fb521SKim, Milo	  For more details read Documentation/leds/leds-class.txt.
19f07fb521SKim, Milo
20f07fb521SKim, Milo	  If unsure, say Y.
21f07fb521SKim, Milo
22f07fb521SKim, Miloconfig LEDS_TRIGGER_ONESHOT
23f07fb521SKim, Milo	tristate "LED One-shot Trigger"
24f07fb521SKim, Milo	depends on LEDS_TRIGGERS
25f07fb521SKim, Milo	help
26f07fb521SKim, Milo	  This allows LEDs to blink in one-shot pulses with parameters
27f07fb521SKim, Milo	  controlled via sysfs.  It's useful to notify the user on
28f07fb521SKim, Milo	  sporadic events, when there are no clear begin and end trap points,
29f07fb521SKim, Milo	  or on dense events, where this blinks the LED at constant rate if
30f07fb521SKim, Milo	  rearmed continuously.
31f07fb521SKim, Milo
32f07fb521SKim, Milo	  It also shows how to use the led_blink_set_oneshot() function.
33f07fb521SKim, Milo
34f07fb521SKim, Milo	  If unsure, say Y.
35f07fb521SKim, Milo
36eb25cb99SStephan Linzconfig LEDS_TRIGGER_DISK
37eb25cb99SStephan Linz	bool "LED Disk Trigger"
38eb25cb99SStephan Linz	depends on IDE_GD_ATA || ATA
39f07fb521SKim, Milo	depends on LEDS_TRIGGERS
40f07fb521SKim, Milo	help
41eb25cb99SStephan Linz	  This allows LEDs to be controlled by disk activity.
42f07fb521SKim, Milo	  If unsure, say Y.
43f07fb521SKim, Milo
444b721174SEzequiel Garciaconfig LEDS_TRIGGER_MTD
454b721174SEzequiel Garcia	bool "LED MTD (NAND/NOR) Trigger"
464b721174SEzequiel Garcia	depends on MTD
474b721174SEzequiel Garcia	depends on LEDS_TRIGGERS
484b721174SEzequiel Garcia	help
494b721174SEzequiel Garcia	  This allows LEDs to be controlled by MTD activity.
504b721174SEzequiel Garcia	  If unsure, say N.
514b721174SEzequiel Garcia
52f07fb521SKim, Miloconfig LEDS_TRIGGER_HEARTBEAT
53f07fb521SKim, Milo	tristate "LED Heartbeat Trigger"
54f07fb521SKim, Milo	depends on LEDS_TRIGGERS
55f07fb521SKim, Milo	help
56f07fb521SKim, Milo	  This allows LEDs to be controlled by a CPU load average.
57f07fb521SKim, Milo	  The flash frequency is a hyperbolic function of the 1-minute
58f07fb521SKim, Milo	  load average.
59f07fb521SKim, Milo	  If unsure, say Y.
60f07fb521SKim, Milo
61f07fb521SKim, Miloconfig LEDS_TRIGGER_BACKLIGHT
62f07fb521SKim, Milo	tristate "LED backlight Trigger"
63f07fb521SKim, Milo	depends on LEDS_TRIGGERS
64f07fb521SKim, Milo	help
65f07fb521SKim, Milo	  This allows LEDs to be controlled as a backlight device: they
66f07fb521SKim, Milo	  turn off and on when the display is blanked and unblanked.
67f07fb521SKim, Milo
68f07fb521SKim, Milo	  If unsure, say N.
69f07fb521SKim, Milo
70f07fb521SKim, Miloconfig LEDS_TRIGGER_CPU
71f07fb521SKim, Milo	bool "LED CPU Trigger"
72f07fb521SKim, Milo	depends on LEDS_TRIGGERS
73f07fb521SKim, Milo	help
74f07fb521SKim, Milo	  This allows LEDs to be controlled by active CPUs. This shows
75f07fb521SKim, Milo	  the active CPUs across an array of LEDs so you can see which
76f07fb521SKim, Milo	  CPUs are active on the system at any given moment.
77f07fb521SKim, Milo
78f07fb521SKim, Milo	  If unsure, say N.
79f07fb521SKim, Milo
807df4f9a9SWilly Tarreauconfig LEDS_TRIGGER_ACTIVITY
817df4f9a9SWilly Tarreau	tristate "LED activity Trigger"
827df4f9a9SWilly Tarreau	depends on LEDS_TRIGGERS
837df4f9a9SWilly Tarreau	help
84a72d3b5dSGeert Uytterhoeven	  This allows LEDs to be controlled by an immediate CPU usage.
857df4f9a9SWilly Tarreau	  The flash frequency and duty cycle varies from faint flashes to
867df4f9a9SWilly Tarreau	  intense brightness depending on the instant CPU load.
877df4f9a9SWilly Tarreau	  If unsure, say N.
887df4f9a9SWilly Tarreau
89f07fb521SKim, Miloconfig LEDS_TRIGGER_GPIO
90f07fb521SKim, Milo	tristate "LED GPIO Trigger"
91f07fb521SKim, Milo	depends on LEDS_TRIGGERS
9282322741SGeert Uytterhoeven	depends on GPIOLIB || COMPILE_TEST
93f07fb521SKim, Milo	help
94f07fb521SKim, Milo	  This allows LEDs to be controlled by gpio events. It's good
95f07fb521SKim, Milo	  when using gpios as switches and triggering the needed LEDs
96f07fb521SKim, Milo	  from there. One use case is n810's keypad LEDs that could
97f07fb521SKim, Milo	  be triggered by this trigger when user slides up to show
98f07fb521SKim, Milo	  keypad.
99f07fb521SKim, Milo
100f07fb521SKim, Milo	  If unsure, say N.
101f07fb521SKim, Milo
102f07fb521SKim, Miloconfig LEDS_TRIGGER_DEFAULT_ON
103f07fb521SKim, Milo	tristate "LED Default ON Trigger"
104f07fb521SKim, Milo	depends on LEDS_TRIGGERS
105f07fb521SKim, Milo	help
106f07fb521SKim, Milo	  This allows LEDs to be initialised in the ON state.
107f07fb521SKim, Milo	  If unsure, say Y.
108f07fb521SKim, Milo
109f07fb521SKim, Milocomment "iptables trigger is under Netfilter config (LED target)"
110f07fb521SKim, Milo	depends on LEDS_TRIGGERS
111f07fb521SKim, Milo
112f07fb521SKim, Miloconfig LEDS_TRIGGER_TRANSIENT
113f07fb521SKim, Milo	tristate "LED Transient Trigger"
114f07fb521SKim, Milo	depends on LEDS_TRIGGERS
115f07fb521SKim, Milo	help
116f07fb521SKim, Milo	  This allows one time activation of a transient state on
117f07fb521SKim, Milo	  GPIO/PWM based hardware.
118f07fb521SKim, Milo	  If unsure, say Y.
119f07fb521SKim, Milo
12048a1d032SKim, Miloconfig LEDS_TRIGGER_CAMERA
12148a1d032SKim, Milo	tristate "LED Camera Flash/Torch Trigger"
12248a1d032SKim, Milo	depends on LEDS_TRIGGERS
12348a1d032SKim, Milo	help
12448a1d032SKim, Milo	  This allows LEDs to be controlled as a camera flash/torch device.
12548a1d032SKim, Milo	  This enables direct flash/torch on/off by the driver, kernel space.
12648a1d032SKim, Milo	  If unsure, say Y.
12748a1d032SKim, Milo
128916fe619SEzequiel Garciaconfig LEDS_TRIGGER_PANIC
129916fe619SEzequiel Garcia	bool "LED Panic Trigger"
130916fe619SEzequiel Garcia	depends on LEDS_TRIGGERS
131916fe619SEzequiel Garcia	help
132916fe619SEzequiel Garcia	  This allows LEDs to be configured to blink on a kernel panic.
133ba93cdceSEzequiel Garcia	  Enabling this option will allow to mark certain LEDs as panic indicators,
134ba93cdceSEzequiel Garcia	  allowing to blink them on a kernel panic, even if they are set to
135ba93cdceSEzequiel Garcia	  a different trigger.
136916fe619SEzequiel Garcia	  If unsure, say Y.
137916fe619SEzequiel Garcia
138*06f502f5SBen Whittenconfig LEDS_TRIGGER_NETDEV
139*06f502f5SBen Whitten	tristate "LED Netdev Trigger"
140*06f502f5SBen Whitten	depends on NET && LEDS_TRIGGERS
141*06f502f5SBen Whitten	help
142*06f502f5SBen Whitten	  This allows LEDs to be controlled by network device activity.
143*06f502f5SBen Whitten	  If unsure, say Y.
144*06f502f5SBen Whitten
145f07fb521SKim, Miloendif # LEDS_TRIGGERS
146