Skip to content

spi: cadence-xspi: Add support for Cadence XSPI controller

Konrad Kociolek 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 Latest2 patches 5 repliesIn review
  2. v12 patches 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Add Cadence XSPI driverdrivers/spi/Kconfig drivers/spi/Makefile drivers/spi/spi-cadence-xspi.c+907 -03 replies
2/2Add dt-bindings for Cadence XSPI controllerDocumentation/devicetree/bindings/spi/cdns,xspi.yaml+166 -02 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/2] spi: cadence-xspi: Add support for Cadence XSPI controller

Driver for Cadence xSPI flash controller.

Command processing
Driver uses STIG work mode to communicate with flash memories. In this mode, controller sends low-level instructions to memory. Each instruction is 128-bit width. There is special instruction DataSequence which carries information about data phase. Driver uses Slave DMA interface to transfer data as only this interface can be used in STIG work mode.

PHY initialization
The initialization of PHY module in Cadence XSPI controller is done by driving external pin-strap signals to controller. Next, driver runs PHY training to find optimal value of read_dqs_delay parameter. Controller checks device discovery status and if it's completed and with no error PHY training passes.

Changes between initial version and v2:
- fixed device tree schema yaml file

Konrad Kociolek (2):
Add Cadence XSPI driver
Add dt-bindings for Cadence XSPI controller

 .../devicetree/bindings/spi/cdns,xspi.yaml         | 166 ++++
 drivers/spi/Kconfig                                |  11 +
 drivers/spi/Makefile                               |   1 +
 drivers/spi/spi-cadence-xspi.c                     | 895 +++++++++++++++++++++
 4 files changed, 1073 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/spi/cdns,xspi.yaml
 create mode 100644 drivers/spi/spi-cadence-xspi.c
Signature · 1 line
2.15.0