blob: 4cd9f99660824fb0a055eddc933429792b3814e6 [file] [log] [blame]
Joonwoo Park6572ac52012-07-10 17:17:00 -07001Qualcomm audio devices for ALSA sound SoC
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -07002
3* msm-pcm
4
5Required properties:
6
7 - compatible : "qcom,msm-pcm-dsp"
8
Phani Kumar Uppalapati85b7c9b2013-02-19 09:59:47 -08009 - qcom,msm-pcm-dsp-id : device node id
10
11* msm-pcm-low-latency
12
13Required properties:
14
15 - compatible : "qcom,msm-pcm-dsp"
16
17 - qcom,msm-pcm-dsp-id : device node id
18
19 Optional properties
20
21 - qcom,msm-pcm-low-latency : Flag indicating whether
22 the device node is of type low latency.
23
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -070024* msm-pcm-routing
25
26Required properties:
27
28 - compatible : "qcom,msm-pcm-routing"
29
30* msm-pcm-lpa
31
32Required properties:
33
34 - compatible : "qcom,msm-pcm-lpa"
35
Harmandeep Singha3453a72012-07-03 12:31:09 -070036* msm-compr-dsp
37
38Required properties:
39
40 - compatible : "qcom,msm-compr-dsp"
41
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -070042* msm-voip-dsp
43
44Required properties:
45
46 - compatible : "qcom,msm-voip-dsp"
47
Phani Kumar Uppalapati0878e9d2012-08-24 14:52:00 -070048* msm-pcm-voice
49
50Required properties:
51
52 - compatible : "qcom,msm-pcm-voice"
53
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -070054* msm-stub-codec
55
56Required properties:
57
58 - compatible : "qcom,msm-stub-codec"
59
60* msm-dai-fe
61
62Required properties:
63
64 - compatible : "qcom,msm-dai-fe"
65
Phani Kumar Uppalapati580884a2012-09-24 19:40:27 -070066* msm-pcm-afe
67
68Required properties:
69
70 - compatible : "qcom,msm-pcm-afe"
71
Venkat Sudhir6f1a5302013-01-17 12:28:15 -080072* msm-pcm-dtmf
73
74Required properties:
75
76 - compatible : "qcom,msm-pcm-dtmf"
77 - qcom,msm-pcm-dtmf : Enable DTMF driver in Audio. DTMF driver is
78 used for generation and detection of DTMF tones, when user is in
79 active voice call. APR commands are sent from DTMF driver to ADSP.
80
81* msm-dai-stub
82
83Required properties:
84
85 - compatible : "qcom,msm-dai-stub"
86 - qcom,msm-dai-stub : This enables stub CPU dai in Audio.
87 The stub dai is used when there is no real backend in Audio.
88
Harmandeep Singh169f1d42012-10-01 19:19:38 -070089* msm-dai-q6-hdmi
90
91Required properties:
92 - compatible : "msm-dai-q6-hdmi"
93 - qcom,msm-dai-q6-dev-id : The hdmi multi channel port ID.
94 It is passed onto the dsp from the apps to form an audio
95 path to the HDMI device. Currently the only supported value
96 is 8, which indicates the rx path used for audio playback
97 on HDMI device.
98
Joonwoo Park6572ac52012-07-10 17:17:00 -070099* msm-dai-q6
100
101[First Level Nodes]
102
103Required properties:
104
105 - compatible : "msm-dai-q6"
106
Eugene Yasman570dcea2012-11-25 09:59:17 +0200107Optional properties:
108
109 - qcom,ext-spk-amp-supply : External speaker amplifier power supply.
110 - qcom,ext-spk-amp-gpio : External speaker amplifier enable signal.
111
Joonwoo Park6572ac52012-07-10 17:17:00 -0700112[Second Level Nodes]
113
114Required properties:
115
116 - compatible : "qcom,msm-dai-q6-dev"
117 - qcom,msm-dai-q6-dev-id : The slimbus multi channel port ID
118 Value is from 16384 to 16393
Phani Kumar Uppalapati1d303092012-09-24 19:55:56 -0700119 BT SCO port ID value from 12288 to 12289
Joonwoo Park44945812013-01-14 17:24:45 -0800120 RT Proxy port ID values from 224 to 225 and 240 to
121 241
Phani Kumar Uppalapatibebe7382012-10-08 19:19:01 -0700122 FM Rx and TX port ID values from 12292 to 12293
Mohan Kumar Gubbihalli Lachma Naik72e1b282012-12-19 11:49:07 -0800123 incall record Rx and TX port ID values from 32771 to 32772
124 inCall Music Delivery port ID is 32773
Joonwoo Park6572ac52012-07-10 17:17:00 -0700125
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700126* msm-auxpcm
127
128[First Level Nodes]
129
130Required properties:
131
132 - compatible : "qcom,msm-auxpcm-resource"
133
Damir Didjusto04d3c362013-01-07 14:30:53 -0800134 - qcom,msm-cpudai-auxpcm-clk: clock for auxpcm. The first value is
135 for 8khz mode, the second is for
136 16khz
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700137
Damir Didjusto04d3c362013-01-07 14:30:53 -0800138 - qcom,msm-cpudai-auxpcm-mode: mode information. The first value is
139 for 8khz mode, the second is for
140 16khz
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700141 0 - for PCM
142
Damir Didjusto04d3c362013-01-07 14:30:53 -0800143 - qcom,msm-cpudai-auxpcm-sync: sync information. The first value is
144 for 8khz mode, the second is for
145 16khz
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700146
Damir Didjusto04d3c362013-01-07 14:30:53 -0800147 - qcom,msm-cpudai-auxpcm-frame: No.of bytes per frame. The first
148 value is for 8khz mode, the second
149 is for 16khz
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700150 5 - 256BPF
Damir Didjusto04d3c362013-01-07 14:30:53 -0800151 4 - 128BPF
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700152
Damir Didjusto04d3c362013-01-07 14:30:53 -0800153 - qcom,msm-cpudai-auxpcm-quant: Type of quantization. The first
154 value is for 8khz mode, the second
155 is for 16khz
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700156 2 - Linear quantization
157
158 - qcom,msm-cpudai-auxpcm-slot: Slot number for multichannel scenario
Damir Didjusto04d3c362013-01-07 14:30:53 -0800159 The first value is for 8khz mode the
160 second is for 16khz
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700161 Value is 1
162
Damir Didjusto04d3c362013-01-07 14:30:53 -0800163 - qcom,msm-cpudai-auxpcm-data: Data field - 0. The first value is
164 for 8khz mode, the second is for
165 16khz
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700166
Damir Didjusto04d3c362013-01-07 14:30:53 -0800167 - qcom,msm-cpudai-auxpcm-pcm-clk-rate: Clock rate for pcm - 2048000. The
168 first value is for 8khz mode, the
169 second is for auxpcm
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700170
171[Second Level Nodes]
172
173Required Properties:
174
175 - qcom,msm-auxpcm-dev-id: This property specifies the device
176 port id.
177 For Rx device, the port id is 4106
178 and for Tx device, the port id is 4107
179
180 - compatible: "qcom,msm-auxpcm-dev"
181
182* msm-pcm-hostless
183
184Required properties:
185
186 - compatible : "qcom,msm-pcm-hostless"
187
Phani Kumar Uppalapati8b3a1bb2012-06-26 19:56:58 -0700188* msm-ocmem-audio
189
190Required properties:
191
192 - compatible : "qcom,msm-ocmem-audio"
193
Phani Kumar Uppalapati31492952012-09-25 20:25:53 -0700194 - qcom,msm_bus,name: Client name
Phani Kumar Uppalapati8b3a1bb2012-06-26 19:56:58 -0700195
Phani Kumar Uppalapati31492952012-09-25 20:25:53 -0700196 - qcom,msm_bus,num_cases: Total number of use cases
Phani Kumar Uppalapati8b3a1bb2012-06-26 19:56:58 -0700197
Joonwoo Park44945812013-01-14 17:24:45 -0800198 - qcom,msm_bus,active_only: Context flag for requests in active
199 or dual (active & sleep) contex
Phani Kumar Uppalapati8b3a1bb2012-06-26 19:56:58 -0700200
Phani Kumar Uppalapati31492952012-09-25 20:25:53 -0700201 - qcom,msm_bus,num_paths: Total number of master-slave pairs
Phani Kumar Uppalapati8b3a1bb2012-06-26 19:56:58 -0700202
Joonwoo Park44945812013-01-14 17:24:45 -0800203 - qcom,msm_bus,vectors: Arrays of unsigned integers
204 representing:
205 master-id, slave-id, arbitrated
206 bandwidth,
207 instantaneous bandwidth
Joonwoo Parkf6574c72012-10-10 17:29:57 -0700208* wcd9xxx_intc
209
210Required properties:
211
212 - compatible : "qcom,wcd9xxx-irq"
213
Joonwoo Park44945812013-01-14 17:24:45 -0800214 - interrupt-controller : Mark this device node as an
215 interrupt controller
Joonwoo Parkf6574c72012-10-10 17:29:57 -0700216
217 - #interrupt-cells : Should be 1
218
219 - interrupt-parent : Parent interrupt controller
220
221 - interrupts : Interrupt number on the parent
222 interrupt controller
223
224 - interrupt-names : Name of interrupt on the parent
225 interrupt controller
226
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700227Example:
228
229 qcom,msm-pcm {
Phani Kumar Uppalapati85b7c9b2013-02-19 09:59:47 -0800230 compatible = "qcom,msm-pcm-dsp";
231 qcom,msm-pcm-dsp-id = <0>;
232 };
233
234 qcom,msm-pcm-low-latency {
235 compatible = "qcom,msm-pcm-dsp";
236 qcom,msm-pcm-dsp-id = <1>;
237 qcom,msm-pcm-low-latency;
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700238 };
239
240 qcom,msm-pcm-routing {
241 compatible = "qcom,msm-pcm-routing";
242 };
243
244 qcom,msm-pcm-lpa {
245 compatible = "qcom,msm-pcm-lpa";
246 };
247
Harmandeep Singha3453a72012-07-03 12:31:09 -0700248 qcom,msm-compr-dsp {
249 compatible = "qcom,msm-compr-dsp";
250 };
251
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700252 qcom,msm-voip-dsp {
253 compatible = "qcom,msm-voip-dsp";
254 };
255
256 qcom,msm-stub-codec {
257 compatible = "qcom,msm-stub-codec";
258 };
259
260 qcom,msm-dai-fe {
261 compatible = "qcom,msm-dai-fe";
262 };
263
Venkat Sudhir6f1a5302013-01-17 12:28:15 -0800264 qcom,msm-pcm-dtmf {
265 compatible = "qcom,msm-pcm-dtmf";
266 };
267
268 qcom,msm-dai-stub {
269 compatible = "qcom,msm-dai-stub";
270 };
271
Harmandeep Singh169f1d42012-10-01 19:19:38 -0700272 qcom,msm-dai-q6-hdmi {
273 compatible = "qcom,msm-dai-q6-hdmi";
274 qcom,msm-dai-q6-dev-id = <8>;
275 };
276
Joonwoo Park6572ac52012-07-10 17:17:00 -0700277 qcom,msm-dai-q6 {
278 compatible = "qcom,msm-dai-q6";
279 qcom,msm-dai-q6-sb-0-rx {
280 compatible = "qcom,msm-dai-q6-dev";
281 qcom,msm-dai-q6-dev-id = <16384>;
282 };
283
284 qcom,msm-dai-q6-sb-0-tx {
285 compatible = "qcom,msm-dai-q6-dev";
286 qcom,msm-dai-q6-dev-id = <16385>;
287 };
Phani Kumar Uppalapati1d303092012-09-24 19:55:56 -0700288
Phani Kumar Uppalapatiefad7312012-10-09 18:43:36 -0700289 qcom,msm-dai-q6-sb-1-rx {
290 compatible = "qcom,msm-dai-q6-dev";
291 qcom,msm-dai-q6-dev-id = <16386>;
292 };
293
294 qcom,msm-dai-q6-sb-1-tx {
295 compatible = "qcom,msm-dai-q6-dev";
296 qcom,msm-dai-q6-dev-id = <16387>;
297 };
298
299 qcom,msm-dai-q6-sb-3-rx {
300 compatible = "qcom,msm-dai-q6-dev";
301 qcom,msm-dai-q6-dev-id = <16390>;
302 };
303
304 qcom,msm-dai-q6-sb-3-tx {
305 compatible = "qcom,msm-dai-q6-dev";
306 qcom,msm-dai-q6-dev-id = <16391>;
307 };
308
309 qcom,msm-dai-q6-sb-4-rx {
310 compatible = "qcom,msm-dai-q6-dev";
311 qcom,msm-dai-q6-dev-id = <16392>;
312 };
313
314 qcom,msm-dai-q6-sb-4-tx {
315 compatible = "qcom,msm-dai-q6-dev";
316 qcom,msm-dai-q6-dev-id = <16393>;
317 };
318
Phani Kumar Uppalapati1d303092012-09-24 19:55:56 -0700319 qcom,msm-dai-q6-bt-sco-rx {
320 compatible = "qcom,msm-dai-q6-dev";
321 qcom,msm-dai-q6-dev-id = <12288>;
322 };
323
324 qcom,msm-dai-q6-bt-sco-tx {
325 compatible = "qcom,msm-dai-q6-dev";
326 qcom,msm-dai-q6-dev-id = <12289>;
327 };
328
Phani Kumar Uppalapatibebe7382012-10-08 19:19:01 -0700329 qcom,msm-dai-q6-int-fm-rx {
330 compatible = "qcom,msm-dai-q6-dev";
331 qcom,msm-dai-q6-dev-id = <12292>;
332 };
333
334 qcom,msm-dai-q6-int-fm-tx {
335 compatible = "qcom,msm-dai-q6-dev";
336 qcom,msm-dai-q6-dev-id = <12293>;
337 };
338
Phani Kumar Uppalapati1d303092012-09-24 19:55:56 -0700339 qcom,msm-dai-q6-be-afe-pcm-rx {
340 compatible = "qcom,msm-dai-q6-dev";
341 qcom,msm-dai-q6-dev-id = <224>;
342 };
343
344 qcom,msm-dai-q6-be-afe-pcm-tx {
345 compatible = "qcom,msm-dai-q6-dev";
346 qcom,msm-dai-q6-dev-id = <225>;
347 };
348
349 qcom,msm-dai-q6-afe-proxy-rx {
350 compatible = "qcom,msm-dai-q6-dev";
351 qcom,msm-dai-q6-dev-id = <241>;
352 };
353
354 qcom,msm-dai-q6-afe-proxy-tx {
355 compatible = "qcom,msm-dai-q6-dev";
356 qcom,msm-dai-q6-dev-id = <240>;
357 };
Mohan Kumar Gubbihalli Lachma Naik984252f2012-12-06 16:13:33 -0800358
359 qcom,msm-dai-q6-incall-record-rx {
360 compatible = "qcom,msm-dai-q6-dev";
361 qcom,msm-dai-q6-dev-id = <32771>;
362 };
363
364 qcom,msm-dai-q6-incall-record-tx {
365 compatible = "qcom,msm-dai-q6-dev";
366 qcom,msm-dai-q6-dev-id = <32772>;
367 };
Mohan Kumar Gubbihalli Lachma Naik72e1b282012-12-19 11:49:07 -0800368
369 qcom,msm-dai-q6-incall-music-rx {
370 compatible = "qcom,msm-dai-q6-dev";
371 qcom,msm-dai-q6-dev-id = <32773>;
372 };
Joonwoo Park6572ac52012-07-10 17:17:00 -0700373 };
374
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700375 qcom,msm-auxpcm {
376 compatible = "qcom,msm-auxpcm-resource";
377 qcom,msm-cpudai-auxpcm-clk = "pcm_clk";
Damir Didjusto04d3c362013-01-07 14:30:53 -0800378 qcom,msm-cpudai-auxpcm-mode = <0>, <0>;
379 qcom,msm-cpudai-auxpcm-sync = <1>, <1>;
380 qcom,msm-cpudai-auxpcm-frame = <5>, <4>;
381 qcom,msm-cpudai-auxpcm-quant = <2>, <2>;
382 qcom,msm-cpudai-auxpcm-slot = <1>, <1>;
383 qcom,msm-cpudai-auxpcm-data = <0>, <0>;
384 qcom,msm-cpudai-auxpcm-pcm-clk-rate = <2048000>, <2048000>;
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700385
386 qcom,msm-auxpcm-rx {
Harmandeep Singha3453a72012-07-03 12:31:09 -0700387 qcom,msm-auxpcm-dev-id = <4106>;
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700388 compatible = "qcom,msm-auxpcm-dev";
389 };
390
391 qcom,msm-auxpcm-tx {
Harmandeep Singha3453a72012-07-03 12:31:09 -0700392 qcom,msm-auxpcm-dev-id = <4107>;
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700393 compatible = "qcom,msm-auxpcm-dev";
394 };
395 };
396
397 qcom,msm-pcm-hostless {
398 compatible = "qcom,msm-pcm-hostless";
399 };
400
Phani Kumar Uppalapati8b3a1bb2012-06-26 19:56:58 -0700401 qcom,msm-ocmem-audio {
402 compatible = "qcom,msm-ocmem-audio";
Phani Kumar Uppalapati31492952012-09-25 20:25:53 -0700403 qcom,msm_bus,name = "audio-ocmem";
404 qcom,msm_bus,num_cases = <2>;
405 qcom,msm_bus,active_only = <0>;
406 qcom,msm_bus,num_paths = <1>;
407 qcom,msm_bus,vectors =
408 <11 604 0 0>,
409 <11 604 32505856 325058560>;
Phani Kumar Uppalapati8b3a1bb2012-06-26 19:56:58 -0700410 };
411
Joonwoo Parkf6574c72012-10-10 17:29:57 -0700412 wcd9xxx_intc: wcd9xxx-irq {
413 compatible = "qcom,wcd9xxx-irq";
414 interrupt-controller;
415 #interrupt-cells = <1>;
416 interrupt-parent = <&msmgpio>;
417 interrupts = <72 0>;
418 interrupt-names = "cdc-int";
419 };
420
Kiran Kandi9ee87e42012-08-20 13:05:40 -0700421* MSM8974 ASoC Machine driver
422
423Required properties:
424- compatible : "qcom,msm8974-audio-taiko"
425- qcom,model : The user-visible name of this sound card.
426- qcom,audio-routing : A list of the connections between audio components.
427 Each entry is a pair of strings, the first being the connection's sink,
428 the second being the connection's source.
Kiran Kandi79db1b02012-08-21 13:48:19 -0700429- qcom,cdc-mclk-gpios : GPIO on which mclk signal is comming.
430- taiko-mclk-clk : phandle to PMIC8941 clkdiv1 node.
431- qcom,taiko-mclk-clk-freq : Taiko mclk Freq in Hz. currently only 9600000Hz
432 is supported.
Damir Didjusto04d3c362013-01-07 14:30:53 -0800433- prim-auxpcm-gpio-clk : GPIO on which AUXPCM clk signal is coming.
434- prim-auxpcm-gpio-sync : GPIO on which AUXPCM SYNC signal is coming.
435- prim-auxpcm-gpio-din : GPIO on which AUXPCM DIN signal is coming.
436- prim-auxpcm-gpio-dout : GPIO on which AUXPCM DOUT signal is coming.
Fred Ohfcc8e932013-03-06 20:47:39 -0800437- qcom,us-euro-gpios : GPIO on which gnd/mic swap signal is coming.
Kiran Kandi9ee87e42012-08-20 13:05:40 -0700438
Kiran Kandi52650322012-12-11 15:49:39 -0800439Optional properties:
440- qcom,hdmi-audio-rx: specifies if HDMI audio support is enabled or not.
441
Kiran Kandi9ee87e42012-08-20 13:05:40 -0700442Example:
443
444sound {
445 compatible = "qcom,msm8974-audio-taiko";
446 qcom,model = "msm8974-taiko-snd-card";
447
448 qcom,audio-routing =
449 "RX_BIAS", "MCLK",
450 "LDO_H", "MCLK",
451 "HEADPHONE", "LDO_H",
452 "Ext Spk Bottom Pos", "LINEOUT1",
453 "Ext Spk Bottom Neg", "LINEOUT3",
454 "Ext Spk Top Pos", "LINEOUT2",
455 "Ext Spk Top Neg", "LINEOUT4",
456 "AMIC1", "MIC BIAS1 Internal1",
457 "MIC BIAS1 Internal1", "Handset Mic",
458 "AMIC2", "MIC BIAS2 External",
459 "MIC BIAS2 External", "Headset Mic",
460 "AMIC3", "MIC BIAS3 Internal1",
461 "MIC BIAS3 Internal1", "ANCRight Headset Mic",
462 "AMIC4", "MIC BIAS1 Internal2",
463 "MIC BIAS1 Internal2", "ANCLeft Headset Mic",
464 "DMIC1", "MIC BIAS1 External",
465 "MIC BIAS1 External", "Digital Mic1",
466 "DMIC2", "MIC BIAS1 External",
467 "MIC BIAS1 External", "Digital Mic2",
468 "DMIC3", "MIC BIAS3 External",
469 "MIC BIAS3 External", "Digital Mic3",
470 "DMIC4", "MIC BIAS3 External",
471 "MIC BIAS3 External", "Digital Mic4",
472 "DMIC5", "MIC BIAS4 External",
473 "MIC BIAS4 External", "Digital Mic5",
474 "DMIC6", "MIC BIAS4 External",
475 "MIC BIAS4 External", "Digital Mic6";
Kiran Kandi79db1b02012-08-21 13:48:19 -0700476
477 qcom,cdc-mclk-gpios = <&pm8941_gpios 15 0>;
478 taiko-mclk-clk = <&pm8941_clkdiv1>;
479 qcom,taiko-mclk-clk-freq = <9600000>;
Fred Ohfcc8e932013-03-06 20:47:39 -0800480 qcom,us-euro-gpios = <&pm8941_gpios 20 0>;
Kiran Kandi52650322012-12-11 15:49:39 -0800481
482 qcom,hdmi-audio-rx;
Damir Didjusto04d3c362013-01-07 14:30:53 -0800483
484 prim-auxpcm-gpio-clk = <&msmgpio 65 0>;
485 prim-auxpcm-gpio-sync = <&msmgpio 66 0>;
486 prim-auxpcm-gpio-din = <&msmgpio 67 0>;
487 prim-auxpcm-gpio-dout = <&msmgpio 68 0>;
Kiran Kandi9ee87e42012-08-20 13:05:40 -0700488};
Venkat Sudhir4bd983e2012-10-27 02:59:54 -0700489
490* msm-dai-mi2s
491
492[First Level Nodes]
493
494Required properties:
495
496 - compatible : "msm-dai-mi2s"
497
498 [Second Level Nodes]
499
500Required properties:
501
502 - compatible : "qcom,msm-dai-q6-mi2s"
Joonwoo Park44945812013-01-14 17:24:45 -0800503 - qcom,msm-dai-q6-mi2s-dev-id: MSM or MDM can use Slimbus or I2S interface to
504 transfer data to (WCD9XXX) codec.
505 If slimbus interface is used then "msm-dai-q6"
506 needs to be filled with correct data for
507 slimbus interface.
508 The sections "msm-dai-mi2s" is used by MDM or
509 MSM to use I2S interface with codec.
510 This section is used by CPU driver in ASOC MSM
511 to configure MI2S interface. MSM internally
512 has multiple MI2S namely Primary, Secondary,
513 Tertiary and Quaternary MI2S.
514 They are represented with id 0, 1, 2, 3
515 respectively.
516 The field "qcom,msm-dai-q6-mi2s-dev-id"
517 represents which of the MI2S block is used.
518 These MI2S are connected to I2S interface.
Venkat Sudhir4bd983e2012-10-27 02:59:54 -0700519
Joonwoo Park44945812013-01-14 17:24:45 -0800520 - qcom,msm-mi2s-rx-lines: Each MI2S interface in MSM has one or more SD
521 lines. These lines are used for data transfer
522 between codec and MSM.
523 This element in indicates which output RX lines
524 are used in the MI2S interface.
Venkat Sudhir4bd983e2012-10-27 02:59:54 -0700525
Joonwoo Park44945812013-01-14 17:24:45 -0800526 - qcom,msm-mi2s-tx-lines: Each MI2S interface in MSM has one or more SD
527 lines. These lines are used for data transfer
528 between codec and MSM.
529 This element in indicates which input TX lines
530 are used in the MI2S interface.
Venkat Sudhir4bd983e2012-10-27 02:59:54 -0700531
532Example:
533
534qcom,msm-dai-mi2s {
535 compatible = "qcom,msm-dai-mi2s";
536 qcom,msm-dai-q6-mi2s-prim {
537 compatible = "qcom,msm-dai-q6-mi2s";
538 qcom,msm-dai-q6-mi2s-dev-id = <0>;
539 qcom,msm-mi2s-rx-lines = <2>;
540 qcom,msm-mi2s-tx-lines = <1>;
541 };
Venkat Sudhir64f66302012-10-30 09:30:16 -0700542};
543
544* MSM9625 ASoC Machine driver
545
546Required properties:
547- compatible : "qcom,mdm9625-audio-taiko"
548- qcom,model : The user-visible name of this sound card.
549- qcom,audio-routing : A list of the connections between audio components.
550 Each entry is a pair of strings, the first being the connection's sink,
551 the second being the connection's source.
552- qcom,taiko-mclk-clk-freq : Master clock value given to codec. Some WCD9XXX
553 codec can run at different mclk values. Mclk value can be 9.6MHz or 12.288MHz.
554 This element represents the value for MCLK provided to codec.
Venkat Sudhir459d6f52012-12-04 12:00:13 -0800555- prim-i2s-gpio-ws : Specifies gpio assigned for primary WS I2S pin.
556- prim-i2s-gpio-din : Specifies gpio assigned for primary DIN I2S pin.
557- prim-i2s-gpio-dout : Specifies gpio assigned for primary DOUT I2S pin.
558- prim-i2s-gpio-sclk : Specifies gpio assigned for primary SCLK I2S pin.
559- prim-i2s-gpio-mclk : Specifies gpio assigned for MCLK I2S pin.
Venkat Sudhir64f66302012-10-30 09:30:16 -0700560
561Example:
562
563sound {
564 compatible = "qcom,mdm9625-audio-taiko";
565 qcom,model = "mdm9625-taiko-i2s-snd-card";
566
567 qcom,audio-routing =
568 "RX_BIAS", "MCLK",
569 "LDO_H", "MCLK",
570 "Ext Spk Bottom Pos", "LINEOUT1",
571 "Ext Spk Bottom Neg", "LINEOUT3",
572 "Ext Spk Top Pos", "LINEOUT2",
573 "Ext Spk Top Neg", "LINEOUT4",
574 "AMIC1", "MIC BIAS1 External",
575 "MIC BIAS1 External", "Handset Mic",
576 "AMIC2", "MIC BIAS2 External",
577 "MIC BIAS2 External", "Headset Mic",
578 "AMIC3", "MIC BIAS3 Internal1",
579 "MIC BIAS3 Internal1", "ANCRight Headset Mic",
580 "AMIC4", "MIC BIAS1 Internal2",
581 "MIC BIAS1 Internal2", "ANCLeft Headset Mic",
582 "DMIC1", "MIC BIAS1 External",
583 "MIC BIAS1 External", "Digital Mic1",
584 "DMIC2", "MIC BIAS1 External",
585 "MIC BIAS1 External", "Digital Mic2",
586 "DMIC3", "MIC BIAS3 External",
587 "MIC BIAS3 External", "Digital Mic3",
588 "DMIC4", "MIC BIAS3 External",
589 "MIC BIAS3 External", "Digital Mic4",
590 "DMIC5", "MIC BIAS4 External",
591 "MIC BIAS4 External", "Digital Mic5",
592 "DMIC6", "MIC BIAS4 External",
593 "MIC BIAS4 External", "Digital Mic6";
594 qcom,taiko-mclk-clk-freq = <12288000>;
Venkat Sudhir459d6f52012-12-04 12:00:13 -0800595 prim-i2s-gpio-ws = <&msmgpio 12 0>;
596 prim-i2s-gpio-din = <&msmgpio 13 0>;
597 prim-i2s-gpio-dout = <&msmgpio 14 0>;
598 prim-i2s-gpio-sclk = <&msmgpio 15 0>;
599 prim-i2s-gpio-mclk = <&msmgpio 71 0>;
Venkat Sudhir64f66302012-10-30 09:30:16 -0700600};
Venkat Sudhir480db8a2012-11-09 15:31:50 -0800601
602* msm-adsp-loader
603
604Required properties:
605 - compatible : "msm-adsp-loader"
606 - qcom,adsp-state:
607 It is possible that some MSM use PIL to load the ADSP image. While
608 other MSM may use SBL to load the ADSP image at boot. Audio APR needs
609 state of ADSP to register and enable APR to be used for sending commands
Joonwoo Park44945812013-01-14 17:24:45 -0800610 to ADSP. so adsp-state represents the state of ADSP to ADSP loader.
611 Value of 0 indicates ADSP loader needs to use PIL and value of 2 means
612 ADSP image is already loaded by SBL.
Venkat Sudhir480db8a2012-11-09 15:31:50 -0800613
614Example:
615
616qcom,msm-adsp-loader {
617 compatible = "qcom,adsp-loader";
618 qcom,adsp-state = <2>;
619};