Can LX2160A support spidev?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Can LX2160A support spidev?

ソリューションへジャンプ
2,406件の閲覧回数
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 解決策
2,372件の閲覧回数
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 返信
2,373件の閲覧回数
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>; }