Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Baluta <daniel.baluta@nxp.com>
To: Frank.Li@nxp.com
Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
	s.hauer@pengutronix.de, kernel@pengutronix.de,
	festevam@gmail.com, lei.xu@nxp.com, haidong.zheng@nxp.com,
	francesco@valla.it, devicetree@vger.kernel.org,
	imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org,
	stable@vger.kernel.org, Steven Yang <steven.yang@nxp.com>,
	Daniel Baluta <daniel.baluta@nxp.com>
Subject: [PATCH] arm64: dts: imx93-11x11-frdm: fix ethernet PHY reset GPIOs
Date: Thu, 26 Nov 2026 18:08:34 +0200	[thread overview]
Message-ID: <20261126160835.1811145-1-daniel.baluta@nxp.com> (raw)

From: Steven Yang <steven.yang@nxp.com>

The reset-gpios of both ethernet PHYs point to the PHY interrupt lines
instead of the PHY reset lines.

On the FRDM-IMX93 board (schematic SPF-94611 rev B2), the PCAL6524 GPIO
expander lines going to each PHY are labelled:

  P0_4 (line 4)  ENET1_nINT
  P1_1 (line 9)  ENET2_nINT
  P1_7 (line 15) ENET1_nRST
  P2_0 (line 16) ENET2_nRST

However, on the PHY side the nRST and nINT nets are swapped, so:

  ENET1_nINT (line 4)  -> ENET1 PHY RESET_N
  ENET1_nRST (line 15) -> ENET1 PHY INT_N
  ENET2_nINT (line 9)  -> ENET2 PHY RESET_N
  ENET2_nRST (line 16) -> ENET2 PHY INT_N

The device tree followed the expander-side net names and uses lines 15
and 16 as reset-gpios. As a result, the PHY reset sequence toggles the
INT_N pins, while the real RESET_N pins stay deasserted by their
pull-ups and the PHYs are never reset by software.

Use lines 4 and 9, which are connected to the PHY RESET_N pins.

Fixes: eb2f28413e23 ("arm64: dts: freescale: add support for NXP i.MX93 FRDM")
Signed-off-by: Steven Yang <steven.yang@nxp.com>
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx93-11x11-frdm-common.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm-common.dtsi b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm-common.dtsi
index 33ed26aafde88..8c7b08894bc0d 100644
--- a/arch/arm64/boot/dts/freescale/imx93-11x11-frdm-common.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx93-11x11-frdm-common.dtsi
@@ -145,7 +145,7 @@ ethphy1: ethernet-phy@1 {
 			reg = <1>;
 			reset-assert-us = <10000>;
 			reset-deassert-us = <80000>;
-			reset-gpios = <&pcal6524 15 GPIO_ACTIVE_LOW>;
+			reset-gpios = <&pcal6524 4 GPIO_ACTIVE_LOW>;
 			realtek,clkout-disable;
 		};
 	};
@@ -169,7 +169,7 @@ ethphy2: ethernet-phy@2 {
 			reg = <2>;
 			reset-assert-us = <10000>;
 			reset-deassert-us = <80000>;
-			reset-gpios = <&pcal6524 16 GPIO_ACTIVE_LOW>;
+			reset-gpios = <&pcal6524 9 GPIO_ACTIVE_LOW>;
 			realtek,clkout-disable;
 		};
 	};
-- 
2.45.2



             reply	other threads:[~2026-11-26 16:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26 16:08 Daniel Baluta [this message]
2026-11-26 16:45 ` [PATCH] arm64: dts: imx93-11x11-frdm: fix ethernet PHY reset GPIOs Frank Li

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=20261126160835.1811145-1-daniel.baluta@nxp.com \
    --to=daniel.baluta@nxp.com \
    --cc=Frank.Li@nxp.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=festevam@gmail.com \
    --cc=francesco@valla.it \
    --cc=haidong.zheng@nxp.com \
    --cc=imx@lists.linux.dev \
    --cc=kernel@pengutronix.de \
    --cc=krzk+dt@kernel.org \
    --cc=lei.xu@nxp.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=robh@kernel.org \
    --cc=s.hauer@pengutronix.de \
    --cc=stable@vger.kernel.org \
    --cc=steven.yang@nxp.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