Skip to content

Commit bd9ade1

Browse files
Martinhoff-makercfriedt
authored andcommitted
tests: uart: add support for xg29_rb4412a board with elementary test
Added overlay for the silabs xg29_rb4412a board regarding uart_elementary. Signed-off-by: Martin Hoff <[email protected]>
1 parent 7330fbf commit bd9ade1

File tree

2 files changed

+67
-0
lines changed

2 files changed

+67
-0
lines changed
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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 = &eusart0;
13+
zephyr,shell-uart = &eusart0;
14+
zephyr,uart-pipe = &eusart0;
15+
};
16+
};
17+
18+
&pinctrl{
19+
usart0_default: usart0_default {
20+
group0 {
21+
pins = <USART0_TX_PC0>; /* WPK EXP4 (PC0) */
22+
drive-push-pull;
23+
output-high;
24+
};
25+
group1 {
26+
pins = <USART0_RX_PC1>; /* WPK EXP6 (PC1) */
27+
input-enable;
28+
silabs,input-filter;
29+
};
30+
};
31+
eusart0_default: eusart0_default {
32+
group0 {
33+
pins = <EUSART0_TX_PA5>;
34+
drive-push-pull;
35+
output-high;
36+
};
37+
group1 {
38+
pins = <EUSART0_RX_PA6>;
39+
input-enable;
40+
silabs,input-filter;
41+
};
42+
};
43+
};
44+
45+
dut: &usart0 {
46+
pinctrl-0 = <&usart0_default>;
47+
pinctrl-names = "default";
48+
current-speed = <115200>;
49+
status = "okay";
50+
};
51+
52+
&eusart0 {
53+
compatible = "silabs,eusart-uart";
54+
current-speed = <115200>;
55+
pinctrl-0 = <&eusart0_default>;
56+
pinctrl-names = "default";
57+
status = "okay";
58+
};
59+
60+
&eusart1 {
61+
status = "disabled";
62+
};
63+
64+
&usart1 {
65+
status = "disabled";
66+
};

tests/drivers/uart/uart_elementary/testcase.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ tests:
2727
- esp32s3_devkitm/esp32s3/procpu
2828
- xg24_rb4187c
2929
- bg29_rb4420a
30+
- xg29_rb4412a
3031
integration_platforms:
3132
- nrf54h20dk/nrf54h20/cpuapp
3233
drivers.uart.uart_elementary_dual_nrf54h:

0 commit comments

Comments
 (0)