From 50c79e6fc95cbe5466bf748a8db622290d11fd87 Mon Sep 17 00:00:00 2001 From: Marcel Ziswiler Date: Mon, 20 Sep 2021 18:22:10 +0200 Subject: 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 --- arch/arm/dts/imx8mp-verdin.dts | 3 +++ include/configs/verdin-imx8mp.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3