* [PATCH] ARM: dts: socfpga: AXE5-Eagle: fix phy reset
@ 2026-04-22 15:56 Michael Tretter
2026-04-27 7:20 ` Sascha Hauer
0 siblings, 1 reply; 3+ messages in thread
From: Michael Tretter @ 2026-04-22 15:56 UTC (permalink / raw)
To: Sascha Hauer, BAREBOX; +Cc: Steffen Trumtrar, Michael Tretter
The snps,reset-gpio is a property of the Synopsys DesignWare MAC and
belongs into the gmac node.
The property is deprecated and shall be replaced by regular gpio reset
at the phy. However, use the deprecated binding to be sure that the
dwmac driver handles the reset for now.
Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
---
arch/arm/dts/socfpga_agilex5_axe5_eagle.dts | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/arm/dts/socfpga_agilex5_axe5_eagle.dts b/arch/arm/dts/socfpga_agilex5_axe5_eagle.dts
index f67b974f2adc..732d6142dcb1 100644
--- a/arch/arm/dts/socfpga_agilex5_axe5_eagle.dts
+++ b/arch/arm/dts/socfpga_agilex5_axe5_eagle.dts
@@ -74,16 +74,16 @@ &gmac2 {
status = "okay";
phy-mode = "rgmii-id";
phy-handle = <&emac2_phy0>;
-
max-frame-size = <9000>;
+ snps,reset-gpio = <&portb 10 GPIO_ACTIVE_LOW>;
+ snps,reset-active-low;
+ snps,reset-delays-us = <0 10000 10000>;
mdio0 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "snps,dwmac-mdio";
emac2_phy0: ethernet-phy@1 {
- snps,reset-gpio = <&portb 10 GPIO_ACTIVE_LOW>;
- snps,reset-delays-us = <0 10000 10000>;
reg = <0x1>;
adi,rx-internal-delay-ps = <2000>;
adi,tx-internal-delay-ps = <2000>;
---
base-commit: 7b492daea9347fd55bf29560c2ec494ca1040f95
change-id: 20260422-socfpga-agilex5-dwmac-9d45a7c123a8
Best regards,
--
Michael Tretter <m.tretter@pengutronix.de>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ARM: dts: socfpga: AXE5-Eagle: fix phy reset
2026-04-22 15:56 [PATCH] ARM: dts: socfpga: AXE5-Eagle: fix phy reset Michael Tretter
@ 2026-04-27 7:20 ` Sascha Hauer
2026-04-27 10:55 ` Michael Tretter
0 siblings, 1 reply; 3+ messages in thread
From: Sascha Hauer @ 2026-04-27 7:20 UTC (permalink / raw)
To: Michael Tretter; +Cc: BAREBOX, Steffen Trumtrar
Hi Michael,
On Wed, Apr 22, 2026 at 05:56:11PM +0200, Michael Tretter wrote:
> The snps,reset-gpio is a property of the Synopsys DesignWare MAC and
> belongs into the gmac node.
>
> The property is deprecated and shall be replaced by regular gpio reset
> at the phy. However, use the deprecated binding to be sure that the
> dwmac driver handles the reset for now.
So what's missing to handle the regular gpio reset at phy level?
Would be good to have that information in the commit message.
Sascha
>
> Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
> ---
> arch/arm/dts/socfpga_agilex5_axe5_eagle.dts | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/arch/arm/dts/socfpga_agilex5_axe5_eagle.dts b/arch/arm/dts/socfpga_agilex5_axe5_eagle.dts
> index f67b974f2adc..732d6142dcb1 100644
> --- a/arch/arm/dts/socfpga_agilex5_axe5_eagle.dts
> +++ b/arch/arm/dts/socfpga_agilex5_axe5_eagle.dts
> @@ -74,16 +74,16 @@ &gmac2 {
> status = "okay";
> phy-mode = "rgmii-id";
> phy-handle = <&emac2_phy0>;
> -
> max-frame-size = <9000>;
> + snps,reset-gpio = <&portb 10 GPIO_ACTIVE_LOW>;
> + snps,reset-active-low;
> + snps,reset-delays-us = <0 10000 10000>;
>
> mdio0 {
> #address-cells = <1>;
> #size-cells = <0>;
> compatible = "snps,dwmac-mdio";
> emac2_phy0: ethernet-phy@1 {
> - snps,reset-gpio = <&portb 10 GPIO_ACTIVE_LOW>;
> - snps,reset-delays-us = <0 10000 10000>;
> reg = <0x1>;
> adi,rx-internal-delay-ps = <2000>;
> adi,tx-internal-delay-ps = <2000>;
>
> ---
> base-commit: 7b492daea9347fd55bf29560c2ec494ca1040f95
> change-id: 20260422-socfpga-agilex5-dwmac-9d45a7c123a8
>
> Best regards,
> --
> Michael Tretter <m.tretter@pengutronix.de>
>
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ARM: dts: socfpga: AXE5-Eagle: fix phy reset
2026-04-27 7:20 ` Sascha Hauer
@ 2026-04-27 10:55 ` Michael Tretter
0 siblings, 0 replies; 3+ messages in thread
From: Michael Tretter @ 2026-04-27 10:55 UTC (permalink / raw)
To: Sascha Hauer; +Cc: BAREBOX, Steffen Trumtrar
On Mon, 27 Apr 2026 09:20:41 +0200, Sascha Hauer wrote:
> On Wed, Apr 22, 2026 at 05:56:11PM +0200, Michael Tretter wrote:
> > The snps,reset-gpio is a property of the Synopsys DesignWare MAC and
> > belongs into the gmac node.
> >
> > The property is deprecated and shall be replaced by regular gpio reset
> > at the phy. However, use the deprecated binding to be sure that the
> > dwmac driver handles the reset for now.
>
> So what's missing to handle the regular gpio reset at phy level?
I tested this with a reset at the phy level and it works just fine. I'll
send a v2 with a regular gpio reset at phy level.
Michael
>
> Would be good to have that information in the commit message.
>
> Sascha
>
> >
> > Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
> > ---
> > arch/arm/dts/socfpga_agilex5_axe5_eagle.dts | 6 +++---
> > 1 file changed, 3 insertions(+), 3 deletions(-)
> >
> > diff --git a/arch/arm/dts/socfpga_agilex5_axe5_eagle.dts b/arch/arm/dts/socfpga_agilex5_axe5_eagle.dts
> > index f67b974f2adc..732d6142dcb1 100644
> > --- a/arch/arm/dts/socfpga_agilex5_axe5_eagle.dts
> > +++ b/arch/arm/dts/socfpga_agilex5_axe5_eagle.dts
> > @@ -74,16 +74,16 @@ &gmac2 {
> > status = "okay";
> > phy-mode = "rgmii-id";
> > phy-handle = <&emac2_phy0>;
> > -
> > max-frame-size = <9000>;
> > + snps,reset-gpio = <&portb 10 GPIO_ACTIVE_LOW>;
> > + snps,reset-active-low;
> > + snps,reset-delays-us = <0 10000 10000>;
> >
> > mdio0 {
> > #address-cells = <1>;
> > #size-cells = <0>;
> > compatible = "snps,dwmac-mdio";
> > emac2_phy0: ethernet-phy@1 {
> > - snps,reset-gpio = <&portb 10 GPIO_ACTIVE_LOW>;
> > - snps,reset-delays-us = <0 10000 10000>;
> > reg = <0x1>;
> > adi,rx-internal-delay-ps = <2000>;
> > adi,tx-internal-delay-ps = <2000>;
> >
> > ---
> > base-commit: 7b492daea9347fd55bf29560c2ec494ca1040f95
> > change-id: 20260422-socfpga-agilex5-dwmac-9d45a7c123a8
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-04-27 10:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-04-22 15:56 [PATCH] ARM: dts: socfpga: AXE5-Eagle: fix phy reset Michael Tretter
2026-04-27 7:20 ` Sascha Hauer
2026-04-27 10:55 ` Michael Tretter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox