iMX8MM ECSPI DMA Issue

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

iMX8MM ECSPI DMA Issue

995 Views
sreedhar_appala
Contributor IV

Hi,

I am working with i.MX8MM EVK and 4.19.35.1.1.0 Yocto distribution.

We have interfaced a slave to ECSPI2 pins exposed on J1003 of i.MX8MM EVK.

ECSPI2 is configured as Master, CPOL = CPHA = 0, Bits Per Word  = 8

If  SPI burst < 32 bytes PIO mode transfer

If  SPI burst >= 32 bytes DMA mode transfer is programmed in spi-imx.c platform driver.

PIO mode works well for SPI burst of 8,16 and 24 bytes (multiple of 8 bytes)

But when we try to use DMA transfer for SPI burst size of 32 / 64 bytes, SPI transfer fails.

After looking at the platform driver code spi-imx.c, I think some piece of code / patch is missing for DMA transfer to work.

Could you please let me know your comments and possible direction for solving this issue.

Thank you, Sreedhar

0 Kudos
2 Replies

980 Views
sreedhar_appala
Contributor IV

Hi NXP Team,

Any possible solution or suggestion to me regarding the above query.

Thank you, Sreedhar

0 Kudos

952 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

Could you try with latest release and check if the same behavior is seen?
whether L5.4.24_2.1.0 or L5.4.47_2.2.0

Regards,
Aldo.

0 Kudos