Skip to content

Commit 1a099d3

Browse files
committed
tests: drivers: spi loopback in async mode with or w/o DMA
Add the overlay and config to run the spi loopback test transfer with DMA and also in async mode with DMA on any stm32 platform. New target disco_l475_iot1 Signed-off-by: Francois Ramu <[email protected]>
1 parent bb9f17f commit 1a099d3

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
* Copyright (c) 2023 STMicroelectronics
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&spi1 {
8+
dmas = <&dma1 1 3 STM32_DMA_PERIPH_TX
9+
&dma1 1 2 STM32_DMA_PERIPH_RX>;
10+
dma-names = "tx", "rx";
11+
slow@0 {
12+
compatible = "test-spi-loopback-slow";
13+
reg = <0>;
14+
spi-max-frequency = <500000>;
15+
};
16+
fast@0 {
17+
compatible = "test-spi-loopback-fast";
18+
reg = <0>;
19+
spi-max-frequency = <16000000>;
20+
};
21+
};

tests/drivers/spi/spi_loopback/testcase.yaml

+20-1
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,28 @@ tests:
3333
integration_platforms:
3434
- sam_e70_xplained
3535
drivers.spi.stm32_spi_dma.loopback:
36-
extra_args: OVERLAY_CONFIG="overlay-stm32-spi-dma.conf"
36+
extra_configs:
37+
- CONFIG_SPI_STM32_DMA=y
38+
- CONFIG_SPI_ASYNC=n
39+
filter: CONFIG_SOC_FAMILY_STM32
40+
platform_allow:
41+
- disco_l475_iot1
42+
- nucleo_g474re
43+
- nucleo_f207zg
44+
- nucleo_f429zi
45+
- nucleo_f746zg
46+
- nucleo_wb55rg
47+
- nucleo_l152re
48+
- nucleo_wl55jc
49+
- nucleo_h743zi
50+
integration_platforms:
51+
- nucleo_g474re
52+
drivers.spi.stm32_spi_async_dma.loopback:
53+
extra_configs:
54+
- CONFIG_SPI_STM32_DMA=y
3755
filter: CONFIG_SOC_FAMILY_STM32
3856
platform_allow:
57+
- disco_l475_iot1
3958
- nucleo_g474re
4059
- nucleo_f207zg
4160
- nucleo_f429zi

0 commit comments

Comments
 (0)