]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[POWERPC] 4xx: Add RGMII support for Sequoia 440EPx
authorValentine Barshak <vbarshak@ru.mvista.com>
Mon, 1 Oct 2007 14:12:09 +0000 (00:12 +1000)
committerJosh Boyer <jwboyer@linux.vnet.ibm.com>
Fri, 19 Oct 2007 21:17:08 +0000 (16:17 -0500)
This adds RGMII support to Sequoia DTS and sets correct phy-mode
for EMACs. According to Sequoia datasheet, both ethernet ports
are connected to RGMII interface, while ZMII is used only for MDIO.

Signed-off-by: Valentine Barshak <vbarshak@ru.mvista.com>
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
arch/powerpc/boot/dts/sequoia.dts
arch/powerpc/platforms/44x/Kconfig

index 36be75b04de1dbf33a3845de199afa8a79eb9fc3..8833dfe2e8b47f97bfc4ee51a0dd8e0e3266ed4c 100644 (file)
                                reg = <ef600d00 c>;
                        };
 
+                       RGMII0: emac-rgmii@ef601000 {
+                               device_type = "rgmii-interface";
+                               compatible = "ibm,rgmii-440epx", "ibm,rgmii";
+                               reg = <ef601000 8>;
+                       };
+
                        EMAC0: ethernet@ef600e00 {
                                linux,network-index = <0>;
                                device_type = "network";
                                max-frame-size = <5dc>;
                                rx-fifo-size = <1000>;
                                tx-fifo-size = <800>;
-                               phy-mode = "rmii";
+                               phy-mode = "rgmii";
                                phy-map = <00000000>;
                                zmii-device = <&ZMII0>;
                                zmii-channel = <0>;
+                               rgmii-device = <&RGMII0>;
+                               rgmii-channel = <0>;
                        };
 
                        EMAC1: ethernet@ef600f00 {
                                max-frame-size = <5dc>;
                                rx-fifo-size = <1000>;
                                tx-fifo-size = <800>;
-                               phy-mode = "rmii";
+                               phy-mode = "rgmii";
                                phy-map = <00000000>;
                                zmii-device = <&ZMII0>;
                                zmii-channel = <1>;
+                               rgmii-device = <&RGMII0>;
+                               rgmii-channel = <1>;
                        };
                };
        };
index 51f3ea40a285be0c24e3aadd1a24034a34857742..49a4f0959298a3faf67b700f18822459c37ac8a0 100644 (file)
@@ -50,6 +50,7 @@ config 440EPX
        select PPC_FPU
 # Disabled until the new EMAC Driver is merged.
 #      select IBM_NEW_EMAC_EMAC4
+#      select IBM_NEW_EMAC_RGMII
 #      select IBM_NEW_EMAC_ZMII
 
 config 440GP