Can LX2160A support spidev?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can LX2160A support spidev?

Jump to solution
1,160 Views
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 Kudos
Reply
1 Solution
1,126 Views
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>; }

View solution in original post

1 Reply
1,127 Views
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>; }