Add support for STM32F4 SPI
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest14 patches 10 repliesIn review
- v15 patches 5 repliesSuperseded
Changes in v2 from the cover letter
Based on Amelie Delaunay recommendation only one common file spi-stm32.c is used. Before adding support for STM32F4 driver, first six patches adds some improvements to actual driver.
Next patches rearrange driver to be more useful for new STM32F4 SPI and adding support for this family.
This version also supports simplex-tx and 3wire-tx modes.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/14 | spi: stm32: switch to SPDX identifierdrivers/ | +7 | 1 reply | |
| 2/14 | spi: stm32: use NULL pointer instead of plain integerdrivers/ | +1 | 1 reply | |
| 3/14 | spi: stm32: fix DMA configuration with only one channeldrivers/ | +12 | 1 reply | |
| 4/14 | spi: fix typo in SPI_STM32 help textdrivers/ | +1 | 1 reply | |
| 5/14 | spi: stm32: use explicit CPOL and CPHA mode bitsdrivers/ | +1 | 1 reply | |
| 6/14 | spi: stm32: remove SPI LOOP modedrivers/ | +1 | 1 reply | |
| 7/14 | spi: stm32: rename STM32 SPI registers to STM32H7drivers/ | +199 | 1 reply | |
| 8/14 | spi: stm32: rename interrupt functiondrivers/ | +3 | 1 reply | |
| 9/14 | spi: stm32: split transfer one setup functiondrivers/ | +192 | 1 reply | |
| 10/14 | spi: stm32: add start dma transfer functiondrivers/ | +18 | 0 replies | |
| 11/14 | spi: stm32: introduce compatible data cfgdrivers/ | +236 | 0 replies | |
| 12/14 | spi: stm32: add support for STM32F4drivers/ | +482 | 0 replies | |
| 13/14 | ARM: dts: stm32: add SPI support on STM32F429 SoCarch/ | +60 | 0 replies | |
| 14/14 | spi: stm32: add description about STM32F4 bindingsDocumentation/ | +6 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 00/14] Add support for STM32F4 SPI
From: Cezary Gapinski <[email protected]>
This series of patches adds support for first generation of SPI interface for STM32F4 family.
This version of driver is mostly different to STM32H7 one. Based on linux kernel I2C drivers for STM32 where drivers were splited into STM32F4 and STM32F7 family the same approach seems to be sufficient for SPI STM32 drivers. Therefore STM32H7 driver was moved to spi-stm32h7.c file and register and functions were renamed to be more specific to STM32H7.
For current version master mode with full-duplex and 8/16 bit data frame format are supported. There is no TX and RX FIFOs like in STM32H7. DMA capabilility is supported for messages longer than arbitrary number of bytes (that is set already to 16 bytes) when TX and RX channels are set at the same time.
v2:
Based on Amelie Delaunay recommendation only one common file spi-stm32.c is used. Before adding support for STM32F4 driver, first six patches adds some improvements to actual driver.
Next patches rearrange driver to be more useful for new STM32F4 SPI and adding support for this family.
This version also supports simplex-tx and 3wire-tx modes.
Cezary Gapinski (14):
spi: stm32: switch to SPDX identifier
spi: stm32: use NULL pointer instead of plain integer
spi: stm32: fix DMA configuration with only one channel
spi: fix typo in SPI_STM32 help text
spi: stm32: use explicit CPOL and CPHA mode bits
spi: stm32: remove SPI LOOP mode
spi: stm32: rename STM32 SPI registers to STM32H7
spi: stm32: rename interrupt function
spi: stm32: split transfer one setup function
spi: stm32: add start dma transfer function
spi: stm32: introduce compatible data cfg
spi: stm32: add support for STM32F4
ARM: dts: stm32: add SPI support on STM32F429 SoC
spi: stm32: add description about STM32F4 bindings
.../devicetree/bindings/spi/spi-stm32.txt | 9 +- arch/arm/boot/dts/stm32f429.dtsi | 60 + drivers/spi/Kconfig | 2 +- drivers/spi/spi-stm32.c | 1403 +++++++++++++++----- 4 files changed, 1139 insertions(+), 335 deletions(-)
Signature · 1 line
2.7.4