Skip to content

Add tCLQV parameter to tweak SPI timings

Eberhard Stoll alsa-devel linux-mtd linux-spi lkml oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4spi: Add parameter for clock to rx delayinclude/linux/spi/spi.h+3 -05 replies
2/4mtd: spinand: Add support for clock to rx delay settingdrivers/mtd/nand/spi/core.c include/linux/mtd/spinand.h+7 -00 replies
3/4mtd: spinand: winbond: Add rx sample delay for W25N02KVdrivers/mtd/nand/spi/winbond.c+2 -10 replies
4/4spi: spi-fsl-qspi: Add support for rx data sample point adjustmentdrivers/spi/spi-fsl-qspi.c+80 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] Add tCLQV parameter to tweak SPI timings

From: Eberhard Stoll <[email protected]>

Hi All,

this patch series adds parameters to tweak SPI timings for some (Q)SPI devices. For example it optimizes the support for the operation of a Winbond W25N02KV SPI NAND chip on NXP i.mx6 ul(l) devices.

The Winbond W25N02KV SPI NAND has the characteristic to introduce a delay between spi clock and the masters spi receive data (called tCLQV value in data sheet).

This chip can operate with a maximum SPI clock of 104MHz. Disregarding the requred tCLQV value of 7ns for this chip reduces the possible spi clock to approx. 70MHz. To support the full bandwith of this chip, the tCLQV parameter has to be supported in SPI framework and SPI controller and the SPI NAND chip needs this parameter in the device configuration data.

Also other devices can improve their operating SPI clock performance with this setting if they also has significant tCLQV values and the SPI controller will support it.

This patch series adds support the tCLQV parameter in:

- SPI framework
- SPI NAND framework
- NXP i.mx6 QSPI controller
- Winbond W25N02KV SPI NAND device

Eberhard Stoll (4):
spi: Add parameter for clock to rx delay
mtd: spinand: Add support for clock to rx delay setting
mtd: spinand: winbond: Add rx sample delay for W25N02KV
spi: spi-fsl-qspi: Add support for rx data sample point adjustment

 drivers/mtd/nand/spi/core.c    |  2 +
 drivers/mtd/nand/spi/winbond.c |  3 +-
 drivers/spi/spi-fsl-qspi.c     | 80 ++++++++++++++++++++++++++++++++++
 include/linux/mtd/spinand.h    |  5 +++
 include/linux/spi/spi.h        |  3 ++
 5 files changed, 92 insertions(+), 1 deletion(-)

base-commit: 05d3ef8bba77c1b5f98d941d8b2d4aeab8118ef1 --
2.25.1

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/