diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2015-02-20 05:32:49 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-03-07 10:04:30 -0500 |
commit | e80a2fb18bc7dca116ec623dc909f07c5e505349 (patch) | |
tree | ef8a03026ccd7febcd63c94c10af1856f8a6f104 /Documentation | |
parent | bb02714fe5f198c0f07a8039ebcc636c1bffbc03 (diff) |
ASoC: rsnd: add sample code of dma entry
rsnd driver supports Audio DMAC (via DMAEngine) /
Audio DMAC peri peri (via rsnd driver) now.
This patch adds DT binding sample code on DT binging text
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/sound/renesas,rsnd.txt | 60 |
1 files changed, 57 insertions, 3 deletions
diff --git a/Documentation/devicetree/bindings/sound/renesas,rsnd.txt b/Documentation/devicetree/bindings/sound/renesas,rsnd.txt index 503967ba39db..6e660d4f3631 100644 --- a/Documentation/devicetree/bindings/sound/renesas,rsnd.txt +++ b/Documentation/devicetree/bindings/sound/renesas,rsnd.txt | |||
@@ -29,9 +29,17 @@ SSI subnode properties: | |||
29 | - shared-pin : if shared clock pin | 29 | - shared-pin : if shared clock pin |
30 | - pio-transfer : use PIO transfer mode | 30 | - pio-transfer : use PIO transfer mode |
31 | - no-busif : BUSIF is not ussed when [mem -> SSI] via DMA case | 31 | - no-busif : BUSIF is not ussed when [mem -> SSI] via DMA case |
32 | - dma : Should contain Audio DMAC entry | ||
33 | - dma-names : SSI case "rx" (=playback), "tx" (=capture) | ||
34 | SSIU case "rxu" (=playback), "txu" (=capture) | ||
32 | 35 | ||
33 | SRC subnode properties: | 36 | SRC subnode properties: |
34 | no properties at this point | 37 | - dma : Should contain Audio DMAC entry |
38 | - dma-names : "rx" (=playback), "tx" (=capture) | ||
39 | |||
40 | DVC subnode properties: | ||
41 | - dma : Should contain Audio DMAC entry | ||
42 | - dma-names : "tx" (=playback/capture) | ||
35 | 43 | ||
36 | DAI subnode properties: | 44 | DAI subnode properties: |
37 | - playback : list of playback modules | 45 | - playback : list of playback modules |
@@ -69,73 +77,119 @@ rcar_sound: rcar_sound@ec500000 { | |||
69 | "clk_a", "clk_b", "clk_c", "clk_i"; | 77 | "clk_a", "clk_b", "clk_c", "clk_i"; |
70 | 78 | ||
71 | rcar_sound,dvc { | 79 | rcar_sound,dvc { |
72 | dvc0: dvc@0 { }; | 80 | dvc0: dvc@0 { |
73 | dvc1: dvc@1 { }; | 81 | dmas = <&audma0 0xbc>; |
82 | dma-names = "tx"; | ||
83 | }; | ||
84 | dvc1: dvc@1 { | ||
85 | dmas = <&audma0 0xbe>; | ||
86 | dma-names = "tx"; | ||
87 | }; | ||
74 | }; | 88 | }; |
75 | 89 | ||
76 | rcar_sound,src { | 90 | rcar_sound,src { |
77 | src0: src@0 { | 91 | src0: src@0 { |
78 | interrupts = <0 352 IRQ_TYPE_LEVEL_HIGH>; | 92 | interrupts = <0 352 IRQ_TYPE_LEVEL_HIGH>; |
93 | dmas = <&audma0 0x85>, <&audma1 0x9a>; | ||
94 | dma-names = "rx", "tx"; | ||
79 | }; | 95 | }; |
80 | src1: src@1 { | 96 | src1: src@1 { |
81 | interrupts = <0 353 IRQ_TYPE_LEVEL_HIGH>; | 97 | interrupts = <0 353 IRQ_TYPE_LEVEL_HIGH>; |
98 | dmas = <&audma0 0x87>, <&audma1 0x9c>; | ||
99 | dma-names = "rx", "tx"; | ||
82 | }; | 100 | }; |
83 | src2: src@2 { | 101 | src2: src@2 { |
84 | interrupts = <0 354 IRQ_TYPE_LEVEL_HIGH>; | 102 | interrupts = <0 354 IRQ_TYPE_LEVEL_HIGH>; |
103 | dmas = <&audma0 0x89>, <&audma1 0x9e>; | ||
104 | dma-names = "rx", "tx"; | ||
85 | }; | 105 | }; |
86 | src3: src@3 { | 106 | src3: src@3 { |
87 | interrupts = <0 355 IRQ_TYPE_LEVEL_HIGH>; | 107 | interrupts = <0 355 IRQ_TYPE_LEVEL_HIGH>; |
108 | dmas = <&audma0 0x8b>, <&audma1 0xa0>; | ||
109 | dma-names = "rx", "tx"; | ||
88 | }; | 110 | }; |
89 | src4: src@4 { | 111 | src4: src@4 { |
90 | interrupts = <0 356 IRQ_TYPE_LEVEL_HIGH>; | 112 | interrupts = <0 356 IRQ_TYPE_LEVEL_HIGH>; |
113 | dmas = <&audma0 0x8d>, <&audma1 0xb0>; | ||
114 | dma-names = "rx", "tx"; | ||
91 | }; | 115 | }; |
92 | src5: src@5 { | 116 | src5: src@5 { |
93 | interrupts = <0 357 IRQ_TYPE_LEVEL_HIGH>; | 117 | interrupts = <0 357 IRQ_TYPE_LEVEL_HIGH>; |
118 | dmas = <&audma0 0x8f>, <&audma1 0xb2>; | ||
119 | dma-names = "rx", "tx"; | ||
94 | }; | 120 | }; |
95 | src6: src@6 { | 121 | src6: src@6 { |
96 | interrupts = <0 358 IRQ_TYPE_LEVEL_HIGH>; | 122 | interrupts = <0 358 IRQ_TYPE_LEVEL_HIGH>; |
123 | dmas = <&audma0 0x91>, <&audma1 0xb4>; | ||
124 | dma-names = "rx", "tx"; | ||
97 | }; | 125 | }; |
98 | src7: src@7 { | 126 | src7: src@7 { |
99 | interrupts = <0 359 IRQ_TYPE_LEVEL_HIGH>; | 127 | interrupts = <0 359 IRQ_TYPE_LEVEL_HIGH>; |
128 | dmas = <&audma0 0x93>, <&audma1 0xb6>; | ||
129 | dma-names = "rx", "tx"; | ||
100 | }; | 130 | }; |
101 | src8: src@8 { | 131 | src8: src@8 { |
102 | interrupts = <0 360 IRQ_TYPE_LEVEL_HIGH>; | 132 | interrupts = <0 360 IRQ_TYPE_LEVEL_HIGH>; |
133 | dmas = <&audma0 0x95>, <&audma1 0xb8>; | ||
134 | dma-names = "rx", "tx"; | ||
103 | }; | 135 | }; |
104 | src9: src@9 { | 136 | src9: src@9 { |
105 | interrupts = <0 361 IRQ_TYPE_LEVEL_HIGH>; | 137 | interrupts = <0 361 IRQ_TYPE_LEVEL_HIGH>; |
138 | dmas = <&audma0 0x97>, <&audma1 0xba>; | ||
139 | dma-names = "rx", "tx"; | ||
106 | }; | 140 | }; |
107 | }; | 141 | }; |
108 | 142 | ||
109 | rcar_sound,ssi { | 143 | rcar_sound,ssi { |
110 | ssi0: ssi@0 { | 144 | ssi0: ssi@0 { |
111 | interrupts = <0 370 IRQ_TYPE_LEVEL_HIGH>; | 145 | interrupts = <0 370 IRQ_TYPE_LEVEL_HIGH>; |
146 | dmas = <&audma0 0x01>, <&audma1 0x02>, <&audma0 0x15>, <&audma1 0x16>; | ||
147 | dma-names = "rx", "tx", "rxu", "txu"; | ||
112 | }; | 148 | }; |
113 | ssi1: ssi@1 { | 149 | ssi1: ssi@1 { |
114 | interrupts = <0 371 IRQ_TYPE_LEVEL_HIGH>; | 150 | interrupts = <0 371 IRQ_TYPE_LEVEL_HIGH>; |
151 | dmas = <&audma0 0x03>, <&audma1 0x04>, <&audma0 0x49>, <&audma1 0x4a>; | ||
152 | dma-names = "rx", "tx", "rxu", "txu"; | ||
115 | }; | 153 | }; |
116 | ssi2: ssi@2 { | 154 | ssi2: ssi@2 { |
117 | interrupts = <0 372 IRQ_TYPE_LEVEL_HIGH>; | 155 | interrupts = <0 372 IRQ_TYPE_LEVEL_HIGH>; |
156 | dmas = <&audma0 0x05>, <&audma1 0x06>, <&audma0 0x63>, <&audma1 0x64>; | ||
157 | dma-names = "rx", "tx", "rxu", "txu"; | ||
118 | }; | 158 | }; |
119 | ssi3: ssi@3 { | 159 | ssi3: ssi@3 { |
120 | interrupts = <0 373 IRQ_TYPE_LEVEL_HIGH>; | 160 | interrupts = <0 373 IRQ_TYPE_LEVEL_HIGH>; |
161 | dmas = <&audma0 0x07>, <&audma1 0x08>, <&audma0 0x6f>, <&audma1 0x70>; | ||
162 | dma-names = "rx", "tx", "rxu", "txu"; | ||
121 | }; | 163 | }; |
122 | ssi4: ssi@4 { | 164 | ssi4: ssi@4 { |
123 | interrupts = <0 374 IRQ_TYPE_LEVEL_HIGH>; | 165 | interrupts = <0 374 IRQ_TYPE_LEVEL_HIGH>; |
166 | dmas = <&audma0 0x09>, <&audma1 0x0a>, <&audma0 0x71>, <&audma1 0x72>; | ||
167 | dma-names = "rx", "tx", "rxu", "txu"; | ||
124 | }; | 168 | }; |
125 | ssi5: ssi@5 { | 169 | ssi5: ssi@5 { |
126 | interrupts = <0 375 IRQ_TYPE_LEVEL_HIGH>; | 170 | interrupts = <0 375 IRQ_TYPE_LEVEL_HIGH>; |
171 | dmas = <&audma0 0x0b>, <&audma1 0x0c>, <&audma0 0x73>, <&audma1 0x74>; | ||
172 | dma-names = "rx", "tx", "rxu", "txu"; | ||
127 | }; | 173 | }; |
128 | ssi6: ssi@6 { | 174 | ssi6: ssi@6 { |
129 | interrupts = <0 376 IRQ_TYPE_LEVEL_HIGH>; | 175 | interrupts = <0 376 IRQ_TYPE_LEVEL_HIGH>; |
176 | dmas = <&audma0 0x0d>, <&audma1 0x0e>, <&audma0 0x75>, <&audma1 0x76>; | ||
177 | dma-names = "rx", "tx", "rxu", "txu"; | ||
130 | }; | 178 | }; |
131 | ssi7: ssi@7 { | 179 | ssi7: ssi@7 { |
132 | interrupts = <0 377 IRQ_TYPE_LEVEL_HIGH>; | 180 | interrupts = <0 377 IRQ_TYPE_LEVEL_HIGH>; |
181 | dmas = <&audma0 0x0f>, <&audma1 0x10>, <&audma0 0x79>, <&audma1 0x7a>; | ||
182 | dma-names = "rx", "tx", "rxu", "txu"; | ||
133 | }; | 183 | }; |
134 | ssi8: ssi@8 { | 184 | ssi8: ssi@8 { |
135 | interrupts = <0 378 IRQ_TYPE_LEVEL_HIGH>; | 185 | interrupts = <0 378 IRQ_TYPE_LEVEL_HIGH>; |
186 | dmas = <&audma0 0x11>, <&audma1 0x12>, <&audma0 0x7b>, <&audma1 0x7c>; | ||
187 | dma-names = "rx", "tx", "rxu", "txu"; | ||
136 | }; | 188 | }; |
137 | ssi9: ssi@9 { | 189 | ssi9: ssi@9 { |
138 | interrupts = <0 379 IRQ_TYPE_LEVEL_HIGH>; | 190 | interrupts = <0 379 IRQ_TYPE_LEVEL_HIGH>; |
191 | dmas = <&audma0 0x13>, <&audma1 0x14>, <&audma0 0x7d>, <&audma1 0x7e>; | ||
192 | dma-names = "rx", "tx", "rxu", "txu"; | ||
139 | }; | 193 | }; |
140 | }; | 194 | }; |
141 | 195 | ||