* [PATCH v2] ARM: dts: socfpga: sodia: Fix mdio bus probe and PHY address
@ 2024-11-21 7:13 Nobuhiro Iwamatsu
2025-01-14 13:50 ` Nobuhiro Iwamatsu
0 siblings, 1 reply; 4+ messages in thread
From: Nobuhiro Iwamatsu @ 2024-11-21 7:13 UTC (permalink / raw)
To: dinguyen, robh+dt, krzk+dt, conor+dt
Cc: Andrew Lunn, linux-arm-kernel, devicetree, linux-kernel, stable,
Nobuhiro Iwamatsu
On SoCFPGA/Sodia board, mdio bus cannot be probed, so the PHY cannot be
found and the network device does not work.
```
stmmaceth ff702000.ethernet eth0: __stmmac_open: Cannot attach to PHY (error: -19)
```
To probe the mdio bus, add "snps,dwmac-mdio" as compatible string of the
mdio bus. Also the PHY address connected to this board is 4. Therefore,
change to 4.
Cc: stable@vger.kernel.org # 6.3+
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
---
v2: Update commit message from 'ID' to 'address'.
Drop Fixes tag, because that commit is not the cause.
arch/arm/boot/dts/intel/socfpga/socfpga_cyclone5_sodia.dts | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boot/dts/intel/socfpga/socfpga_cyclone5_sodia.dts b/arch/arm/boot/dts/intel/socfpga/socfpga_cyclone5_sodia.dts
index ce0d6514eeb571..e4794ccb8e413f 100644
--- a/arch/arm/boot/dts/intel/socfpga/socfpga_cyclone5_sodia.dts
+++ b/arch/arm/boot/dts/intel/socfpga/socfpga_cyclone5_sodia.dts
@@ -66,8 +66,10 @@ &gmac1 {
mdio0 {
#address-cells = <1>;
#size-cells = <0>;
- phy0: ethernet-phy@0 {
- reg = <0>;
+ compatible = "snps,dwmac-mdio";
+
+ phy0: ethernet-phy@4 {
+ reg = <4>;
rxd0-skew-ps = <0>;
rxd1-skew-ps = <0>;
rxd2-skew-ps = <0>;
--
2.45.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2] ARM: dts: socfpga: sodia: Fix mdio bus probe and PHY address
2024-11-21 7:13 [PATCH v2] ARM: dts: socfpga: sodia: Fix mdio bus probe and PHY address Nobuhiro Iwamatsu
@ 2025-01-14 13:50 ` Nobuhiro Iwamatsu
2025-09-05 15:12 ` Nobuhiro Iwamatsu
0 siblings, 1 reply; 4+ messages in thread
From: Nobuhiro Iwamatsu @ 2025-01-14 13:50 UTC (permalink / raw)
To: dinguyen, robh+dt, krzk+dt, conor+dt
Cc: Andrew Lunn, linux-arm-kernel, devicetree, linux-kernel, stable
Hi Dinh,
Could you check and apply this patch?
Thanks,
Nobuhiro
2024年11月21日(木) 16:13 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>:
>
> On SoCFPGA/Sodia board, mdio bus cannot be probed, so the PHY cannot be
> found and the network device does not work.
>
> ```
> stmmaceth ff702000.ethernet eth0: __stmmac_open: Cannot attach to PHY (error: -19)
> ```
>
> To probe the mdio bus, add "snps,dwmac-mdio" as compatible string of the
> mdio bus. Also the PHY address connected to this board is 4. Therefore,
> change to 4.
>
> Cc: stable@vger.kernel.org # 6.3+
> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
> ---
> v2: Update commit message from 'ID' to 'address'.
> Drop Fixes tag, because that commit is not the cause.
>
> arch/arm/boot/dts/intel/socfpga/socfpga_cyclone5_sodia.dts | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/boot/dts/intel/socfpga/socfpga_cyclone5_sodia.dts b/arch/arm/boot/dts/intel/socfpga/socfpga_cyclone5_sodia.dts
> index ce0d6514eeb571..e4794ccb8e413f 100644
> --- a/arch/arm/boot/dts/intel/socfpga/socfpga_cyclone5_sodia.dts
> +++ b/arch/arm/boot/dts/intel/socfpga/socfpga_cyclone5_sodia.dts
> @@ -66,8 +66,10 @@ &gmac1 {
> mdio0 {
> #address-cells = <1>;
> #size-cells = <0>;
> - phy0: ethernet-phy@0 {
> - reg = <0>;
> + compatible = "snps,dwmac-mdio";
> +
> + phy0: ethernet-phy@4 {
> + reg = <4>;
> rxd0-skew-ps = <0>;
> rxd1-skew-ps = <0>;
> rxd2-skew-ps = <0>;
> --
> 2.45.2
>
--
Nobuhiro Iwamatsu
iwamatsu at {nigauri.org / debian.org / kernel.org}
GPG ID: 32247FBB40AD1FA6
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] ARM: dts: socfpga: sodia: Fix mdio bus probe and PHY address
2025-01-14 13:50 ` Nobuhiro Iwamatsu
@ 2025-09-05 15:12 ` Nobuhiro Iwamatsu
2025-09-07 12:11 ` Dinh Nguyen
0 siblings, 1 reply; 4+ messages in thread
From: Nobuhiro Iwamatsu @ 2025-09-05 15:12 UTC (permalink / raw)
To: dinguyen, robh+dt, krzk+dt, conor+dt
Cc: Andrew Lunn, linux-arm-kernel, devicetree, linux-kernel, stable
ping?
2025年1月14日(火) 22:50 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>:
>
> Hi Dinh,
>
> Could you check and apply this patch?
>
> Thanks,
> Nobuhiro
>
> 2024年11月21日(木) 16:13 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>:
> >
> > On SoCFPGA/Sodia board, mdio bus cannot be probed, so the PHY cannot be
> > found and the network device does not work.
> >
> > ```
> > stmmaceth ff702000.ethernet eth0: __stmmac_open: Cannot attach to PHY (error: -19)
> > ```
> >
> > To probe the mdio bus, add "snps,dwmac-mdio" as compatible string of the
> > mdio bus. Also the PHY address connected to this board is 4. Therefore,
> > change to 4.
> >
> > Cc: stable@vger.kernel.org # 6.3+
> > Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
> > ---
> > v2: Update commit message from 'ID' to 'address'.
> > Drop Fixes tag, because that commit is not the cause.
> >
> > arch/arm/boot/dts/intel/socfpga/socfpga_cyclone5_sodia.dts | 6 ++++--
> > 1 file changed, 4 insertions(+), 2 deletions(-)
> >
> > diff --git a/arch/arm/boot/dts/intel/socfpga/socfpga_cyclone5_sodia.dts b/arch/arm/boot/dts/intel/socfpga/socfpga_cyclone5_sodia.dts
> > index ce0d6514eeb571..e4794ccb8e413f 100644
> > --- a/arch/arm/boot/dts/intel/socfpga/socfpga_cyclone5_sodia.dts
> > +++ b/arch/arm/boot/dts/intel/socfpga/socfpga_cyclone5_sodia.dts
> > @@ -66,8 +66,10 @@ &gmac1 {
> > mdio0 {
> > #address-cells = <1>;
> > #size-cells = <0>;
> > - phy0: ethernet-phy@0 {
> > - reg = <0>;
> > + compatible = "snps,dwmac-mdio";
> > +
> > + phy0: ethernet-phy@4 {
> > + reg = <4>;
> > rxd0-skew-ps = <0>;
> > rxd1-skew-ps = <0>;
> > rxd2-skew-ps = <0>;
> > --
> > 2.45.2
> >
>
>
> --
> Nobuhiro Iwamatsu
> iwamatsu at {nigauri.org / debian.org / kernel.org}
> GPG ID: 32247FBB40AD1FA6
--
Nobuhiro Iwamatsu
iwamatsu at {nigauri.org / debian.org / kernel.org}
GPG ID: 32247FBB40AD1FA6
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] ARM: dts: socfpga: sodia: Fix mdio bus probe and PHY address
2025-09-05 15:12 ` Nobuhiro Iwamatsu
@ 2025-09-07 12:11 ` Dinh Nguyen
0 siblings, 0 replies; 4+ messages in thread
From: Dinh Nguyen @ 2025-09-07 12:11 UTC (permalink / raw)
To: Nobuhiro Iwamatsu, dinguyen, robh+dt, krzk+dt, conor+dt
Cc: Andrew Lunn, linux-arm-kernel, devicetree, linux-kernel, stable
On 9/5/25 10:12, Nobuhiro Iwamatsu wrote:
> ping?
>
> 2025年1月14日(火) 22:50 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>:
>>
>> Hi Dinh,
>>
>> Could you check and apply this patch?
>>
>> Thanks,
>> Nobuhiro
>>
Sorry I missed this. I've applied it.
Dinh
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-09-07 12:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-21 7:13 [PATCH v2] ARM: dts: socfpga: sodia: Fix mdio bus probe and PHY address Nobuhiro Iwamatsu
2025-01-14 13:50 ` Nobuhiro Iwamatsu
2025-09-05 15:12 ` Nobuhiro Iwamatsu
2025-09-07 12:11 ` Dinh Nguyen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).