Can LX2160A support spidev?

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

Can LX2160A support spidev?

跳至解决方案
1,295 次查看
xmj
Contributor I

Hi 

LX2160A has 3 SPI controllers. In order to access to SPI slave devices, please let me know how to create spidev like "/dev/spidevB.C …" on LX2160A board with lsdk 20.04. Show me configuration example if possible. 

Thanks.

0 项奖励
回复
1 解答
1,261 次查看
yipingwang
NXP TechSupport
NXP TechSupport

To use spidev, please open CONFIG_SPI, CONFIG_SPI_FSL_DSPI and CONFIG_SPI_SPIDEV. 

They are have been opened in arm64 defconfig.

Moreover, dts need modification, as below, under dspi node:

spidev0: spi@0

{ reg = <0>; compatible = "rohm,dh2228fv"; spi-max-frequency = <3000000>; }

在原帖中查看解决方案

1 回复
1,262 次查看
yipingwang
NXP TechSupport
NXP TechSupport

To use spidev, please open CONFIG_SPI, CONFIG_SPI_FSL_DSPI and CONFIG_SPI_SPIDEV. 

They are have been opened in arm64 defconfig.

Moreover, dts need modification, as below, under dspi node:

spidev0: spi@0

{ reg = <0>; compatible = "rohm,dh2228fv"; spi-max-frequency = <3000000>; }