]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dt-bindings: net: dsa: microchip: Add strap description to set SPI mode
authorBastien Curutchet (Schneider Electric) <bastien.curutchet@bootlin.com>
Thu, 18 Sep 2025 08:33:51 +0000 (10:33 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 22 Sep 2025 23:31:17 +0000 (16:31 -0700)
commite469b87e0fb0d1209edb6c291474b1a1afa45bd5
tree551acd6cc4c24f77ae190b0e6c002bd4058d96f9
parent6bd5b7297c95e6982cf0aee192431156681a1cdd
dt-bindings: net: dsa: microchip: Add strap description to set SPI mode

At reset, 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.

Add a 'reset' pinmux state
Add a KSZ8463 specific strap description that can be used by the driver
to drive the strap pins during reset. Two GPIOs are used. Users must
describe either both of them or none of them.

Signed-off-by: Bastien Curutchet (Schneider Electric) <bastien.curutchet@bootlin.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://patch.msgid.link/20250918-ksz-strap-pins-v3-2-16662e881728@bootlin.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml