public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 0/4] rockchip: rk3588: Fix SPI flash bootsource id values
@ 2023-11-12 10:26 Jonas Karlman
  2023-11-12 10:26 ` [PATCH 1/4] rockchip: rk3588: Fix boot from SPI flash Jonas Karlman
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Jonas Karlman @ 2023-11-12 10:26 UTC (permalink / raw)
  To: Kever Yang, Simon Glass, Philipp Tomsich
  Cc: John Clark, Slawomir Stepien, u-boot, Jonas Karlman

The commit fd6e425be243 ("rockchip: rk3588-rock-5b: Enable boot from SPI
NOR flash") added a new BROM_BOOTSOURCE_SPINOR_RK3588 with value 6.

At the time the reason for this new bootsource id value 6 was unknown.

Since then the following bootsource id values have been observed on
different RK3588 devices:

- Radxa ROCK 5 Model A - fspim0_pins - rk3588s
- Xunlong Orange Pi 5 - fspim0_pins - rk3588s
    brom_bootdevice_id: 3

- FriendlyElec NanoPC-T6 - fspim1_pins - rk3588
- Xunlong Orange Pi 5 Plus - fspim1_pins - rk3588
    brom_bootdevice_id: 4

- Radxa ROCK 5 Model B - fspim2_pins - rk3588
    brom_bootdevice_id: 6

It has now been confirmed that the BootRom on RK3588 use different
bootsource id values depending on the iomux used by the flash spi
controller, and not by the type of spi nor or spi nand flash used.

This series adjusts the bootsource enum values, updates the boot_devices
array to fix booting from SPI flash on RK3588 devices using fspim1_pins.
It also enable building of a bootable SPI image for affected devices.

John Clark (1):
  rockchip: rk3588-nanopc-t6: Build SPI image

Jonas Karlman (2):
  rockchip: rk3588: Fix boot from SPI flash
  rockchip: rk3588s-orangepi-5: Build SPI image

Slawomir Stepien (1):
  rockchip: rk3588-orangepi-5-plus: Build SPI image

 arch/arm/include/asm/arch-rockchip/bootrom.h | 4 +++-
 arch/arm/mach-rockchip/rk3588/rk3588.c       | 5 +++--
 configs/nanopc-t6-rk3588_defconfig           | 1 +
 configs/orangepi-5-plus-rk3588_defconfig     | 1 +
 configs/orangepi-5-rk3588s_defconfig         | 1 +
 5 files changed, 9 insertions(+), 3 deletions(-)

-- 
2.42.0


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-11-17 19:58 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-12 10:26 [PATCH 0/4] rockchip: rk3588: Fix SPI flash bootsource id values Jonas Karlman
2023-11-12 10:26 ` [PATCH 1/4] rockchip: rk3588: Fix boot from SPI flash Jonas Karlman
2023-11-13  7:56   ` Slawomir Stepien
2023-11-14 14:06   ` Quentin Schulz
2023-11-17 14:03     ` Slawomir Stepien
2023-11-17 17:50       ` Tom Rini
2023-11-17 18:50         ` John Clark
2023-11-17 19:07           ` Tom Rini
2023-11-17 19:53             ` Jonas Karlman
2023-11-17 19:57               ` Tom Rini
2023-11-12 10:26 ` [PATCH 2/4] rockchip: rk3588-nanopc-t6: Build SPI image Jonas Karlman
2023-11-12 10:26 ` [PATCH 3/4] rockchip: rk3588-orangepi-5-plus: " Jonas Karlman
2023-11-12 10:27 ` [PATCH 4/4] rockchip: rk3588s-orangepi-5: " Jonas Karlman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox