Skip to content

Multicolor LED support v2

Add support for multicolor LEDs such as from the Qualcomm LPG driver: https://git.kernel.org/pub/scm/linux/kernel/git/pavel/linux-leds.git/commit/?h=for-next&id=24e2d05d1b68981f22c984c766fabc5a93c83dba

This MR supersedes !41 (closed) and fixes the TODOs of !41 (closed):

  • Read multi_index so we set the colors correctly depending on the order the driver expects. On the SHIFT 6mq this is blue green red.
  • Apply max_brightness values for multi_intensity

EDIT:

  • Missing KConfig made the pattern work.
  • Added support for hw_pattern as well, LED still works now even when main SoC is suspended.
Edited by Dylan Van Assche

Merge request reports