[PATCH v2] rockchip: rk3576-rock-4d: Enable XMC SPI chip

Martin Herren <[email protected]>
Newsgroups org.u-boot-project.lists.u-boot
Message-ID <[email protected]>
The Radxa Rock 4D exists also with a different SPI flash chip than the
one specified in the schematic[1]: XMC XM25QU128C.
At least board revision V1.12 can be impacted.

Enable CONFIG_SPI_FLASH_XMC Kconfig options.

Without this SPL fails to probe the SPI flash and thus fails to load
U-Boot proper from it.

Vendor U-Boot also enables CONFIG_SPI_FLASH_GIGADEVICE and
CONFIG_SPI_FLASH_WINBOND so other hardware configuration might exist.
They are not enabled by this patch.

[1] https://dl.radxa.com/rock4/4d/docs/hw/Radxa_ROCK_4D_SCH_V1.12.pdf

Signed-off-by: Martin Herren <[email protected]>
---
Changes in v2:
- Clarify commit message to specifically mention SPI flash instead of
  just SPI
- Capitalize properly U-Boot
- Resend with non-patch-mangling smtp server
- Link to v1: https://patch.msgid.link/[email protected]

To: Simon Glass <[email protected]>
To: [email protected]
Cc: Jonas Karlman <[email protected]>
Cc: Quentin Schulz <[email protected]>
Cc: Kever Yang <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Martin Herren <[email protected]>
Cc: Alexey Charkov <[email protected]>
---
 configs/rock-4d-rk3576_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configs/rock-4d-rk3576_defconfig b/configs/rock-4d-rk3576_defconfig
index 7228a9d879a..93faf09962c 100644
--- a/configs/rock-4d-rk3576_defconfig
+++ b/configs/rock-4d-rk3576_defconfig
@@ -49,6 +49,7 @@ CONFIG_MMC_DW=y
 CONFIG_MMC_DW_ROCKCHIP=y
 CONFIG_SPI_FLASH_SFDP_SUPPORT=y
 CONFIG_SPI_FLASH_MACRONIX=y
+CONFIG_SPI_FLASH_XMC=y
 CONFIG_DWC_ETH_QOS=y
 CONFIG_DWC_ETH_QOS_ROCKCHIP=y
 CONFIG_PHY_REALTEK=y

---
base-commit: 77bc0326456d9d6a83aa7adac201d1c97a008b61
change-id: 20260808-rk3576_radxa-rock-4_spi-9c241f4e29e5

Best regards,
--  
Martin Herren <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.