Skip to content

spi: loongson: SPI-IO driver for Loongson-2K0300

Binbin Zhou linux-devicetree linux-spi loongarch 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5spi: dt-bindings: loongson,ls2k-spi: Document loongson,ls2k0300-spi compatibleDocumentation/devicetree/bindings/spi/loongson,ls2k-spi.yaml+4 -00 replies
2/5spi: dt-bindings: loongson,ls2k-spi: Document loongson,ls2k0300-spi-io compatibleDocumentation/devicetree/bindings/spi/loongson,ls2k-spi.yaml+41 -01 reply
3/5spi: loongson-io: Add SPI-IO interrupt-driven driverMAINTAINERS drivers/spi/Kconfig drivers/spi/Makefile +1 more+755 -00 replies
4/5spi: loongson-io: Add DMA support to SPI-IO driverdrivers/spi/spi-loongson-io.c+388 -110 replies
5/5MAINTAINERS: Add myself as Loongson SPI maintainerMAINTAINERS+1 -00 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchConor Dooley
1/5
2/5A-b
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] spi: loongson: SPI-IO driver for Loongson-2K0300

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

Signature · 1 line
2.52.0