]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
stm32: add kmod-spi-stm32-ospi and kmod-spi-stm32-qspi
authorThomas Richard <thomas.richard@bootlin.com>
Sat, 18 Apr 2026 12:50:26 +0000 (14:50 +0200)
committerJonas Jelonek <jelonek.jonas@gmail.com>
Tue, 9 Jun 2026 07:10:22 +0000 (09:10 +0200)
This adds STM32 OCTO and QUAD SPI controller support.

Signed-off-by: Thomas Richard <thomas.richard@bootlin.com>
Link: https://github.com/openwrt/openwrt/pull/22989
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
target/linux/stm32/modules.mk

index bfa1e5f0f2caed8826d2f0a455de2700f6c488b0..3764d52949cc49931f84de310eb1fa2c0dc1b320 100644 (file)
@@ -128,6 +128,34 @@ endef
 $(eval $(call KernelPackage,spi-stm32))
 
 
+define KernelPackage/spi-stm32-ospi
+  SUBMENU=$(SPI_MENU)
+  TITLE:=STMicroelectronics STM32 OCTO SPI controller
+  DEPENDS:=@LINUX_6_18 \
+          @TARGET_stm32
+  KCONFIG:=CONFIG_SPI_STM32_OSPI \
+          CONFIG_SPI_MEM=y
+  FILES:=$(LINUX_DIR)/drivers/spi/spi-stm32-ospi.ko
+  AUTOLOAD:=$(call AutoProbe,spi-stm32-ospi)
+endef
+
+$(eval $(call KernelPackage,spi-stm32-ospi))
+
+
+define KernelPackage/spi-stm32-qspi
+  SUBMENU=$(SPI_MENU)
+  TITLE:=STMicroelectronics STM32 QUAD SPI controller
+  DEPENDS:=@LINUX_6_18 \
+          @TARGET_stm32
+  KCONFIG:=CONFIG_SPI_STM32_QSPI \
+          CONFIG_SPI_MEM=y
+  FILES:=$(LINUX_DIR)/drivers/spi/spi-stm32-qspi.ko
+  AUTOLOAD:=$(call AutoProbe,spi-stm32-qspi)
+endef
+
+$(eval $(call KernelPackage,spi-stm32-qspi))
+
+
 define KernelPackage/stm32-adc
   TITLE:=STM32 ADC
   KCONFIG:=CONFIG_STM32_ADC_CORE \