Skip to content

mtd: spi-nor: parse SFDP tables as defined by JESD216B

Cyrille Pitchen linux-mtd lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9mtd: spi-nor: improve macronix_quad_enable()drivers/mtd/spi-nor/spi-nor.c+5 -00 replies
2/9mtd: 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+113 -480 replies
3/9Documentation: atmel-quadspi: add binding file for Atmel QSPI driverDocumentation/devicetree/bindings/mtd/atmel-quadspi.txt+32 -00 replies
4/9mtd: atmel-quadspi: add driver for Atmel QSPI controllerdrivers/mtd/spi-nor/Kconfig drivers/mtd/spi-nor/Makefile drivers/mtd/spi-nor/atmel-quadspi.c+751 -00 replies
5/9mtd: spi-nor: add support of SPI protocols like SPI 1-2-2 and SPI 1-4-4drivers/mtd/devices/m25p80.c drivers/mtd/spi-nor/atmel-quadspi.c drivers/mtd/spi-nor/fsl-quadspi.c +4 more+444 -1150 replies
6/9mtd: spi-nor: remove unused set_quad_mode() functiondrivers/mtd/spi-nor/spi-nor.c+0 -240 replies
7/9mtd: m25p80: add support of dual and quad spi protocols to all commandsdrivers/mtd/devices/m25p80.c+149 -4410 replies
8/9mtd: spi-nor: parse Serial Flash Discoverable Parameters (SFDP) tablesdrivers/mtd/spi-nor/spi-nor.c include/linux/mtd/spi-nor.h+423 -10 replies
9/9mtd: spi-nor: parse SFDP 4-byte Address Instruction Tabledrivers/mtd/spi-nor/spi-nor.c+141 -10 replies

Reviews trailers per patch

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

PatchRob HerringNicolas Ferre
1/9
2/9
3/9A-b A-b
4/9A-b
5/9
6/9
7/9
8/9
9/9

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/9] mtd: spi-nor: parse SFDP tables as defined by JESD216B

Hi all,

This series of patches adds support SPI x-y-z protocols other than SPI 1-1-1, 1-1-2 and 1-1-4. When available, the Serial Flash Discoverable Parameter (SFDP) tables are parsed to dynamically configure the SPI protocols, op codes, number of dummy cycles or erase block size used during Fast Read, Page Program and Sector Erase operation. Otherwise, when SFDP tables are not available, the legacy settings are
used: we only use SPI 1-1-1, 1-1-2 or 1-1-4 protocols.

Also the 3rd parameter of spi_nor_scan() is changed so the caller can provide the spi-nor framework with a more accurate list of SPI protocols supported by the SPI controller. Using both this list and the SFDP settings, the spi-nor framework can now select the best match for SPI protocols supported by both the memory and the controller.

This series of patches is based onto next-20160620.
It was tested on a sama5d2 xplained board + Macronix mx25l25673g.

Best regards,

Cyrille

Cyrille Pitchen (9):
mtd: spi-nor: improve macronix_quad_enable()
mtd: spi-nor: add an alternative method to support memory >16MiB
Documentation: atmel-quadspi: add binding file for Atmel QSPI driver
mtd: atmel-quadspi: add driver for Atmel QSPI controller
mtd: spi-nor: add support of SPI protocols like SPI 1-2-2 and SPI

    1-4-4

mtd: spi-nor: remove unused set_quad_mode() function
mtd: m25p80: add support of dual and quad spi protocols to all
commands
mtd: spi-nor: parse Serial Flash Discoverable Parameters (SFDP) tables
mtd: spi-nor: parse SFDP 4-byte Address Instruction Table

 .../devicetree/bindings/mtd/atmel-quadspi.txt      |  32 +
 drivers/mtd/devices/m25p80.c                       | 204 ++++-
 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                | 770 +++++++++++++++++
 drivers/mtd/spi-nor/fsl-quadspi.c                  |   8 +-
 drivers/mtd/spi-nor/mtk-quadspi.c                  |  16 +-
 drivers/mtd/spi-nor/nxp-spifi.c                    |  21 +-
 drivers/mtd/spi-nor/spi-nor.c                      | 962 +++++++++++++++++++--
 include/linux/mtd/spi-nor.h                        | 159 +++-
 12 files changed, 2021 insertions(+), 196 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