Skip to content

Commit 939a4e5

Browse files
tests: driver: spi: add overlay for xg23_rb4210a board
This patch introduces overlay for xg23_rb4210a for the spi_loopback test. It is needed because it has another peripheral ip version than all the other already tested board. Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
1 parent fd63bf9 commit 939a4e5

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CONFIG_DMA_MAX_DESCRIPTOR=16
2+
CONFIG_SPI_SILABS_EUSART_DMA_MAX_BLOCKS=10
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* Copyright (c) 2025 Silicon Laboratories Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <zephyr/dt-bindings/pinctrl/silabs/xg23-pinctrl.h>
8+
9+
&eusart1 {
10+
dmas = <&dma0 DMA_REQSEL_EUSART1TXFL>,
11+
<&dma0 DMA_REQSEL_EUSART1RXFL>;
12+
dma-names = "tx", "rx";
13+
#address-cells = <1>;
14+
#size-cells = <0>;
15+
pinctrl-0 = <&eusart1_default>;
16+
pinctrl-names = "default";
17+
status = "okay";
18+
cs-gpios = <&gpioc 0 GPIO_ACTIVE_LOW>;
19+
20+
slow@0 {
21+
compatible = "test-spi-loopback-slow";
22+
reg = <0>;
23+
spi-max-frequency = <500000>;
24+
};
25+
26+
fast@1 {
27+
compatible = "test-spi-loopback-fast";
28+
reg = <1>;
29+
spi-max-frequency = <10000000>;
30+
};
31+
};
32+
33+
&dma0 {
34+
status = "okay";
35+
};

tests/drivers/spi/spi_loopback/testcase.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ tests:
341341
drivers.spi.silabs_s2.loopback.no_async:
342342
filter: CONFIG_SOC_FAMILY_SILABS_S2
343343
platform_allow:
344+
- xg23_rb4210a
344345
- xg24_rb4187c
345346
- xg29_rb4412a
346347
- bg29_rb4420a
@@ -350,6 +351,7 @@ tests:
350351
drivers.spi.silabs_s2.loopback.dma.no_async:
351352
filter: CONFIG_SOC_FAMILY_SILABS_S2
352353
platform_allow:
354+
- xg23_rb4210a
353355
- xg24_rb4187c
354356
- xg29_rb4412a
355357
- bg29_rb4420a

0 commit comments

Comments
 (0)