Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux
[deliverable/linux.git] / Documentation / devicetree / bindings / spi / omap-spi.txt
1 OMAP2+ McSPI device
2
3 Required properties:
4 - compatible :
5 - "ti,omap2-mcspi" for OMAP2 & OMAP3.
6 - "ti,omap4-mcspi" for OMAP4+.
7 - ti,spi-num-cs : Number of chipselect supported by the instance.
8 - ti,hwmods: Name of the hwmod associated to the McSPI
9 - ti,pindir-d0-out-d1-in: Select the D0 pin as output and D1 as
10 input. The default is D0 as input and
11 D1 as output.
12
13 Optional properties:
14 - dmas: List of DMA specifiers with the controller specific format
15 as described in the generic DMA client binding. A tx and rx
16 specifier is required for each chip select.
17 - dma-names: List of DMA request names. These strings correspond
18 1:1 with the DMA specifiers listed in dmas. The string naming
19 is to be "rxN" and "txN" for RX and TX requests,
20 respectively, where N equals the chip select number.
21
22 Examples:
23
24 [hwmod populated DMA resources]
25
26 mcspi1: mcspi@1 {
27 #address-cells = <1>;
28 #size-cells = <0>;
29 compatible = "ti,omap4-mcspi";
30 ti,hwmods = "mcspi1";
31 ti,spi-num-cs = <4>;
32 };
33
34 [generic DMA request binding]
35
36 mcspi1: mcspi@1 {
37 #address-cells = <1>;
38 #size-cells = <0>;
39 compatible = "ti,omap4-mcspi";
40 ti,hwmods = "mcspi1";
41 ti,spi-num-cs = <2>;
42 dmas = <&edma 42
43 &edma 43
44 &edma 44
45 &edma 45>;
46 dma-names = "tx0", "rx0", "tx1", "rx1";
47 };
This page took 0.034922 seconds and 5 git commands to generate.