Skip to content

RFC mtd: spi-nor: fix support of Quad SPI memories

Cyrille Pitchen linux-mtd lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest8 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8mtd: spi-nor: add an alternative method to support memory >16MiBdrivers/mtd/devices/serial_flash_cmds.h drivers/mtd/devices/st_spi_fsm.c drivers/mtd/spi-nor/spi-nor.c +1 more+111 -480 replies
2/8mtd: spi-nor: allow different flash_info entries to share the same JEDEC IDdrivers/mtd/spi-nor/spi-nor.c+2 -10 replies
3/8mtd: spi-nor: add entry for Macronix mx25l25673gdrivers/mtd/spi-nor/spi-nor.c+1 -00 replies
4/8mtd: spi-nor: fix support of Dual (x-y-2) and Quad (x-y-4) SPI protocolsdrivers/mtd/devices/m25p80.c drivers/mtd/spi-nor/fsl-quadspi.c drivers/mtd/spi-nor/mtk-quadspi.c +3 more+365 -924 replies
5/8mtd: m25p80: add support of dual and quad spi protocols to all commandsdrivers/mtd/devices/m25p80.c+155 -450 replies
6/8mtd: spi-nor: add support for Micron Dual and Quad SPI memoriesdrivers/mtd/spi-nor/spi-nor.c include/linux/mtd/spi-nor.h+265 -110 replies
7/8Documentation: atmel-quadspi: add binding file for Atmel QSPI driverDocumentation/devicetree/bindings/mtd/atmel-quadspi.txt+32 -00 replies
8/8mtd: atmel-quadspi: add driver for Atmel QSPI controllerdrivers/mtd/spi-nor/Kconfig drivers/mtd/spi-nor/Makefile drivers/mtd/spi-nor/atmel-quadspi.c+822 -01 reply

Reviews trailers per patch

2 of 8 patches have a Reviewed-by or Acked-by.

PatchRob HerringNicolas FerreMarek Vasut
SeriesT-b
1/8
2/8
3/8
4/8
5/8
6/8
7/8A-b A-b
8/8A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH RFC 0/8] mtd: spi-nor: fix support of Quad SPI memories

Hi all,

this series is RFC but has already been tested on a sama5d2x xplained board with the Atmel QSPI controller + Micron n25q128a13:
compatible = "micron,n25q128a13", "jedec,spi-nor";

This first 3 patches of the series are stable and have already been submitted to linux-mtd. They are required as a base for the later patches.

Support of Micron memories has been implemented as an example, other memory entries should be updated as needed in the spi_nor_ids[] table.

This new way to support Quad SPI memories is inspired by the JEDEC SFDP standard. However SFDP tables are not provided by all memories and some of them badly implement the standard. Also the standard itself can tell whether the memory supports the 2-2-2 mode but doesn't provide the procedure to enter/leave this mode as provided for the 4-4-4 mode.

Please note that some commit messages are missing but a review might be really helpfull! :)

Almost all the actual rework is done in patch 4.

Best regards,

Cyrille

Cyrille Pitchen (8):
mtd: spi-nor: add an alternative method to support memory >16MiB
mtd: spi-nor: allow different flash_info entries to share the same
JEDEC ID
mtd: spi-nor: add entry for Macronix mx25l25673g
mtd: spi-nor: fix support of Dual (x-y-2) and Quad (x-y-4) SPI
protocols
mtd: m25p80: add support of dual and quad spi protocols to all
commands
mtd: spi-nor: add support for Micron Dual and Quad SPI memories
Documentation: atmel-quadspi: add binding file for Atmel QSPI driver
mtd: atmel-quadspi: add driver for Atmel QSPI controller

 .../devicetree/bindings/mtd/atmel-quadspi.txt      |  32 +
 drivers/mtd/devices/m25p80.c                       | 212 ++++--
 drivers/mtd/devices/serial_flash_cmds.h            |   7 -
 drivers/mtd/devices/st_spi_fsm.c                   |  28 +-
 drivers/mtd/spi-nor/Kconfig                        |   9 +
 drivers/mtd/spi-nor/Makefile                       |   1 +
 drivers/mtd/spi-nor/atmel-quadspi.c                | 812 +++++++++++++++++++++
 drivers/mtd/spi-nor/fsl-quadspi.c                  |   9 +-
 drivers/mtd/spi-nor/mtk-quadspi.c                  |  17 +-
 drivers/mtd/spi-nor/nxp-spifi.c                    |  22 +-
 drivers/mtd/spi-nor/spi-nor.c                      | 635 +++++++++++++---
 include/linux/mtd/spi-nor.h                        | 160 +++-
 12 files changed, 1750 insertions(+), 194 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/mtd/atmel-quadspi.txt
 create mode 100644 drivers/mtd/spi-nor/atmel-quadspi.c
Signature · 1 line
1.8.2.2