Michal Simek | 0cf97aa | 2015-07-22 10:47:33 +0200 | [diff] [blame] | 1 | Cadence SPI controller Device Tree Bindings |
| 2 | ------------------------------------------- |
Jagan Teki | c30d183 | 2015-06-27 00:51:33 +0530 | [diff] [blame] | 3 | |
| 4 | Required properties: |
Michal Simek | 0cf97aa | 2015-07-22 10:47:33 +0200 | [diff] [blame] | 5 | - compatible : Should be "cdns,spi-r1p6" or "xlnx,zynq-spi-r1p6". |
Jagan Teki | c30d183 | 2015-06-27 00:51:33 +0530 | [diff] [blame] | 6 | - reg : Physical base address and size of SPI registers map. |
Jagan Teki | c30d183 | 2015-06-27 00:51:33 +0530 | [diff] [blame] | 7 | - interrupts : Property with a value describing the interrupt |
| 8 | number. |
Michal Simek | 0cf97aa | 2015-07-22 10:47:33 +0200 | [diff] [blame] | 9 | - interrupt-parent : Must be core interrupt controller |
Jagan Teki | c30d183 | 2015-06-27 00:51:33 +0530 | [diff] [blame] | 10 | - clock-names : List of input clock names - "ref_clk", "pclk" |
| 11 | (See clock bindings for details). |
Michal Simek | 0cf97aa | 2015-07-22 10:47:33 +0200 | [diff] [blame] | 12 | - clocks : Clock phandles (see clock bindings for details). |
Jagan Teki | 8208163 | 2015-06-27 00:51:34 +0530 | [diff] [blame] | 13 | - spi-max-frequency : Maximum SPI clocking speed of device in Hz |
Jagan Teki | c30d183 | 2015-06-27 00:51:33 +0530 | [diff] [blame] | 14 | |
Michal Simek | 0cf97aa | 2015-07-22 10:47:33 +0200 | [diff] [blame] | 15 | Optional properties: |
| 16 | - num-cs : Number of chip selects used. |
| 17 | If a decoder is used, this will be the number of |
| 18 | chip selects after the decoder. |
| 19 | - is-decoded-cs : Flag to indicate whether decoder is used or not. |
| 20 | |
Jagan Teki | c30d183 | 2015-06-27 00:51:33 +0530 | [diff] [blame] | 21 | Example: |
| 22 | |
Michal Simek | 0cf97aa | 2015-07-22 10:47:33 +0200 | [diff] [blame] | 23 | spi@e0007000 { |
| 24 | compatible = "xlnx,zynq-spi-r1p6"; |
Jagan Teki | c30d183 | 2015-06-27 00:51:33 +0530 | [diff] [blame] | 25 | clock-names = "ref_clk", "pclk"; |
Michal Simek | 0cf97aa | 2015-07-22 10:47:33 +0200 | [diff] [blame] | 26 | clocks = <&clkc 26>, <&clkc 35>; |
| 27 | interrupt-parent = <&intc>; |
| 28 | interrupts = <0 49 4>; |
| 29 | num-cs = <4>; |
| 30 | is-decoded-cs = <0>; |
| 31 | reg = <0xe0007000 0x1000>; |
Jagan Teki | c30d183 | 2015-06-27 00:51:33 +0530 | [diff] [blame] | 32 | } ; |