mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] net: dsa: lan9303: add LED mode configuration
@ 2026-11-26 14:13 Paul Louvel
  2026-11-26 14:13 ` [PATCH net-next 1/3] dt-bindings: net: dsa: lan9303: add Microchip LAN9354 compatible Paul Louvel
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Paul Louvel @ 2026-11-26 14:13 UTC (permalink / raw)
  To: Andrew Lunn, Vladimir Oltean, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Frank Li, Jerry Ray
  Cc: netdev, devicetree, linux-kernel, Bo Mellberg, Pascal Eberhard,
	Thomas Petazzoni, Miquel Raynal, Paul Louvel

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@lunn.ch/

Thanks.

Signed-off-by: Paul Louvel <paul.louvel@bootlin.com>
---
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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-11-27 14:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-26 14:13 [PATCH net-next 0/3] net: dsa: lan9303: add LED mode configuration Paul Louvel
2026-11-26 14:13 ` [PATCH net-next 1/3] dt-bindings: net: dsa: lan9303: add Microchip LAN9354 compatible Paul Louvel
2026-11-26 14:13 ` [PATCH net-next 2/3] dt-bindings: net: dsa: lan9303: add smsc,led-mode property Paul Louvel
2026-11-26 14:13 ` [PATCH net-next 3/3] net: dsa: lan9303: add LED mode configuration Paul Louvel
2026-11-26 15:04   ` Andrew Lunn
2026-11-27 14:23     ` Paul Louvel
2026-11-26 14:52 ` [PATCH net-next 0/3] " Andrew Lunn
2026-11-27 14:24   ` Paul Louvel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®