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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
2,068 次查看
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!

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
2,056 次查看
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 项奖励
回复
3 回复数
2,057 次查看
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 项奖励
回复
2,045 次查看
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 项奖励
回复
2,028 次查看
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 项奖励
回复