[PATCH net-next v3 0/3] net: dsa: microchip: Add strap description to set SPI as interface bus

Bastien Curutchet (Schneider Electric) posted 3 patches 1 week, 6 days ago
.../devicetree/bindings/net/dsa/microchip,ksz.yaml | 87 +++++++++++++---------
drivers/net/dsa/microchip/ksz_common.c             | 45 +++++++++++
2 files changed, 98 insertions(+), 34 deletions(-)
[PATCH net-next v3 0/3] net: dsa: microchip: Add strap description to set SPI as interface bus
Posted by Bastien Curutchet (Schneider Electric) 1 week, 6 days ago
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 a new property 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 v3:
- Replace the 'strap-rxd0-gpios/strap-rxd1-gpios' properties with one
  'straps-rxd-gpios' property that describes both GPIOs.
- Add Rob's acked-by on PATCH 0 and Andrew's reviewed-by on PATCH 2
- Link to v2: https://lore.kernel.org/r/20250912-ksz-strap-pins-v2-0-6d97270c6926@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 | 87 +++++++++++++---------
 drivers/net/dsa/microchip/ksz_common.c             | 45 +++++++++++
 2 files changed, 98 insertions(+), 34 deletions(-)
---
base-commit: 270d4d5a6cf3f2d9eee48e9cb8c138a975ddae81
change-id: 20250904-ksz-strap-pins-2d1305441325

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