diff --git a/tests/drivers/uart/uart_async_api/boards/atsamd21_xpro.overlay b/tests/drivers/uart/uart_async_api/boards/atsamd21_xpro.overlay new file mode 100644 index 00000000000000..dd7bf28f3029d8 --- /dev/null +++ b/tests/drivers/uart/uart_async_api/boards/atsamd21_xpro.overlay @@ -0,0 +1,11 @@ +/* SPDX-License-Identifier: Apache-2.0 */ + +&sercom1 { + /* Internally loop-back TX and RX on PAD0 */ + rxpo = <0>; + txpo = <0>; + + /* Configure DMA channels for async operation */ + dmas = <&dmac 0 3>, <&dmac 1 4>; + dma-names = "rx", "tx"; +}; diff --git a/tests/drivers/uart/uart_async_api/src/test_uart.h b/tests/drivers/uart/uart_async_api/src/test_uart.h index a55183715a79ff..74b7f2fb30cde9 100644 --- a/tests/drivers/uart/uart_async_api/src/test_uart.h +++ b/tests/drivers/uart/uart_async_api/src/test_uart.h @@ -23,6 +23,8 @@ #define UART_DEVICE_NAME DT_UART_0_NAME #elif defined(CONFIG_BOARD_NRF9160DK_NRF9160) #define UART_DEVICE_NAME DT_UART_1_NAME +#elif defined(CONFIG_BOARD_ATSAMD21_XPRO) +#define UART_DEVICE_NAME DT_LABEL(DT_NODELABEL(sercom1)) #else #define UART_DEVICE_NAME CONFIG_UART_CONSOLE_ON_DEV_NAME #endif