From e1b933d6960ad6412d6ab2961dcd394dd1234bf4 Mon Sep 17 00:00:00 2001 From: Valentin Caron Date: Tue, 13 Oct 2020 14:37:20 +0200 Subject: [PATCH] ARM: dts: stm32: activate alternate REQ/ACK dma protocol for uart 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 Change-Id: Ia5c1205e1a74a06ff670006e9fbf619ad45deeb5 Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/linux-stm32/+/186820 Reviewed-by: CITOOLS Reviewed-by: CIBUILD Reviewed-by: Fabrice GASNIER --- arch/arm/boot/dts/stm32mp151.dtsi | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/arch/arm/boot/dts/stm32mp151.dtsi b/arch/arm/boot/dts/stm32mp151.dtsi index f0211917bb6802..91639561366c2e 100644 --- a/arch/arm/boot/dts/stm32mp151.dtsi +++ b/arch/arm/boot/dts/stm32mp151.dtsi @@ -535,8 +535,8 @@ clocks = <&rcc USART2_K>; wakeup-source; power-domains = <&pd_core>; - dmas = <&dmamux1 43 0x400 0x5>, - <&dmamux1 44 0x400 0x1>; + dmas = <&dmamux1 43 0x400 0x15>, + <&dmamux1 44 0x400 0x11>; dma-names = "rx", "tx"; status = "disabled"; }; @@ -548,8 +548,8 @@ clocks = <&rcc USART3_K>; wakeup-source; power-domains = <&pd_core>; - dmas = <&dmamux1 45 0x400 0x5>, - <&dmamux1 46 0x400 0x1>; + dmas = <&dmamux1 45 0x400 0x15>, + <&dmamux1 46 0x400 0x11>; dma-names = "rx", "tx"; status = "disabled"; }; @@ -561,8 +561,8 @@ clocks = <&rcc UART4_K>; wakeup-source; power-domains = <&pd_core>; - dmas = <&dmamux1 63 0x400 0x5>, - <&dmamux1 64 0x400 0x1>; + dmas = <&dmamux1 63 0x400 0x15>, + <&dmamux1 64 0x400 0x11>; dma-names = "rx", "tx"; status = "disabled"; }; @@ -574,8 +574,8 @@ clocks = <&rcc UART5_K>; wakeup-source; power-domains = <&pd_core>; - dmas = <&dmamux1 65 0x400 0x5>, - <&dmamux1 66 0x400 0x1>; + dmas = <&dmamux1 65 0x400 0x15>, + <&dmamux1 66 0x400 0x11>; dma-names = "rx", "tx"; status = "disabled"; }; @@ -696,8 +696,8 @@ clocks = <&rcc UART7_K>; wakeup-source; power-domains = <&pd_core>; - dmas = <&dmamux1 79 0x400 0x5>, - <&dmamux1 80 0x400 0x1>; + dmas = <&dmamux1 79 0x400 0x15>, + <&dmamux1 80 0x400 0x11>; dma-names = "rx", "tx"; status = "disabled"; }; @@ -709,8 +709,8 @@ clocks = <&rcc UART8_K>; wakeup-source; power-domains = <&pd_core>; - dmas = <&dmamux1 81 0x400 0x5>, - <&dmamux1 82 0x400 0x1>; + dmas = <&dmamux1 81 0x400 0x15>, + <&dmamux1 82 0x400 0x11>; dma-names = "rx", "tx"; status = "disabled"; }; @@ -794,8 +794,8 @@ clocks = <&rcc USART6_K>; wakeup-source; power-domains = <&pd_core>; - dmas = <&dmamux1 71 0x400 0x5>, - <&dmamux1 72 0x400 0x1>; + dmas = <&dmamux1 71 0x400 0x15>, + <&dmamux1 72 0x400 0x11>; dma-names = "rx", "tx"; status = "disabled"; };