How to use ecspi slave in DMA mode on i.MX6ULL

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

How to use ecspi slave in DMA mode on i.MX6ULL

Jump to solution
1,105 Views
chenxibing1
Contributor III

hi!

    I need to use ecspi slave in DMA mode on i.MX6ULL.Kernel version is 4.14.98 and it doesn`t use DMA in slave mode.Pls if there is anything that can help me with documentation or patches.

    THANKS!

Labels (1)
Tags (1)
0 Kudos
1 Solution
1,093 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

Unfortuately the ECSPI slave driver is not using DMA, but PIO. Although DMA is defined in dts file, it is for master mode.

We do have an App note that may help to enable this, it is for the i.MX8MM but it is the same ECSPI module present in the i.MX6ULL
https://www.nxp.com/docs/en/application-note/AN13633.pdf

Best regards,
Aldo.

View solution in original post

0 Kudos
3 Replies
1,094 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

Unfortuately the ECSPI slave driver is not using DMA, but PIO. Although DMA is defined in dts file, it is for master mode.

We do have an App note that may help to enable this, it is for the i.MX8MM but it is the same ECSPI module present in the i.MX6ULL
https://www.nxp.com/docs/en/application-note/AN13633.pdf

Best regards,
Aldo.

0 Kudos
1,082 Views
chenxibing1
Contributor III

Hi,

   Thank you so much,Aldo.

    I see point 5.2.2  that there is a patch to support 4-byte aligned DMA in slave mode.Could you give me this patch?

   THANKS!

    Best wishes,

    Chen.

0 Kudos
1,065 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

yes, please download from here:
https://www.nxp.com/docs/en/application-note-software/AN13633SW.zip

Best regards,
Aldo

0 Kudos