T2080 SPI /dev/spi is not creating.

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

T2080 SPI /dev/spi is not creating.

1,618 次查看
vidyasagartata
Contributor II

Dear All,

We are using SDK2.0 to boot T2080RDB, we can see in the kernel log spi memory device is detecting with CS0 and working fine.

There are four spi CS is configured in the dts file but there is no /dev/spi device is creating in the linux user space.

Please let me know how /dev/spi will create.

Thanks,

Vidya

0 项奖励
回复
1 回复

1,324 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Hello Vidya,

SPI is not like I2C, there are not typically SPI devices nodes and the SPI isn't accessed directly by userspace. Each SPI device connect to SPI interface must have a SPI client driver for it.

You could refer to drivers/mtd/devices/m25p80.c for SPI device driver development.


Have a great day,
TIC

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

0 项奖励
回复