The MBa67xx has one SPI interface. It is available on the extension headers and can be tested with a loopback test.
In order to determine the correct SPI interface name, the following command can be used:
ls /dev | grep spi
| Interface | Linux filesystem |
|---|---|
| SPI0 | spidev0.0 |
For the loopback test, SPI_MOSI and SPI_MISO need to be bridged:
On MBa67xx the corresponding pins are pins 19 and 21 on X30.
echo -n -e "\x01\x0F" | spi-pipe -d <spi interface> -s 10000000 | hexdump (e.g. echo -n -e "\x01\x0F" | spi-pipe -d /dev/spidev0.0 -s 10000000 | hexdump)