Skip to content

Commit 059f545

Browse files
prajnarkbroonie
authored andcommitted
spi: add support for microchip "soft" spi controller
Introduce driver support for the Microchip FPGA CoreSPI IP. This driver supports only Motorola SPI mode and frame size of 8-bits. TI/NSC modes and wider frame sizes are not currently supported. Signed-off-by: Prajna Rajendra Kumar <prajna.rajendrakumar@microchip.com> Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Acked-by: Conor Dooley <conor.dooley@microchip.com> Link: https://patch.msgid.link/20251114104545.284765-4-prajna.rajendrakumar@microchip.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 8ce9a2e commit 059f545

3 files changed

Lines changed: 452 additions & 0 deletions

File tree

drivers/spi/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,15 @@ config SPI_MICROCHIP_CORE_QSPI
715715
PolarFire SoC.
716716
If built as a module, it will be called spi-microchip-core-qspi.
717717

718+
config SPI_MICROCHIP_CORE_SPI
719+
tristate "Microchip FPGA CoreSPI controller"
720+
depends on SPI_MASTER
721+
help
722+
This enables the SPI driver for Microchip FPGA CoreSPI controller.
723+
Say Y or M here if you want to use the "soft" controllers on
724+
PolarFire SoC.
725+
If built as a module, it will be called spi-microchip-core-spi.
726+
718727
config SPI_MT65XX
719728
tristate "MediaTek SPI controller"
720729
depends on ARCH_MEDIATEK || COMPILE_TEST

drivers/spi/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ obj-$(CONFIG_SPI_LP8841_RTC) += spi-lp8841-rtc.o
8787
obj-$(CONFIG_SPI_MESON_SPICC) += spi-meson-spicc.o
8888
obj-$(CONFIG_SPI_MESON_SPIFC) += spi-meson-spifc.o
8989
obj-$(CONFIG_SPI_MICROCHIP_CORE_QSPI) += spi-microchip-core-qspi.o
90+
obj-$(CONFIG_SPI_MICROCHIP_CORE_SPI) += spi-microchip-core-spi.o
9091
obj-$(CONFIG_SPI_MPC512x_PSC) += spi-mpc512x-psc.o
9192
obj-$(CONFIG_SPI_MPC52xx_PSC) += spi-mpc52xx-psc.o
9293
obj-$(CONFIG_SPI_MPC52xx) += spi-mpc52xx.o

0 commit comments

Comments
 (0)