Skip to content

Commit

Permalink
tests: drivers: uart: uart async: Add esp32s3 overlay
Browse files Browse the repository at this point in the history
Add esp32s3 support for uart async tests.

Signed-off-by: Lucas Tamborrino <lucas.tamborrino@espressif.com>
  • Loading branch information
LucasTambor authored and nashif committed Jun 17, 2023
1 parent 97be30c commit 8cbf1be
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*/

&pinctrl {

uart1_test: uart1_test {
group1 {
pinmux = <UART1_TX_GPIO5>;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_DMA=y
30 changes: 30 additions & 0 deletions tests/drivers/uart/uart_async_api/boards/esp32s3_devkitm.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
* Copyright (c) 2023 Espressif Systems (Shanghai) Co., Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*/

&pinctrl {
uart1_test: uart1_test {
group1 {
pinmux = <UART1_TX_GPIO5>;
};
group2 {
pinmux = <UART1_RX_GPIO6>;
bias-pull-up;
};
};
};

dut: &uart1 {
status = "okay";
current-speed = <115200>;
pinctrl-0 = <&uart1_test>;
pinctrl-names = "default";
dmas = <&dma 0>, <&dma 1>;
dma-names = "rx", "tx";
};

&dma {
status = "okay";
};
2 changes: 0 additions & 2 deletions tests/drivers/uart/uart_async_api/src/test_uart.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@

#if DT_NODE_EXISTS(DT_NODELABEL(dut))
#define UART_NODE DT_NODELABEL(dut)
#elif defined(CONFIG_SOC_ESP32C3)
#define UART_NODE DT_NODELABEL(uart1)
#else
#define UART_NODE DT_CHOSEN(zephyr_console)
#endif
Expand Down

0 comments on commit 8cbf1be

Please sign in to comment.