linux/drivers/net/dsa/microchip
Bastien Curutchet a0b977a3d1 net: dsa: microchip: Set SPI as bus interface during reset for KSZ8463
At reset, the KSZ8463 uses a strap-based configuration to set SPI as
bus interface. SPI is the only bus supported by the driver. 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.

Introduce a ksz8463_configure_straps_spi() function called during the
device reset. It relies on the 'straps-rxd-gpios' OF property and the
'reset' pinmux configuration to enforce SPI as bus interface.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Bastien Curutchet (Schneider Electric) <bastien.curutchet@bootlin.com>
Link: https://patch.msgid.link/20250918-ksz-strap-pins-v3-3-16662e881728@bootlin.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-09-22 16:31:18 -07:00
..
Kconfig net: dsa: microchip: Add SGMII port support to KSZ9477 switch 2025-05-26 17:15:51 +02:00
ksz8.c net: dsa: microchip: Fix KSZ8863 reset problem 2025-08-08 13:18:18 -07:00
ksz8.h net: dsa: microchip: Add KSZ8463 switch support to KSZ DSA driver 2025-07-25 17:01:56 -07:00
ksz8_reg.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2025-07-26 11:49:45 -07:00
ksz8863_smi.c net: dsa: microchip: replace unclear KSZ8830 strings 2024-09-06 08:41:35 +01:00
ksz9477.c net: dsa: microchip: Add SGMII port support to KSZ9477 switch 2025-05-26 17:15:51 +02:00
ksz9477.h net: dsa: microchip: Add SGMII port support to KSZ9477 switch 2025-05-26 17:15:51 +02:00
ksz9477_acl.c
ksz9477_i2c.c net: dsa: microchip: Add suspend/resume support to KSZ DSA driver 2024-12-19 18:05:57 -08:00
ksz9477_reg.h net: dsa: microchip: Fix KSZ9477 set_ageing_time function 2024-12-19 18:04:04 -08:00
ksz9477_tc_flower.c
ksz_common.c net: dsa: microchip: Set SPI as bus interface during reset for KSZ8463 2025-09-22 16:31:18 -07:00
ksz_common.h net: dsa: microchip: Add KSZ8463 switch support to KSZ DSA driver 2025-07-25 17:01:56 -07:00
ksz_dcb.c net: dsa: microchip: Use different registers for KSZ8463 2025-07-25 17:01:56 -07:00
ksz_dcb.h net: dsa: microchip: add support DSCP priority mapping 2024-05-08 10:35:11 +01:00
ksz_ptp.c net: Use dev_fwnode() 2025-06-12 18:46:37 -07:00
ksz_ptp.h net: dsa: convert to ndo_hwtstamp_get() and ndo_hwtstamp_set() 2025-05-09 16:34:09 -07:00
ksz_ptp_reg.h
ksz_spi.c net: dsa: microchip: Add KSZ8463 switch support to KSZ DSA driver 2025-07-25 17:01:56 -07:00
lan937x.h net: dsa: microchip: add support for side MDIO interface in LAN937x 2024-11-11 16:04:32 -08:00
lan937x_main.c net: dsa: microchip: Fix LAN937X set_ageing_time function 2024-12-19 18:04:04 -08:00
lan937x_reg.h net: dsa: microchip: Fix LAN937X set_ageing_time function 2024-12-19 18:04:04 -08:00
Makefile net: dsa: microchip: rename ksz8 series files 2024-09-06 08:41:35 +01:00