Shawn Guo | 22a85e4 | 2011-07-10 01:16:41 +0800 | [diff] [blame] | 1 | * Freescale (Enhanced) Configurable Serial Peripheral Interface |
| 2 | (CSPI/eCSPI) for i.MX |
| 3 | |
| 4 | Required properties: |
Matt Porter | 7f43a87 | 2015-03-04 14:12:58 -0500 | [diff] [blame] | 5 | - compatible : |
| 6 | - "fsl,imx1-cspi" for SPI compatible with the one integrated on i.MX1 |
| 7 | - "fsl,imx21-cspi" for SPI compatible with the one integrated on i.MX21 |
| 8 | - "fsl,imx27-cspi" for SPI compatible with the one integrated on i.MX27 |
| 9 | - "fsl,imx31-cspi" for SPI compatible with the one integrated on i.MX31 |
| 10 | - "fsl,imx35-cspi" for SPI compatible with the one integrated on i.MX35 |
| 11 | - "fsl,imx51-ecspi" for SPI compatible with the one integrated on i.MX51 |
Shawn Guo | 22a85e4 | 2011-07-10 01:16:41 +0800 | [diff] [blame] | 12 | - reg : Offset and length of the register set for the device |
| 13 | - interrupts : Should contain CSPI/eCSPI interrupt |
Shawn Guo | 22a85e4 | 2011-07-10 01:16:41 +0800 | [diff] [blame] | 14 | - cs-gpios : Specifies the gpio pins to be used for chipselects. |
Matt Porter | 7f43a87 | 2015-03-04 14:12:58 -0500 | [diff] [blame] | 15 | - clocks : Clock specifiers for both ipg and per clocks. |
| 16 | - clock-names : Clock names should include both "ipg" and "per" |
| 17 | See the clock consumer binding, |
| 18 | Documentation/devicetree/bindings/clock/clock-bindings.txt |
Robin Gong | f62cacc | 2014-09-11 09:18:44 +0800 | [diff] [blame] | 19 | - dmas: DMA specifiers for tx and rx dma. See the DMA client binding, |
| 20 | Documentation/devicetree/bindings/dma/dma.txt |
| 21 | - dma-names: DMA request names should include "tx" and "rx" if present. |
Shawn Guo | 22a85e4 | 2011-07-10 01:16:41 +0800 | [diff] [blame] | 22 | |
Alexander Shiyan | 956fff7 | 2016-06-08 20:02:09 +0300 | [diff] [blame] | 23 | Obsolete properties: |
| 24 | - fsl,spi-num-chipselects : Contains the number of the chipselect |
| 25 | |
Leif Middelschulte | f72efa7 | 2017-04-23 21:19:58 +0200 | [diff] [blame] | 26 | Optional properties: |
| 27 | - fsl,spi-rdy-drctl: Integer, representing the value of DRCTL, the register |
| 28 | controlling the SPI_READY handling. Note that to enable the DRCTL consideration, |
| 29 | the SPI_READY mode-flag needs to be set too. |
| 30 | Valid values are: 0 (disabled), 1 (edge-triggered burst) and 2 (level-triggered burst). |
| 31 | |
Shawn Guo | 22a85e4 | 2011-07-10 01:16:41 +0800 | [diff] [blame] | 32 | Example: |
| 33 | |
| 34 | ecspi@70010000 { |
| 35 | #address-cells = <1>; |
| 36 | #size-cells = <0>; |
| 37 | compatible = "fsl,imx51-ecspi"; |
| 38 | reg = <0x70010000 0x4000>; |
| 39 | interrupts = <36>; |
Fabio Estevam | 37797d5 | 2012-04-21 14:21:13 -0300 | [diff] [blame] | 40 | cs-gpios = <&gpio3 24 0>, /* GPIO3_24 */ |
| 41 | <&gpio3 25 0>; /* GPIO3_25 */ |
Robin Gong | f62cacc | 2014-09-11 09:18:44 +0800 | [diff] [blame] | 42 | dmas = <&sdma 3 7 1>, <&sdma 4 7 2>; |
| 43 | dma-names = "rx", "tx"; |
Leif Middelschulte | f72efa7 | 2017-04-23 21:19:58 +0200 | [diff] [blame] | 44 | fsl,spi-rdy-drctl = <1>; |
Shawn Guo | 22a85e4 | 2011-07-10 01:16:41 +0800 | [diff] [blame] | 45 | }; |