i.MX8M DeviceTree UART2 DMA support

cancel
Showing results for 
Search instead for 
Did you mean: 

i.MX8M DeviceTree UART2 DMA support

Jump to solution
222 Views
RBdf
Contributor I

The DeviceTree file for the i.MX8M (imx8mm.dtsi) does contain pre-configuration for all 4 UARTs but DMA support is enabled for UARTs 1, 3, and 4 only - not for UART2. Is there any reason for that or are the lines just missing?

0 Kudos
1 Solution
214 Views
BiyongSUN
NXP Employee
NXP Employee

Because it is debug uart port, need atom operation. 

If you check all the device tree, you will find the debug uart port. they all have no dma.

and they should  not have dma. 

If you check the following link, you will see change to the uart4 from uart2.

uart4 also need to remove dma. 

 

 

How to Change i.MX8MM evk Linux Debug UART - NXP Community

i.MX8MM_evk_debug_uart4_rel_imx_5.4.70_2.3.0.patch


&uart2 {
+ dmas = <&sdma1 24 4 0>, <&sdma1 25 4 0>;
+ dma-names = "rx", "tx";
+};
+
+&uart4 {
+ /delete-property/ dmas;
+ /delete-property/ dmas-names;
u-boot,dm-spl;
};

 

View solution in original post

0 Kudos
2 Replies
215 Views
BiyongSUN
NXP Employee
NXP Employee

Because it is debug uart port, need atom operation. 

If you check all the device tree, you will find the debug uart port. they all have no dma.

and they should  not have dma. 

If you check the following link, you will see change to the uart4 from uart2.

uart4 also need to remove dma. 

 

 

How to Change i.MX8MM evk Linux Debug UART - NXP Community

i.MX8MM_evk_debug_uart4_rel_imx_5.4.70_2.3.0.patch


&uart2 {
+ dmas = <&sdma1 24 4 0>, <&sdma1 25 4 0>;
+ dma-names = "rx", "tx";
+};
+
+&uart4 {
+ /delete-property/ dmas;
+ /delete-property/ dmas-names;
u-boot,dm-spl;
};

 

0 Kudos
210 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Rainer

 

uart2 has dma capability as described in sect.2.1.4 DMA memory maps

i.MX 8M Mini Applications Processor Reference Manual

however dma is not used for uart console ports.

 

Best regards
igor

0 Kudos