Skip to content

Commit 6643e73

Browse files
jpanisblnordicjm
authored andcommitted
[nrf fromtree] tests: drivers: spi: spi_loopback: Add testcase for cc23x0
Enable DMA for the test. Signed-off-by: Julien Panis <[email protected]> (cherry picked from commit a631df5)
1 parent 1c23cb9 commit 6643e73

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_SPI_LOOPBACK_MODE_LOOP=y
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
* Copyright (c) 2024 BayLibre, SAS
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&spi0 {
8+
slow@0 {
9+
compatible = "test-spi-loopback-slow";
10+
reg = <0>;
11+
spi-max-frequency = <2000000>;
12+
};
13+
fast@0 {
14+
compatible = "test-spi-loopback-fast";
15+
reg = <0>;
16+
spi-max-frequency = <3000000>;
17+
};
18+
};

tests/drivers/spi/spi_loopback/testcase.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,3 +314,10 @@ tests:
314314
filter: CONFIG_SOC_FAMILY_SILABS_SIWX91X
315315
platform_allow:
316316
- siwx917_rb4338a
317+
drivers.spi.cc23x0.loopback.dma.no_async:
318+
filter: CONFIG_SOC_FAMILY_TI_SIMPLELINK
319+
platform_allow:
320+
- lp_em_cc2340r5
321+
extra_configs:
322+
- CONFIG_SPI_CC23X0_DMA_DRIVEN=y
323+
- CONFIG_SPI_ASYNC=n

0 commit comments

Comments
 (0)