From: Maxime Chevallier <maxime.chevallier@bootlin.com>
To: Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
Alexandre Torgue <alexandre.torgue@foss.st.com>,
Christophe Roullier <christophe.roullier@foss.st.com>,
Marek Vasut <marex@denx.de>, Andrew Lunn <andrew@lunn.ch>
Cc: "Maxime Chevallier" <maxime.chevallier@bootlin.com>,
"Köry Maincent" <kory.maincent@bootlin.com>,
thomas.petazzoni@bootlin.com, devicetree@vger.kernel.org,
linux-stm32@st-md-mailman.stormreply.com,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: [PATCH] arm64: dts: st: fix ethernet2 PHY reset deassert delay on stm32mp257f-ev1
Date: Sun, 6 Dec 2026 09:54:33 +0100 [thread overview]
Message-ID: <20261206085434.77855-1-maxime.chevallier@bootlin.com> (raw)
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
reply other threads:[~2026-12-06 8:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261206085434.77855-1-maxime.chevallier@bootlin.com \
--to=maxime.chevallier@bootlin.com \
--cc=alexandre.torgue@foss.st.com \
--cc=andrew@lunn.ch \
--cc=christophe.roullier@foss.st.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=kory.maincent@bootlin.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=marex@denx.de \
--cc=mcoquelin.stm32@gmail.com \
--cc=robh@kernel.org \
--cc=thomas.petazzoni@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®