blob: 232ddec7eb60ad785fa64ba4437d53077d1d23c6 [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
9* msm-pcm-routing
10
11Required properties:
12
13 - compatible : "qcom,msm-pcm-routing"
14
15* msm-pcm-lpa
16
17Required properties:
18
19 - compatible : "qcom,msm-pcm-lpa"
20
Harmandeep Singha3453a72012-07-03 12:31:09 -070021* msm-compr-dsp
22
23Required properties:
24
25 - compatible : "qcom,msm-compr-dsp"
26
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -070027* msm-voip-dsp
28
29Required properties:
30
31 - compatible : "qcom,msm-voip-dsp"
32
Phani Kumar Uppalapati0878e9d2012-08-24 14:52:00 -070033* msm-pcm-voice
34
35Required properties:
36
37 - compatible : "qcom,msm-pcm-voice"
38
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -070039* msm-stub-codec
40
41Required properties:
42
43 - compatible : "qcom,msm-stub-codec"
44
45* msm-dai-fe
46
47Required properties:
48
49 - compatible : "qcom,msm-dai-fe"
50
Phani Kumar Uppalapati580884a2012-09-24 19:40:27 -070051* msm-pcm-afe
52
53Required properties:
54
55 - compatible : "qcom,msm-pcm-afe"
56
Venkat Sudhir6f1a5302013-01-17 12:28:15 -080057* msm-pcm-dtmf
58
59Required properties:
60
61 - compatible : "qcom,msm-pcm-dtmf"
62 - qcom,msm-pcm-dtmf : Enable DTMF driver in Audio. DTMF driver is
63 used for generation and detection of DTMF tones, when user is in
64 active voice call. APR commands are sent from DTMF driver to ADSP.
65
66* msm-dai-stub
67
68Required properties:
69
70 - compatible : "qcom,msm-dai-stub"
71 - qcom,msm-dai-stub : This enables stub CPU dai in Audio.
72 The stub dai is used when there is no real backend in Audio.
73
Harmandeep Singh169f1d42012-10-01 19:19:38 -070074* msm-dai-q6-hdmi
75
76Required properties:
77 - compatible : "msm-dai-q6-hdmi"
78 - qcom,msm-dai-q6-dev-id : The hdmi multi channel port ID.
79 It is passed onto the dsp from the apps to form an audio
80 path to the HDMI device. Currently the only supported value
81 is 8, which indicates the rx path used for audio playback
82 on HDMI device.
83
Joonwoo Park6572ac52012-07-10 17:17:00 -070084* msm-dai-q6
85
86[First Level Nodes]
87
88Required properties:
89
90 - compatible : "msm-dai-q6"
91
Eugene Yasman570dcea2012-11-25 09:59:17 +020092Optional properties:
93
94 - qcom,ext-spk-amp-supply : External speaker amplifier power supply.
95 - qcom,ext-spk-amp-gpio : External speaker amplifier enable signal.
96
Joonwoo Park6572ac52012-07-10 17:17:00 -070097[Second Level Nodes]
98
99Required properties:
100
101 - compatible : "qcom,msm-dai-q6-dev"
102 - qcom,msm-dai-q6-dev-id : The slimbus multi channel port ID
103 Value is from 16384 to 16393
Phani Kumar Uppalapati1d303092012-09-24 19:55:56 -0700104 BT SCO port ID value from 12288 to 12289
Joonwoo Park44945812013-01-14 17:24:45 -0800105 RT Proxy port ID values from 224 to 225 and 240 to
106 241
Phani Kumar Uppalapatibebe7382012-10-08 19:19:01 -0700107 FM Rx and TX port ID values from 12292 to 12293
Mohan Kumar Gubbihalli Lachma Naik72e1b282012-12-19 11:49:07 -0800108 incall record Rx and TX port ID values from 32771 to 32772
109 inCall Music Delivery port ID is 32773
Joonwoo Park6572ac52012-07-10 17:17:00 -0700110
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700111* msm-auxpcm
112
113[First Level Nodes]
114
115Required properties:
116
117 - compatible : "qcom,msm-auxpcm-resource"
118
Damir Didjusto04d3c362013-01-07 14:30:53 -0800119 - qcom,msm-cpudai-auxpcm-clk: clock for auxpcm. The first value is
120 for 8khz mode, the second is for
121 16khz
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700122
Damir Didjusto04d3c362013-01-07 14:30:53 -0800123 - qcom,msm-cpudai-auxpcm-mode: mode information. The first value is
124 for 8khz mode, the second is for
125 16khz
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700126 0 - for PCM
127
Damir Didjusto04d3c362013-01-07 14:30:53 -0800128 - qcom,msm-cpudai-auxpcm-sync: sync information. The first value is
129 for 8khz mode, the second is for
130 16khz
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700131
Damir Didjusto04d3c362013-01-07 14:30:53 -0800132 - qcom,msm-cpudai-auxpcm-frame: No.of bytes per frame. The first
133 value is for 8khz mode, the second
134 is for 16khz
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700135 5 - 256BPF
Damir Didjusto04d3c362013-01-07 14:30:53 -0800136 4 - 128BPF
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700137
Damir Didjusto04d3c362013-01-07 14:30:53 -0800138 - qcom,msm-cpudai-auxpcm-quant: Type of quantization. The first
139 value is for 8khz mode, the second
140 is for 16khz
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700141 2 - Linear quantization
142
143 - qcom,msm-cpudai-auxpcm-slot: Slot number for multichannel scenario
Damir Didjusto04d3c362013-01-07 14:30:53 -0800144 The first value is for 8khz mode the
145 second is for 16khz
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700146 Value is 1
147
Damir Didjusto04d3c362013-01-07 14:30:53 -0800148 - qcom,msm-cpudai-auxpcm-data: Data field - 0. The first value is
149 for 8khz mode, the second is for
150 16khz
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700151
Damir Didjusto04d3c362013-01-07 14:30:53 -0800152 - qcom,msm-cpudai-auxpcm-pcm-clk-rate: Clock rate for pcm - 2048000. The
153 first value is for 8khz mode, the
154 second is for auxpcm
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700155
156[Second Level Nodes]
157
158Required Properties:
159
160 - qcom,msm-auxpcm-dev-id: This property specifies the device
161 port id.
162 For Rx device, the port id is 4106
163 and for Tx device, the port id is 4107
164
165 - compatible: "qcom,msm-auxpcm-dev"
166
167* msm-pcm-hostless
168
169Required properties:
170
171 - compatible : "qcom,msm-pcm-hostless"
172
Phani Kumar Uppalapati8b3a1bb2012-06-26 19:56:58 -0700173* msm-ocmem-audio
174
175Required properties:
176
177 - compatible : "qcom,msm-ocmem-audio"
178
Phani Kumar Uppalapati31492952012-09-25 20:25:53 -0700179 - qcom,msm_bus,name: Client name
Phani Kumar Uppalapati8b3a1bb2012-06-26 19:56:58 -0700180
Phani Kumar Uppalapati31492952012-09-25 20:25:53 -0700181 - qcom,msm_bus,num_cases: Total number of use cases
Phani Kumar Uppalapati8b3a1bb2012-06-26 19:56:58 -0700182
Joonwoo Park44945812013-01-14 17:24:45 -0800183 - qcom,msm_bus,active_only: Context flag for requests in active
184 or dual (active & sleep) contex
Phani Kumar Uppalapati8b3a1bb2012-06-26 19:56:58 -0700185
Phani Kumar Uppalapati31492952012-09-25 20:25:53 -0700186 - qcom,msm_bus,num_paths: Total number of master-slave pairs
Phani Kumar Uppalapati8b3a1bb2012-06-26 19:56:58 -0700187
Joonwoo Park44945812013-01-14 17:24:45 -0800188 - qcom,msm_bus,vectors: Arrays of unsigned integers
189 representing:
190 master-id, slave-id, arbitrated
191 bandwidth,
192 instantaneous bandwidth
Joonwoo Parkf6574c72012-10-10 17:29:57 -0700193* wcd9xxx_intc
194
195Required properties:
196
197 - compatible : "qcom,wcd9xxx-irq"
198
Joonwoo Park44945812013-01-14 17:24:45 -0800199 - interrupt-controller : Mark this device node as an
200 interrupt controller
Joonwoo Parkf6574c72012-10-10 17:29:57 -0700201
202 - #interrupt-cells : Should be 1
203
204 - interrupt-parent : Parent interrupt controller
205
206 - interrupts : Interrupt number on the parent
207 interrupt controller
208
209 - interrupt-names : Name of interrupt on the parent
210 interrupt controller
211
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700212Example:
213
214 qcom,msm-pcm {
215 compatible = "qcom,msm-pcm-dsp";
216 };
217
218 qcom,msm-pcm-routing {
219 compatible = "qcom,msm-pcm-routing";
220 };
221
222 qcom,msm-pcm-lpa {
223 compatible = "qcom,msm-pcm-lpa";
224 };
225
Harmandeep Singha3453a72012-07-03 12:31:09 -0700226 qcom,msm-compr-dsp {
227 compatible = "qcom,msm-compr-dsp";
228 };
229
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700230 qcom,msm-voip-dsp {
231 compatible = "qcom,msm-voip-dsp";
232 };
233
234 qcom,msm-stub-codec {
235 compatible = "qcom,msm-stub-codec";
236 };
237
238 qcom,msm-dai-fe {
239 compatible = "qcom,msm-dai-fe";
240 };
241
Venkat Sudhir6f1a5302013-01-17 12:28:15 -0800242 qcom,msm-pcm-dtmf {
243 compatible = "qcom,msm-pcm-dtmf";
244 };
245
246 qcom,msm-dai-stub {
247 compatible = "qcom,msm-dai-stub";
248 };
249
Harmandeep Singh169f1d42012-10-01 19:19:38 -0700250 qcom,msm-dai-q6-hdmi {
251 compatible = "qcom,msm-dai-q6-hdmi";
252 qcom,msm-dai-q6-dev-id = <8>;
253 };
254
Joonwoo Park6572ac52012-07-10 17:17:00 -0700255 qcom,msm-dai-q6 {
256 compatible = "qcom,msm-dai-q6";
257 qcom,msm-dai-q6-sb-0-rx {
258 compatible = "qcom,msm-dai-q6-dev";
259 qcom,msm-dai-q6-dev-id = <16384>;
260 };
261
262 qcom,msm-dai-q6-sb-0-tx {
263 compatible = "qcom,msm-dai-q6-dev";
264 qcom,msm-dai-q6-dev-id = <16385>;
265 };
Phani Kumar Uppalapati1d303092012-09-24 19:55:56 -0700266
Phani Kumar Uppalapatiefad7312012-10-09 18:43:36 -0700267 qcom,msm-dai-q6-sb-1-rx {
268 compatible = "qcom,msm-dai-q6-dev";
269 qcom,msm-dai-q6-dev-id = <16386>;
270 };
271
272 qcom,msm-dai-q6-sb-1-tx {
273 compatible = "qcom,msm-dai-q6-dev";
274 qcom,msm-dai-q6-dev-id = <16387>;
275 };
276
277 qcom,msm-dai-q6-sb-3-rx {
278 compatible = "qcom,msm-dai-q6-dev";
279 qcom,msm-dai-q6-dev-id = <16390>;
280 };
281
282 qcom,msm-dai-q6-sb-3-tx {
283 compatible = "qcom,msm-dai-q6-dev";
284 qcom,msm-dai-q6-dev-id = <16391>;
285 };
286
287 qcom,msm-dai-q6-sb-4-rx {
288 compatible = "qcom,msm-dai-q6-dev";
289 qcom,msm-dai-q6-dev-id = <16392>;
290 };
291
292 qcom,msm-dai-q6-sb-4-tx {
293 compatible = "qcom,msm-dai-q6-dev";
294 qcom,msm-dai-q6-dev-id = <16393>;
295 };
296
Phani Kumar Uppalapati1d303092012-09-24 19:55:56 -0700297 qcom,msm-dai-q6-bt-sco-rx {
298 compatible = "qcom,msm-dai-q6-dev";
299 qcom,msm-dai-q6-dev-id = <12288>;
300 };
301
302 qcom,msm-dai-q6-bt-sco-tx {
303 compatible = "qcom,msm-dai-q6-dev";
304 qcom,msm-dai-q6-dev-id = <12289>;
305 };
306
Phani Kumar Uppalapatibebe7382012-10-08 19:19:01 -0700307 qcom,msm-dai-q6-int-fm-rx {
308 compatible = "qcom,msm-dai-q6-dev";
309 qcom,msm-dai-q6-dev-id = <12292>;
310 };
311
312 qcom,msm-dai-q6-int-fm-tx {
313 compatible = "qcom,msm-dai-q6-dev";
314 qcom,msm-dai-q6-dev-id = <12293>;
315 };
316
Phani Kumar Uppalapati1d303092012-09-24 19:55:56 -0700317 qcom,msm-dai-q6-be-afe-pcm-rx {
318 compatible = "qcom,msm-dai-q6-dev";
319 qcom,msm-dai-q6-dev-id = <224>;
320 };
321
322 qcom,msm-dai-q6-be-afe-pcm-tx {
323 compatible = "qcom,msm-dai-q6-dev";
324 qcom,msm-dai-q6-dev-id = <225>;
325 };
326
327 qcom,msm-dai-q6-afe-proxy-rx {
328 compatible = "qcom,msm-dai-q6-dev";
329 qcom,msm-dai-q6-dev-id = <241>;
330 };
331
332 qcom,msm-dai-q6-afe-proxy-tx {
333 compatible = "qcom,msm-dai-q6-dev";
334 qcom,msm-dai-q6-dev-id = <240>;
335 };
Mohan Kumar Gubbihalli Lachma Naik984252f2012-12-06 16:13:33 -0800336
337 qcom,msm-dai-q6-incall-record-rx {
338 compatible = "qcom,msm-dai-q6-dev";
339 qcom,msm-dai-q6-dev-id = <32771>;
340 };
341
342 qcom,msm-dai-q6-incall-record-tx {
343 compatible = "qcom,msm-dai-q6-dev";
344 qcom,msm-dai-q6-dev-id = <32772>;
345 };
Mohan Kumar Gubbihalli Lachma Naik72e1b282012-12-19 11:49:07 -0800346
347 qcom,msm-dai-q6-incall-music-rx {
348 compatible = "qcom,msm-dai-q6-dev";
349 qcom,msm-dai-q6-dev-id = <32773>;
350 };
Joonwoo Park6572ac52012-07-10 17:17:00 -0700351 };
352
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700353 qcom,msm-auxpcm {
354 compatible = "qcom,msm-auxpcm-resource";
355 qcom,msm-cpudai-auxpcm-clk = "pcm_clk";
Damir Didjusto04d3c362013-01-07 14:30:53 -0800356 qcom,msm-cpudai-auxpcm-mode = <0>, <0>;
357 qcom,msm-cpudai-auxpcm-sync = <1>, <1>;
358 qcom,msm-cpudai-auxpcm-frame = <5>, <4>;
359 qcom,msm-cpudai-auxpcm-quant = <2>, <2>;
360 qcom,msm-cpudai-auxpcm-slot = <1>, <1>;
361 qcom,msm-cpudai-auxpcm-data = <0>, <0>;
362 qcom,msm-cpudai-auxpcm-pcm-clk-rate = <2048000>, <2048000>;
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700363
364 qcom,msm-auxpcm-rx {
Harmandeep Singha3453a72012-07-03 12:31:09 -0700365 qcom,msm-auxpcm-dev-id = <4106>;
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700366 compatible = "qcom,msm-auxpcm-dev";
367 };
368
369 qcom,msm-auxpcm-tx {
Harmandeep Singha3453a72012-07-03 12:31:09 -0700370 qcom,msm-auxpcm-dev-id = <4107>;
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700371 compatible = "qcom,msm-auxpcm-dev";
372 };
373 };
374
375 qcom,msm-pcm-hostless {
376 compatible = "qcom,msm-pcm-hostless";
377 };
378
Phani Kumar Uppalapati8b3a1bb2012-06-26 19:56:58 -0700379 qcom,msm-ocmem-audio {
380 compatible = "qcom,msm-ocmem-audio";
Phani Kumar Uppalapati31492952012-09-25 20:25:53 -0700381 qcom,msm_bus,name = "audio-ocmem";
382 qcom,msm_bus,num_cases = <2>;
383 qcom,msm_bus,active_only = <0>;
384 qcom,msm_bus,num_paths = <1>;
385 qcom,msm_bus,vectors =
386 <11 604 0 0>,
387 <11 604 32505856 325058560>;
Phani Kumar Uppalapati8b3a1bb2012-06-26 19:56:58 -0700388 };
389
Joonwoo Parkf6574c72012-10-10 17:29:57 -0700390 wcd9xxx_intc: wcd9xxx-irq {
391 compatible = "qcom,wcd9xxx-irq";
392 interrupt-controller;
393 #interrupt-cells = <1>;
394 interrupt-parent = <&msmgpio>;
395 interrupts = <72 0>;
396 interrupt-names = "cdc-int";
397 };
398
Kiran Kandi9ee87e42012-08-20 13:05:40 -0700399* MSM8974 ASoC Machine driver
400
401Required properties:
402- compatible : "qcom,msm8974-audio-taiko"
403- qcom,model : The user-visible name of this sound card.
404- qcom,audio-routing : A list of the connections between audio components.
405 Each entry is a pair of strings, the first being the connection's sink,
406 the second being the connection's source.
Kiran Kandi79db1b02012-08-21 13:48:19 -0700407- qcom,cdc-mclk-gpios : GPIO on which mclk signal is comming.
408- taiko-mclk-clk : phandle to PMIC8941 clkdiv1 node.
409- qcom,taiko-mclk-clk-freq : Taiko mclk Freq in Hz. currently only 9600000Hz
410 is supported.
Damir Didjusto04d3c362013-01-07 14:30:53 -0800411- prim-auxpcm-gpio-clk : GPIO on which AUXPCM clk signal is coming.
412- prim-auxpcm-gpio-sync : GPIO on which AUXPCM SYNC signal is coming.
413- prim-auxpcm-gpio-din : GPIO on which AUXPCM DIN signal is coming.
414- prim-auxpcm-gpio-dout : GPIO on which AUXPCM DOUT signal is coming.
Kiran Kandi9ee87e42012-08-20 13:05:40 -0700415
Kiran Kandi52650322012-12-11 15:49:39 -0800416Optional properties:
417- qcom,hdmi-audio-rx: specifies if HDMI audio support is enabled or not.
418
Kiran Kandi9ee87e42012-08-20 13:05:40 -0700419Example:
420
421sound {
422 compatible = "qcom,msm8974-audio-taiko";
423 qcom,model = "msm8974-taiko-snd-card";
424
425 qcom,audio-routing =
426 "RX_BIAS", "MCLK",
427 "LDO_H", "MCLK",
428 "HEADPHONE", "LDO_H",
429 "Ext Spk Bottom Pos", "LINEOUT1",
430 "Ext Spk Bottom Neg", "LINEOUT3",
431 "Ext Spk Top Pos", "LINEOUT2",
432 "Ext Spk Top Neg", "LINEOUT4",
433 "AMIC1", "MIC BIAS1 Internal1",
434 "MIC BIAS1 Internal1", "Handset Mic",
435 "AMIC2", "MIC BIAS2 External",
436 "MIC BIAS2 External", "Headset Mic",
437 "AMIC3", "MIC BIAS3 Internal1",
438 "MIC BIAS3 Internal1", "ANCRight Headset Mic",
439 "AMIC4", "MIC BIAS1 Internal2",
440 "MIC BIAS1 Internal2", "ANCLeft Headset Mic",
441 "DMIC1", "MIC BIAS1 External",
442 "MIC BIAS1 External", "Digital Mic1",
443 "DMIC2", "MIC BIAS1 External",
444 "MIC BIAS1 External", "Digital Mic2",
445 "DMIC3", "MIC BIAS3 External",
446 "MIC BIAS3 External", "Digital Mic3",
447 "DMIC4", "MIC BIAS3 External",
448 "MIC BIAS3 External", "Digital Mic4",
449 "DMIC5", "MIC BIAS4 External",
450 "MIC BIAS4 External", "Digital Mic5",
451 "DMIC6", "MIC BIAS4 External",
452 "MIC BIAS4 External", "Digital Mic6";
Kiran Kandi79db1b02012-08-21 13:48:19 -0700453
454 qcom,cdc-mclk-gpios = <&pm8941_gpios 15 0>;
455 taiko-mclk-clk = <&pm8941_clkdiv1>;
456 qcom,taiko-mclk-clk-freq = <9600000>;
Kiran Kandi52650322012-12-11 15:49:39 -0800457
458 qcom,hdmi-audio-rx;
Damir Didjusto04d3c362013-01-07 14:30:53 -0800459
460 prim-auxpcm-gpio-clk = <&msmgpio 65 0>;
461 prim-auxpcm-gpio-sync = <&msmgpio 66 0>;
462 prim-auxpcm-gpio-din = <&msmgpio 67 0>;
463 prim-auxpcm-gpio-dout = <&msmgpio 68 0>;
Kiran Kandi9ee87e42012-08-20 13:05:40 -0700464};
Venkat Sudhir4bd983e2012-10-27 02:59:54 -0700465
466* msm-dai-mi2s
467
468[First Level Nodes]
469
470Required properties:
471
472 - compatible : "msm-dai-mi2s"
473
474 [Second Level Nodes]
475
476Required properties:
477
478 - compatible : "qcom,msm-dai-q6-mi2s"
Joonwoo Park44945812013-01-14 17:24:45 -0800479 - qcom,msm-dai-q6-mi2s-dev-id: MSM or MDM can use Slimbus or I2S interface to
480 transfer data to (WCD9XXX) codec.
481 If slimbus interface is used then "msm-dai-q6"
482 needs to be filled with correct data for
483 slimbus interface.
484 The sections "msm-dai-mi2s" is used by MDM or
485 MSM to use I2S interface with codec.
486 This section is used by CPU driver in ASOC MSM
487 to configure MI2S interface. MSM internally
488 has multiple MI2S namely Primary, Secondary,
489 Tertiary and Quaternary MI2S.
490 They are represented with id 0, 1, 2, 3
491 respectively.
492 The field "qcom,msm-dai-q6-mi2s-dev-id"
493 represents which of the MI2S block is used.
494 These MI2S are connected to I2S interface.
Venkat Sudhir4bd983e2012-10-27 02:59:54 -0700495
Joonwoo Park44945812013-01-14 17:24:45 -0800496 - qcom,msm-mi2s-rx-lines: Each MI2S interface in MSM has one or more SD
497 lines. These lines are used for data transfer
498 between codec and MSM.
499 This element in indicates which output RX lines
500 are used in the MI2S interface.
Venkat Sudhir4bd983e2012-10-27 02:59:54 -0700501
Joonwoo Park44945812013-01-14 17:24:45 -0800502 - qcom,msm-mi2s-tx-lines: Each MI2S interface in MSM has one or more SD
503 lines. These lines are used for data transfer
504 between codec and MSM.
505 This element in indicates which input TX lines
506 are used in the MI2S interface.
Venkat Sudhir4bd983e2012-10-27 02:59:54 -0700507
508Example:
509
510qcom,msm-dai-mi2s {
511 compatible = "qcom,msm-dai-mi2s";
512 qcom,msm-dai-q6-mi2s-prim {
513 compatible = "qcom,msm-dai-q6-mi2s";
514 qcom,msm-dai-q6-mi2s-dev-id = <0>;
515 qcom,msm-mi2s-rx-lines = <2>;
516 qcom,msm-mi2s-tx-lines = <1>;
517 };
Venkat Sudhir64f66302012-10-30 09:30:16 -0700518};
519
520* MSM9625 ASoC Machine driver
521
522Required properties:
523- compatible : "qcom,mdm9625-audio-taiko"
524- qcom,model : The user-visible name of this sound card.
525- qcom,audio-routing : A list of the connections between audio components.
526 Each entry is a pair of strings, the first being the connection's sink,
527 the second being the connection's source.
528- qcom,taiko-mclk-clk-freq : Master clock value given to codec. Some WCD9XXX
529 codec can run at different mclk values. Mclk value can be 9.6MHz or 12.288MHz.
530 This element represents the value for MCLK provided to codec.
Venkat Sudhir459d6f52012-12-04 12:00:13 -0800531- prim-i2s-gpio-ws : Specifies gpio assigned for primary WS I2S pin.
532- prim-i2s-gpio-din : Specifies gpio assigned for primary DIN I2S pin.
533- prim-i2s-gpio-dout : Specifies gpio assigned for primary DOUT I2S pin.
534- prim-i2s-gpio-sclk : Specifies gpio assigned for primary SCLK I2S pin.
535- prim-i2s-gpio-mclk : Specifies gpio assigned for MCLK I2S pin.
Venkat Sudhir64f66302012-10-30 09:30:16 -0700536
537Example:
538
539sound {
540 compatible = "qcom,mdm9625-audio-taiko";
541 qcom,model = "mdm9625-taiko-i2s-snd-card";
542
543 qcom,audio-routing =
544 "RX_BIAS", "MCLK",
545 "LDO_H", "MCLK",
546 "Ext Spk Bottom Pos", "LINEOUT1",
547 "Ext Spk Bottom Neg", "LINEOUT3",
548 "Ext Spk Top Pos", "LINEOUT2",
549 "Ext Spk Top Neg", "LINEOUT4",
550 "AMIC1", "MIC BIAS1 External",
551 "MIC BIAS1 External", "Handset Mic",
552 "AMIC2", "MIC BIAS2 External",
553 "MIC BIAS2 External", "Headset Mic",
554 "AMIC3", "MIC BIAS3 Internal1",
555 "MIC BIAS3 Internal1", "ANCRight Headset Mic",
556 "AMIC4", "MIC BIAS1 Internal2",
557 "MIC BIAS1 Internal2", "ANCLeft Headset Mic",
558 "DMIC1", "MIC BIAS1 External",
559 "MIC BIAS1 External", "Digital Mic1",
560 "DMIC2", "MIC BIAS1 External",
561 "MIC BIAS1 External", "Digital Mic2",
562 "DMIC3", "MIC BIAS3 External",
563 "MIC BIAS3 External", "Digital Mic3",
564 "DMIC4", "MIC BIAS3 External",
565 "MIC BIAS3 External", "Digital Mic4",
566 "DMIC5", "MIC BIAS4 External",
567 "MIC BIAS4 External", "Digital Mic5",
568 "DMIC6", "MIC BIAS4 External",
569 "MIC BIAS4 External", "Digital Mic6";
570 qcom,taiko-mclk-clk-freq = <12288000>;
Venkat Sudhir459d6f52012-12-04 12:00:13 -0800571 prim-i2s-gpio-ws = <&msmgpio 12 0>;
572 prim-i2s-gpio-din = <&msmgpio 13 0>;
573 prim-i2s-gpio-dout = <&msmgpio 14 0>;
574 prim-i2s-gpio-sclk = <&msmgpio 15 0>;
575 prim-i2s-gpio-mclk = <&msmgpio 71 0>;
Venkat Sudhir64f66302012-10-30 09:30:16 -0700576};
Venkat Sudhir480db8a2012-11-09 15:31:50 -0800577
578* msm-adsp-loader
579
580Required properties:
581 - compatible : "msm-adsp-loader"
582 - qcom,adsp-state:
583 It is possible that some MSM use PIL to load the ADSP image. While
584 other MSM may use SBL to load the ADSP image at boot. Audio APR needs
585 state of ADSP to register and enable APR to be used for sending commands
Joonwoo Park44945812013-01-14 17:24:45 -0800586 to ADSP. so adsp-state represents the state of ADSP to ADSP loader.
587 Value of 0 indicates ADSP loader needs to use PIL and value of 2 means
588 ADSP image is already loaded by SBL.
Venkat Sudhir480db8a2012-11-09 15:31:50 -0800589
590Example:
591
592qcom,msm-adsp-loader {
593 compatible = "qcom,adsp-loader";
594 qcom,adsp-state = <2>;
595};