Skip to contentSkip to conversation

Add support for PolarFire SoC's spi controllers

PATCH In review Conor Dooley 2 participants 4 messages Jun 7, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover Add support for PolarFire SoC's spi controllers

Hey Mark,

As it says on the tin, here's a patch adding support for the spi controllers on PolarFire SoC. The binding for them was already added in 5.18.

Thanks,
Conor.

Conor Dooley (2):
spi: add support for microchip fpga spi controllers
MAINTAINERS: add spi to PolarFire SoC entry

 MAINTAINERS                      |   1 +
 drivers/spi/Kconfig              |   9 +
 drivers/spi/Makefile             |   1 +
 drivers/spi/spi-microchip-core.c | 632 +++++++++++++++++++++++++++++++
 4 files changed, 643 insertions(+)
 create mode 100644 drivers/spi/spi-microchip-core.c

base-commit: 4b0986a3613c92f4ec1bdc7f60ec66fea135991f

Signature · 1 line
2.36.1
#1 lore raw

PATCH 1/2 spi: add support for microchip fpga spi controllers

Add a driver for Microchip FPGA SPI controllers, specifically supporting the "hard" controllers on PolarFire SoC.

---
 drivers/spi/Kconfig              |   9 +
 drivers/spi/Makefile             |   1 +
 drivers/spi/spi-microchip-core.c | 632 +++++++++++++++++++++++++++++++
 3 files changed, 642 insertions(+)
 create mode 100644 drivers/spi/spi-microchip-core.c
drivers/spi/Kconfig +9 -0
index d2815eb361c0..b142e3499bc9 100644
@@ -565,6 +565,15 @@ config SPI_MESON_SPIFC
 	  This enables master mode support for the SPIFC (SPI flash
 	  controller) available in Amlogic Meson SoCs.
 
+config SPI_MICROCHIP_CORE
+	tristate "Microchip FPGA SPI controllers"
+	depends on SPI_MASTER
+	help
+	  This enables the SPI driver for Microchip FPGA SPI controllers.
+	  Say Y or M here if you want to use the "hard" controllers on
+	  PolarFire SoC.
+	  If built as a module, it will be called spi-microchip-core.
+
 config SPI_MT65XX
 	tristate "MediaTek SPI controller"
 	depends on ARCH_MEDIATEK || COMPILE_TEST
drivers/spi/Makefile +1 -0
index 3aa28ed3f761..b1e559ff17a9 100644
@@ -70,6 +70,7 @@ obj-$(CONFIG_SPI_LM70_LLP)		+= spi-lm70llp.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
+obj-$(CONFIG_SPI_MICROCHIP_CORE)	+= spi-microchip-core.o
 obj-$(CONFIG_SPI_MPC512x_PSC)		+= spi-mpc512x-psc.o
 obj-$(CONFIG_SPI_MPC52xx_PSC)		+= spi-mpc52xx-psc.o
 obj-$(CONFIG_SPI_MPC52xx)		+= spi-mpc52xx.o
drivers/spi/spi-microchip-core.c new file +632 -0

632 lines not on this page · raw message

Signature · 1 line
2.36.1
#2 lore raw

PATCH 2/2 MAINTAINERS: add spi to PolarFire SoC entry

In reply to Conor Dooley

Add the newly introduced spi driver to the existing PolarFire SoC entry.

---
 MAINTAINERS | 1 +
 1 file changed, 1 insertion(+)
MAINTAINERS +1 -0
index f468864fd268..279a25065942 100644
@@ -16955,6 +16955,7 @@ S:	Supported
 F:	arch/riscv/boot/dts/microchip/
 F:	drivers/mailbox/mailbox-mpfs.c
 F:	drivers/soc/microchip/
+F:	drivers/spi/spi-microchip-core.c
 F:	include/soc/microchip/mpfs.h
 
 RNBD BLOCK DRIVERS
Signature · 1 line
2.36.1
maintainer
#3 lore raw
In reply to Conor Dooley
Quoted 10 lines · Conor Dooley

Hey Mark,

As it says on the tin, here's a patch adding support for the spi controllers on PolarFire SoC. The binding for them was already added in 5.18.

Thanks,
Conor.

[...]

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next

Thanks!

[1/2] spi: add support for microchip fpga spi controllers

      commit: 9ac8d17694b66d54b13e9718b25c14ca36dbebbd
[2/2] MAINTAINERS: add spi to PolarFire SoC entry
      commit: f303c6b26cede1aa137dc3e10eee78a80cde9999

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv