Skip to contentSkip to conversation

xilinx: mbv: Various updates

PATCH Applied Michal Simek 1 participant 13 messages Oct 26 – Nov 3

Subsystems (2)
lore
Share & tools
lore

Michal Simek

author maintainer
#0 lore raw

v2 cover xilinx: mbv: Various updates

Hi,

I am sending various changes which lands in downstream repository based on tests which were done against the latest RTL.

Thanks,
Michal

Changes in v2:
- change subject and enable only ethernet because upstream QEMU has no riscv internal timer enabled

Michal Simek (5):
riscv: dts: mbv: Update bootph-all in xilinx-mbv64 DT
xilinx: mbv: Enable GPIO driver and command
xilinx: mbv: Enable CMD_EXCEPTION
xilinx: mbv: Add support for using bigger boot images via bootm
xilinx: mbv: Enable MTD command by default

Padmarao Begari (4):
xilinx: mbv: Enable Ethernet support
xilinx: mbv: Update stack, heap, and OpenSBI memory
xilinx: mbv: Disable SPL raw image support
xilinx: mbv: Add SPI-related board config

Sandeep Gundlupet Raju (2):
riscv: dts: mbv: Update mem size to 2GB
xilinx: mbv: Add sys prompt for mbv32 and mbv64

 arch/riscv/dts/xilinx-mbv64.dts      |  8 +++++---
 configs/xilinx_mbv32_defconfig       | 24 ++++++++++++++++++++----
 configs/xilinx_mbv32_smode_defconfig |  2 +-
 configs/xilinx_mbv64_defconfig       |  1 +
 configs/xilinx_mbv64_smode_defconfig |  2 +-
 configs/xilinx_mbv_spi.config        | 14 ++++++++++++++
 6 files changed, 42 insertions(+), 9 deletions(-)
 create mode 100644 configs/xilinx_mbv_spi.config

---

Signature · 1 line
2.43.0
author maintainer
#2 lore raw

PATCH v2 2/11 riscv: dts: mbv: Update bootph-all in xilinx-mbv64 DT

Mark cpus and clk100 with bootph-all to have them available during SPL. Also remove it from axi timer because RISC-V timer should be used instead.

---

(no changes since v1)

 arch/riscv/dts/xilinx-mbv64.dts | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
arch/riscv/dts/xilinx-mbv64.dts +4 -2
index cac7f65cd569..46950155bbe6 100644
@@ -2,7 +2,7 @@
 /*
  * dts file for AMD MicroBlaze V
  *
- * (C) Copyright 2023 - 2025, Advanced Micro Devices, Inc.
+ * (C) Copyright 2023 - 2026, Advanced Micro Devices, Inc.
  *
  * Michal Simek <[email protected]>
  */
@@ -19,6 +19,8 @@
 		#address-cells = <1>;
 		#size-cells = <0>;
 		timebase-frequency = <100000000>;
+		bootph-all;
+
 		cpu_0: cpu@0 {
 			compatible = "amd,mbv64", "riscv";
 			device_type = "cpu";
@@ -51,6 +53,7 @@
 	};
 
 	clk100: clock {
+		bootph-all;
 		compatible = "fixed-clock";
 		#clock-cells = <0>;
 		clock-frequency = <100000000>;
@@ -78,7 +81,6 @@
 			reg = <0 0x41c00000 0 0x1000>;
 			interrupt-parent = <&axi_intc>;
 			interrupts = <0 2>;
-			bootph-all;
 			xlnx,one-timer-only = <0>;
 			clock-names = "s_axi_aclk";
 			clocks = <&clk100>;
Signature · 1 line
2.43.0
author maintainer
#3 lore raw

PATCH v2 3/11 xilinx: mbv: Enable Ethernet support

In reply to Michal Simek

From: Padmarao Begari <[email protected]>

Enable Ethernet support based on LWIP with emaclite and axi ethernet drivers. Also enable phy drivers available on kcu105 and scu200.

---

Changes in v2:
- change subject and enable only ethernet because upstream QEMU has no riscv internal timer enabled

 configs/xilinx_mbv32_defconfig | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
configs/xilinx_mbv32_defconfig +8 -1
index 47cecd6878a7..07ed096ab480 100644
@@ -43,12 +43,19 @@ CONFIG_SPL_CUSTOM_SYS_MALLOC_ADDR=0x80000000
 CONFIG_SPL_SYS_MALLOC_SIZE=0x200000
 # CONFIG_SPL_CPU is not set
 CONFIG_SPL_REMAKE_ELF=y
-# CONFIG_CMD_MII is not set
 CONFIG_CMD_SNTP=y
 CONFIG_CMD_TIMER=y
 CONFIG_ENV_RELOC_GD_ENV_ADDR=y
+CONFIG_NET_LWIP=y
+CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_SPL_DM_SEQ_ALIAS=y
 CONFIG_DM_MTD=y
+CONFIG_DM_MDIO=y
+CONFIG_DM_ETH_PHY=y
+CONFIG_XILINX_AXIEMAC=y
+CONFIG_XILINX_EMACLITE=y
+CONFIG_PHY_MARVELL=y
+CONFIG_PHY_TI_DP83867=y
 CONFIG_DM_RTC=y
 CONFIG_RTC_EMULATION=y
 CONFIG_XILINX_UARTLITE=y
Signature · 1 line
2.43.0
author maintainer
#1 lore raw

PATCH v2 1/11 riscv: dts: mbv: Update mem size to 2GB

In reply to Michal Simek

From: Sandeep Gundlupet Raju <[email protected]>

Currently memory size is set to 1GB, increase the mem size to 2GB to be aligned with uboot-test-hooks setting which is using -m 2G.

---

(no changes since v1)

 arch/riscv/dts/xilinx-mbv64.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/dts/xilinx-mbv64.dts +1 -1
index e6235ed2f525..cac7f65cd569 100644
@@ -47,7 +47,7 @@
 
 	memory@80000000 {
 		device_type = "memory";
-		reg = <0 0x80000000 0 0x40000000>;
+		reg = <0 0x80000000 0 0x80000000>;
 	};
 
 	clk100: clock {
Signature · 1 line
2.43.0
author maintainer
#4 lore raw

PATCH v2 4/11 xilinx: mbv: Enable GPIO driver and command

In reply to Michal Simek

Enable GPIO command and Xilinx GPIO driver.

---

(no changes since v1)

 configs/xilinx_mbv32_defconfig | 6 ++++++
 1 file changed, 6 insertions(+)
configs/xilinx_mbv32_defconfig +6 -0
index 07ed096ab480..a1a2e3b0feed 100644
@@ -7,6 +7,7 @@ CONFIG_NR_DRAM_BANKS=1
 CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
 CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x81200000
 CONFIG_ENV_SIZE=0x20000
+CONFIG_DM_GPIO=y
 CONFIG_DEFAULT_DEVICE_TREE="xilinx-mbv32"
 CONFIG_SPL_STACK=0x80200000
 CONFIG_SPL_TEXT_BASE=0x0
@@ -43,12 +44,17 @@ CONFIG_SPL_CUSTOM_SYS_MALLOC_ADDR=0x80000000
 CONFIG_SPL_SYS_MALLOC_SIZE=0x200000
 # CONFIG_SPL_CPU is not set
 CONFIG_SPL_REMAKE_ELF=y
+CONFIG_CMD_GPIO=y
+CONFIG_CMD_GPIO_READ=y
 CONFIG_CMD_SNTP=y
 CONFIG_CMD_TIMER=y
 CONFIG_ENV_RELOC_GD_ENV_ADDR=y
 CONFIG_NET_LWIP=y
 CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_SPL_DM_SEQ_ALIAS=y
+CONFIG_GPIO_HOG=y
+CONFIG_DM_GPIO_LOOKUP_LABEL=y
+CONFIG_XILINX_GPIO=y
 CONFIG_DM_MTD=y
 CONFIG_DM_MDIO=y
 CONFIG_DM_ETH_PHY=y
Signature · 1 line
2.43.0
author maintainer
#5 lore raw

PATCH v2 5/11 xilinx: mbv: Enable CMD_EXCEPTION

In reply to Michal Simek

Command is useful for testing the system and checking that exceptions are working property that's why enable it by default.

---

(no changes since v1)

 configs/xilinx_mbv32_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/xilinx_mbv32_defconfig +1 -0
index a1a2e3b0feed..dfb0865a5c27 100644
@@ -47,6 +47,7 @@ CONFIG_SPL_REMAKE_ELF=y
 CONFIG_CMD_GPIO=y
 CONFIG_CMD_GPIO_READ=y
 CONFIG_CMD_SNTP=y
+CONFIG_CMD_EXCEPTION=y
 CONFIG_CMD_TIMER=y
 CONFIG_ENV_RELOC_GD_ENV_ADDR=y
 CONFIG_NET_LWIP=y
Signature · 1 line
2.43.0
author maintainer
#6 lore raw

PATCH v2 6/11 xilinx: mbv: Update stack, heap, and OpenSBI memory

In reply to Michal Simek

From: Padmarao Begari <[email protected]>

A 2 MB region of DDR memory is allocated for U‑Boot SPL, with the heap starting at address 0x80000000 and the stack at 0x80200000. However, U‑Boot fails when using OpenSBI v1.8 because OpenSBI begins execution at 0x80100000, causing an overlap between the SPL stack and the malloc region.
To resolve this conflict, the SPL heap and stack are moved to higher memory addresses, and OpenSBI is relocated to 0x80000000. The SPL heap now starts at 0x8C000000, and the stack is placed at 0x8F000000. The MB-V requires at least 256MB of DDR to run U-Boot.

	_________________
	|		|0x8FFFFFFF
	|_______________|
	|  SPL- Stack	|0x8F000000
	|		|
	|		|
	|  SPL - Heap	|
	|_______________|0x8C000000
	|		|
	|		|
	| Full U-Boot	|
	|_______________|0x81200000
	|Load FIT Image |
	|_______________|0x80200000
	|   OpenSBI     |
	|_______________|0x80000000

---

(no changes since v1)

 configs/xilinx_mbv32_defconfig       | 4 ++--
 configs/xilinx_mbv32_smode_defconfig | 2 +-
 configs/xilinx_mbv64_smode_defconfig | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
configs/xilinx_mbv32_defconfig +2 -2
index dfb0865a5c27..0573ec29df65 100644
@@ -9,7 +9,7 @@ CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x81200000
 CONFIG_ENV_SIZE=0x20000
 CONFIG_DM_GPIO=y
 CONFIG_DEFAULT_DEVICE_TREE="xilinx-mbv32"
-CONFIG_SPL_STACK=0x80200000
+CONFIG_SPL_STACK=0x8F000000
 CONFIG_SPL_TEXT_BASE=0x0
 CONFIG_SPL_BSS_START_ADDR=0xf000
 CONFIG_SPL_BSS_MAX_SIZE=0x1000
@@ -40,7 +40,7 @@ CONFIG_DISPLAY_BOARDINFO=y
 CONFIG_SPL_MAX_SIZE=0xf000
 CONFIG_SPL_SYS_MALLOC=y
 CONFIG_SPL_HAS_CUSTOM_MALLOC_START=y
-CONFIG_SPL_CUSTOM_SYS_MALLOC_ADDR=0x80000000
+CONFIG_SPL_CUSTOM_SYS_MALLOC_ADDR=0x8C000000
 CONFIG_SPL_SYS_MALLOC_SIZE=0x200000
 # CONFIG_SPL_CPU is not set
 CONFIG_SPL_REMAKE_ELF=y
configs/xilinx_mbv32_smode_defconfig +1 -1
index dd1221a6904f..a72f13851acc 100644
@@ -1,5 +1,5 @@
 #include <configs/xilinx_mbv32_defconfig>
 
-CONFIG_SPL_OPENSBI_LOAD_ADDR=0x80100000
+CONFIG_SPL_OPENSBI_LOAD_ADDR=0x80000000
 CONFIG_RISCV_SMODE=y
 CONFIG_SPL_OPENSBI_SCRATCH_OPTIONS=0x2
configs/xilinx_mbv64_smode_defconfig +1 -1
index 56bf0bdc7e4f..d7cf108692d6 100644
@@ -1,5 +1,5 @@
 #include <configs/xilinx_mbv64_defconfig>
 
-CONFIG_SPL_OPENSBI_LOAD_ADDR=0x80100000
+CONFIG_SPL_OPENSBI_LOAD_ADDR=0x80000000
 CONFIG_RISCV_SMODE=y
 CONFIG_SPL_OPENSBI_SCRATCH_OPTIONS=0x2
Signature · 1 line
2.43.0
author maintainer
#7 lore raw

PATCH v2 7/11 xilinx: mbv: Add support for using bigger boot images via bootm

In reply to Michal Simek

Current limit is 8MB which is quite low that's why increase it to 128MB (default value) which should be more then enough for the kernel with cpio.

---

(no changes since v1)

 configs/xilinx_mbv32_defconfig | 1 -
 1 file changed, 1 deletion(-)
configs/xilinx_mbv32_defconfig +0 -1
index 0573ec29df65..e9ceb10bc563 100644
@@ -13,7 +13,6 @@ CONFIG_SPL_STACK=0x8F000000
 CONFIG_SPL_TEXT_BASE=0x0
 CONFIG_SPL_BSS_START_ADDR=0xf000
 CONFIG_SPL_BSS_MAX_SIZE=0x1000
-CONFIG_SYS_BOOTM_LEN=0x800000
 CONFIG_SYS_LOAD_ADDR=0x80200000
 # CONFIG_SPL_SHARES_INIT_SP_ADDR is not set
 CONFIG_SPL_HAVE_INIT_STACK=y
Signature · 1 line
2.43.0
author maintainer
#8 lore raw

PATCH v2 8/11 xilinx: mbv: Add sys prompt for mbv32 and mbv64

In reply to Michal Simek

From: Sandeep Gundlupet Raju <[email protected]>

Define CONFIG_SYS_PROMPT for the mbv32 and mbv64 device so the U-Boot prompt is consistent with other AMD devices.

---

(no changes since v1)

 configs/xilinx_mbv32_defconfig | 1 +
 configs/xilinx_mbv64_defconfig | 1 +
 2 files changed, 2 insertions(+)
configs/xilinx_mbv32_defconfig +1 -0
index e9ceb10bc563..fd12e25150fb 100644
@@ -43,6 +43,7 @@ CONFIG_SPL_CUSTOM_SYS_MALLOC_ADDR=0x8C000000
 CONFIG_SPL_SYS_MALLOC_SIZE=0x200000
 # CONFIG_SPL_CPU is not set
 CONFIG_SPL_REMAKE_ELF=y
+CONFIG_SYS_PROMPT="mbv32> "
 CONFIG_CMD_GPIO=y
 CONFIG_CMD_GPIO_READ=y
 CONFIG_CMD_SNTP=y
configs/xilinx_mbv64_defconfig +1 -0
index 27d674fc34fb..69ab269619d6 100644
@@ -2,3 +2,4 @@
 
 CONFIG_DEFAULT_DEVICE_TREE="xilinx-mbv64"
 CONFIG_ARCH_RV64I=y
+CONFIG_SYS_PROMPT="mbv64> "
Signature · 1 line
2.43.0
author maintainer
#9 lore raw

PATCH v2 9/11 xilinx: mbv: Disable SPL raw image support

In reply to Michal Simek

From: Padmarao Begari <[email protected]>

When there is no valid image in SPI flash, SPL falls back to raw image mode, copies the flash contents to CONFIG_TEXT_BASE, and jumps there, causing an illegal instruction exception.

Disable raw image support so that a missing SPI image returns an error and allows SPL to fall back to the next boot device.

---

(no changes since v1)

 configs/xilinx_mbv32_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/xilinx_mbv32_defconfig +1 -0
index fd12e25150fb..712194c6b433 100644
@@ -37,6 +37,7 @@ CONFIG_DISPLAY_BOARDINFO=y
 # CONFIG_BOARD_INIT is not set
 # CONFIG_BOARD_LATE_INIT is not set
 CONFIG_SPL_MAX_SIZE=0xf000
+# CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
 CONFIG_SPL_SYS_MALLOC=y
 CONFIG_SPL_HAS_CUSTOM_MALLOC_START=y
 CONFIG_SPL_CUSTOM_SYS_MALLOC_ADDR=0x8C000000
Signature · 1 line
2.43.0
author maintainer
#10 lore raw

PATCH v2 10/11 xilinx: mbv: Add SPI-related board config

In reply to Michal Simek

From: Padmarao Begari <[email protected]>

Add SPI-related configuration to enable SPI flash support for U-Boot SPL. This allows SPL to boot from SPI flash and load the FIT image from offset 0x10000.

---

(no changes since v1)

 configs/xilinx_mbv_spi.config | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 configs/xilinx_mbv_spi.config
configs/xilinx_mbv_spi.config new file +14 -0
new file mode 100644
index 000000000000..34b744e8ac1d
@@ -0,0 +1,14 @@
+CONFIG_SF_DEFAULT_SPEED=40000000
+CONFIG_SPL_SPI=y
+CONFIG_SPL_DM_SPI=y
+CONFIG_SPL_SPI_FLASH_SUPPORT=y
+CONFIG_SPL_DM_SPI_FLASH=y
+CONFIG_SPL_SPI_LOAD=y
+CONFIG_SYS_SPI_U_BOOT_OFFS=0x10000
+CONFIG_BOOTDEV_SPI_FLASH=y
+CONFIG_SPI_FLASH_SFDP_SUPPORT=y
+CONFIG_SPI_FLASH_MACRONIX=y
+CONFIG_SPI_FLASH_STMICRO=y
+CONFIG_SPI_FLASH=y
+CONFIG_SPI=y
+CONFIG_XILINX_SPI=y
Signature · 1 line
2.43.0
author maintainer
#11 lore raw

PATCH v2 11/11 xilinx: mbv: Enable MTD command by default

In reply to Michal Simek

Enable MTD command to be able to handle MTD layouts.

---

(no changes since v1)

 configs/xilinx_mbv32_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/xilinx_mbv32_defconfig +1 -0
index 712194c6b433..ac329ec65768 100644
@@ -47,6 +47,7 @@ CONFIG_SPL_REMAKE_ELF=y
 CONFIG_SYS_PROMPT="mbv32> "
 CONFIG_CMD_GPIO=y
 CONFIG_CMD_GPIO_READ=y
+CONFIG_CMD_MTD=y
 CONFIG_CMD_SNTP=y
 CONFIG_CMD_EXCEPTION=y
 CONFIG_CMD_TIMER=y
Signature · 1 line
2.43.0
author maintainer Applied
#12 lore raw
In reply to Michal Simek
Quoted 36 lines · Michal Simek

Hi,

I am sending various changes which lands in downstream repository based on tests which were done against the latest RTL.

Thanks,
Michal

Changes in v2:
- change subject and enable only ethernet because upstream QEMU has no riscv internal timer enabled

Michal Simek (5):
riscv: dts: mbv: Update bootph-all in xilinx-mbv64 DT
xilinx: mbv: Enable GPIO driver and command
xilinx: mbv: Enable CMD_EXCEPTION
xilinx: mbv: Add support for using bigger boot images via bootm
xilinx: mbv: Enable MTD command by default

Padmarao Begari (4):
xilinx: mbv: Enable Ethernet support
xilinx: mbv: Update stack, heap, and OpenSBI memory
xilinx: mbv: Disable SPL raw image support
xilinx: mbv: Add SPI-related board config

Sandeep Gundlupet Raju (2):
riscv: dts: mbv: Update mem size to 2GB
xilinx: mbv: Add sys prompt for mbv32 and mbv64

  arch/riscv/dts/xilinx-mbv64.dts      |  8 +++++---
  configs/xilinx_mbv32_defconfig       | 24 ++++++++++++++++++++----
  configs/xilinx_mbv32_smode_defconfig |  2 +-
  configs/xilinx_mbv64_defconfig       |  1 +
  configs/xilinx_mbv64_smode_defconfig |  2 +-
  configs/xilinx_mbv_spi.config        | 14 ++++++++++++++
  6 files changed, 42 insertions(+), 9 deletions(-)
Quoted 3 lines

create mode 100644 configs/xilinx_mbv_spi.config

---

Applied.
M