netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/3] net: dsa: microchip: Add strap description to set SPI as interface bus
@ 2025-09-12  9:09 Bastien Curutchet (Schneider Electric)
  2025-09-12  9:09 ` [PATCH net-next v2 1/3] dt-bindings: net: dsa: microchip: Group if clause under allOf tag Bastien Curutchet (Schneider Electric)
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Bastien Curutchet (Schneider Electric) @ 2025-09-12  9:09 UTC (permalink / raw)
  To: Woojung Huh, UNGLinuxDriver, Andrew Lunn, Vladimir Oltean,
	David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Marek Vasut
  Cc: Thomas Petazzoni, Miquèl Raynal, Pascal Eberhard,
	Woojung Huh, netdev, devicetree, linux-kernel,
	Bastien Curutchet (Schneider Electric)

Hi all,

At reset, the KSZ8463 uses a strap-based configuration to set SPI as
interface bus. If the required pull-ups/pull-downs are missing (by
mistake or by design to save power) the pins may float and the
configuration can go wrong preventing any communication with the switch.

This small series aims to allow to configure the KSZ8463 switch at
reset when the hardware straps are missing.

PATCH 0 and 1 add new properties to the bindings that describes the GPIOs
to be set during reset in order to configure the switch properly.

PATCH 2 implements the use of these properties in the driver.

Signed-off-by: Bastien Curutchet (Schneider Electric) <bastien.curutchet@bootlin.com>
---
Changes in v2:
- Make the changes specific to the KSZ8463 both in the bindings and in
  the driver.
- Link to v1: https://lore.kernel.org/r/20250910-ksz-strap-pins-v1-0-6308bb2e139e@bootlin.com

---
Bastien Curutchet (1):
      net: dsa: microchip: Set SPI as bus interface during reset for KSZ8463

Bastien Curutchet (Schneider Electric) (2):
      dt-bindings: net: dsa: microchip: Group if clause under allOf tag
      dt-bindings: net: dsa: microchip: Add strap description to set SPI mode

 .../devicetree/bindings/net/dsa/microchip,ksz.yaml | 92 ++++++++++++++--------
 drivers/net/dsa/microchip/ksz_common.c             | 45 +++++++++++
 2 files changed, 103 insertions(+), 34 deletions(-)
---
base-commit: d0b93fbf220b2e7be093ac336eba3433cf3cd6f0
change-id: 20250904-ksz-strap-pins-2d1305441325

Best regards,
-- 
Bastien Curutchet (Schneider Electric) <bastien.curutchet@bootlin.com>


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

end of thread, other threads:[~2025-09-15 22:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-12  9:09 [PATCH net-next v2 0/3] net: dsa: microchip: Add strap description to set SPI as interface bus Bastien Curutchet (Schneider Electric)
2025-09-12  9:09 ` [PATCH net-next v2 1/3] dt-bindings: net: dsa: microchip: Group if clause under allOf tag Bastien Curutchet (Schneider Electric)
2025-09-15 21:12   ` Rob Herring (Arm)
2025-09-12  9:09 ` [PATCH net-next v2 2/3] dt-bindings: net: dsa: microchip: Add strap description to set SPI mode Bastien Curutchet (Schneider Electric)
2025-09-15 21:10   ` Rob Herring
2025-09-12  9:09 ` [PATCH net-next v2 3/3] net: dsa: microchip: Set SPI as bus interface during reset for KSZ8463 Bastien Curutchet
2025-09-15 22:00   ` Andrew Lunn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).