All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] spi: loongson: SPI-IO driver for Loongson-2K0300
@ 2026-11-23  9:44 Binbin Zhou
  2026-11-23  9:44 ` [PATCH 1/5] spi: dt-bindings: loongson,ls2k-spi: Document loongson,ls2k0300-spi compatible Binbin Zhou
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Binbin Zhou @ 2026-11-23  9:44 UTC (permalink / raw)
  To: Binbin Zhou, Huacai Chen, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Yinbo Zhu, Mark Brown
  Cc: Huacai Chen, Xuerui Wang, loongarch, devicetree, linux-spi,
	Bingxiong Li, Binbin Zhou

Hi all:

This series adds a new SPI controller driver for the Loongson-2K0300
SPI-IO blocks (SPI2 / SPI3). On the Loongson-2K0300 these blocks reside
in the chip IO address space (0x1610,c000 – 0x1610,ffff) and only
support IO-space access; a separate QSPI controller handles the main
SPI pins on the same SoC, so this driver uses the dedicated
compatible "loongson,ls2k0300-spi-io".

Test results
  SPI NOR flash on SPI2, spi-max-frequency = 28000000:
  DMA:
    read:  ~3.1 MB/s
    write: ~401 kB/s
  Intterupt:
    read:  ~750 KB/s
    write: ~300 kB/s

Thanks.
Binbin

Binbin Zhou (5):
  spi: dt-bindings: loongson,ls2k-spi: Document loongson,ls2k0300-spi
    compatible
  spi: dt-bindings: loongson,ls2k-spi: Document loongson,ls2k0300-spi-io
    compatible
  spi: loongson-io: Add SPI-IO interrupt-driven driver
  spi: loongson-io: Add DMA support to SPI-IO driver
  MAINTAINERS: Add myself as Loongson SPI maintainer

 .../bindings/spi/loongson,ls2k-spi.yaml       |   45 +
 MAINTAINERS                                   |    2 +
 drivers/spi/Kconfig                           |   16 +
 drivers/spi/Makefile                          |    1 +
 drivers/spi/spi-loongson-io.c                 | 1114 +++++++++++++++++
 5 files changed, 1178 insertions(+)
 create mode 100644 drivers/spi/spi-loongson-io.c


base-commit: e09d1526e19ef8b1008ee81149232db6c2bdee32
-- 
2.52.0


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

end of thread, other threads:[~2026-11-23 17:05 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-23  9:44 [PATCH 0/5] spi: loongson: SPI-IO driver for Loongson-2K0300 Binbin Zhou
2026-11-23  9:44 ` [PATCH 1/5] spi: dt-bindings: loongson,ls2k-spi: Document loongson,ls2k0300-spi compatible Binbin Zhou
2026-11-23  9:52   ` sashiko-bot
2026-11-23  9:44 ` [PATCH 2/5] spi: dt-bindings: loongson,ls2k-spi: Document loongson,ls2k0300-spi-io compatible Binbin Zhou
2026-11-23 17:05   ` Conor Dooley
2026-11-23  9:44 ` [PATCH 3/5] spi: loongson-io: Add SPI-IO interrupt-driven driver Binbin Zhou
2026-11-23 10:05   ` sashiko-bot
2026-11-23  9:45 ` [PATCH 4/5] spi: loongson-io: Add DMA support to SPI-IO driver Binbin Zhou
2026-11-23 10:17   ` sashiko-bot
2026-11-23  9:45 ` [PATCH 5/5] MAINTAINERS: Add myself as Loongson SPI maintainer Binbin Zhou

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.