Re: [PATCH v5 1/2] leds: trigger: netdev: display only supported link speed attribute

From: Andrew Lunn
Date: Fri Dec 22 2023 - 04:02:57 EST


> I am also wondering if this sysfs ABI could be extended for multi-color
> LEDs.
>
> For example:
> echo green >link_1000
> echo yellow >link_100
>
> Or something like that. But that is a completely different discussion.

I've not looked at how the LED core code supports this.

You do see bi-colour LEDs. They are basically two LEDs head to
tail. You positively bias them and they are one colour, you negatively
bias them and they are a second colour. The two colours are mutually
exclusive.

It is also possible to have two LEDs co-located. That should already
supported, since you can control each LED independently.

It would be good to describe your hardware. We can then figure out how
they LED subsystem should support it.

Andrew