Blinking of the paired LEDs

Alexander A. Filippov a.filippov at yadro.com
Wed Oct 27 05:40:57 AEDT 2021


> >
> >Does anybody have suggestions about any better solution?
>
> I'd suggest going a level higher by defining the LED to the kernel
> as single instance of the multi-color led class.  While the class is
> described for full RGB controls, I believe a red green led controlled
> by 2 gpios in one bank is well within both the LED and GPIO
> kernel specifications (I don't know if you have chosen gpios
> in the same bank or even if you are using gpios to control it).
> 
> 
> https://github.com/openbmc/linux/blob/dev-5.10/Documentation/leds/leds-class-multicolor.rst
> 


Yes, I've seen this feature but couldn't get it to work with gpio-leds.
I have concluded that gpio-leds does not support multi-led.

The kernel driver modification seems to me a little bit more complex,
but probably you are right, it looks like a better solution.

Thanks for your advice.


More information about the openbmc mailing list