Skip to content

mtd: spi: spi-nor: rk3399: rock-pi-4: u-boot/next Support SPI NOR Flash in Rock Pi 4 (XTX xt25f32b)

Xavier Drudis Ferran u-boot 4 versions – In review

Get series with b4
b4 am 20220720153610.GD2049@begut

Versions newest first · linked by author and title

  1. v3 Latest posting 2/24 patches 6 repliesIn review
  2. v3 posting 1/20 of 4 patches 0 repliesSuperseded
  3. v25 patches 10 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v14 patches2 repliesSuperseded

Changes in v3 from the cover letter

- rebased on master

- droped 5th path, and enabled CONFIG_SPL_DM_SEQ_ALIAS instead to have the flash on spi1 both on SPL and U-Boot proper.

Patches in v3 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4mtd: spi: spi-nor: Add Rock pi 4b new flash chipdrivers/mtd/spi/spi-nor-ids.c+3 -00 replies
2/4rockchip: rk-3399: rock-pi-4: dts: Add XTX SPI NOR 4MiB Flash chip in Rock Pi 4 boards from rev 1.4 on.arch/arm/dts/rk3399-rock-pi-4-u-boot.dtsi configs/rock-pi-4-rk3399_defconfig+40 -01 reply
3/4spi-nor: Adapt soft reset to XTX25F32B in Rock Pi 4 rev 1.4drivers/mtd/spi/spi-nor-core.c include/linux/mtd/spi-nor.h+92 -115 replies
4/4spi: spi-mem: Allow address 0 for SPI mem operationsdrivers/spi/spi-mem.c+26 -80 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchKever Yang
1/4
2/4R-b
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/4] mtd: spi: spi-nor: rk3399: rock-pi-4: u-boot/next Support SPI NOR Flash in Rock Pi 4 (XTX xt25f32b)

The Radxa Rock Pi 4 board is sold from revision 1.4 with a soldered 4Mb SPI NOR Flash. This series allows to use it from U-Boot and boot from it.

This series applies to u-boot/master.

Changes since v2:

- rebased on master

- droped 5th path, and enabled CONFIG_SPL_DM_SEQ_ALIAS instead to have the flash on spi1 both on SPL and U-Boot proper.

Changes since v1:

- Changed bus number to 1 in SPL to match U-Boot proper (before it was bus 0 in SPL and bus 1 in U-Boot).

- Generalization. v1 did a first soft_reset in 8_8_8_DTR but that wouldn't work since Pratyush Yadav fixed supports_op() in commit 5752d6ae8daacbd ("spi: spi-mem: add spi_mem_dtr_supports_op()"). So now we try a few protocols until 1_1_1 is supported by controller and device. Might work for more systems.