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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

1,478 次查看
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

标签 (2)
0 项奖励
回复
2 回复数

1,364 次查看
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 项奖励
回复

1,364 次查看
igorpadykov
NXP Employee
NXP Employee

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 项奖励
回复