i.MX8M DeviceTree UART2 DMA support

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

i.MX8M DeviceTree UART2 DMA support

跳至解决方案
990 次查看
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 项奖励
1 解答
982 次查看
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 项奖励
2 回复数
983 次查看
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 项奖励
978 次查看
igorpadykov
NXP Employee
NXP Employee

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 项奖励