]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
arm: mvebu: enable Ethernet controllers on Armada 370/XP eval boards
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 4 Sep 2012 13:06:44 +0000 (15:06 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 16 Nov 2012 09:17:44 +0000 (10:17 +0100)
This patch enables the two network interfaces of the Armada 370
official Marvell evaluation platform, and the four network interfaces
of the Armada XP official Marvell evaluation platform.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
arch/arm/boot/dts/armada-370-db.dts
arch/arm/boot/dts/armada-xp-db.dts

index fffd5c2a3041c3854ebe92ff6e0c4d05661512ce..76362f733d7b3633fe6a8bbce572bc5d20d67aa2 100644 (file)
                        clock-frequency = <600000000>;
                        status = "okay";
                };
+
+               mdio {
+                       phy0: ethernet-phy@0 {
+                               reg = <0>;
+                       };
+
+                       phy1: ethernet-phy@1 {
+                               reg = <1>;
+                       };
+               };
+
+               ethernet@d0070000 {
+                       clock-frequency = <200000000>;
+                       status = "okay";
+                       phy = <&phy0>;
+                       phy-mode = "rgmii-id";
+               };
+               ethernet@d0074000 {
+                       clock-frequency = <200000000>;
+                       status = "okay";
+                       phy = <&phy1>;
+                       phy-mode = "rgmii-id";
+               };
        };
 };
index b1fc728515e9c739ae272004c86a5e6ec1de393e..b614bd054822797d52a452d2f3ff5a585ba19cae 100644 (file)
                        clock-frequency = <250000000>;
                        status = "okay";
                };
+
+               mdio {
+                       phy0: ethernet-phy@0 {
+                               reg = <0>;
+                       };
+
+                       phy1: ethernet-phy@1 {
+                               reg = <1>;
+                       };
+
+                       phy2: ethernet-phy@2 {
+                               reg = <25>;
+                       };
+
+                       phy3: ethernet-phy@3 {
+                               reg = <27>;
+                       };
+               };
+
+               ethernet@d0070000 {
+                       clock-frequency = <250000000>;
+                       status = "okay";
+                       phy = <&phy0>;
+                       phy-mode = "rgmii-id";
+               };
+               ethernet@d0074000 {
+                       clock-frequency = <250000000>;
+                       status = "okay";
+                       phy = <&phy1>;
+                       phy-mode = "rgmii-id";
+               };
+               ethernet@d0030000 {
+                       clock-frequency = <250000000>;
+                       status = "okay";
+                       phy = <&phy2>;
+                       phy-mode = "sgmii";
+               };
+               ethernet@d0034000 {
+                       clock-frequency = <250000000>;
+                       status = "okay";
+                       phy = <&phy3>;
+                       phy-mode = "sgmii";
+               };
        };
 };