spi-imx dma support and transfer data issue

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

spi-imx dma support and transfer data issue

2,159 次查看
surendradhobale
Contributor III

Hello,

          I am trying to use the dma support for the ecspi in imx6ul. I read multiple discussion on community,saying no support for the dma. (https://community.nxp.com/thread/452083)

But when i saw the driver code in spi-imx.c, dma support related functions already exist, also in the imx6ul.dtsi file for the ecspi nodes dmas and dma-names property has set. For me it looks dma support is enable for the spi-imx.

Is it really functional ?

I am trying to use that. In the spi-imx.c ( nxp kernel 4.9.11)

when spi_imx_setupxfer() called its checking for dma ( spi_imx_can_dma()). Bydefault rxwml level is 32. I am transfering 1 or 2 bytes i.e transfter-> len = 2. and functions returns false and every time used pio mode i.e without dma.

and not transfer data to dma descriptors.

What could be the issue ? What action need to take?

标签 (3)
0 项奖励
3 回复数

1,346 次查看
jimmychan
NXP TechSupport
NXP TechSupport

Have you add the 'dmas' and 'dma-name' in your devicetree file?

like this : linux-imx.git - i.MX Linux Kernel 

0 项奖励

1,346 次查看
surendradhobale
Contributor III

Yes, I have added the dmas and dma-name in our device tree.

0 项奖励

1,346 次查看
GregT
Contributor III

Hi Surendra,

Did you get dma and spi working?

Thanks,

Greg

0 项奖励