arm64: dts: marvell: add Ethernet aliases
authorYan Markman <ymarkman@marvell.com>
Wed, 3 Jan 2018 15:18:52 +0000 (16:18 +0100)
committerGregory CLEMENT <gregory.clement@free-electrons.com>
Fri, 5 Jan 2018 16:02:45 +0000 (17:02 +0100)
This patch adds Ethernet aliases in the Marvell Armada 7040 DB, 8040 DB
and 8040 mcbin device trees so that the bootloader setup the MAC
addresses correctly.

Signed-off-by: Yan Markman <ymarkman@marvell.com>
[Antoine: commit message, small fixes]
Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
arch/arm64/boot/dts/marvell/armada-7040-db.dts
arch/arm64/boot/dts/marvell/armada-8040-db.dts
arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts

index 44c95b9..3ae05ee 100644 (file)
                reg = <0x0 0x0 0x0 0x80000000>;
        };
 
+       aliases {
+               ethernet0 = &cp0_eth0;
+               ethernet1 = &cp0_eth1;
+               ethernet2 = &cp0_eth2;
+       };
+
        cp0_reg_usb3_0_vbus: cp0-usb3-0-vbus {
                compatible = "regulator-fixed";
                regulator-name = "usb3h0-vbus";
index 13e3209..dba55ba 100644 (file)
                reg = <0x0 0x0 0x0 0x80000000>;
        };
 
+       aliases {
+               ethernet0 = &cp0_eth0;
+               ethernet1 = &cp0_eth2;
+               ethernet2 = &cp1_eth0;
+               ethernet3 = &cp1_eth1;
+       };
+
        cp0_reg_usb3_0_vbus: cp0-usb3-0-vbus {
                compatible = "regulator-fixed";
                regulator-name = "cp0-usb3h0-vbus";
index c7aca67..626e9d0 100644 (file)
                reg = <0x0 0x0 0x0 0x80000000>;
        };
 
+       aliases {
+               ethernet0 = &cp0_eth0;
+               ethernet1 = &cp1_eth0;
+               ethernet2 = &cp1_eth1;
+       };
+
        /* Regulator labels correspond with schematics */
        v_3_3: regulator-3-3v {
                compatible = "regulator-fixed";