spi-imx dma support and transfer data issue

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

spi-imx dma support and transfer data issue

2,120 Views
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?

Labels (3)
0 Kudos
3 Replies

1,307 Views
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 Kudos

1,307 Views
surendradhobale
Contributor III

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

0 Kudos

1,307 Views
GregT
Contributor III

Hi Surendra,

Did you get dma and spi working?

Thanks,

Greg

0 Kudos