blob: 4c85c4c69584a14d39dd8597facb920b4b69cf46 [file] [log] [blame]
Benoit Coussond5a80032012-02-15 18:37:34 +01001OMAP2+ McSPI device
2
3Required properties:
4- compatible :
5 - "ti,omap2-spi" for OMAP2 & OMAP3.
6 - "ti,omap4-spi" 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
Daniel Mack2cd45172012-11-14 11:14:26 +08009- 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.
Benoit Coussond5a80032012-02-15 18:37:34 +010012
Matt Porter0b9e49e2013-06-24 17:31:59 +053013Optional 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
22Examples:
23
24[hwmod populated DMA resources]
Benoit Coussond5a80032012-02-15 18:37:34 +010025
26mcspi1: 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
Matt Porter0b9e49e2013-06-24 17:31:59 +053034[generic DMA request binding]
35
36mcspi1: 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};