On 29/4/2026 10:29 am, [email protected] wrote:
From: Alif Zakuan Yuslaimi <[email protected]>

The Agilex devkit supports a separate NAND/eMMC daughter card.

The NAND/eMMC daughter card replaces the SDMMC slot that is on the default
daughter card and thus requires a separate board dts file.

New eMMC dts which is based on the existing NAND dts is needed to comply
with spec in which eMMC board ID is designated as 2.

Signed-off-by: Alif Zakuan Yuslaimi <[email protected]>
---
  arch/arm/dts/socfpga_agilex_socdk-u-boot.dtsi | 24 +++++++++++++++++++
  .../dts/socfpga_agilex_socdk_emmc-u-boot.dtsi | 16 +++++++++++++
  configs/socfpga_agilex_defconfig              |  2 +-
  3 files changed, 41 insertions(+), 1 deletion(-)
  create mode 100644 arch/arm/dts/socfpga_agilex_socdk_emmc-u-boot.dtsi

diff --git a/arch/arm/dts/socfpga_agilex_socdk-u-boot.dtsi 
b/arch/arm/dts/socfpga_agilex_socdk-u-boot.dtsi
index f2150b7eb7b..d3d4e550d0a 100644
--- a/arch/arm/dts/socfpga_agilex_socdk-u-boot.dtsi
+++ b/arch/arm/dts/socfpga_agilex_socdk-u-boot.dtsi
@@ -199,6 +199,18 @@
                        algo = "crc32";
                };
        };
+
+       fdt-2 {
+               description = "socfpga_socdk_emmc";
+               type = "flat_dt";
+               compression = "none";
+               fdt_2_blob: blob-ext {
+                       filename = 
"dts/upstream/src/arm64/intel/socfpga_agilex_socdk_emmc.dtb";
+               };
+               hash {
+                       algo = "crc32";
+               };
+       };
  };
&board_config {
@@ -213,6 +225,18 @@
                        sign-images = "atf", "uboot", "fdt-1";
                };
        };
+
+       board-2 {
+               description = "board_2";
+               firmware = "atf";
+               loadables = "uboot";
+               fdt = "fdt-2";
+               signature {
+                       algo = "crc32";
+                       key-name-hint = "dev";
+                       sign-images = "atf", "uboot", "fdt-2";
+               };
+       };
  };
&binman {
diff --git a/arch/arm/dts/socfpga_agilex_socdk_emmc-u-boot.dtsi 
b/arch/arm/dts/socfpga_agilex_socdk_emmc-u-boot.dtsi
new file mode 100644
index 00000000000..fd301ff28a9
--- /dev/null
+++ b/arch/arm/dts/socfpga_agilex_socdk_emmc-u-boot.dtsi
@@ -0,0 +1,16 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * U-Boot additions
+ *
+ * Copyright (C) 2026 Altera Corporation <www.altera.com>
+ */
+
+#include "socfpga_agilex_socdk-u-boot.dtsi"
+
+&gmac0 {
+       status = "disabled";
+};
+
+&gmac2 {
+       status = "okay";
+};
diff --git a/configs/socfpga_agilex_defconfig b/configs/socfpga_agilex_defconfig
index b2c7b30d546..1690e1ad8ed 100644
--- a/configs/socfpga_agilex_defconfig
+++ b/configs/socfpga_agilex_defconfig
@@ -58,7 +58,7 @@ CONFIG_CMD_CACHE=y
  CONFIG_CMD_SMC=y
  CONFIG_CMD_UBI=y
  CONFIG_OF_UPSTREAM=y
-CONFIG_OF_LIST="intel/socfpga_agilex_socdk intel/socfpga_agilex_socdk_nand"
+CONFIG_OF_LIST="intel/socfpga_agilex_socdk intel/socfpga_agilex_socdk_nand 
intel/socfpga_agilex_socdk_emmc"
  CONFIG_ENV_IS_IN_FAT=y
  CONFIG_ENV_IS_IN_UBI=y
  CONFIG_ENV_FAT_DEVICE_AND_PART="0:1"


Reviewed-by: Tien Fong Chee <[email protected]>

Best regards,
Tien Fong

Reply via email to