[PATCH net-next 0/3] net: dsa: lan9303: add LED mode configuration

From: Paul Louvel

Date: Thu Nov 26 2026 - 09:14:28 EST


Hello,

The LAN9303 and LAN9354 has 6 different LEDs, 3 LEDs are used per
external port.
On some boards the LED straps double as configuration straps for other
functions, such as the PHY address or the EEPROM size, so the desired
LED mode cannot be strapped and has to be programmed by the driver.

This series add the ability to program the LEDs function via the
vendor-defined property 'smsc,led-mode' at setup.

The first commit document the compatible LAN9354 that is missing in the
bindings. The binding was converted to YAML, but the compatible property
was never added [1].

[1]: https://lore.kernel.org/all/Yw0R7u1qV9tLSCnu@xxxxxxx/

Thanks.

Signed-off-by: Paul Louvel <paul.louvel@xxxxxxxxxxx>
---
Paul Louvel (3):
dt-bindings: net: dsa: lan9303: add Microchip LAN9354 compatible
dt-bindings: net: dsa: lan9303: add smsc,led-mode property
net: dsa: lan9303: add LED mode configuration

.../devicetree/bindings/net/dsa/smsc,lan9303.yaml | 35 ++++++++--
drivers/net/dsa/lan9303-core.c | 74 +++++++++++++++++++++-
include/linux/dsa/lan9303.h | 8 +++
3 files changed, 111 insertions(+), 6 deletions(-)
---
base-commit: 3dd8c790a7b7027abdd568e36db5e82ffaea7c77
change-id: 20261125-lan9303-leds-aa7c7871b4fd

Best regards,
--
Paul Louvel, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com