aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Porter <mporter@ti.com>2013-06-24 08:01:59 -0400
committerMark Brown <broonie@linaro.org>2013-06-24 11:07:12 -0400
commit0b9e49e6704b81fd991827b0b60a0a6d56d06921 (patch)
tree53e27eb7e8829ade60a01ceded4a7b6f0958262c
parent74f3aaad21660c91ea13136ea8c41f5183e421fd (diff)
spi: omap2-mcspi: add generic DMA request support to the DT binding
The binding definition is based on the generic DMA request binding Signed-off-by: Matt Porter <mporter@ti.com> Signed-off-by: Joel A Fernandes <joelagnel@ti.com> Signed-off-by: Sourav Poddar <sourav.poddar@ti.com> Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r--Documentation/devicetree/bindings/spi/omap-spi.txt27
1 files changed, 26 insertions, 1 deletions
diff --git a/Documentation/devicetree/bindings/spi/omap-spi.txt b/Documentation/devicetree/bindings/spi/omap-spi.txt
index 938809c6829b..4c85c4c69584 100644
--- a/Documentation/devicetree/bindings/spi/omap-spi.txt
+++ b/Documentation/devicetree/bindings/spi/omap-spi.txt
@@ -10,7 +10,18 @@ Required properties:
10 input. The default is D0 as input and 10 input. The default is D0 as input and
11 D1 as output. 11 D1 as output.
12 12
13Example: 13Optional 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]
14 25
15mcspi1: mcspi@1 { 26mcspi1: mcspi@1 {
16 #address-cells = <1>; 27 #address-cells = <1>;
@@ -20,3 +31,17 @@ mcspi1: mcspi@1 {
20 ti,spi-num-cs = <4>; 31 ti,spi-num-cs = <4>;
21}; 32};
22 33
34[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};