* [PATCH] arm64: dts: st: fix ethernet2 PHY reset deassert delay on stm32mp257f-ev1
@ 2026-12-06 8:54 Maxime Chevallier
0 siblings, 0 replies; only message in thread
From: Maxime Chevallier @ 2026-12-06 8:54 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Maxime Coquelin,
Alexandre Torgue, Christophe Roullier, Marek Vasut, Andrew Lunn
Cc: Maxime Chevallier, Köry Maincent, thomas.petazzoni,
devicetree, linux-stm32, linux-arm-kernel, linux-kernel
The 2 network interfaces on the stm32mp257f EV1 devkit have the same
characteristics. It's the same kind of MAC, and the same Realtek
RTL8211F PHY is used.
However ethernet1's PHY has a reset deassert delay of 80ms, whereas the
one on ethernet2 has only 300 microseconds, which is way too short.
The PHY needs more time to come out of reset.
This causes some bad register values to be read at PHY bringup,
especially the PHY capabilities appear corrupted.
ethernet2's PHY reports 1000BaseX support, and no EEE available, whereas
it can do EEE but can't do fiber.
Bump the deassert delay to 80ms, like on ethernet1.
The value comes purely from the ethernet1 configuration, not from
datasheets. Looking at other DT files for boards with a similar PHY,
it's always in the order of 50 to 100ms, so this sounds about right and
is enough to get reliable readings from the PHY after reset.
This has been found while trying to test EEE on stm32mp2 while
implementing kselftests for this feature.
Fixes: e0fc47d897fb ("arm64: dts: st: enable Ethernet2 on stm32mp257f-ev1 board")
Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
---
arch/arm64/boot/dts/st/stm32mp257f-ev1.dts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts b/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts
index 782b4bb843ee..ddcda503cbb3 100644
--- a/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts
+++ b/arch/arm64/boot/dts/st/stm32mp257f-ev1.dts
@@ -224,7 +224,7 @@ phy0_eth2: ethernet-phy@1 {
compatible = "ethernet-phy-id001c.c916";
reg = <1>;
reset-assert-us = <10000>;
- reset-deassert-us = <300>;
+ reset-deassert-us = <80000>;
reset-gpios = <&gpiog 6 GPIO_ACTIVE_LOW>;
};
};
--
2.56.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-12-06 8:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-06 8:54 [PATCH] arm64: dts: st: fix ethernet2 PHY reset deassert delay on stm32mp257f-ev1 Maxime Chevallier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox