IMX6Q UART4 and UART5

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

IMX6Q UART4 and UART5

跳至解决方案
1,107 次查看
824497590
Contributor I

Hello everyone, I would like to ask you a question. I now use IMX6Q's UART4 and UART5, because the data flow demand is relatively large, so I need to use DMA. Whenever I enable DMA in the device tree, UART4 and UART5 cannot receive data normally. The configuration is shown in the red box below.

uart4: serial@21f0000 {

                            compatible = "fsl,imx6q-uart", "fsl,imx21-uart";

                            reg = <0x021f0000 0x4000>;

                            interrupts = <0 29 IRQ_TYPE_LEVEL_HIGH>;

                            clocks = <&clks IMX6QDL_CLK_UART_IPG>,

                                    <&clks IMX6QDL_CLK_UART_SERIAL>;

                            clock-names = "ipg", "per";

                            dmas = <&sdma 31 4 0>, <&sdma 32 4 0>;

                            dma-names =“rx”,“ tx”;

                          status = "disabled";

                     };

When I shield the received DMA, I can receive data. The configuration is shown in the figure below

uart4: serial@21f0000 {

                            compatible = "fsl,imx6q-uart", "fsl,imx21-uart";

                            reg = <0x021f0000 0x4000>;

                            interrupts = <0 29 IRQ_TYPE_LEVEL_HIGH>;

                            clocks = <&clks IMX6QDL_CLK_UART_IPG>,

                                    <&clks IMX6QDL_CLK_UART_SERIAL>;

                            clock-names = "ipg", "per";

                            dmas = <&sdma 31 4 0>, <&sdma 32 4 0>;

                            dma-names =“”,“ tx”;

                          status = "disabled";

                     };

What's wrong with this?

0 项奖励
回复
1 解答
1,098 次查看
igorpadykov
NXP Employee
NXP Employee

Hi 824497590

 

reason may be in software, please try latest official linux releases from

nxp source.codeaurora.org/external/imx/linux-imx repository

https://source.codeaurora.org/external/imx/linux-imx/tree/?h=imx_5.4.24_2.1.0

Documentation:

https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applicat...

 

Best regards
igor

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,099 次查看
igorpadykov
NXP Employee
NXP Employee

Hi 824497590

 

reason may be in software, please try latest official linux releases from

nxp source.codeaurora.org/external/imx/linux-imx repository

https://source.codeaurora.org/external/imx/linux-imx/tree/?h=imx_5.4.24_2.1.0

Documentation:

https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applicat...

 

Best regards
igor

0 项奖励
回复
1,088 次查看
824497590
Contributor I

    thank you for your reply,I replaced my existing version of imx.c with the latest version 5.4.24_2.1.0 kernel imx.c, and no error was reported after compilation.But I still can’t receive data normally when I test.Can I do what I did above, or I must download the full version of the latest kernel source code, and then develop on the basis of the latest source code

Hope to get your reply, thank you

0 项奖励
回复