From: Alif Zakuan Yuslaimi <[email protected]> The Stratix10 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. Disable gmac0 and enable gmac2 so the PHY on the NAND/eMMC daughter card is used. Utilize the upstream kernel eMMC dts when the board ID in the handoff data is designated as 2. Signed-off-by: Alif Zakuan Yuslaimi <[email protected]> Signed-off-by: Tze Yee Ng <[email protected]> --- .../dts/socfpga_stratix10_socdk-u-boot.dtsi | 24 +++++++++++++++++++ .../socfpga_stratix10_socdk_emmc-u-boot.dtsi | 14 +++++++++++ configs/socfpga_stratix10_defconfig | 2 +- 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 arch/arm/dts/socfpga_stratix10_socdk_emmc-u-boot.dtsi diff --git a/arch/arm/dts/socfpga_stratix10_socdk-u-boot.dtsi b/arch/arm/dts/socfpga_stratix10_socdk-u-boot.dtsi index bd585d96bd2..da19943ec3b 100644 --- a/arch/arm/dts/socfpga_stratix10_socdk-u-boot.dtsi +++ b/arch/arm/dts/socfpga_stratix10_socdk-u-boot.dtsi @@ -103,6 +103,18 @@ algo = "crc32"; }; }; + + fdt-2 { + description = "socfpga_socdk_emmc"; + type = "flat_dt"; + compression = "none"; + fdt_2_blob: blob-ext { + filename = "dts/upstream/src/arm64/altera/socfpga_stratix10_socdk_emmc.dtb"; + }; + hash { + algo = "crc32"; + }; + }; }; &board_config { @@ -118,6 +130,18 @@ }; }; + 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"; + }; + }; + board-4 { description = "board_4"; firmware = "atf"; diff --git a/arch/arm/dts/socfpga_stratix10_socdk_emmc-u-boot.dtsi b/arch/arm/dts/socfpga_stratix10_socdk_emmc-u-boot.dtsi new file mode 100644 index 00000000000..c63ca3fb9d3 --- /dev/null +++ b/arch/arm/dts/socfpga_stratix10_socdk_emmc-u-boot.dtsi @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright Altera Corporation (C) 2026. All rights reserved. + */ + +#include "socfpga_stratix10_socdk-u-boot.dtsi" + +&gmac0 { + status = "disabled"; +}; + +&gmac2 { + status = "okay"; +}; diff --git a/configs/socfpga_stratix10_defconfig b/configs/socfpga_stratix10_defconfig index 55050705bd4..1864bebea30 100644 --- a/configs/socfpga_stratix10_defconfig +++ b/configs/socfpga_stratix10_defconfig @@ -57,7 +57,7 @@ CONFIG_CMD_UBI=y # CONFIG_ISO_PARTITION is not set # CONFIG_EFI_PARTITION is not set CONFIG_OF_UPSTREAM=y -CONFIG_OF_LIST="" +CONFIG_OF_LIST="altera/socfpga_stratix10_socdk_emmc" CONFIG_ENV_IS_IN_FAT=y CONFIG_ENV_IS_IN_UBI=y CONFIG_ENV_FAT_DEVICE_AND_PART="0:1" -- 2.43.7
