Skip to content

Commit 79b8a70

Browse files
Patrice Chotardbroonie
authored andcommitted
spi: stm32: Add OSPI driver
Add STM32 OSPI driver, it supports : - support sNOR / sNAND devices. - Three functional modes: indirect, automatic-status polling, memory-mapped. - Single-, dual-, quad-, and octal-SPI communication. - Dual-quad communication. - Single data rate (SDR). - DMA channel for indirect mode. Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com> Link: https://patch.msgid.link/20250219080059.367045-3-patrice.chotard@foss.st.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent bed97e3 commit 79b8a70

File tree

3 files changed

+1076
-0
lines changed

3 files changed

+1076
-0
lines changed

drivers/spi/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,6 +1045,16 @@ config SPI_STM32
10451045
is not available, the driver automatically falls back to
10461046
PIO mode.
10471047

1048+
config SPI_STM32_OSPI
1049+
tristate "STMicroelectronics STM32 OCTO SPI controller"
1050+
depends on ARCH_STM32 || COMPILE_TEST
1051+
depends on OF
1052+
depends on SPI_MEM
1053+
help
1054+
This enables support for the Octo SPI controller in master mode.
1055+
This driver does not support generic SPI. The implementation only
1056+
supports spi-mem interface.
1057+
10481058
config SPI_STM32_QSPI
10491059
tristate "STMicroelectronics STM32 QUAD SPI controller"
10501060
depends on ARCH_STM32 || COMPILE_TEST

drivers/spi/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ obj-$(CONFIG_SPI_SN_F_OSPI) += spi-sn-f-ospi.o
137137
obj-$(CONFIG_SPI_SPRD) += spi-sprd.o
138138
obj-$(CONFIG_SPI_SPRD_ADI) += spi-sprd-adi.o
139139
obj-$(CONFIG_SPI_STM32) += spi-stm32.o
140+
obj-$(CONFIG_SPI_STM32_OSPI) += spi-stm32-ospi.o
140141
obj-$(CONFIG_SPI_STM32_QSPI) += spi-stm32-qspi.o
141142
obj-$(CONFIG_SPI_ST_SSC4) += spi-st-ssc4.o
142143
obj-$(CONFIG_SPI_SUN4I) += spi-sun4i.o

0 commit comments

Comments
 (0)