summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2021-09-20 18:22:10 +0200
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2021-10-20 09:49:37 +0200
commit50c79e6fc95cbe5466bf748a8db622290d11fd87 (patch)
treeaa64ac8996768be2f0ed10192bf6a28d0869afa1
parent6beea72eb66bb0a43c8926499339e597f0f00dd8 (diff)
ARM: dts: verdin-imx8mp: fix mac address passing
Verdin iMX8M Plus on-module Ethernet device is eqos, while the optional secondary Ethernet is fec, update the Ethernet aliases in the .dts file so that ethaddr is set to eqos and eth1addr to fec. Without this change, the Ethernet interfaces may have different MAC addresses between Linux and U-Boot. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
-rw-r--r--arch/arm/dts/imx8mp-verdin.dts3
-rw-r--r--include/configs/verdin-imx8mp.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/dts/imx8mp-verdin.dts b/arch/arm/dts/imx8mp-verdin.dts
index e72b1bd4a9..732e5093c6 100644
--- a/arch/arm/dts/imx8mp-verdin.dts
+++ b/arch/arm/dts/imx8mp-verdin.dts
@@ -16,6 +16,9 @@
eeprom0 = &eeprom_module;
eeprom1 = &eeprom_carrier;
eeprom2 = &eeprom_mipi_dsi;
+ /* Ethernet aliases to ensure correct MAC addresses */
+ ethernet0 = &eqos;
+ ethernet1 = &fec;
};
chosen {
diff --git a/include/configs/verdin-imx8mp.h b/include/configs/verdin-imx8mp.h
index cbadc7487f..84ba480a66 100644
--- a/include/configs/verdin-imx8mp.h
+++ b/include/configs/verdin-imx8mp.h
@@ -45,7 +45,7 @@
/* ENET Config */
/* ENET1 */
#if defined(CONFIG_CMD_NET)
-#define CONFIG_ETHPRIME "eth1" /* eqos is on-module Ethernet interface */
+#define CONFIG_ETHPRIME "eth0" /* eqos is aliased on-module Ethernet interface */
#define FEC_QUIRK_ENET_MAC