Skip to content

ASPEED SPI driver support for dual IO mode

Robert Lippert openbmc 2 versions Applied

Status from this message: Applied to dev-4.7 as db7536c39879.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 8 repliesApplied
  2. v13 patches 8 repliesSuperseded

Changes in v2 from the cover letter

- Cleanups suggested by Cedric.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3mtd: spi-nor: add SPI_NOR_DUAL_READ to mx66l51235ldrivers/mtd/spi-nor/spi-nor.c+1 -11 reply
2/3mtd: spi-nor: aspeed: add support for SPI dual IO read modedrivers/mtd/spi-nor/aspeed-smc.c+23 -72 replies
3/3mtd: spi-nor: aspeed: fix DMA access on AST2500drivers/mtd/spi-nor/aspeed-smc.c+1 -11 reply

Reviews trailers per patch

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

PatchCédric Le Goater
1/3
2/3R-b
3/3

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 linux v2 0/3] ASPEED SPI driver support for dual IO mode

Adds support for dual IO SPI mode. This speeds up SPI accesses, dropping time to dump an entire 64MB Macronix chip from ~12s to ~6s using:
dd if=/dev/mtdblock0 bs=64MB count=1 of=/dev/null

The dual IO bit mode should not depend on any board-specific properties as it uses the same IO lines as single bit mode. Only issue could be if a board used a one-way level tranlator or mux on the MOSI line but that seems unlikely to me.

Tested on Zaius board with AST2500 chip, not tested on AST2400 but I expect it to work since registers are identical.

Note dropped TODO about quad mode since ASPEED SPI controller does not support quad mode.

Changes in v2:
- Cleanups suggested by Cedric.

Robert Lippert (3):
mtd: spi-nor: add SPI_NOR_DUAL_READ to mx66l51235l
mtd: spi-nor: aspeed: add support for SPI dual IO read mode
mtd: spi-nor: aspeed: fix DMA access on AST2500

 drivers/mtd/spi-nor/aspeed-smc.c | 32 ++++++++++++++++++++++++--------
 drivers/mtd/spi-nor/spi-nor.c    |  2 +-
 2 files changed, 25 insertions(+), 9 deletions(-)
Signature · 1 line
2.11.0.390.gc69c2f50cf-goog