TQMa8MPxL - YOCTO Linux BSP documentation


SPI

The MBa8MPxL has two SPI interfaces. They are available on the extension headers and can be tested with a loopback test.

SPI Overview

In order to determine the correct SPI interface name, the following command can be used:

ls /dev | grep spi
Interface Linux filesystem
ECSPI2 spidev2.0

Loopback Test SPI Interface

For the loopback test, SPI_MOSI and SPI_MISO need to be bridged:

On MBa8MPxL the corresponding pins are pins 10 and 12 on X63.
echo -n -e "\x01\x0F" | spi-pipe -d <spi interface> -s 10000000 | hexdump
(e.g. echo -n -e "\x01\x0F" | spi-pipe -d /dev/spidev2.0 -s 10000000 | hexdump)