]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ARM: dts: socfpga: sodia: Fix mdio bus probe and PHY address
authorNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Thu, 21 Nov 2024 07:13:25 +0000 (16:13 +0900)
committerDinh Nguyen <dinguyen@kernel.org>
Sun, 7 Sep 2025 12:26:29 +0000 (07:26 -0500)
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>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
arch/arm/boot/dts/intel/socfpga/socfpga_cyclone5_sodia.dts

index ce0d6514eeb57131d0fc6982e51ff3b1bd67e230..e4794ccb8e413f27a2c8b6a0dd41efb27f4b8ee3 100644 (file)
        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>;