[PATCH v2 1/1] spi: cadence: Add driver for xSPI

Chee, Tien Fong tienfong.chee at altera.com
Mon Nov 17 11:03:47 CET 2025


On 27/10/2025 2:36 pm, Boon Khai Ng wrote:
> This patch ports the Cadence xSPI controller driver from
> the Linux kernel. The controller supports three operating modes:
>
> 1. ACMD (Auto Command) mode
>     - Includes PIO and CDMA submodes.
>     - CDMA mode uses linked descriptors for high-performance,
>       low-overhead operation.
>     - PIO mode is suitable for simple, single-command transactions.
>
> 2. STIG (Software Triggered Instruction Generator) mode
>     - Issues low-level 128-bit instructions to memory.
>     - Uses the Slave DMA interface for data transfers.
>
> 3. Direct mode
>     - Enables direct data access through the slave interface
>       without commands.
>
> Currently, only the STIG work mode is enabled. Additional modes will be
> supported in future updates.
>
> At the same time, also enabling the kconfig option for xSPI driver.
>
> This driver has been ported and functionally verified on the Intel Simics
> platform. It is intended for evaluation and experimental use at this stage.
>
> Link: https://lore.kernel.org/all/1632038734-23999-1-git-send-email-pthombar@cadence.com/
>
> Signed-off-by: Boon Khai Ng <boon.khai.ng at altera.com>
> ---
>   drivers/spi/Kconfig        |  15 ++
>   drivers/spi/Makefile       |   1 +
>   drivers/spi/cadence_xspi.c | 449 +++++++++++++++++++++++++++++++++++++
>   drivers/spi/cadence_xspi.h | 226 +++++++++++++++++++
>   4 files changed, 691 insertions(+)
>   create mode 100644 drivers/spi/cadence_xspi.c
>   create mode 100644 drivers/spi/cadence_xspi.h


[...]


Reviewed-by: Tien Fong Chee <tien.fong.chee at altera.com>

Best regards,
Tien Fong



More information about the U-Boot mailing list