[no subject]
From: Alessandro Zini
Date: Fri Sep 18 2026 - 18:51:53 EST
Subject: [PATCH net-next v3 0/4] net: ethernet: oa_tc6: add reset-gpios
support
This series adds optional reset GPIO support for OPEN Alliance 10BASE-T1x
MAC-PHY devices using the OA TC6 library, and documents the property for
the two MAC-PHYs currently bound to it.
Patch 1 and 2 document the optional reset-gpios property for the Microchip
LAN8650/1 and for the ADI ADIN1140/AD3306.
Patch 3 converts oa_tc6_init() to return an ERR_PTR instead of NULL, so
that -EPROBE_DEFER from the GPIO lookup added in patch 4 reaches the
driver core instead of being turned into -ENODEV.
Patch 4 implements optional reset GPIO handling in the common oa_tc6
library. The reset line is requested asserted, kept asserted for 10 us and
1 ms of settle time is allowed after deassertion for the crystal
oscillator startup, before the OPEN Alliance TC6 communication is started.
Changes in v3:
- Picked up Acked-by tag from Krzysztof on patch 1.
- Added patch 2, documenting the property for adi,ad3306 as well, since
the reset handling lives in the common library and the adin1140 driver
gets it too.
- Added patch 3, converting oa_tc6_init() to ERR_PTR, so that
-EPROBE_DEFER is not lost.
- In patch 4, requested the GPIO with GPIOD_OUT_HIGH and dropped the now
redundant gpiod_set_value_cansleep() call, as suggested by Qingfang
Deng, propagated the dev_err_probe() return value, reworded the comment
and sorted the new includes.
Changes in v2:
- Moved reset-gpios handling from the lan865x driver into the common oa_tc6
library (drivers/net/ethernet/oa_tc6.c), so all MAC-PHY devices can make
use of it, as suggested by Parthiban Veerasooran.
Alessandro Zini (4):
dt-bindings: net: microchip,lan8650: add reset-gpios property
dt-bindings: net: adi,ad3306: add reset-gpios property
net: ethernet: oa_tc6: return ERR_PTR from oa_tc6_init()
net: ethernet: oa_tc6: add reset-gpios support
.../devicetree/bindings/net/adi,ad3306.yaml | 5 ++
.../bindings/net/microchip,lan8650.yaml | 5 ++
drivers/net/ethernet/adi/adin1140.c | 4 +-
.../net/ethernet/microchip/lan865x/lan865x.c | 4 +-
drivers/net/ethernet/oa_tc6.c | 46 +++++++++++++------
5 files changed, 47 insertions(+), 17 deletions(-)
--
2.55.0