Skip to content

Add DDR (Dual Data-Rate) support for DW SPI controller

Changhuang Liang linux-mtd linux-spi lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 4 repliesIn review
  2. v14 patches 11 repliesSuperseded

Changes in v2 from the cover letter

- Add a new patch 1

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5spi: dw: Detect DDR support in enhanced SPI modedrivers/spi/spi-dw-core.c drivers/spi/spi-dw.h+11 -30 replies
2/5spi: dw: Add DDR (Dual Data-Rate) support for enhanced SPI modedrivers/spi/spi-dw-core.c drivers/spi/spi-dw.h+81 -71 reply
3/5mtd: spi-nor: Support mixed 1S-xD-xD DTR protocols in spi_nor_spimem_setup_op()drivers/mtd/spi-nor/core.c+10 -130 replies
4/5mtd: spi-nor: debugfs: Correct DTR protocol names for 1S-xD-xD modesdrivers/mtd/spi-nor/debugfs.c+4 -40 replies
5/5mtd: spi-nor: macronix: Add 1-4-4 DTR read support for MX66L1G45Gdrivers/mtd/spi-nor/macronix.c+27 -12 replies

Reviews trailers per patch

3 of 5 patches have a Reviewed-by or Acked-by.

PatchMiquel Raynal
1/5
2/5R-b
3/5
4/5R-b
5/5R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/5] Add DDR (Dual Data-Rate) support for DW SPI controller

This series implements DDR support for the DW SPI controller and also implements 1-4-4-DTR read support for the MX66L1G45G.
This series has been tested on the JHB100 SoC.

Changes since v1:
- Add a new patch 1

Patch 2:
- Remove DDR instruction support; currently only supports 1S-nD-nD.
- Add dw_spi_supports_enh_ddr_op() to reject invalid DTR operations.
- Use the new DW_SPI_CAP_DDR flag to indicate DTR support.
- Use addr_data_ddr naming instead of spi_ddr.

Patch 3:
- Rework spi_nor_spimem_setup_op() so the command extension, 2-byte opcode and SNOR_F_SWAP16 handling apply only to the 8D-8D-8D DTR protocol. For 1S-xD-xD protocols the opcode remains a single byte sent in STR, and only the address, dummy and data phases are switched to DTR.

Patch 4:
- Add Miquel's Reviewed-by tag.

Patch 5:
- Add Miquel's Reviewed-by tag.
- Update commit message.

v1: https://lore.kernel.org/all/[email protected]/

Changhuang Liang (5):
spi: dw: Detect DDR support in enhanced SPI mode
spi: dw: Add DDR (Dual Data-Rate) support for enhanced SPI mode
mtd: spi-nor: Support mixed 1S-xD-xD DTR protocols in
spi_nor_spimem_setup_op()
mtd: spi-nor: debugfs: Correct DTR protocol names for 1S-xD-xD modes
mtd: spi-nor: macronix: Add 1-4-4 DTR read support for MX66L1G45G

 drivers/mtd/spi-nor/core.c     | 23 ++++----
 drivers/mtd/spi-nor/debugfs.c  |  8 +--
 drivers/mtd/spi-nor/macronix.c | 28 +++++++++-
 drivers/spi/spi-dw-core.c      | 96 ++++++++++++++++++++++++++++++----
 drivers/spi/spi-dw.h           |  6 +++
 5 files changed, 133 insertions(+), 28 deletions(-)

--
2.25.1