2023-02-21 08:11:56

by Sebastian Krzyszkowiak

[permalink] [raw]
Subject: [PATCH] arm64: dts: imx8mq: Add UART DMA support

UART ports have DMA capability. Describe the UART DMA properties.

Signed-off-by: Sebastian Krzyszkowiak <[email protected]>
---
arch/arm64/boot/dts/freescale/imx8mq.dtsi | 8 ++++++++
1 file changed, 8 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi
index 98fbba4c99a9..142a5c894e1e 100644
--- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi
@@ -940,6 +940,8 @@ uart1: serial@30860000 {
clocks = <&clk IMX8MQ_CLK_UART1_ROOT>,
<&clk IMX8MQ_CLK_UART1_ROOT>;
clock-names = "ipg", "per";
+ dmas = <&sdma1 22 4 0>, <&sdma1 23 4 0>;
+ dma-names = "rx", "tx";
status = "disabled";
};

@@ -951,6 +953,8 @@ uart3: serial@30880000 {
clocks = <&clk IMX8MQ_CLK_UART3_ROOT>,
<&clk IMX8MQ_CLK_UART3_ROOT>;
clock-names = "ipg", "per";
+ dmas = <&sdma1 26 4 0>, <&sdma1 27 4 0>;
+ dma-names = "rx", "tx";
status = "disabled";
};

@@ -962,6 +966,8 @@ uart2: serial@30890000 {
clocks = <&clk IMX8MQ_CLK_UART2_ROOT>,
<&clk IMX8MQ_CLK_UART2_ROOT>;
clock-names = "ipg", "per";
+ dmas = <&sdma1 24 4 0>, <&sdma1 25 4 0>;
+ dma-names = "rx", "tx";
status = "disabled";
};

@@ -1157,6 +1163,8 @@ uart4: serial@30a60000 {
clocks = <&clk IMX8MQ_CLK_UART4_ROOT>,
<&clk IMX8MQ_CLK_UART4_ROOT>;
clock-names = "ipg", "per";
+ dmas = <&sdma1 28 4 0>, <&sdma1 29 4 0>;
+ dma-names = "rx", "tx";
status = "disabled";
};


---
base-commit: 89f5349e0673322857bd432fa23113af56673739
change-id: 20230221-uart-dma-df84665c6a97

Best regards,
--
Sebastian Krzyszkowiak <[email protected]>



2023-03-14 02:46:33

by Shawn Guo

[permalink] [raw]
Subject: Re: [PATCH] arm64: dts: imx8mq: Add UART DMA support

On Tue, Feb 21, 2023 at 09:04:08AM +0100, Sebastian Krzyszkowiak wrote:
> UART ports have DMA capability. Describe the UART DMA properties.
>
> Signed-off-by: Sebastian Krzyszkowiak <[email protected]>

Applied, thanks!