© 2014 Digi International Inc.
10
ConnectCore 6 Linux BSP Reference Manual
Serial Peripheral Interface (SPI)
The CPU has five SPI controllers. Please refer to the hardware reference manual of your board to
determine available ports and multiplexed functionality.
ECSPI2 used to communicate with the Kinetis CPU (on module variants with Kinetis) and is
routed to the development board SPI connector.
SPI binding is described at
Documentation/devicetree/bindings/spi/fsl-imx-spi.txt
A sample application called
spi_test
is available to use with spidev driver to test the port in
loopback mode by connecting MISO and MOSI lines. The application can be added to the rootfs
by adding “dey-examples” to the EXTRA_IMAGE_FEATURES of your
local.conf
or by adding
“dey-examples-spidev” to IMAGE_INSTALL_append.
Sound
The module can output sound through through external audio chip SGTL5000 on the
development board (default) or through the HDMI interface. The available cards can be listed
with:
To change the default device, please refer to ALSA documentation at
http://www.alsa-
project.org/main/index.php/Asoundrc
.
The sound driver can be accessed using the ALSA API. ALSA utilities package also offer user
space applications:
• aplay: for playback
• arecord: for recording
• alsactl: for configuration
• amixer: for specific control setup
#
aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
default:CARD=sgtl5000audio
sgtl5000-audio,
Default Audio Device
sysdefault:CARD=sgtl5000audio
sgtl5000-audio,
Default Audio Device
default:CARD=imxhdmisoc
imx-hdmi-soc,
Default Audio Device
sysdefault:CARD=imxhdmisoc
imx-hdmi-soc,
Default Audio Device