From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.246.84.56 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796547287; b=u9OpLPXj9ZgFPFDnhH3OV4jFz8pziS6b0vzo2XMUW8t+3ZxiMFYg5d8x5WukjzrAFgdi tsX/5Hh4ntmucQsRjav33XrWBpUGEnyMQWAEaR1uQqY/u4LZOnOBjm8Tq3JvO2xcC7040 0AwzLL3XCBDWWlUO3tsVZWhQEHRYY2NHIeTcPNj3ktCjyfB2i/0HrtwORiivEQJzc2aHJ RQ+o0XMR1omK/ZUNhldi8R9IVkjj5M/NxcROUgy+nAqPF6j6VRNYhCd+nz8mcVSIUs1ya /GLNCwA8i5ENUHdryinNhU4lxQKpr7iL3BSwRwFCdubbpW4RKC9TVv0S6el2BFV//vw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796547287; h=DMARC-Filter:Received:Received:Received:DKIM-Signature:From:To:Cc: Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Transfer-Encoding:X-Last-TLS-Session-Version; bh=TwNpkhhWqHgLdzqpofk3H7JKmTkAxevtX3luIeemlPA=; b=yfbDtQIJhcFA/+CAIuTT/l7iV/3+KS/fELNPvNPn40sMbzz1HS5EaXx7W7wbcQCvpHIv eudau2EXvOreKlUu+JOtnNraxyYL+68Xg+7zKp4HZN27Q9sfELiCa7rcrHOPL1FzmOqV6 upD38wZMvdAi12yEEuAPtbJE8NDS78uf0amGa8BG3Ucswkj05V5FpYp/YLrcFtAC4wS5I sCw92iW7Ao9QQYBCFzXcPWf0Uv2675DJ/6m9PdMOodbkMTF3byQmMolCweLXVyIh2WDvU Pi08rAzu1HVo0iLvZn3yYCIOZ+CcOoysHuuMapq0IkJeI0K2GBde8J1kebO8IVNqqLw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=U2uIKrRk; arc=none smtp.remote-ip=185.246.84.56 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C9454606A33A for ; Sun, 6 Dec 2026 08:54:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C9454606A33A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=U2uIKrRk Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id 4A8F31A19A1; Sun, 6 Dec 2026 08:54:43 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 1546C604C0; Sun, 6 Dec 2026 08:54:43 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 9FFF911EA180E; Sun, 06 Dec 2026 09:54:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796547282; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding; bh=TwNpkhhWqHgLdzqpofk3H7JKmTkAxevtX3luIeemlPA=; b=U2uIKrRknjV+ShI0K65Rs4BS4ghdxUoM9XusDYMd90USB/B91O0Iiv/cgrSIz+O98Iir8T 9SIDUdCaxYtVrPywR3IJgHUbtBa3dHn6/LUWPpLwwJ5ZIwiQ8wsks/Zm08JQd8lx40Zr19 fYvEEL18kDtMyMI6P51BPL0/Cjg+spmkQkU22rTMEAbdn4vNy8CgwBxWcQEmoB0QnIGT5I qA2vRTfZvNpcIRyuAhNbQ5emSg3gW8Zsbn6doSUc9fk08zATi3lnFMVTpeiOOIlEMP/ekX lrBWSdApupcV2n/331Mw2OJVYbujlMGiBC1jkRFLB8jU8p7Wy6ek/mhCcuqlZQ== From: Maxime Chevallier To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Christophe Roullier , Marek Vasut , Andrew Lunn Cc: Maxime Chevallier , =?UTF-8?q?K=C3=B6ry=20Maincent?= , 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 Message-ID: <20261206085434.77855-1-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.56.1 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 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 --- 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