This commit also adds a bit of documentation on the low speed spi kernel module
required
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
------------------
mraa has only been tested with 64 bit firmware version 0.73 or later.
+SPI
+---
+For SPI support you need to load the low_speed_spidev kernel module and that
+will create the /dev/spidev0.0 device node. Mraa only knows about this one SPI
+bus and no other.
+
Interface notes
---------------
The low speed I/O connector supported as per table below. This assumes default
Documentation shows i2c on bus #5, ACPI shows it on bus #6, but driver uses
bus #7.
-**SPI operation is not currently supported**
-
| MRAA Number | Physical Pin | Function | Sysfs GPIO | Notes |
|-------------|---------------|------------|------------|----------------------|
| 1 | 1 | GND | | |
pin_info->pwm.pinmap = 0;
pin_info->pwm.mux_total = 0;
}
+ if (caps.spi) {
+ pin_info->spi.mux_total = 0;
+ }
return MRAA_SUCCESS;
}
return MRAA_ERROR_INVALID_RESOURCE;