tests: drivers: uart stm32 run uart_async api on f746 nucleo
This sets the dts of dma for using the uart 6 asynch api. The stm32f746 has a dma V1 with request 5 for Tx/Rx usart6 The Tx&Rx pins (PG14, PG9) of the usart6 are connected on the nucleo_f746zg board to pass the test The CONFIG_DCACHE=n must also be set to disable Dcache. Signed-off-by: Francois Ramu <francois.ramu@st.com>
This commit is contained in:
parent
169bf0f612
commit
9488727292
3 changed files with 15 additions and 1 deletions
|
@ -0,0 +1 @@
|
|||
CONFIG_DCACHE=n
|
|
@ -0,0 +1,12 @@
|
|||
/* SPDX-License-Identifier: Apache-2.0 */
|
||||
|
||||
&usart6 {
|
||||
dmas = <&dma2 7 5 0x28440 0x03>,
|
||||
<&dma2 2 5 0x28480 0x03>;
|
||||
dma-names = "tx", "rx";
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&dma2 {
|
||||
status = "okay";
|
||||
};
|
|
@ -47,7 +47,8 @@
|
|||
#define UART_DEVICE_NAME DT_LABEL(DT_NODELABEL(uart4))
|
||||
#elif defined(CONFIG_BOARD_NUCLEO_F429ZI) || \
|
||||
defined(CONFIG_BOARD_NUCLEO_F207ZG) || \
|
||||
defined(CONFIG_BOARD_NUCLEO_F767ZI)
|
||||
defined(CONFIG_BOARD_NUCLEO_F767ZI) || \
|
||||
defined(CONFIG_BOARD_NUCLEO_F746ZG)
|
||||
#define UART_DEVICE_NAME DT_LABEL(DT_NODELABEL(usart6))
|
||||
#elif defined(CONFIG_BOARD_FRDM_K82F)
|
||||
#define UART_DEVICE_NAME DT_LABEL(DT_NODELABEL(lpuart0))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue