Kconfig 1.4 KB

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