Skip to content

Commit cb9c27e

Browse files
Martinhoff-makerkartben
authored andcommitted
tests: driver: uart: add xg23_rb4210a board overlay
Add xg23_rb4210a board overlay to test asynchronous api with eusart driver Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
1 parent 87141ed commit cb9c27e

File tree

1 file changed

+76
-0
lines changed

1 file changed

+76
-0
lines changed
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
/*
2+
* Copyright (c) 2025, Silicon Laboratories Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/*
8+
* Connect EXP4 (PC0) and EXP6 (PC1) of the Expansion Pin header
9+
*/
10+
/ {
11+
chosen {
12+
zephyr,console = &usart0;
13+
zephyr,shell-uart = &usart0;
14+
zephyr,uart-pipe = &usart0;
15+
/delete-property/ zephyr,display;
16+
};
17+
};
18+
19+
&pinctrl{
20+
eusart1_default: eusart1_default {
21+
group0 {
22+
pins = <EUSART1_TX_PC1>; /* WPK EXP4 (PC1) */
23+
drive-push-pull;
24+
output-high;
25+
};
26+
group1 {
27+
pins = <EUSART1_RX_PC2>; /* WPK EXP6 (PC2) */
28+
input-enable;
29+
silabs,input-filter;
30+
};
31+
};
32+
33+
usart0_default: usart0_default {
34+
group0 {
35+
pins = <USART0_TX_PA8>;
36+
drive-push-pull;
37+
output-high;
38+
};
39+
group1 {
40+
pins = <USART0_RX_PA9>;
41+
input-enable;
42+
silabs,input-filter;
43+
};
44+
};
45+
};
46+
47+
dut: &eusart1 {
48+
compatible = "silabs,eusart-uart";
49+
dmas = <&dma0 DMA_REQSEL_EUSART1TXFL>,
50+
<&dma0 DMA_REQSEL_EUSART1RXFL>;
51+
dma-names = "tx", "rx";
52+
current-speed = <115200>;
53+
pinctrl-0 = <&eusart1_default>;
54+
pinctrl-names = "default";
55+
status = "okay";
56+
/delete-property/ cs-gpios;
57+
};
58+
59+
/delete-node/ &ls0xx_ls013b7dh03;
60+
/delete-node/ &mx25r80;
61+
62+
&eusart0 {
63+
status = "disabled";
64+
};
65+
66+
&usart0 {
67+
compatible = "silabs,usart-uart";
68+
current-speed = <115200>;
69+
pinctrl-0 = <&usart0_default>;
70+
pinctrl-names = "default";
71+
status = "okay";
72+
};
73+
74+
&dma0 {
75+
status = "okay";
76+
};

0 commit comments

Comments
 (0)