[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250912-ksz-strap-pins-v2-0-6d97270c6926@bootlin.com>
Date: Fri, 12 Sep 2025 11:09:11 +0200
From: "Bastien Curutchet (Schneider Electric)" <bastien.curutchet@...tlin.com>
To: Woojung Huh <woojung.huh@...rochip.com>, UNGLinuxDriver@...rochip.com,
Andrew Lunn <andrew@...n.ch>, Vladimir Oltean <olteanv@...il.com>,
"David S. Miller" <davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
Rob Herring <robh@...nel.org>, Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, Marek Vasut <marex@...x.de>
Cc: Thomas Petazzoni <thomas.petazzoni@...tlin.com>,
Miquèl Raynal <miquel.raynal@...tlin.com>,
Pascal Eberhard <pascal.eberhard@...com>,
Woojung Huh <Woojung.Huh@...rochip.com>, netdev@...r.kernel.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
"Bastien Curutchet (Schneider Electric)" <bastien.curutchet@...tlin.com>
Subject: [PATCH net-next v2 0/3] net: dsa: microchip: Add strap description
to set SPI as interface bus
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@...tlin.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@...tlin.com>
Powered by blists - more mailing lists