We have received the following comments:
"
Please add following patch into u-boot to have a try
From aaec17964098c65072dff5d11246933e94b37584 Mon Sep 17 00:00:00 2001
From: Yibo Liu <yibo.liu@nxp.com>
Date: Mon, 6 Feb 2023 11:10:03 +0800
Subject: [PATCH] gmac_addr_fix
---
arch/arm/mach-s32/s32-cc/eth.c | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-s32/s32-cc/eth.c b/arch/arm/mach-s32/s32-cc/eth.c
index 3270a773e0..586e33353d 100644
--- a/arch/arm/mach-s32/s32-cc/eth.c
+++ b/arch/arm/mach-s32/s32-cc/eth.c
@@ -26,7 +26,7 @@
#include <dm/platform_data/pfeng_dm_eth.h>
#endif
-#if CONFIG_IS_ENABLED(FSL_PFENG)
+#if CONFIG_IS_ENABLED(FSL_PFENG) || CONFIG_IS_ENABLED(DWC_ETH_QOS_S32CC)
static void ft_update_eth_addr_by_name(const char *name, const u8 idx,
void *fdt, int nodeoff)
{
@@ -170,6 +170,9 @@ void ft_enet_fixup(void *fdt)
{
int __maybe_unused nodeoff;
bool __maybe_unused ena;
+#if CONFIG_IS_ENABLED(DWC_ETH_QOS_S32CC)
+ u8 idx = 0;
+#endif /* CONFIG_IS_ENABLED(DWC_ETH_QOS_S32CC) */
/* PFE */
#if CONFIG_IS_ENABLED(FSL_PFENG)
@@ -191,6 +194,15 @@ void ft_enet_fixup(void *fdt)
}
#endif /* CONFIG_IS_ENABLED(FSL_PFENG) */
+#if CONFIG_IS_ENABLED(DWC_ETH_QOS_S32CC)
+ nodeoff = fdt_node_offset_by_compatible(fdt, -1, "nxp,s32cc-dwmac");
+ while (nodeoff != -FDT_ERR_NOTFOUND) {
+ ft_update_eth_addr_by_name("eth", idx, fdt, nodeoff);
+ nodeoff = fdt_node_offset_by_compatible(fdt, nodeoff, "nxp,s32cc-dwmac");
+ idx++;
+ }
+#endif /* CONFIG_IS_ENABLED(DWC_ETH_QOS_S32CC) */
+
/* GMAC */
#if CONFIG_IS_ENABLED(DWC_ETH_QOS_S32CC)
bool gmac0_ena = true;
--
2.17.1
"
Please, let us know if this works or not.