SPI slave detection in linux userspace

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

SPI slave detection in linux userspace

1,858 次查看
srinivasaraopor
Contributor II

We have got a Freescale's IMX6DL reference board (Wandboard Dual). We have ported Ubuntu to this and able to boot successfully. Now we would like interface some other modules to this board externally through SPI. We have made entry for spi module in device tree and when we are booting we could able to see /dev/spidev0.0. And also we checked with spi_test.c program which is confirming that the board is working as spi master (spi is working correctly) by shorting MOSI and MISO pins in JP4. But how we can check the correctness of SPI slave devices correctly. Whether that hardware working or not, connections are correct etc. how we will come to know about spi slave devices connected.. in the linux user space.

标签 (3)
0 项奖励
回复
1 回复

1,342 次查看
igorpadykov
NXP Employee
NXP Employee

HI Srinivasa

one can attach some spi device like spi-nor or adc/dac and test it, preferably checking

signals with oscilloscope, like described below

i.MX6 ECSPI single burst transfers

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复