Skip to content

Commit

Permalink
spi: loongson: add bus driver for the loongson spi controller
Browse files Browse the repository at this point in the history
This bus driver supports the Loongson spi hardware controller in the
Loongson platforms and supports to use DTS and PCI framework to
register spi device resources.

Signed-off-by: Yinbo Zhu <zhuyinbo@loongson.cn>
  • Loading branch information
YinboZhu authored and intel-lab-lkp committed Mar 17, 2023
1 parent 640b5f8 commit a532955
Show file tree
Hide file tree
Showing 4 changed files with 471 additions and 0 deletions.
1 change: 1 addition & 0 deletions MAINTAINERS
Expand Up @@ -12128,6 +12128,7 @@ M: Yinbo Zhu <zhuyinbo@loongson.cn>
L: linux-spi@vger.kernel.org
S: Maintained
F: Documentation/devicetree/bindings/spi/loongson,ls-spi.yaml
F: drivers/spi/spi-loongson.c

LSILOGIC MPT FUSION DRIVERS (FC/SAS/SPI)
M: Sathya Prakash <sathya.prakash@broadcom.com>
Expand Down
10 changes: 10 additions & 0 deletions drivers/spi/Kconfig
Expand Up @@ -509,6 +509,16 @@ config SPI_LM70_LLP
which interfaces to an LM70 temperature sensor using
a parallel port.

config SPI_LOONGSON
tristate "Loongson SPI Controller Support"
depends on OF && (LOONGARCH || COMPILE_TEST)
help
This bus driver supports the Loongson spi hardware controller in
the Loongson platforms and supports to use DTS and PCI framework
to register spi device resources.
Say Y or M here if you want to use the SPI controller on
Loongson platform.

config SPI_LP8841_RTC
tristate "ICP DAS LP-8841 SPI Controller for RTC"
depends on MACH_PXA27X_DT || COMPILE_TEST
Expand Down
1 change: 1 addition & 0 deletions drivers/spi/Makefile
Expand Up @@ -70,6 +70,7 @@ obj-$(CONFIG_SPI_INTEL_PLATFORM) += spi-intel-platform.o
obj-$(CONFIG_SPI_LANTIQ_SSC) += spi-lantiq-ssc.o
obj-$(CONFIG_SPI_JCORE) += spi-jcore.o
obj-$(CONFIG_SPI_LM70_LLP) += spi-lm70llp.o
obj-$(CONFIG_SPI_LOONGSON) += spi-loongson.o
obj-$(CONFIG_SPI_LP8841_RTC) += spi-lp8841-rtc.o
obj-$(CONFIG_SPI_MESON_SPICC) += spi-meson-spicc.o
obj-$(CONFIG_SPI_MESON_SPIFC) += spi-meson-spifc.o
Expand Down

0 comments on commit a532955

Please sign in to comment.