* [PATCH] arm64: dts: imx93-11x11-frdm: fix ethernet PHY reset GPIOs
@ 2026-11-26 16:08 Daniel Baluta
2026-11-26 16:45 ` Frank Li
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Baluta @ 2026-11-26 16:08 UTC (permalink / raw)
To: Frank.Li
Cc: robh, krzk+dt, conor+dt, s.hauer, kernel, festevam, lei.xu,
haidong.zheng, francesco, devicetree, imx, linux-arm-kernel,
stable, Steven Yang, Daniel Baluta
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] arm64: dts: imx93-11x11-frdm: fix ethernet PHY reset GPIOs
2026-11-26 16:08 [PATCH] arm64: dts: imx93-11x11-frdm: fix ethernet PHY reset GPIOs Daniel Baluta
@ 2026-11-26 16:45 ` Frank Li
0 siblings, 0 replies; 2+ messages in thread
From: Frank Li @ 2026-11-26 16:45 UTC (permalink / raw)
To: Daniel Baluta
Cc: Frank.Li, robh, krzk+dt, conor+dt, s.hauer, kernel, festevam,
lei.xu, haidong.zheng, francesco, devicetree, imx,
linux-arm-kernel, stable, Steven Yang
On Thu, Nov 26, 2026 at 06:08:34PM +0200, Daniel Baluta wrote:
> 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
schematic error? Should fix schematic also?
Frank
>
> 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
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-26 16:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-26 16:08 [PATCH] arm64: dts: imx93-11x11-frdm: fix ethernet PHY reset GPIOs Daniel Baluta
2026-11-26 16:45 ` Frank Li
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox