mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paul Louvel <paul.louvel@bootlin.com>
To: Andrew Lunn <andrew@lunn.ch>, Vladimir Oltean <olteanv@gmail.com>,
	 "David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	 Jakub Kicinski <kuba@kernel.org>,
	Paolo Abeni <pabeni@redhat.com>,  Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	 Conor Dooley <conor+dt@kernel.org>, Frank Li <Frank.Li@nxp.com>,
	 Jerry Ray <jerry.ray@microchip.com>
Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org,
	 linux-kernel@vger.kernel.org, Bo Mellberg <bo.mellberg@se.com>,
	 Pascal Eberhard <pascal.eberhard@se.com>,
	 Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
	 Miquel Raynal <miquel.raynal@bootlin.com>,
	 Paul Louvel <paul.louvel@bootlin.com>
Subject: [PATCH net-next 0/3] net: dsa: lan9303: add LED mode configuration
Date: Thu, 26 Nov 2026 15:13:42 +0100	[thread overview]
Message-ID: <20261126-lan9303-leds-v1-0-a96731317859@bootlin.com> (raw)

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


             reply	other threads:[~2026-11-26 14:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26 14:13 Paul Louvel [this message]
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-26 14:52 ` [PATCH net-next 0/3] " Andrew Lunn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261126-lan9303-leds-v1-0-a96731317859@bootlin.com \
    --to=paul.louvel@bootlin.com \
    --cc=Frank.Li@nxp.com \
    --cc=andrew@lunn.ch \
    --cc=bo.mellberg@se.com \
    --cc=conor+dt@kernel.org \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=edumazet@kernel.org \
    --cc=jerry.ray@microchip.com \
    --cc=krzk+dt@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=miquel.raynal@bootlin.com \
    --cc=netdev@vger.kernel.org \
    --cc=olteanv@gmail.com \
    --cc=pabeni@redhat.com \
    --cc=pascal.eberhard@se.com \
    --cc=robh@kernel.org \
    --cc=thomas.petazzoni@bootlin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®