ARM: mvebu: set aliases for ethernet controllers
authorWilly Tarreau <w@1wt.eu>
Mon, 3 Jun 2013 16:47:36 +0000 (18:47 +0200)
committerJason Cooper <jason@lakedaemon.net>
Tue, 4 Jun 2013 14:15:07 +0000 (14:15 +0000)
These aliases are used when feeding the DT from ATAGS to set the
devices MAC addresses.

Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/boot/dts/armada-370-xp.dtsi
arch/arm/boot/dts/armada-xp-mv78460.dtsi
arch/arm/boot/dts/armada-xp.dtsi

index 031894eb5ef8e011547eb64eb3c91c00ce549553..f7da39453d2f369f3c9a34872208e2bf639cfcae 100644 (file)
        model = "Marvell Armada 370 and XP SoC";
        compatible = "marvell,armada-370-xp";
 
+       aliases {
+               eth0 = &eth0;
+               eth1 = &eth1;
+       };
+
        cpus {
                cpu@0 {
                        compatible = "marvell,sheeva-v7";
@@ -93,7 +98,7 @@
                                reg = <0x72004 0x4>;
                        };
 
-                       ethernet@70000 {
+                       eth0: ethernet@70000 {
                                compatible = "marvell,armada-370-neta";
                                reg = <0x70000 0x2500>;
                                interrupts = <8>;
                                status = "disabled";
                        };
 
-                       ethernet@74000 {
+                       eth1: ethernet@74000 {
                                compatible = "marvell,armada-370-neta";
                                reg = <0x74000 0x2500>;
                                interrupts = <10>;
index 6ab56bd35de926aaab239966f87bb78b193dac2d..386f0ce48453361aaceede735d9bf4acf6cfeb6a 100644 (file)
@@ -23,6 +23,7 @@
                gpio0 = &gpio0;
                gpio1 = &gpio1;
                gpio2 = &gpio2;
+               eth3 = &eth3;
        };
 
 
                                interrupts = <91>;
                        };
 
-                       ethernet@34000 {
+                       eth3: ethernet@34000 {
                                compatible = "marvell,armada-370-neta";
                                reg = <0x34000 0x2500>;
                                interrupts = <14>;
index bacab11c10dc8151eb7f2b6eb8cf0d2905a52f0e..6a82fe827ad84ec2809a5c57bfabbb1867e848ac 100644 (file)
        model = "Marvell Armada XP family SoC";
        compatible = "marvell,armadaxp", "marvell,armada-370-xp";
 
+       aliases {
+               eth2 = &eth2;
+       };
+
        soc {
                internal-regs {
                        L2: l2-cache {
@@ -86,7 +90,7 @@
                                reg = <0x18200 0x500>;
                        };
 
-                       ethernet@30000 {
+                       eth2: ethernet@30000 {
                                compatible = "marvell,armada-370-neta";
                                reg = <0x30000 0x2500>;
                                interrupts = <12>;