Skip to content

Commit a631df5

Browse files
jpanisblkartben
authored andcommitted
tests: drivers: spi: spi_loopback: Add testcase for cc23x0
Enable DMA for the test. Signed-off-by: Julien Panis <[email protected]>
1 parent 5b72896 commit a631df5

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
@@ -312,3 +312,10 @@ tests:
312312
filter: CONFIG_SOC_FAMILY_SILABS_SIWX91X
313313
platform_allow:
314314
- siwx917_rb4338a
315+
drivers.spi.cc23x0.loopback.dma.no_async:
316+
filter: CONFIG_SOC_FAMILY_TI_SIMPLELINK
317+
platform_allow:
318+
- lp_em_cc2340r5
319+
extra_configs:
320+
- CONFIG_SPI_CC23X0_DMA_DRIVEN=y
321+
- CONFIG_SPI_ASYNC=n

0 commit comments

Comments
 (0)