tests: drivers: uart async with DMA on stm32fx nucleo144 boards

It enables the usart6 to run the testcase with a DMA
tests/drivers/uart/uart_async_api. DMA2 (of type V1)
is configured on channel 5 (request) streams 7 & 2.
USART Tx and Rx PG14 - PG9 pins (14 & 16 of CN10)
are connected to PASS the test.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
Francois Ramu 2021-08-20 10:09:52 +02:00 committed by Christopher Friedt
commit 75c76fef36
4 changed files with 30 additions and 1 deletions

View file

@ -0,0 +1,7 @@
/* SPDX-License-Identifier: Apache-2.0 */
&usart6 {
dmas = <&dma2 7 5 0x28440 0x03>,
<&dma2 2 5 0x28480 0x03>;
dma-names = "tx", "rx";
};

View file

@ -0,0 +1,11 @@
/* SPDX-License-Identifier: Apache-2.0 */
&usart6 {
dmas = <&dma2 7 5 0x28440 0x03>,
<&dma2 2 5 0x28480 0x03>;
dma-names = "tx", "rx";
};
&dma2 {
status = "okay";
};

View file

@ -0,0 +1,7 @@
/* SPDX-License-Identifier: Apache-2.0 */
&usart2 {
dmas = <&dma1 7 0x440>,
<&dma1 6 0x480>;
dma-names = "tx", "rx";
};

View file

@ -35,13 +35,17 @@
#elif defined(CONFIG_BOARD_NUCLEO_L4R5ZI) || \
defined(CONFIG_BOARD_NUCLEO_L152RE)
#define UART_DEVICE_NAME DT_LABEL(DT_NODELABEL(usart3))
#elif defined(CONFIG_BOARD_NUCLEO_F429ZI) || \
defined(CONFIG_BOARD_NUCLEO_F207ZG)
#define UART_DEVICE_NAME DT_LABEL(DT_NODELABEL(usart6))
#elif defined(CONFIG_BOARD_DISCO_L475_IOT1)
#define UART_DEVICE_NAME DT_LABEL(DT_NODELABEL(uart4))
#elif defined(CONFIG_BOARD_NUCLEO_L552ZE_Q)
#define UART_DEVICE_NAME DT_LABEL(DT_NODELABEL(usart3))
#elif defined(CONFIG_BOARD_STM32L562E_DK)
#define UART_DEVICE_NAME DT_LABEL(DT_NODELABEL(usart3))
#elif defined(CONFIG_BOARD_NUCLEO_H723ZG)
#elif defined(CONFIG_BOARD_NUCLEO_H723ZG) || \
defined(CONFIG_BOARD_STM32F3_DISCO)
#define UART_DEVICE_NAME DT_LABEL(DT_NODELABEL(usart2))
#else
#define UART_DEVICE_NAME DT_LABEL(DT_CHOSEN(zephyr_console))