IMX_SPI(4)

NAME
imx_spi - device driver for the NXP i.MX family Serial Peripheral Interface (SPI)

SYNOPSIS
To compile this driver into the kernel, place the following line in your kernel configuration file:

device imx_spi

Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5):

    imx_spi_load="YES"

DESCRIPTION
The imx_spi driver provides support for the ‘ECSPI’ (Enhanced Configurable SPI) hardware present on the NXP i.MX family of processors. While the ECSPI hardware supports both master and slave mode, this driver currently operates only in master mode.

Due to hardware quirks, the imx_spi driver requires that all chip select pins be configured as GPIO pins. Use the FDT property ‘cs-gpios’ to specify which pins to use as chip selects. You may use any GPIO pins, including the ones that the hardware would normally use as SPI select pins; just configure them as GPIO in the fdt_pinctrl(4) data.

SYSCTL VARIABLES
The following variables are available via sysctl(8), and as loader(8) tunables:

dev.imx_spi.%d.debug
    Output debugging info when non-zero. A value of 1 displays information about bus transfers, 2 adds information about bus clock frequency and chip select activity, and 3 adds information about interrupt handling.

SEE ALSO
fdt(4), fdt_pinctrl(4), sysctl(8)

HISTORY
The imx_spi driver first appeared in FreeBSD 12.0.