Skip to contentSkip to conversation

arm64: dts: imx8mm: Configure DMA on UART2

PATCH Applied Adam Ford 3 participants 5 messages Jul 3, 2025 – Jul 7, 2025

Subsystems (2)
lore
Share & tools
lore

Adam Ford

author
#0 lore raw

PATCH v2 1/2 arm64: dts: imx8mm: Configure DMA on UART2

UART2 is often used as the console, so the DMA was likely left off on purpose, since it's recommended to not use the DMA on the console. Because, the driver checks to see if the UART is used for the console when determining if it should initialize DMA, it should be safe to enable DMA on UART2 for all users.

---
V2: Fix spelling errors in commit message

arch/arm64/boot/dts/freescale/imx8mm.dtsi +2 -0
index cfebaa01217e..ded89b046970 100644
@@ -915,6 +915,8 @@ uart2: serial@30890000 {
 					clocks = <&clk IMX8MM_CLK_UART2_ROOT>,
 						 <&clk IMX8MM_CLK_UART2_ROOT>;
 					clock-names = "ipg", "per";
+					dmas = <&sdma1 24 4 0>, <&sdma1 25 4 0>;
+					dma-names = "rx", "tx";
 					status = "disabled";
 				};
 			};
Signature · 1 line
2.48.1
author
#1 lore raw

PATCH v2 2/2 arm64: dts: imx8mn: Configure DMA on UART2

UART2 is often used as the console, so the DMA was likely left off on purpose, since it's recommended to not use the DMA on the console. Because, the driver checks to see if the UART is used for the console when determining if it should initialize DMA, it should be safe to enable DMA on UART2 for all users.

---
V2: Fix spelling errors in commit message

arch/arm64/boot/dts/freescale/imx8mn.dtsi +2 -0
index 848ba5e46ee6..b98b3d0ddf25 100644
@@ -860,6 +860,8 @@ uart2: serial@30890000 {
 					clocks = <&clk IMX8MN_CLK_UART2_ROOT>,
 						 <&clk IMX8MN_CLK_UART2_ROOT>;
 					clock-names = "ipg", "per";
+					dmas = <&sdma1 24 4 0>, <&sdma1 25 4 0>;
+					dma-names = "rx", "tx";
 					status = "disabled";
 				};
 			};
Signature · 1 line
2.48.1
Reviewed-by on v2 2/2
#2 lore raw

Re: [PATCH V2 2/2] arm64: dts: imx8mn: Configure DMA on UART2

Quoted 7 lines · Adam Ford

UART2 is often used as the console, so the DMA was likely left off on purpose, since it's recommended to not use the DMA on the console. Because, the driver checks to see if the UART is used for the console when determining if it should initialize DMA, it should be safe to enable DMA on UART2 for all users.

Quoted 16 lines

---
V2: Fix spelling errors in commit message

arch/arm64/boot/dts/freescale/imx8mn.dtsi +2 -0
index 848ba5e46ee6..b98b3d0ddf25 100644
@@ -860,6 +860,8 @@ uart2: serial@30890000 {
 					clocks = <&clk IMX8MN_CLK_UART2_ROOT>,
 						 <&clk IMX8MN_CLK_UART2_ROOT>;
 					clock-names = "ipg", "per";
+					dmas = <&sdma1 24 4 0>, <&sdma1 25 4 0>;
+					dma-names = "rx", "tx";
 					status = "disabled";
 				};
 			};
Signature · 4 lines
Pengutronix e.K.                  |                             |
Steuerwalder Str. 21              | http://www.pengutronix.de/  |
31137 Hildesheim, Germany         | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686  | Fax:   +49-5121-206917-5555 |
Reviewed-by on v2 1/2
#3 lore raw
In reply to Adam Ford
Quoted 8 lines · Adam Ford

UART2 is often used as the console, so the DMA was likely left off on purpose, since it's recommended to not use the DMA on the console. Because, the driver checks to see if the UART is used for the console when determining if it should initialize DMA, it should be safe to enable DMA on UART2 for all users.

Quoted 16 lines

---
V2: Fix spelling errors in commit message

arch/arm64/boot/dts/freescale/imx8mm.dtsi +2 -0
index cfebaa01217e..ded89b046970 100644
@@ -915,6 +915,8 @@ uart2: serial@30890000 {
 					clocks = <&clk IMX8MM_CLK_UART2_ROOT>,
 						 <&clk IMX8MM_CLK_UART2_ROOT>;
 					clock-names = "ipg", "per";
+					dmas = <&sdma1 24 4 0>, <&sdma1 25 4 0>;
+					dma-names = "rx", "tx";
 					status = "disabled";
 				};
 			};
Signature · 4 lines
Pengutronix e.K.                  |                             |
Steuerwalder Str. 21              | http://www.pengutronix.de/  |
31137 Hildesheim, Germany         | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686  | Fax:   +49-5121-206917-5555 |
Applied
#4 lore raw
In reply to Adam Ford
Quoted 8 lines · Adam Ford

UART2 is often used as the console, so the DMA was likely left off on purpose, since it's recommended to not use the DMA on the console. Because, the driver checks to see if the UART is used for the console when determining if it should initialize DMA, it should be safe to enable DMA on UART2 for all users.

Applied both, thanks!