diff options
| -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 | } ; | ||
