[PATCH 0/6] spi: qcom-geni: Add QSPI support over GPI DMA
From: Jyothi Kumar Seerapu
Date: Fri Nov 06 2026 - 10:13:54 EST
This series adds QSPI support to the Qualcomm GENI SPI driver using
GPI DMA. It supports single, dual and quad SDR transfers in controller
mode.
GENI QSPI reads require a command/address TX phase, an optional dummy
phase and an RX data phase to execute as one hardware command. Add
driver-managed message sequencing to combine these SPI transfers
into a single SPI_TX_RX command.
The series is organized as follows:
1. Add transfer_one_message() support, including completion handling,
GPIO chip-select sequencing, delays and DMA buffer synchronization.
2. Define QCOM_GPI_QSPI for identifying QSPI channels in GPI DMA
specifiers.
3. Document the qcom,geni-qspi compatible.
4. Define GENI_SE_QSPI and update the firmware loader to accept the
QSPI protocol.
5. Add QSPI CONFIG0 and GO TRE formatting to the GPI driver, including
dummy cycles, transfer mode and the TX-then-RX command.
6. Add QSPI support to the SPI driver, combining read phases and
accounting for them in message length, DMA synchronization and
timeout calculations.
SPI and QSPI transfers have been tested using native GENI chip-select.
GPIO chip-select handling has not been tested on hardware.
Signed-off-by: Jyothi Kumar Seerapu <jyothi.seerapu@xxxxxxxxxxxxxxxx>
---
Jyothi Kumar Seerapu (6):
spi: spi-geni-qcom: Add transfer_one_message() support
dt-bindings: dma: qcom-gpi: Add QSPI protocol identifier
dt-bindings: spi: qcom,spi-geni-qcom: Document QSPI support
soc: qcom: geni-se: Define the QSPI firmware protocol
dmaengine: qcom: gpi: Add QSPI protocol support
spi: spi-geni-qcom: Add QSPI support over GPI DMA
.../bindings/spi/qcom,spi-geni-qcom.yaml | 8 +-
drivers/dma/qcom/gpi.c | 22 +-
drivers/soc/qcom/qcom-geni-se.c | 7 +-
drivers/spi/spi-geni-qcom.c | 455 ++++++++++++++++++---
include/dt-bindings/dma/qcom-gpi.h | 1 +
include/linux/dma/qcom-gpi-dma.h | 6 +
include/linux/soc/qcom/geni-se.h | 1 +
7 files changed, 446 insertions(+), 54 deletions(-)
---
base-commit: 7079a12d7506b07fb53b54a664bfad5fa9b16d70
change-id: 20261021-qspi_upstream_series-850249e432f5
Best regards,
--
Jyothi Kumar Seerapu <jyothi.seerapu@xxxxxxxxxxxxxxxx>