RTEMS 6.1-rc4
Loading...
Searching...
No Matches
Files | Functions

A SPI bus driver that uses the i.MX/i.MXRT GPIO pins. More...

Files

file  imx-spi-gpio.h
 This header file provides the interfaces of RTEMSDeviceIMXSPIGPIO.
 
file  imx-spi-gpio.c
 This file provides the implementation of RTEMSDeviceIMXSPIGPIO.
 

Functions

rtems_status_code imx_spi_gpio_init (void)
 Register all compatible nodes from the device tree.
 

Detailed Description

A SPI bus driver that uses the i.MX/i.MXRT GPIO pins.

Function Documentation

◆ imx_spi_gpio_init()

rtems_status_code imx_spi_gpio_init ( void  )

Register all compatible nodes from the device tree.

Search nodes in the device tree that are compatible to 'spi-gpio' and try to register the driver for them. Expects a node that looks (for example) like the following:

gpiospi: spi {
status = "okay";
compatible = "spi-gpio";
#address-cells = <0x1>;
#size-cells = <0x0>;
sck-gpios = <&gpio2 27 0>;
miso-gpios = <&gpio2 25 0>;
mosi-gpios = <&gpio4 14 0>;
cs-gpios = <&gpio4 10 1>;
num-chipselects = <1>;
rtems,path = "/dev/gpiospi";
};