Skip to contentSkip to conversation

spi: spi-amd: Add AMD SPI controller driver support

PATCH In review Sanjay R Mehta 2 participants 3 messages Apr 25, 2020 – Apr 27, 2020

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

PATCH v2 1/1 spi: spi-amd: Add AMD SPI controller driver support

This driver supports SPI Controller for AMD SOCs.This driver supports SPI operations using FIFO mode of transfer.

ChangeLog v1->v2:
- Fix up to handle multiple receive transfer case.
- move chip_select in transfer_message, flag device as half-duplex and some cosmetic changes.

---
 MAINTAINERS           |   5 +
 drivers/spi/Kconfig   |   6 +
 drivers/spi/Makefile  |   1 +
 drivers/spi/spi-amd.c | 333 ++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 345 insertions(+)
 create mode 100644 drivers/spi/spi-amd.c
MAINTAINERS +5 -0
index 6158a14..4455b92 100644
@@ -870,6 +870,11 @@ F:	drivers/gpu/drm/amd/include/vi_structs.h
 F:	drivers/gpu/drm/amd/include/v9_structs.h
 F:	include/uapi/linux/kfd_ioctl.h
 
+AMD SPI DRIVER
+M:	Sanjay R Mehta <[email protected]>
+S:	Maintained
+F:	drivers/spi/spi-amd.c
+
 AMD MP2 I2C DRIVER
 M:	Elie Morisse <[email protected]>
 M:	Nehal Shah <[email protected]>
drivers/spi/Kconfig +6 -0
index d6ed0c3..1f4fa9a 100644
@@ -886,6 +886,12 @@ config SPI_ZYNQMP_GQSPI
 	help
 	  Enables Xilinx GQSPI controller driver for Zynq UltraScale+ MPSoC.
 
+config SPI_AMD
+	tristate "AMD SPI controller"
+	depends on SPI_MASTER || COMPILE_TEST
+	help
+	  Enables SPI controller driver for AMD SoC.
+
 #
 # Add new SPI master controllers in alphabetical order above this line
 #
drivers/spi/Makefile +1 -0
index 9b65ec5..ceb7249 100644
@@ -123,6 +123,7 @@ obj-$(CONFIG_SPI_XLP)			+= spi-xlp.o
 obj-$(CONFIG_SPI_XTENSA_XTFPGA)		+= spi-xtensa-xtfpga.o
 obj-$(CONFIG_SPI_ZYNQ_QSPI)		+= spi-zynq-qspi.o
 obj-$(CONFIG_SPI_ZYNQMP_GQSPI)		+= spi-zynqmp-gqspi.o
+obj-$(CONFIG_SPI_AMD)			+= spi-amd.o
 
 # SPI slave protocol handlers
 obj-$(CONFIG_SPI_SLAVE_TIME)		+= spi-slave-time.o
drivers/spi/spi-amd.c new file +333 -0

333 lines not on this page · raw message

Signature · 1 line
2.7.4
maintainer
#1 lore raw
Quoted 7 lines · Sanjay R Mehta

This driver supports SPI Controller for AMD SOCs.This driver supports SPI operations using FIFO mode of transfer.

ChangeLog v1->v2:
- Fix up to handle multiple receive transfer case.
- move chip_select in transfer_message, flag device as half-duplex and some cosmetic changes.

As covered in submitting-patches.rst this should go after the --- so it doesn't appear in git. Otherwise this looks good though, thanks!

maintainer
#2 lore raw
In reply to Sanjay R Mehta
Quoted 9 lines · Sanjay R Mehta

This driver supports SPI Controller for AMD SOCs.This driver supports SPI operations using FIFO mode of transfer.

ChangeLog v1->v2:
- Fix up to handle multiple receive transfer case.
- move chip_select in transfer_message, flag device as half-duplex and some cosmetic changes.

[...]

Applied to

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

Thanks!

[1/1] spi: spi-amd: Add AMD SPI controller driver support

      commit: bbb336f39efcb1b5498f65f59f9af5773ad6dc2b

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