Skip to content

Commit de6cb7d

Browse files
author
Raffael Rostagno
committed
tests: drivers: uart: esp32h2: Add test config
Add test config for ESP32-H2. Signed-off-by: Raffael Rostagno <[email protected]>
1 parent 45937d4 commit de6cb7d

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
* Copyright (c) 2025 Espressif Systems (Shanghai) Co., Ltd.
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
&pinctrl {
7+
uart1_test: uart1_test {
8+
group1 {
9+
pinmux = <UART1_TX_GPIO2>,
10+
<UART1_RTS_GPIO3>;
11+
input-enable;
12+
output-high;
13+
};
14+
group2 {
15+
pinmux = <UART1_RX_GPIO2>,
16+
<UART1_CTS_GPIO3>;
17+
output-enable;
18+
bias-pull-up;
19+
};
20+
};
21+
};
22+
23+
dut: &uart1 {
24+
status = "okay";
25+
pinctrl-0 = <&uart1_test>;
26+
pinctrl-names = "default";
27+
current-speed = <115200>;
28+
};

tests/drivers/uart/uart_elementary/testcase.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ tests:
2222
- esp8684_devkitm
2323
- esp32c3_devkitm
2424
- esp32c6_devkitc/esp32c6/hpcore
25+
- esp32h2_devkitm
2526
- esp32s2_saola
2627
- esp32s3_devkitm/esp32s3/procpu
2728
integration_platforms:

0 commit comments

Comments
 (0)