Harini Katakam | 205d527 | 2014-04-14 14:36:54 +0530 | [diff] [blame] | 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 | } ; |