NAME
spi – access to the main Raspberry Pi SPI interface |
SYNOPSIS
bind –a #π /dev
/dev/spictl |
DESCRIPTION
The Broadcom SoC on the Raspberry Pi has three SPI interfaces:
the main SPI interface, designated SPI0, and two auxiliary SPI
interfaces, designated SPI1 and SPI2. On the first generation
Pis, only SPI0 was brought out to the header on the board. For
the B+ and Pi2 models, SPI0 and SPI1 are available. The driver
described in this man page only supports SPI0. Reads and writes to the files spi0 and spi1 transfer data over the SPI bus. Accesses to spi0 cause the transfers to take place with the CE0_0 line asserted low. Similarly, transfers to spi1 are carried out with CE1_0 asserted low.
The spictl file is used to set various control parameters. It
accepts the following commands:
|
SOURCE
/sys/src/9/bcm/devspi.c /sys/src/9/bcm/spi.c |
BUGS
The various SPI modes are untested and the LoSSI support is unimplemented. |