Linux kernel controller as subordinate SPI

I am interested in working with SPI devices available on Linux. I have a special controller that supports SPI in both master and slave mode. I have to configure the SPI controller in slave mode.

My question is: Does the Linux frame support SPI slaves? I get asynchronous data on the SPI bus, I have to read this data and process it, and then send the command back.

+4
source share
3 answers

No, Linux does not support running as a slave SPI.

From the Linux kernel SPI support overview :

A "struct spi_device" . Linux .

+3

SPI Linux v4.13-rc1.   SPI Linux:

( Linux) , SPI.

[...]

A "struct spi_device" .

[...]

/sys/devices/.../CTLR/slave... (un) SPI.

SPI ; "(null)" .

( "(null)", ).

/sys/class/spi_slave/spiB... symlink ( node) node, SPI "B". spiB. *, SPI SPI.

++/C .

+2

All Articles