diff options
author | Andrew Bresticker <abrestic@chromium.org> | 2014-11-14 13:48:31 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-11-17 08:31:08 -0500 |
commit | 07a186893af5a274877d11ce9e5d81c142890cf6 (patch) | |
tree | bc2b51725e5034b3baa79adf936375aa4ad10bde | |
parent | f114040e3ea6e07372334ade75d1ee0775c355e1 (diff) |
spi: Add binding document for IMG SPFI controller
The Synchronous Peripheral Flash Interface (SPFI) controller found
on IMG SoCs supports single, dual, and (optionally) quad mode SPI
transfers.
Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | Documentation/devicetree/bindings/spi/spi-img-spfi.txt | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/spi/spi-img-spfi.txt b/Documentation/devicetree/bindings/spi/spi-img-spfi.txt new file mode 100644 index 000000000000..c7dd50fb8eb2 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/spi-img-spfi.txt | |||
@@ -0,0 +1,37 @@ | |||
1 | IMG Synchronous Peripheral Flash Interface (SPFI) controller | ||
2 | |||
3 | Required properties: | ||
4 | - compatible: Must be "img,spfi". | ||
5 | - reg: Must contain the base address and length of the SPFI registers. | ||
6 | - interrupts: Must contain the SPFI interrupt. | ||
7 | - clocks: Must contain an entry for each entry in clock-names. | ||
8 | See ../clock/clock-bindings.txt for details. | ||
9 | - clock-names: Must include the following entries: | ||
10 | - spfi: SPI operating clock | ||
11 | - sys: SPI system interface clock | ||
12 | - dmas: Must contain an entry for each entry in dma-names. | ||
13 | See ../dma/dma.txt for details. | ||
14 | - dma-names: Must include the following entries: | ||
15 | - rx | ||
16 | - tx | ||
17 | - #address-cells: Must be 1. | ||
18 | - #size-cells: Must be 0. | ||
19 | |||
20 | Optional properties: | ||
21 | - img,supports-quad-mode: Should be set if the interface supports quad mode | ||
22 | SPI transfers. | ||
23 | |||
24 | Example: | ||
25 | |||
26 | spi@18100f00 { | ||
27 | compatible = "img,spfi"; | ||
28 | reg = <0x18100f00 0x100>; | ||
29 | interrupts = <GIC_SHARED 22 IRQ_TYPE_LEVEL_HIGH>; | ||
30 | clocks = <&spi_clk>, <&system_clk>; | ||
31 | clock-names = "spfi", "sys"; | ||
32 | dmas = <&mdc 9 0xffffffff 0>, <&mdc 10 0xffffffff 0>; | ||
33 | dma-names = "rx", "tx"; | ||
34 | |||
35 | #address-cells = <1>; | ||
36 | #size-cells = <0>; | ||
37 | }; | ||