This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3356: UART3 with DMA

Part Number: AM3356

Hi,

My customer wants to use DMA for UART3 transfer. OS is SDK Linux.

Q1) Could you tell me how to enable DMA for UART3?
Q2) Can UART3 with DMA support up to 1Mbsp?

Thanks and regards,
Koichiro Tashiro

  • Hi Tashiro-san,


    Q1) Could you tell me how to enable DMA for UART3?

    First we need to get the DMA channel information from TRM:

    - Check Table 11-25 (Crossbar Mapped) shows UART3 uses crossbar event #7 for TX, #8 for RX;

    - Check Table 11-24 (Direct Mapped) for any pair of "Open" event numbers which are not used. They will be used in the crossbar configuration for UART3.

    The following device tree example shows to use DMA event #34 and #35 for UART3:

     &uart3 {
           dmas = <&edma_xbar 34 0 7
                   &edma_xbar 35 0 8>;
           dma-names = "tx", "rx";
     };
    

    Q2) Can UART3 with DMA support up to 1Mbsp?

    Yes, it should.