Kernel config request: CONFIG_LEDS_CLASS_MULTICOLOR

Many embedded devices these days use RGB (or other multiple-colour) LEDs and the Linux kernel does have the concept of binding individual LEDs together to associate them as a multicolour entity. Some multi-channel chips (e.g LP55xx) even support it directly in their driver code.

https://docs.kernel.org/leds/leds-class-multicolor.html

Would you consider enabling
CONFIG_LEDS_CLASS_MULTICOLOR as a Toradex kernel config change?

The code itself states it can be built as a module, but doing so out-of-band (e.g. via the TCB driver build step) does not work as there are functions in /include/linux/led-class-multicolor.h that change depending on whether multicolour support is enabled. Since it is not currently, the module cannot be built or side-loaded.

Greetings @bw908,

Sure thing, I’ll go ahead and put in the request to enable CONFIG_LEDS_CLASS_MULTICOLOR. As usual I’ll let you know once there’s an update regarding this request.

Best Regards,
Jeremias

1 Like

Awesome, thanks!

Alright, the team went ahead and enabled this config on the latest nightly builds as seen here:

torizon@apalis-imx8-06738453:~$ cat /etc/os-release
ID=torizon
NAME="TorizonCore"
VERSION="6.6.0-devel-20240316+build.532 (kirkstone)"
VERSION_ID=6.6.0-devel-20240316-build.532
PRETTY_NAME="TorizonCore 6.6.0-devel-20240316+build.532 (kirkstone)"
DISTRO_CODENAME="kirkstone"
BUILD_ID="532"
ANSI_COLOR="1;34"
VARIANT="Docker"
torizon@apalis-imx8-06738453:~$ zcat /proc/config.gz | grep CONFIG_LEDS_CLASS_MULTICOLOR
CONFIG_LEDS_CLASS_MULTICOLOR=m

Best Regards,
Jeremias

1 Like