Our application uses two SPI peripheral devices each operating unidirectional.
The SPI master uses the MOSI pin to send commands from the AM3351 to another processor.
At the same time using a second, distinct SPI peripheral on the AM3351, that SPI should be configured to use the MOSI pin to receive asynchronous responses and events from the other processor which is the master on that SPI bus and drives the CLK, CS, and MOSI from its side. The AM3351 should have a large receive buffer which accumulates data from the other processor. The AM3351 occasionally polls the slave SPI buffer and reads from it.
Is there any example code available for using the SPI devices on the AM3351 or similar under Linux in this fashion?
If not, what example code is available for SPI interface on the AM3351 under Linux?
Thank you in advance for any help on this matter.