ARM: dts: Fix up the IXP4xx ethernet nodes
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 21 May 2021 09:48:16 +0000 (11:48 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 21 May 2021 19:29:07 +0000 (21:29 +0200)
All of IXP4xx SoCs has an EthA at 0xc800c000 so move this
from the IXP[56]x to the IXP4xx DTSI.

Then add the second ethernet port on the Cambria GW2358-4
on EthA.

Reported-by: Zoltan HERPAI <wigyori@uid0.hu>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/boot/dts/intel-ixp43x-gateworks-gw2358.dts
arch/arm/boot/dts/intel-ixp45x-ixp46x.dtsi
arch/arm/boot/dts/intel-ixp4xx.dtsi

index 581ff18..60a1228 100644 (file)
                                phy1: ethernet-phy@1 {
                                        reg = <1>;
                                };
+
+                               phy2: ethernet-phy@2 {
+                                       reg = <2>;
+                               };
                        };
                };
+
+               ethernet@c800c000 {
+                       status = "ok";
+                       queue-rx = <&qmgr 2>;
+                       queue-txready = <&qmgr 19>;
+                       phy-mode = "rgmii";
+                       phy-handle = <&phy2>;
+                       intel,npe-handle = <&npe 0>;
+               };
        };
 };
index ef3696e..cce49e8 100644 (file)
                        status = "disabled";
                };
 
-               /* This is known as EthA */
-               ethernet@c800c000 {
-                       compatible = "intel,ixp4xx-ethernet";
-                       reg = <0xc800c000 0x1000>;
-                       status = "disabled";
-                       intel,npe = <0>;
-                       /* Dummy values that depend on firmware */
-                       queue-rx = <&qmgr 0>;
-                       queue-txready = <&qmgr 0>;
-               };
-
                /* This is known as EthB1 */
                ethernet@c800d000 {
                        compatible = "intel,ixp4xx-ethernet";
index 31371c6..528d5dc 100644 (file)
                        queue-txready = <&qmgr 0>;
                        intel,npe-handle = <&npe 2>;
                };
+
+               /* This is known as EthA */
+               ethernet@c800c000 {
+                       compatible = "intel,ixp4xx-ethernet";
+                       reg = <0xc800c000 0x1000>;
+                       status = "disabled";
+                       intel,npe = <0>;
+                       /* Dummy values that depend on firmware */
+                       queue-rx = <&qmgr 0>;
+                       queue-txready = <&qmgr 0>;
+               };
        };
 };