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
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
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!
-----------------------------------------------------------------------------------------------------------------------