ARM: dts: colibri-imx6ull: fix mac address passing
authorFrancesco Dolcini <francesco.dolcini@toradex.com>
Thu, 23 Sep 2021 07:55:21 +0000 (09:55 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 1 Apr 2022 14:05:24 +0000 (10:05 -0400)
colibri-imx6ull ethernet device is fec2, while the optional secondary
ethernet is fec1, update the ethernet aliases in the .dts file so that
ethaddr is set to fec2 and eth1addr to fec1.

Without this change the ethernet interfaces have a different
mac address between Linux and U-Boot.

Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
arch/arm/dts/imx6ull-colibri.dtsi

index 1fa9d10..56ee289 100644 (file)
@@ -8,6 +8,12 @@
 #include "imx6ull.dtsi"
 
 / {
+       /* Ethernet aliases to ensure correct MAC addresses */
+       aliases {
+               ethernet0 = &fec2;
+               ethernet1 = &fec1;
+       };
+
        chosen {
                stdout-path = &uart1;
        };