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:
parent
3a58b45ced
commit
ef148f5385
|
@ -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";
|
||||
};
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue