The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH v2 0/5] spi: dw-g2: add Synopsys DWC SSI v2.02a controller support
@ 2026-11-30  2:39 Prakriti Sharma
  2026-11-30  2:39 ` [PATCH v2 1/5] spi: dt-bindings: snps,dwc-ssi-2.02a: Add DWC SSI v2.02a controller binding Prakriti Sharma
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Prakriti Sharma @ 2026-11-30  2:39 UTC (permalink / raw)
  To: Mark Brown, linux-spi
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree,
	Philipp Zabel, linux-kernel, Siddhant Kumar, Jose Abreu,
	Nelson Costa, Prakriti Sharma

Add a driver and Device Tree binding for the Synopsys DesignWare SSI Gen2
(DWC_ssi v2.02a) controller.

The controller uses a per-chip-select register map. This posting covers the
MMIO glue, IRQ-driven transfer_one() for regular SPI (spi-mem stays polled),
spi-mem command-only and short register ops, FIFO indirect reads/writes,
SPI-NAND handling, and memory-mapped XIP through spi-mem direct mapping.

The series was exercised with SPI-NOR and Winbond W25N01JW SPI-NAND.

Changes in v2 (addressing v1 review on linux-spi):
- One complete binding in patch 1/5: spi: dt-bindings: subject prefix,
  interrupts required, num-cs 1..4, XIP/reg properties.
- (base driver): MAINTAINERS spi-dw-g2*; drop debugfs;
  dev_warn_once; scaled FIFO timeouts; IRQ full-duplex transfer_one/set_cs;
  selective ICR; mandatory named IRQs; num-cs validation; devm probe.
- (XIP): sysfs-only knobs (no debugfs); normal conditionals; no
  module_param; reject illegal continuous-mode toggles with -EINVAL.
- bitfield.h, kernel-doc section banners, unused tx_entries dropped.

Prakriti Sharma (4):
  spi: dw-g2: Add support for Synopsys DWC SSI v2.02a controller
  spi: dw-g2: Add support for indirect read and write for spi-mem
    transfers
  spi: dw-g2: Add support for SPI-NAND devices
  spi: dw-g2: Add support for memory-mapped XIP

Siddhant Kumar (1):
  spi: dt-bindings: snps,dwc-ssi-2.02a: Add DWC SSI v2.02a controller
    binding

 .../bindings/spi/snps,dwc-ssi-2.02a.yaml      |  191 ++
 MAINTAINERS                                   |    8 +
 drivers/spi/Kconfig                           |   21 +
 drivers/spi/Makefile                          |    3 +
 drivers/spi/spi-dw-g2-core.c                  | 2154 +++++++++++++++++
 drivers/spi/spi-dw-g2-mmio.c                  |  403 +++
 drivers/spi/spi-dw-g2.h                       |  489 ++++
 7 files changed, 3269 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/spi/snps,dwc-ssi-2.02a.yaml
 create mode 100644 drivers/spi/spi-dw-g2-core.c
 create mode 100644 drivers/spi/spi-dw-g2-mmio.c
 create mode 100644 drivers/spi/spi-dw-g2.h


base-commit: 6ac2371c7e3134613584b34e439fd3e8f6185a6f
v1: https://lore.kernel.org/linux-spi/20261119100513.433044-1-prakriti@synopsys.com/

-- 
2.34.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-11-30 16:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-30  2:39 [PATCH v2 0/5] spi: dw-g2: add Synopsys DWC SSI v2.02a controller support Prakriti Sharma
2026-11-30  2:39 ` [PATCH v2 1/5] spi: dt-bindings: snps,dwc-ssi-2.02a: Add DWC SSI v2.02a controller binding Prakriti Sharma
2026-11-30 13:59   ` Rob Herring (Arm)
2026-11-30 16:41   ` Rob Herring
2026-11-30  2:39 ` [PATCH v2 2/5] spi: dw-g2: Add support for Synopsys DWC SSI v2.02a controller Prakriti Sharma
2026-11-30  2:39 ` [PATCH v2 3/5] spi: dw-g2: Add support for indirect read and write for spi-mem transfers Prakriti Sharma
2026-11-30  2:39 ` [PATCH v2 4/5] spi: dw-g2: Add support for SPI-NAND devices Prakriti Sharma
2026-11-30  2:39 ` [PATCH v2 5/5] spi: dw-g2: Add support for memory-mapped XIP Prakriti Sharma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox