Skip to content

Commit 36465ec

Browse files
Farsin-Nasar-Microchipcfriedt
authored andcommitted
tests: drivers: uart: Added uart test files
Added sam_e54 overlay file for uart_errors test project Added sam_e54 platform allow in testcase.yaml Signed-off-by: farsin NASAR V A <[email protected]>
1 parent 184f053 commit 36465ec

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/*
2+
* Copyright (c) 2025 Microchip Technology Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/*connect PB16 to PC23 and PB17 to PC22*/
8+
9+
dut: &sercom1 {
10+
compatible = "microchip,sercom-g1-uart";
11+
current-speed = <115200>;
12+
rxpo = <1>;
13+
txpo = <0>;
14+
#address-cells = <1>;
15+
#size-cells = <0>;
16+
status = "okay";
17+
18+
pinctrl-0 = <&sercom1_uart_default>;
19+
pinctrl-names = "default";
20+
};
21+
22+
dut_aux: &sercom5 {
23+
compatible = "microchip,sercom-g1-uart";
24+
current-speed = <115200>;
25+
rxpo = <1>;
26+
txpo = <0>;
27+
#address-cells = <1>;
28+
#size-cells = <0>;
29+
status = "okay";
30+
31+
pinctrl-0 = <&sercom5_uart_default>;
32+
pinctrl-names = "default";
33+
};
34+
35+
&pinctrl {
36+
sercom1_uart_default: sercom1_uart_default {
37+
group1 {
38+
pinmux = <PC22C_SERCOM1_PAD0>,
39+
<PC23C_SERCOM1_PAD1>;
40+
};
41+
};
42+
43+
sercom5_uart_default: sercom5_uart_default {
44+
group1 {
45+
pinmux = <PB16C_SERCOM5_PAD0>,
46+
<PB17C_SERCOM5_PAD1>;
47+
};
48+
};
49+
};

tests/drivers/uart/uart_errors/testcase.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ tests:
1616
- nrf54lm20dk/nrf54lm20a/cpuapp
1717
- nrf5340dk/nrf5340/cpuapp
1818
- ophelia4ev/nrf54l15/cpuapp
19+
- sam_e54_xpro
1920
drivers.uart.uart_errors.async:
2021
filter: CONFIG_SERIAL_SUPPORT_ASYNC
2122
platform_allow:

0 commit comments

Comments
 (0)