Skip to content

Commit edb55ba

Browse files
djiatsaf-stkartben
authored andcommitted
tests: drivers: spi: spi_loopback: update spi_loopback test
- add nucleo_c071rb overlay file to setup spi and dma nodes - Add the nucleo_c071rb configuration file to reduce the size of SPI_LARGE_BUFFER_SIZE to avoid RAM overflow and be able to run the test. - update testcase.yaml for CI integration Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
1 parent c691451 commit edb55ba

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_SPI_LARGE_BUFFER_SIZE=8000
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*
2+
* Copyright (c) 2025 STMicroelectronics
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&spi1 {
8+
dmas = <&dmamux1 2 17 (STM32_DMA_PERIPH_TX | STM32_DMA_PRIORITY_HIGH)
9+
&dmamux1 1 16 (STM32_DMA_PERIPH_RX | STM32_DMA_PRIORITY_HIGH)>;
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+
};
22+
23+
&dma1 {
24+
status = "okay";
25+
};
26+
27+
&dmamux1 {
28+
status = "okay";
29+
};

tests/drivers/spi/spi_loopback/testcase.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ tests:
6565
extra_args: EXTRA_CONF_FILE="overlay-stm32-spi-dma.conf"
6666
platform_allow:
6767
- b_u585i_iot02a
68+
- nucleo_c071rb
6869
- nucleo_g474re
6970
- nucleo_f207zg
7071
- nucleo_f429zi
@@ -120,6 +121,7 @@ tests:
120121
extra_args: EXTRA_CONF_FILE="overlay-stm32-spi-interrupt.conf"
121122
platform_allow:
122123
- b_u585i_iot02a
124+
- nucleo_c071rb
123125
- nucleo_f207zg
124126
- nucleo_f429zi
125127
- nucleo_f746zg

0 commit comments

Comments
 (0)