AnsweredAssumed Answered

iMX6Q,Use DMA to operate ssi

Question asked by H SL on Dec 5, 2018

Hello everyone:

I am having a problem now, that is:

Want to use DMA to move data from the ssi register into memory,how to operate?
I hope to get some inspiration.

 

Set ssi like this in my device tree:

ssi2: ssi@0202c000 {
    compatible = "fsl,imx6q-ssi","fsl,imx21-ssi";
    reg = <0x0202c000 0x4000>;
    interrupts = <0 47 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&clks IMX6QDL_CLK_SSI2_IPG>,
                   <&clks IMX6QDL_CLK_SSI2>;
    clock-names = "ipg", "baud";
    dmas = <&sdma 41 1 0>,
                                 <&sdma 42 1 0>;
    dma-names = "rx", "tx";
    fsl,fifo-depth = <15>;
    fsl,ssi-dma-events = <42 41>;
    status = "disabled";
};


Thank you very much!

Outcomes