tests: uart_elementary: esp32: Add test configs

Add test configuration for ESP32 devices.

Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
This commit is contained in:
Raffael Rostagno 2024-11-08 11:38:51 -03:00 committed by Benjamin Cabé
parent a7e08cc16b
commit f98868eb81
9 changed files with 220 additions and 0 deletions

View file

@ -0,0 +1 @@
CONFIG_DUAL_UART_TEST=y

View file

@ -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>;
};

View file

@ -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>;
};

View file

@ -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>;
};

View file

@ -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>;
};

View file

@ -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>;
};

View file

@ -0,0 +1 @@
CONFIG_DUAL_UART_TEST=y

View file

@ -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>;
};

View file

@ -15,6 +15,12 @@ tests:
- nrf54l20pdk/nrf54l20/cpuapp - nrf54l20pdk/nrf54l20/cpuapp
- nrf54l15dk/nrf54l15/cpuflpr - nrf54l15dk/nrf54l15/cpuflpr
- nrf5340dk/nrf5340/cpuapp - nrf5340dk/nrf5340/cpuapp
- esp32_devkitc_wrover/esp32/procpu
- esp8684_devkitm
- esp32c3_devkitm
- esp32c6_devkitc
- esp32s2_saola
- esp32s3_devkitm/esp32s3/procpu
integration_platforms: integration_platforms:
- nrf54h20dk/nrf54h20/cpuapp - nrf54h20dk/nrf54h20/cpuapp
drivers.uart.uart_elementary_dual_nrf54h: drivers.uart.uart_elementary_dual_nrf54h: