blob: 689dee5c40fa88819ed005c80c5fa16fbe93f22b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
menuconfig RT_USING_LED
bool "Using Light Emitting Diode (LED) device drivers"
depends on RT_USING_DM
default n
help
Enable the LED framework so on-board indicators described in device tree
can be registered and controlled via `rt_led_set_state()` (on/off/blink).
The core parses LED nodes, exports sysfs-like control via IPC, and lets
other subsystems (for example triggers) manipulate them. Disable it when
the hardware has no controllable LEDs.
config RT_LED_GPIO
bool "GPIO connected LEDs Support"
depends on RT_USING_LED
depends on RT_USING_PINCTRL
depends on RT_USING_OFW
default n
help
Provide the GPIO-backed LED driver that maps each `leds` device-tree node
to a pin, honours `default-state`/`default-trigger`, and optionally
applies pinctrl states per LED. Enable this for the common case where
LEDs are tied directly to GPIOs; leave disabled if LEDs are driven through
a different bus (I2C expanders, PMICs, etc.).
config RT_LED_PWM
bool "PWM driven LEDs Support"
depends on RT_USING_LED
depends on RT_USING_PWM
depends on RT_USING_OFW
default n
config RT_LED_SYSCON
bool "System controllers connected LEDs Support"
depends on RT_USING_LED
depends on RT_MFD_SYSCON
default n
if RT_USING_LED
osource "$(SOC_DM_LED_DIR)/Kconfig"
endif
|