Re: [PATCH net-next 3/3] net: dsa: lan9303: add LED mode configuration
From: Paul Louvel
Date: Fri Nov 27 2026 - 09:23:48 EST
Hi Andrew,
On Thu Nov 26, 2026 at 4:04 PM CET, Andrew Lunn wrote:
> Ah. This should of been in the cover letter...
>
> [Goes and looks at the data sheet]
>
> https://ww1.microchip.com/downloads/aemDocuments/documents/OTH/ProductDocuments/DataSheets/00002308A.pdf
>
> So you have the choice of using the pin as a GPIO. So you can
> implement pure on/off. That gives you the minimum you need for
> /sys/class/leds.
>
> TABLE 12-1: LED OPERATION AS A FUNCTION OF LED_FUN[1:0]
>
> The functions are rather scattered all over the place, but i don't see
> a blocker to supporting hardware offload. It will be messy, yes, but
> possible.
>
> We have been pushing back on vendor properties for LEDs for a number
> of years, so i don't really want to add one now.
>
> Andrew
Thanks for pointing me in the right direction.
At first, I thought that the fact that this PHY has a single field for all LEDs
function would make the vendor property somewhat acceptable.
Best regards,
--
Paul Louvel, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com