18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only 28c2ecf20Sopenharmony_cimenuconfig LEDS_TRIGGERS 38c2ecf20Sopenharmony_ci bool "LED Trigger support" 48c2ecf20Sopenharmony_ci depends on LEDS_CLASS 58c2ecf20Sopenharmony_ci help 68c2ecf20Sopenharmony_ci This option enables trigger support for the leds class. 78c2ecf20Sopenharmony_ci These triggers allow kernel events to drive the LEDs and can 88c2ecf20Sopenharmony_ci be configured via sysfs. If unsure, say Y. 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ciif LEDS_TRIGGERS 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ciconfig LEDS_TRIGGER_TIMER 138c2ecf20Sopenharmony_ci tristate "LED Timer Trigger" 148c2ecf20Sopenharmony_ci help 158c2ecf20Sopenharmony_ci This allows LEDs to be controlled by a programmable timer 168c2ecf20Sopenharmony_ci via sysfs. Some LED hardware can be programmed to start 178c2ecf20Sopenharmony_ci blinking the LED without any further software interaction. 188c2ecf20Sopenharmony_ci For more details read Documentation/leds/leds-class.rst. 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci If unsure, say Y. 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ciconfig LEDS_TRIGGER_ONESHOT 238c2ecf20Sopenharmony_ci tristate "LED One-shot Trigger" 248c2ecf20Sopenharmony_ci help 258c2ecf20Sopenharmony_ci This allows LEDs to blink in one-shot pulses with parameters 268c2ecf20Sopenharmony_ci controlled via sysfs. It's useful to notify the user on 278c2ecf20Sopenharmony_ci sporadic events, when there are no clear begin and end trap points, 288c2ecf20Sopenharmony_ci or on dense events, where this blinks the LED at constant rate if 298c2ecf20Sopenharmony_ci rearmed continuously. 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci It also shows how to use the led_blink_set_oneshot() function. 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ci If unsure, say Y. 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ciconfig LEDS_TRIGGER_DISK 368c2ecf20Sopenharmony_ci bool "LED Disk Trigger" 378c2ecf20Sopenharmony_ci depends on IDE_GD_ATA || ATA 388c2ecf20Sopenharmony_ci help 398c2ecf20Sopenharmony_ci This allows LEDs to be controlled by disk activity. 408c2ecf20Sopenharmony_ci If unsure, say Y. 418c2ecf20Sopenharmony_ci 428c2ecf20Sopenharmony_ciconfig LEDS_TRIGGER_MTD 438c2ecf20Sopenharmony_ci bool "LED MTD (NAND/NOR) Trigger" 448c2ecf20Sopenharmony_ci depends on MTD 458c2ecf20Sopenharmony_ci help 468c2ecf20Sopenharmony_ci This allows LEDs to be controlled by MTD activity. 478c2ecf20Sopenharmony_ci If unsure, say N. 488c2ecf20Sopenharmony_ci 498c2ecf20Sopenharmony_ciconfig LEDS_TRIGGER_HEARTBEAT 508c2ecf20Sopenharmony_ci tristate "LED Heartbeat Trigger" 518c2ecf20Sopenharmony_ci help 528c2ecf20Sopenharmony_ci This allows LEDs to be controlled by a CPU load average. 538c2ecf20Sopenharmony_ci The flash frequency is a hyperbolic function of the 1-minute 548c2ecf20Sopenharmony_ci load average. 558c2ecf20Sopenharmony_ci If unsure, say Y. 568c2ecf20Sopenharmony_ci 578c2ecf20Sopenharmony_ciconfig LEDS_TRIGGER_BACKLIGHT 588c2ecf20Sopenharmony_ci tristate "LED backlight Trigger" 598c2ecf20Sopenharmony_ci help 608c2ecf20Sopenharmony_ci This allows LEDs to be controlled as a backlight device: they 618c2ecf20Sopenharmony_ci turn off and on when the display is blanked and unblanked. 628c2ecf20Sopenharmony_ci 638c2ecf20Sopenharmony_ci If unsure, say N. 648c2ecf20Sopenharmony_ci 658c2ecf20Sopenharmony_ciconfig LEDS_TRIGGER_CPU 668c2ecf20Sopenharmony_ci bool "LED CPU Trigger" 678c2ecf20Sopenharmony_ci help 688c2ecf20Sopenharmony_ci This allows LEDs to be controlled by active CPUs. This shows 698c2ecf20Sopenharmony_ci the active CPUs across an array of LEDs so you can see which 708c2ecf20Sopenharmony_ci CPUs are active on the system at any given moment. 718c2ecf20Sopenharmony_ci 728c2ecf20Sopenharmony_ci If unsure, say N. 738c2ecf20Sopenharmony_ci 748c2ecf20Sopenharmony_ciconfig LEDS_TRIGGER_ACTIVITY 758c2ecf20Sopenharmony_ci tristate "LED activity Trigger" 768c2ecf20Sopenharmony_ci help 778c2ecf20Sopenharmony_ci This allows LEDs to be controlled by an immediate CPU usage. 788c2ecf20Sopenharmony_ci The flash frequency and duty cycle varies from faint flashes to 798c2ecf20Sopenharmony_ci intense brightness depending on the instant CPU load. 808c2ecf20Sopenharmony_ci If unsure, say N. 818c2ecf20Sopenharmony_ci 828c2ecf20Sopenharmony_ciconfig LEDS_TRIGGER_GPIO 838c2ecf20Sopenharmony_ci tristate "LED GPIO Trigger" 848c2ecf20Sopenharmony_ci depends on GPIOLIB || COMPILE_TEST 858c2ecf20Sopenharmony_ci help 868c2ecf20Sopenharmony_ci This allows LEDs to be controlled by gpio events. It's good 878c2ecf20Sopenharmony_ci when using gpios as switches and triggering the needed LEDs 888c2ecf20Sopenharmony_ci from there. One use case is n810's keypad LEDs that could 898c2ecf20Sopenharmony_ci be triggered by this trigger when user slides up to show 908c2ecf20Sopenharmony_ci keypad. 918c2ecf20Sopenharmony_ci 928c2ecf20Sopenharmony_ci If unsure, say N. 938c2ecf20Sopenharmony_ci 948c2ecf20Sopenharmony_ciconfig LEDS_TRIGGER_DEFAULT_ON 958c2ecf20Sopenharmony_ci tristate "LED Default ON Trigger" 968c2ecf20Sopenharmony_ci help 978c2ecf20Sopenharmony_ci This allows LEDs to be initialised in the ON state. 988c2ecf20Sopenharmony_ci If unsure, say Y. 998c2ecf20Sopenharmony_ci 1008c2ecf20Sopenharmony_cicomment "iptables trigger is under Netfilter config (LED target)" 1018c2ecf20Sopenharmony_ci depends on LEDS_TRIGGERS 1028c2ecf20Sopenharmony_ci 1038c2ecf20Sopenharmony_ciconfig LEDS_TRIGGER_TRANSIENT 1048c2ecf20Sopenharmony_ci tristate "LED Transient Trigger" 1058c2ecf20Sopenharmony_ci help 1068c2ecf20Sopenharmony_ci This allows one time activation of a transient state on 1078c2ecf20Sopenharmony_ci GPIO/PWM based hardware. 1088c2ecf20Sopenharmony_ci If unsure, say Y. 1098c2ecf20Sopenharmony_ci 1108c2ecf20Sopenharmony_ciconfig LEDS_TRIGGER_CAMERA 1118c2ecf20Sopenharmony_ci tristate "LED Camera Flash/Torch Trigger" 1128c2ecf20Sopenharmony_ci help 1138c2ecf20Sopenharmony_ci This allows LEDs to be controlled as a camera flash/torch device. 1148c2ecf20Sopenharmony_ci This enables direct flash/torch on/off by the driver, kernel space. 1158c2ecf20Sopenharmony_ci If unsure, say Y. 1168c2ecf20Sopenharmony_ci 1178c2ecf20Sopenharmony_ciconfig LEDS_TRIGGER_PANIC 1188c2ecf20Sopenharmony_ci bool "LED Panic Trigger" 1198c2ecf20Sopenharmony_ci help 1208c2ecf20Sopenharmony_ci This allows LEDs to be configured to blink on a kernel panic. 1218c2ecf20Sopenharmony_ci Enabling this option will allow to mark certain LEDs as panic indicators, 1228c2ecf20Sopenharmony_ci allowing to blink them on a kernel panic, even if they are set to 1238c2ecf20Sopenharmony_ci a different trigger. 1248c2ecf20Sopenharmony_ci If unsure, say Y. 1258c2ecf20Sopenharmony_ci 1268c2ecf20Sopenharmony_ciconfig LEDS_TRIGGER_NETDEV 1278c2ecf20Sopenharmony_ci tristate "LED Netdev Trigger" 1288c2ecf20Sopenharmony_ci depends on NET 1298c2ecf20Sopenharmony_ci help 1308c2ecf20Sopenharmony_ci This allows LEDs to be controlled by network device activity. 1318c2ecf20Sopenharmony_ci If unsure, say Y. 1328c2ecf20Sopenharmony_ci 1338c2ecf20Sopenharmony_ciconfig LEDS_TRIGGER_PATTERN 1348c2ecf20Sopenharmony_ci tristate "LED Pattern Trigger" 1358c2ecf20Sopenharmony_ci help 1368c2ecf20Sopenharmony_ci This allows LEDs to be controlled by a software or hardware pattern 1378c2ecf20Sopenharmony_ci which is a series of tuples, of brightness and duration (ms). 1388c2ecf20Sopenharmony_ci If unsure, say N 1398c2ecf20Sopenharmony_ci 1408c2ecf20Sopenharmony_ciconfig LEDS_TRIGGER_AUDIO 1418c2ecf20Sopenharmony_ci tristate "Audio Mute LED Trigger" 1428c2ecf20Sopenharmony_ci help 1438c2ecf20Sopenharmony_ci This allows LEDs to be controlled by audio drivers for following 1448c2ecf20Sopenharmony_ci the audio mute and mic-mute changes. 1458c2ecf20Sopenharmony_ci If unsure, say N 1468c2ecf20Sopenharmony_ci 1478c2ecf20Sopenharmony_ciendif # LEDS_TRIGGERS 148