blob: 31b5b21598ff5755d3e12a50aac2abf51d6653f1 [file] [log] [blame]
Shawn Guo22a85e42011-07-10 01:16:41 +08001* Freescale (Enhanced) Configurable Serial Peripheral Interface
2 (CSPI/eCSPI) for i.MX
3
4Required properties:
Matt Porter7f43a872015-03-04 14:12:58 -05005- 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 Guo22a85e42011-07-10 01:16:41 +080012- reg : Offset and length of the register set for the device
13- interrupts : Should contain CSPI/eCSPI interrupt
Shawn Guo22a85e42011-07-10 01:16:41 +080014- cs-gpios : Specifies the gpio pins to be used for chipselects.
Matt Porter7f43a872015-03-04 14:12:58 -050015- clocks : Clock specifiers for both ipg and per clocks.
16- clock-names : Clock names should include both "ipg" and "per"
17See the clock consumer binding,
18 Documentation/devicetree/bindings/clock/clock-bindings.txt
Robin Gongf62cacc2014-09-11 09:18:44 +080019- 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 Guo22a85e42011-07-10 01:16:41 +080022
Alexander Shiyan956fff72016-06-08 20:02:09 +030023Obsolete properties:
24- fsl,spi-num-chipselects : Contains the number of the chipselect
25
Leif Middelschultef72efa72017-04-23 21:19:58 +020026Optional properties:
27- fsl,spi-rdy-drctl: Integer, representing the value of DRCTL, the register
28controlling the SPI_READY handling. Note that to enable the DRCTL consideration,
29the SPI_READY mode-flag needs to be set too.
30Valid values are: 0 (disabled), 1 (edge-triggered burst) and 2 (level-triggered burst).
31
Shawn Guo22a85e42011-07-10 01:16:41 +080032Example:
33
34ecspi@70010000 {
35 #address-cells = <1>;
36 #size-cells = <0>;
37 compatible = "fsl,imx51-ecspi";
38 reg = <0x70010000 0x4000>;
39 interrupts = <36>;
Fabio Estevam37797d52012-04-21 14:21:13 -030040 cs-gpios = <&gpio3 24 0>, /* GPIO3_24 */
41 <&gpio3 25 0>; /* GPIO3_25 */
Robin Gongf62cacc2014-09-11 09:18:44 +080042 dmas = <&sdma 3 7 1>, <&sdma 4 7 2>;
43 dma-names = "rx", "tx";
Leif Middelschultef72efa72017-04-23 21:19:58 +020044 fsl,spi-rdy-drctl = <1>;
Shawn Guo22a85e42011-07-10 01:16:41 +080045};