tests: drivers: spi loopback testcase yaml for stm32 dma

This commit adds two stm32 config to execute the testcase
when the SPI is using interrupt mode for transfer.
when the SPI is using DMA for transfer (not Interrupt nor ASYNC mode).
to run the on some specific (listed) stm32 boards on SPI instance.
Note the hw fixture (physical connection on the board)

Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
Francois Ramu 2022-01-04 13:33:08 +01:00 committed by Maureen Helm
commit a3680c1b00
3 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,5 @@
# enable DMA mode for SPI loopback test
CONFIG_SPI_LOOPBACK_DRV_NAME="SPI_1"
CONFIG_SPI_STM32_DMA=y
CONFIG_SPI_STM32_INTERRUPT=n
CONFIG_SPI_ASYNC=n

View file

@ -0,0 +1,2 @@
# enable stm32 spi instance for loopback test
CONFIG_SPI_LOOPBACK_DRV_NAME="SPI_1"

View file

@ -6,6 +6,7 @@ common:
tests: tests:
drivers.spi.loopback: drivers.spi.loopback:
harness: ztest harness: ztest
filter: not CONFIG_SOC_FAMILY_STM32
harness_config: harness_config:
fixture: spi_loopback fixture: spi_loopback
driver.spi.loopback.internal: driver.spi.loopback.internal:
@ -17,3 +18,18 @@ tests:
harness_config: harness_config:
fixture: spi_loopback fixture: spi_loopback
platform_allow: frdm_k64f platform_allow: frdm_k64f
drivers.stm32_spi.loopback:
harness: ztest
extra_args: OVERLAY_CONFIG="overlay-stm32-spi.conf"
harness_config:
fixture: spi_loopback
filter: CONFIG_SOC_FAMILY_STM32
drivers.stm32_spi_dma.loopback:
tags: dma
harness: ztest
harness_config:
fixture: spi_loopback
extra_args: OVERLAY_CONFIG="overlay-stm32-spi-dma.conf"
filter: CONFIG_SOC_FAMILY_STM32
platform_allow: nucleo_g474re nucleo_f207zg nucleo_f429zi nucleo_f746zg nucleo_wb55rg
nucleo_wl55jc nucleo_h743zi