diff options
author | Harini Katakam <harinik@xilinx.com> | 2014-04-14 05:06:54 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-04-14 16:00:31 -0400 |
commit | 205d52756f4091ffcf526f9d14853b18e3ca8d6f (patch) | |
tree | 2e5686738e4f10c0aaa4884420bd6eb52c1a9177 | |
parent | c474b38665463d9017cd60cd3a8f8226cf8d562f (diff) |
spi: Add devicetree bindings documentation for Cadence SPI
Add spi-cadence bindings documentation.
Signed-off-by: Harini Katakam <harinik@xilinx.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r-- | Documentation/devicetree/bindings/spi/spi-cadence.txt | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/spi/spi-cadence.txt b/Documentation/devicetree/bindings/spi/spi-cadence.txt new file mode 100644 index 000000000000..94f09141a4f0 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/spi-cadence.txt | |||
@@ -0,0 +1,31 @@ | |||
1 | Cadence SPI controller Device Tree Bindings | ||
2 | ------------------------------------------- | ||
3 | |||
4 | Required properties: | ||
5 | - compatible : Should be "cdns,spi-r1p6" or "xlnx,zynq-spi-r1p6". | ||
6 | - reg : Physical base address and size of SPI registers map. | ||
7 | - interrupts : Property with a value describing the interrupt | ||
8 | number. | ||
9 | - interrupt-parent : Must be core interrupt controller | ||
10 | - clock-names : List of input clock names - "ref_clk", "pclk" | ||
11 | (See clock bindings for details). | ||
12 | - clocks : Clock phandles (see clock bindings for details). | ||
13 | |||
14 | Optional properties: | ||
15 | - num-cs : Number of chip selects used. | ||
16 | If a decoder is used, this will be the number of | ||
17 | chip selects after the decoder. | ||
18 | - is-decoded-cs : Flag to indicate whether decoder is used or not. | ||
19 | |||
20 | Example: | ||
21 | |||
22 | spi@e0007000 { | ||
23 | compatible = "xlnx,zynq-spi-r1p6"; | ||
24 | clock-names = "ref_clk", "pclk"; | ||
25 | clocks = <&clkc 26>, <&clkc 35>; | ||
26 | interrupt-parent = <&intc>; | ||
27 | interrupts = <0 49 4>; | ||
28 | num-cs = <4>; | ||
29 | is-decoded-cs = <0>; | ||
30 | reg = <0xe0007000 0x1000>; | ||
31 | } ; | ||