IMX6Q UART4 and UART5

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX6Q UART4 and UART5

Jump to solution
847 Views
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 Kudos
1 Solution
838 Views
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

View solution in original post

0 Kudos
2 Replies
839 Views
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 Kudos
828 Views
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 Kudos