[net-next PATCH v5 15/15] arm: mvebu: dt: Add PHY LED support for 370-rd WAN port
Andrew Lunn
andrew at lunn.ch
Thu Mar 23 12:53:02 PDT 2023
> > Hi Pavel
> >
> > It is just a plain boring LED, so it will look like all other LEDs.
> > There is nothing special here.
>
> Well, AFAICT it will end up as /sys/class/leds/WAN, which is really
> not what we want.
Why not? It is just a plain boring LED. It can be used for anything,
heartbeat, panic SOS in Morse code, shift lock, disk activity. Any of
the triggers can be applied to it.
It can be found in /sys/class/leds/f1072004.mdio-mii:00:WAN. But when
we come to using it for ledtrig-netdev, the user is more likely to follow
/sys/class/net/eth0/phydev/leds/f1072004.mdio-mii\:00\:WAN/
> (Plus the netdev trigger should be tested; we'll
> need some kind of link to the ethernet device if we want this to work
> on multi-ethernet systems).
Since this is a plain boring LED, it could actually blink for any
netdev. When we get to offloading blinking to hardware, then things
change, we need to check the netdev which is configured in the
ledtrig-netdev is the same one the PHY is associated to. But i have a
patchset for that which will appear later.
> Should documentation be added to Documentation/leds/well-known-leds.txt ?
Saying what. That there might be LEDs in your RJ45 connector, which
can be used for anything which is supported by an Linux LED trigger?
Andrew
More information about the linux-arm-kernel
mailing list