i.MX7d spi4 works for slave configuration but spi1 doesn't work for slave configuration

cancel
Showing results for 
Search instead for 
Did you mean: 

i.MX7d spi4 works for slave configuration but spi1 doesn't work for slave configuration

182 Views
raunaqsinha
Contributor I

Hi,

We have i.Mx7's spi in slave configuration using PIO. When we are using spi4 in slave mode, we get a read interrupt and we are able to get data also. But if the same is used for spi1, we donot get any interrupt.

We are not sure why slave configuration for spi4 works but spi1 doesn't work.

We are Linux kernel, which has been provided for i.Mx7d eval board.

Regards,

Raunaq Sinha

Labels (2)
0 Kudos
2 Replies

68 Views
raunaqsinha
Contributor I

Hi igor,

Thanks for the reply!!

In our case, we see if we configure spi1 as master, it works fine but only in the case if we configure it in slave mode it doesn't work. So we feel that pin muxing may not the reason behind this failure.

However, if we configure spi4 in master or slave mode, it works properly in both modes.

Is there any reason which you can think of why spi1 will work as master but not as slave.

Regards,

Raunaq Sinha

0 Kudos

68 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Raunaq

reason may be that ecspi1 is available on uart3 or ecspi1 pads,
according to sect.8.1.1.1 Muxing Options i.MX7D Reference Manual
which are already used for pinctrl_uart6 and pinctrl_sai3 in
linux/arch/arm/boot/dts/imx7d-sdb.dts :

imx7d-sdb.dts\dts\boot\arm\arch - linux-imx - i.MX Linux kernel 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos