samples: drivers: include the stm32 xspi node for running the samples

The stm32 xspi node is another possible multi-spi for connecting
external NOR flash memories.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
Francois Ramu 2024-03-14 12:44:55 +01:00 committed by Carles Cufí
commit 0289105758
4 changed files with 9 additions and 3 deletions

View file

@ -29,5 +29,7 @@ tests:
integration_platforms:
- nrf52840dk/nrf52840
sample.drivers.stm32.jesd216:
filter: dt_compat_enabled("st,stm32-ospi-nor") or dt_compat_enabled("st,stm32-qspi-nor")
filter: dt_compat_enabled("st,stm32-xspi-nor")
or dt_compat_enabled("st,stm32-ospi-nor")
or dt_compat_enabled("st,stm32-qspi-nor")
depends_on: spi

View file

@ -20,6 +20,8 @@
#define FLASH_NODE DT_COMPAT_GET_ANY_STATUS_OKAY(st_stm32_qspi_nor)
#elif DT_HAS_COMPAT_STATUS_OKAY(st_stm32_ospi_nor)
#define FLASH_NODE DT_COMPAT_GET_ANY_STATUS_OKAY(st_stm32_ospi_nor)
#elif DT_HAS_COMPAT_STATUS_OKAY(st_stm32_xspi_nor)
#define FLASH_NODE DT_COMPAT_GET_ANY_STATUS_OKAY(st_stm32_xspi_nor)
#elif DT_HAS_COMPAT_STATUS_OKAY(nxp_s32_qspi_nor)
#define FLASH_NODE DT_COMPAT_GET_ANY_STATUS_OKAY(nxp_s32_qspi_nor)
#elif DT_HAS_COMPAT_STATUS_OKAY(nxp_imx_flexspi_nor)

View file

@ -6,7 +6,7 @@ tests:
- spi
- flash
filter: dt_compat_enabled("jedec,spi-nor") or dt_compat_enabled("st,stm32-qspi-nor")
or dt_compat_enabled("st,stm32-ospi-nor")
or dt_compat_enabled("st,stm32-ospi-nor") or dt_compat_enabled("st,stm32-xspi-nor")
or (dt_compat_enabled("nordic,qspi-nor") and CONFIG_NORDIC_QSPI_NOR)
platform_exclude: hifive_unmatched
harness: console

View file

@ -26,7 +26,9 @@
#endif
#define SPI_FLASH_SECTOR_SIZE 4096
#if defined(CONFIG_FLASH_STM32_OSPI) || defined(CONFIG_FLASH_STM32_QSPI)
#if defined(CONFIG_FLASH_STM32_OSPI) || \
defined(CONFIG_FLASH_STM32_QSPI) || \
defined(CONFIG_FLASH_STM32_XSPI)
#define SPI_FLASH_MULTI_SECTOR_TEST
#endif