netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] net: dsa: microchip: Add strap configuration during reset
@ 2025-09-10 14:55 Bastien Curutchet
  2025-09-10 14:55 ` [PATCH net-next 1/2] dt-bindings: net: dsa: microchip: Add strap description Bastien Curutchet
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Bastien Curutchet @ 2025-09-10 14:55 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,

This small series aims to allow to configure the KSZ8463 switch at
reset. This configuration is determined by pin states while the chip is
held in reset. Normally, this kind of configuration is handled with
pull-ups/pull-downs. However, in some designs these pull-ups/pull-downs
can be missing (either intentionally to save power or simply by mistake).
In such cases, we need to manually drive the configuration pins during
reset to ensure the switch is set up correctly.

PATCH 0 adds a new property to the bindings that describes the GPIOs to
be set during reset in order to configure the switch properly. Alongside
this new property, a new 'reset' pinctrl state is introduced.

PATCH 1 implements the use of this property in the driver. I only have a
KSZ8463 to test with, so only its configuration is supported.

Signed-off-by: Bastien Curutchet (Schneider Electric) <bastien.curutchet@bootlin.com>
---
Bastien Curutchet (2):
      dt-bindings: net: dsa: microchip: Add strap description
      net: dsa: microchip: configure strap pins during reset

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

Best regards,
-- 
Bastien Curutchet <bastien.curutchet@bootlin.com>


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

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

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-10 14:55 [PATCH net-next 0/2] net: dsa: microchip: Add strap configuration during reset Bastien Curutchet
2025-09-10 14:55 ` [PATCH net-next 1/2] dt-bindings: net: dsa: microchip: Add strap description Bastien Curutchet
2025-09-10 14:55 ` [PATCH net-next 2/2] net: dsa: microchip: configure strap pins during reset Bastien Curutchet
2025-09-10 15:38   ` Miquel Raynal
2025-09-11 11:22     ` Bastien Curutchet
2025-09-10 16:46   ` Andrew Lunn
2025-09-11  8:04     ` Bastien Curutchet
2025-09-11 10:53   ` Parthiban.Veerasooran
2025-09-10 16:27 ` [PATCH net-next 0/2] net: dsa: microchip: Add strap configuration " 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).