tests: drivers: uart stm32 run uart_async api on l475 disco

This sets the dts of dma for using the uart asynch api.
The stm32l475 has a dmamux with request 2 for Tx/Rx usart4
The Tx&Rx pins (PA0, PA1) of the usart4 are connected
on the disco_l475_iot1 board to pass the test.


Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
Francois Ramu 2021-02-23 16:59:54 +01:00 committed by Carles Cufí
parent 3a58b45ced
commit ef148f5385
2 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,11 @@
/* SPDX-License-Identifier: Apache-2.0 */
&uart4 {
dmas = <&dma2 3 2 0x20440 0>,
<&dma2 5 2 0x20480 0>;
dma-names = "tx", "rx";
};
&dma2 {
status = "okay";
};

View file

@ -31,6 +31,8 @@
#define UART_DEVICE_NAME DT_LABEL(DT_NODELABEL(sercom1))
#elif defined(CONFIG_BOARD_NUCLEO_L4R5ZI)
#define UART_DEVICE_NAME DT_LABEL(DT_NODELABEL(usart3))
#elif defined(CONFIG_BOARD_DISCO_L475_IOT1)
#define UART_DEVICE_NAME DT_LABEL(DT_NODELABEL(uart4))
#else
#define UART_DEVICE_NAME CONFIG_UART_CONSOLE_ON_DEV_NAME
#endif