arm64: dts: marvell: espressobin: add ethernet alias
authorTomasz Maciej Nowak <tmn505@gmail.com>
Thu, 27 Feb 2020 16:52:32 +0000 (17:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Aug 2020 11:05:39 +0000 (13:05 +0200)
commit 5253cb8c00a6f4356760efb38bca0e0393aa06de upstream.

The maker of this board and its variants, stores MAC address in U-Boot
environment. Add alias for bootloader to recognise, to which ethernet
node inject the factory MAC address.

Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
[pali: Backported to 5.4 and older versions]
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts

index fbcf03f86c967538282f05479476479463a14d0c..05dc58c13fa41ff5bab0932079d9d9e9dbf3c5f2 100644 (file)
        model = "Globalscale Marvell ESPRESSOBin Board";
        compatible = "globalscale,espressobin", "marvell,armada3720", "marvell,armada3710";
 
+       aliases {
+               ethernet0 = &eth0;
+               serial0 = &uart0;
+               serial1 = &uart1;
+       };
+
        chosen {
                stdout-path = "serial0:115200n8";
        };