Skip to content

Commit e783f69

Browse files
Martinhoff-makerkartben
authored andcommitted
test: driver: uart: add silabs slwrb4180a overlay for async usart test
Add overlay for slwrb4180a board to test async silabs usart driver with dma. Signed-off-by: Martin Hoff <[email protected]>
1 parent 4a31f02 commit e783f69

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/*
2+
* Copyright (c) 2025, Silicon Laboratories Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/*
8+
* Need to connect PC0 and PC1 of the Expension Pin header
9+
*/
10+
/ {
11+
chosen {
12+
zephyr,console = &usart1;
13+
zephyr,shell-uart = &usart1;
14+
zephyr,uart-pipe = &usart1;
15+
};
16+
};
17+
18+
&pinctrl{
19+
usart0_default: usart0_default {
20+
group0 {
21+
pins = <USART0_TX_PC0>;
22+
drive-push-pull;
23+
output-high;
24+
};
25+
group1 {
26+
pins = <USART0_RX_PC1>;
27+
input-enable;
28+
silabs,input-filter;
29+
};
30+
};
31+
usart1_default: usart1_default {
32+
group0 {
33+
pins = <USART1_TX_PA5>;
34+
drive-push-pull;
35+
output-high;
36+
};
37+
group1 {
38+
pins = <USART1_RX_PA6>;
39+
input-enable;
40+
silabs,input-filter;
41+
};
42+
};
43+
};
44+
45+
dut: &usart0 {
46+
dmas = <&dma0 DMA_REQSEL_USART0TXBL>,
47+
<&dma0 DMA_REQSEL_USART0RXDATAV>;
48+
dma-names = "tx", "rx";
49+
pinctrl-0 = <&usart0_default>;
50+
pinctrl-names = "default";
51+
};
52+
53+
&usart1 {
54+
current-speed = <115200>;
55+
pinctrl-0 = <&usart1_default>;
56+
pinctrl-names = "default";
57+
status = "okay";
58+
};
59+
60+
&dma0 {
61+
status = "okay";
62+
};

0 commit comments

Comments
 (0)