6d3952a7df
This patch adds device tree support to the spi-pl022 driver. Based on the initial patch by Alexandre Pereira da Silva <aletes.xgr@gmail.com> Signed-off-by: Roland Stigge <stigge@antcom.de> Acked-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
28 lines
1001 B
Plaintext
28 lines
1001 B
Plaintext
ARM PL022 SPI controller
|
|
|
|
Required properties:
|
|
- compatible : "arm,pl022", "arm,primecell"
|
|
- reg : Offset and length of the register set for the device
|
|
- interrupts : Should contain SPI controller interrupt
|
|
|
|
Optional properties:
|
|
- num-cs : total number of chipselects
|
|
- cs-gpios : should specify GPIOs used for chipselects.
|
|
The gpios will be referred to as reg = <index> in the SPI child nodes.
|
|
If unspecified, a single SPI device without a chip select can be used.
|
|
|
|
SPI slave nodes must be children of the SPI master node and can
|
|
contain the following properties.
|
|
|
|
- pl022,interface : interface type:
|
|
0: SPI
|
|
1: Texas Instruments Synchronous Serial Frame Format
|
|
2: Microwire (Half Duplex)
|
|
- pl022,com-mode : polling, interrupt or dma
|
|
- pl022,rx-level-trig : Rx FIFO watermark level
|
|
- pl022,tx-level-trig : Tx FIFO watermark level
|
|
- pl022,ctrl-len : Microwire interface: Control length
|
|
- pl022,wait-state : Microwire interface: Wait state
|
|
- pl022,duplex : Microwire interface: Full/Half duplex
|
|
|