OSDN Git Service

ARM: dts: stm32: add DMA configuration to UART nodes on stm32mp151
authorErwan Le Ray <erwan.leray@foss.st.com>
Thu, 3 Feb 2022 17:10:59 +0000 (18:10 +0100)
committerAlexandre Torgue <alexandre.torgue@foss.st.com>
Fri, 25 Feb 2022 09:53:15 +0000 (10:53 +0100)
commit0f18f728ba6281fa63fde978fe8efb11d76aaef0
treed62511e209174472f23e57bddf9f7dd043999605
parent7a5faaee0d2e6f60897eed43366d8b541ea7882c
ARM: dts: stm32: add DMA configuration to UART nodes on stm32mp151

Add DMA configuration in stm32mp15x uart nodes by selecting dma direct
mode and alternate REQ/ACK dma protocol for uart.

DMA direct mode allows to bypass DMA FIFO. Each DMA request immediately
initiates a transfer from/to the memory. This allows USART to get data
transferred, even when the transfer ends before the DMA FIFO completion.

Default REQ/ACK DMA protocol consists in maintaining ACK signal up to the
removal of REQuest and the transfer completion.
In case of alternative REQ/ACK protocol, ACK de-assertion does not wait the
removal of the REQuest, but only the transfer completion.
Due to a possible DMA stream lock when transferring data to/from STM32
USART/UART, select this alternative protocol in STM32 USART/UART nodes.

Signed-off-by: Valentin Caron <valentin.caron@foss.st.com>
Signed-off-by: Erwan Le Ray <erwan.leray@foss.st.com>
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
arch/arm/boot/dts/stm32mp151.dtsi