Skip to content

Commit

Permalink
tests: uart_elementary: esp32: Add test configs
Browse files Browse the repository at this point in the history
Add test configuration for ESP32 devices.

Signed-off-by: Raffael Rostagno <[email protected]>
  • Loading branch information
Raffael Rostagno committed Nov 29, 2024
1 parent cf8407a commit b636af1
Show file tree
Hide file tree
Showing 9 changed files with 220 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/drivers/uart/uart_elementary/socs/esp32_procpu.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_DUAL_UART_TEST=y
50 changes: 50 additions & 0 deletions tests/drivers/uart/uart_elementary/socs/esp32_procpu.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/*
* Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
* SPDX-License-Identifier: Apache-2.0
*/

&pinctrl {
uart1_test: uart1_test {
group1 {
pinmux = <UART1_TX_GPIO2>,
<UART1_RTS_GPIO4>;
input-enable;
output-high;
};
group2 {
pinmux = <UART1_RX_GPIO3>,
<UART1_CTS_GPIO5>;
output-enable;
bias-pull-up;
};
};

uart2_test: uart2_test {
group1 {
pinmux = <UART2_TX_GPIO3>,
<UART1_RTS_GPIO5>;
input-enable;
output-high;
};
group2 {
pinmux = <UART2_RX_GPIO2>,
<UART1_CTS_GPIO4>;
output-enable;
bias-pull-up;
};
};
};

dut: &uart1 {
status = "okay";
pinctrl-0 = <&uart1_test>;
pinctrl-names = "default";
current-speed = <115200>;
};

dut_aux: &uart2 {
status = "okay";
pinctrl-0 = <&uart2_test>;
pinctrl-names = "default";
current-speed = <115200>;
};
28 changes: 28 additions & 0 deletions tests/drivers/uart/uart_elementary/socs/esp32c2.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
* SPDX-License-Identifier: Apache-2.0
*/

&pinctrl {
uart1_test: uart1_test {
group1 {
pinmux = <UART1_TX_GPIO2>,
<UART1_RTS_GPIO3>;
input-enable;
output-high;
};
group2 {
pinmux = <UART1_RX_GPIO2>,
<UART1_CTS_GPIO3>;
output-enable;
bias-pull-up;
};
};
};

dut: &uart1 {
status = "okay";
pinctrl-0 = <&uart1_test>;
pinctrl-names = "default";
current-speed = <74880>;
};
28 changes: 28 additions & 0 deletions tests/drivers/uart/uart_elementary/socs/esp32c3.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
* SPDX-License-Identifier: Apache-2.0
*/

&pinctrl {
uart1_test: uart1_test {
group1 {
pinmux = <UART1_TX_GPIO2>,
<UART1_RTS_GPIO3>;
input-enable;
output-high;
};
group2 {
pinmux = <UART1_RX_GPIO2>,
<UART1_CTS_GPIO3>;
output-enable;
bias-pull-up;
};
};
};

dut: &uart1 {
status = "okay";
pinctrl-0 = <&uart1_test>;
pinctrl-names = "default";
current-speed = <115200>;
};
28 changes: 28 additions & 0 deletions tests/drivers/uart/uart_elementary/socs/esp32c6.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
* SPDX-License-Identifier: Apache-2.0
*/

&pinctrl {
uart1_test: uart1_test {
group1 {
pinmux = <UART1_TX_GPIO2>,
<UART1_RTS_GPIO3>;
input-enable;
output-high;
};
group2 {
pinmux = <UART1_RX_GPIO2>,
<UART1_CTS_GPIO3>;
output-enable;
bias-pull-up;
};
};
};

dut: &uart1 {
status = "okay";
pinctrl-0 = <&uart1_test>;
pinctrl-names = "default";
current-speed = <115200>;
};
28 changes: 28 additions & 0 deletions tests/drivers/uart/uart_elementary/socs/esp32s2.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
* SPDX-License-Identifier: Apache-2.0
*/

&pinctrl {
uart1_test: uart1_test {
group1 {
pinmux = <UART1_TX_GPIO2>,
<UART1_RTS_GPIO3>;
input-enable;
output-high;
};
group2 {
pinmux = <UART1_RX_GPIO2>,
<UART1_CTS_GPIO3>;
output-enable;
bias-pull-up;
};
};
};

dut: &uart1 {
status = "okay";
pinctrl-0 = <&uart1_test>;
pinctrl-names = "default";
current-speed = <115200>;
};
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_DUAL_UART_TEST=y
50 changes: 50 additions & 0 deletions tests/drivers/uart/uart_elementary/socs/esp32s3_procpu.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/*
* Copyright (c) 2024 Espressif Systems (Shanghai) Co., Ltd.
* SPDX-License-Identifier: Apache-2.0
*/

&pinctrl {
uart1_test: uart1_test {
group1 {
pinmux = <UART1_TX_GPIO2>,
<UART1_RTS_GPIO4>;
input-enable;
output-high;
};
group2 {
pinmux = <UART1_RX_GPIO3>,
<UART1_CTS_GPIO5>;
output-enable;
bias-pull-up;
};
};

uart2_test: uart2_test {
group1 {
pinmux = <UART2_TX_GPIO3>,
<UART1_RTS_GPIO5>;
input-enable;
output-high;
};
group2 {
pinmux = <UART2_RX_GPIO2>,
<UART1_CTS_GPIO4>;
output-enable;
bias-pull-up;
};
};
};

dut: &uart1 {
status = "okay";
pinctrl-0 = <&uart1_test>;
pinctrl-names = "default";
current-speed = <115200>;
};

dut_aux: &uart2 {
status = "okay";
pinctrl-0 = <&uart2_test>;
pinctrl-names = "default";
current-speed = <115200>;
};
6 changes: 6 additions & 0 deletions tests/drivers/uart/uart_elementary/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ tests:
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l15dk/nrf54l15/cpuflpr
- nrf5340dk/nrf5340/cpuapp
- esp32_devkitc_wrover/esp32/procpu
- esp8684_devkitm
- esp32c3_devkitm
- esp32c6_devkitc
- esp32s2_saola
- esp32s3_devkitm/esp32s3/procpu
integration_platforms:
- nrf54h20dk/nrf54h20/cpuapp
drivers.uart.uart_elementary_dual_nrf54h:
Expand Down

0 comments on commit b636af1

Please sign in to comment.