spi-imx dma support and transfer data issue

cancel
Showing results for 
Search instead for 
Did you mean: 

spi-imx dma support and transfer data issue

985 Views
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

172 Views
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

172 Views
Contributor III

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

0 Kudos

172 Views
Contributor III

Hi Surendra,

Did you get dma and spi working?

Thanks,

Greg

0 Kudos