Merge tag 'tegra-for-4.8-i2c' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra...
[cascardo/linux.git] / Documentation / devicetree / bindings / spi / fsl-imx-cspi.txt
1 * Freescale (Enhanced) Configurable Serial Peripheral Interface
2   (CSPI/eCSPI) for i.MX
3
4 Required properties:
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
12 - reg : Offset and length of the register set for the device
13 - interrupts : Should contain CSPI/eCSPI interrupt
14 - cs-gpios : Specifies the gpio pins to be used for chipselects.
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
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.
22
23 Obsolete properties:
24 - fsl,spi-num-chipselects : Contains the number of the chipselect
25
26 Example:
27
28 ecspi@70010000 {
29         #address-cells = <1>;
30         #size-cells = <0>;
31         compatible = "fsl,imx51-ecspi";
32         reg = <0x70010000 0x4000>;
33         interrupts = <36>;
34         cs-gpios = <&gpio3 24 0>, /* GPIO3_24 */
35                    <&gpio3 25 0>; /* GPIO3_25 */
36         dmas = <&sdma 3 7 1>, <&sdma 4 7 2>;
37         dma-names = "rx", "tx";
38 };