Skip to content

spi: spi-cadence-quadspi: Add Rx tuning support for DTR mode

Sai Krishna Potthuri linux-mtd linux-spi lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3spi: cadence-quadspi: Add support for PHY module and DQSdrivers/spi/spi-cadence-quadspi.c+24 -10 replies
2/3mtd: spi-nor: Add and update device_id field in spi_mem structuredrivers/mtd/spi-nor/core.c include/linux/spi/spi-mem.h+5 -00 replies
3/3spi: cadence-quadspi: Add Rx tuning support for Xilinx Versal OSPIdrivers/spi/spi-cadence-quadspi.c+201 -01 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] spi: spi-cadence-quadspi: Add Rx tuning support for DTR mode

Enable PHY and DQS required for Xilinx Versal Octal SPI to operate in DTR protocol.
Add and update device_id field in spi_mem structure with flash id information. Xilinx Versal Octal SPI driver requires the device id information to perform the Rx tuning operation. Since there is no common Tuning Data Pattern defined across all vendors, controllers like Xilinx Versal Octal SPI which requires Rx tuning to find out the optimal sampling point for data lines, this device id information will be used as a golden data.
The reason behind choosing this approach instead of reading the ID again in the controller driver is to make it generic solution.
- Other controller drivers which want to use similar tuning process, they will make use of this ID instead of reading the ID again in the driver.
- Also, we can avoid hardcoding the command information and initiating the transfer in the controller driver as this should happen from spi-nor.

Sai Krishna Potthuri (3):
spi: cadence-quadspi: Add support for PHY module and DQS
mtd: spi-nor: Add and update device_id field in spi_mem structure
spi: cadence-quadspi: Add Rx tuning support for Xilinx Versal OSPI

 drivers/mtd/spi-nor/core.c        |   1 +
 drivers/spi/spi-cadence-quadspi.c | 226 +++++++++++++++++++++++++++++-
 include/linux/spi/spi-mem.h       |   4 +
 3 files changed, 230 insertions(+), 1 deletion(-)
Signature · 1 line
2.25.1