iMX6Q,Use DMA to operate ssi

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

iMX6Q,Use DMA to operate ssi

1,335件の閲覧回数
hsl
Contributor I

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!

ラベル(3)
タグ(2)
0 件の賞賛
返信
1 返信

1,179件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi H

according to sect.3.7 Smart Direct Memory Access (SDMA) API attached

Linux Manual sdma is used for some audio modules like ssi, esai,spdif.

One can test it with nxp linux from:

https://source.codeaurora.org/external/imx/linux-imx/tree/?h=imx_4.9.88_2.0.0_ga

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信