No response is observed when spi-slave mode is set on imx6

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

No response is observed when spi-slave mode is set on imx6

946 次查看
amit_priye
Contributor I

Hi,

We have applied the patch provided on below link to enable spi slave mode .

How to support spi slave in kernel4.1.15 & imx6? 

Spi driver is probed successfully , When we connect is to spi master device and spi master device send data nothing is observed  in dmesg .

From hardware prospective we have verified that spi-master data  and clock properly send the spi slave line .

Our actual requirement is to make imx6 as slave and microcontroller as master which sent data on spi line .We need read and write through the
spi-slave (ie imx6 ).Any suggestion related to this please provide the same .

Thanks

0 项奖励
回复
1 回复

856 次查看
jimmychan
NXP TechSupport
NXP TechSupport

our BSP is not support SPI slave mode.
Only kernel 4.15 and 4.16 from mainline supports it.

In order to use SPI slave in these kernels the "spi-slave" property needs to be passed in the devicetree as explained at:

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/tree/Documentation/devicetre...


For your reference: 

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/patch/?id=71abd29057cb17b6b95324218...

0 项奖励
回复