Skip to content

mtd: spi-nor: add generic flash driver

[email protected] u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4mtd: spi-nor: Rework set_4byte()drivers/mtd/spi/spi-nor-core.c include/linux/mtd/spi-nor.h+138 -441 reply
2/4mtd: spi-nor: Set the 4-Byte Address Mode method based on SFDP datadrivers/mtd/spi/spi-nor-core.c+39 -11 reply
3/4mtd: spi-nor: Remove SPI_NOR_SKIP_SFDP flagdrivers/mtd/spi/sf_internal.h drivers/mtd/spi/spi-nor-core.c+6 -81 reply
4/4mtd: spi-nor: add generic flash driverdrivers/mtd/spi/sf_internal.h drivers/mtd/spi/spi-nor-core.c+70 -261 reply

Reviews trailers per patch

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

PatchTudor Ambarus
1/4
2/4
3/4R-b
4/4

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

Read the v1 thread

Cover letter [PATCH 0/4] mtd: spi-nor: add generic flash driver

From: Takahiro Kuwano <[email protected]>

The goal of series is to port spi-nor-generic feature based on SFDP parsing. This feature will suppress the increase of spi_nor_ids{} size and reduce our effort to maintain it.

We need to rework 4-byte address mode entry/exit functions and enhance SFDP parsing to select proper 4-byte address mode method. After that, add spi-nor-generic structure and fallback logic in spi_nor_read_id().

Most of the code in this series are from Linux commits with some modification to address gap between u-boot and Linux implementation.

It may be better to sync whole SPI NOR framework with Linux. That will be done incrementally by separate series.

Tested with CYRS17B512 SPI NOR Flash which supports SFDP but not listed in spi_nor_ids[].
https://www.infineon.com/dgdl/Infineon-CYRS17B512_512_MB_64_MB_SERIAL_NOR_FLASH_SPI_QSPI_3-DataSheet-v07_00-EN.pdf?fileId=8ac78c8c8fc2dd9c01900eee733d45f3

Takahiro Kuwano (4):
mtd: spi-nor: Rework set_4byte()
mtd: spi-nor: Set the 4-Byte Address Mode method based on SFDP data
mtd: spi-nor: Remove SPI_NOR_SKIP_SFDP flag
mtd: spi-nor: add generic flash driver

 drivers/mtd/spi/sf_internal.h  |  10 +-
 drivers/mtd/spi/spi-nor-core.c | 317 +++++++++++++++++++++++++--------
 include/linux/mtd/spi-nor.h    |   3 +
 3 files changed, 252 insertions(+), 78 deletions(-)
Signature · 1 line
2.34.1