All of lore.kernel.org
 help / color / mirror / Atom feed
From: Frank Li <Frank.li@oss.nxp.com>
To: Daniel Baluta <daniel.baluta@nxp.com>
Cc: Frank.Li@nxp.com, 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>
Subject: Re: [PATCH] arm64: dts: imx93-11x11-frdm: fix ethernet PHY reset GPIOs
Date: Thu, 26 Nov 2026 10:45:58 -0600	[thread overview]
Message-ID: <awhiRigXGZ50RoDo@SMW015318> (raw)
In-Reply-To: <20261126160835.1811145-1-daniel.baluta@nxp.com>

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
>
>

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

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]
2026-11-27  2:43   ` Joseph Guo
2026-11-27 11:11     ` Daniel Baluta

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=awhiRigXGZ50RoDo@SMW015318 \
    --to=frank.li@oss.nxp.com \
    --cc=Frank.Li@nxp.com \
    --cc=conor+dt@kernel.org \
    --cc=daniel.baluta@nxp.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.