blob: e672a14490285abd5363e8d25a6dd9330dacd354 [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
Krishnankutty Kolathappilly01a3f9b2013-12-12 17:00:15 -08007 - compatible : "qti,msm-pcm-dsp"
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -07008
Krishnankutty Kolathappilly01a3f9b2013-12-12 17:00:15 -08009 - qti,msm-pcm-dsp-id : device node id
Phani Kumar Uppalapati85b7c9b2013-02-19 09:59:47 -080010
11* msm-pcm-low-latency
12
13Required properties:
14
Krishnankutty Kolathappilly01a3f9b2013-12-12 17:00:15 -080015 - compatible : "qti,msm-pcm-dsp"
Phani Kumar Uppalapati85b7c9b2013-02-19 09:59:47 -080016
Krishnankutty Kolathappilly01a3f9b2013-12-12 17:00:15 -080017 - qti,msm-pcm-dsp-id : device node id
Phani Kumar Uppalapati85b7c9b2013-02-19 09:59:47 -080018
19 Optional properties
20
Krishnankutty Kolathappilly01a3f9b2013-12-12 17:00:15 -080021 - qti,msm-pcm-low-latency : Flag indicating whether
Phani Kumar Uppalapati85b7c9b2013-02-19 09:59:47 -080022 the device node is of type low latency.
23
Krishnankutty Kolathappilly3613a162013-11-25 12:13:10 -080024 - qti,latency-level : Flag indicating whether the device node
25 is of type regular low latency or ultra
26 low latency.
27 regular : regular low latency stream
28 ultra : ultra low latency stream
29
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -070030* msm-pcm-routing
31
32Required properties:
33
34 - compatible : "qcom,msm-pcm-routing"
35
36* msm-pcm-lpa
37
38Required properties:
39
40 - compatible : "qcom,msm-pcm-lpa"
41
Harmandeep Singha3453a72012-07-03 12:31:09 -070042* msm-compr-dsp
43
44Required properties:
45
46 - compatible : "qcom,msm-compr-dsp"
47
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -070048* msm-voip-dsp
49
50Required properties:
51
52 - compatible : "qcom,msm-voip-dsp"
53
Phani Kumar Uppalapati0878e9d2012-08-24 14:52:00 -070054* msm-pcm-voice
55
56Required properties:
57
58 - compatible : "qcom,msm-pcm-voice"
59
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -070060* msm-stub-codec
61
62Required properties:
63
64 - compatible : "qcom,msm-stub-codec"
65
66* msm-dai-fe
67
68Required properties:
69
70 - compatible : "qcom,msm-dai-fe"
71
Phani Kumar Uppalapati580884a2012-09-24 19:40:27 -070072* msm-pcm-afe
73
74Required properties:
75
76 - compatible : "qcom,msm-pcm-afe"
77
Venkat Sudhir6f1a5302013-01-17 12:28:15 -080078* msm-pcm-dtmf
79
80Required properties:
81
82 - compatible : "qcom,msm-pcm-dtmf"
83 - qcom,msm-pcm-dtmf : Enable DTMF driver in Audio. DTMF driver is
84 used for generation and detection of DTMF tones, when user is in
85 active voice call. APR commands are sent from DTMF driver to ADSP.
86
87* msm-dai-stub
88
89Required properties:
90
91 - compatible : "qcom,msm-dai-stub"
92 - qcom,msm-dai-stub : This enables stub CPU dai in Audio.
93 The stub dai is used when there is no real backend in Audio.
94
Harmandeep Singh169f1d42012-10-01 19:19:38 -070095* msm-dai-q6-hdmi
96
97Required properties:
98 - compatible : "msm-dai-q6-hdmi"
99 - qcom,msm-dai-q6-dev-id : The hdmi multi channel port ID.
100 It is passed onto the dsp from the apps to form an audio
101 path to the HDMI device. Currently the only supported value
102 is 8, which indicates the rx path used for audio playback
103 on HDMI device.
104
Joonwoo Parkb91e48e2013-02-21 10:24:56 -0800105* msm-lsm-client
106
107Required properties:
108
109 - compatible : "qcom,msm-lsm-client"
110
Damir Didjustobe4b22c2013-11-13 14:28:12 -0800111* msm-pcm-loopback
112
113Required properties:
114
115 - compatible : "qti,msm-pcm-loopback"
116
Joonwoo Park6572ac52012-07-10 17:17:00 -0700117* msm-dai-q6
118
119[First Level Nodes]
120
121Required properties:
122
123 - compatible : "msm-dai-q6"
124
Eugene Yasman570dcea2012-11-25 09:59:17 +0200125Optional properties:
126
127 - qcom,ext-spk-amp-supply : External speaker amplifier power supply.
128 - qcom,ext-spk-amp-gpio : External speaker amplifier enable signal.
129
Joonwoo Park6572ac52012-07-10 17:17:00 -0700130[Second Level Nodes]
131
132Required properties:
133
134 - compatible : "qcom,msm-dai-q6-dev"
135 - qcom,msm-dai-q6-dev-id : The slimbus multi channel port ID
136 Value is from 16384 to 16393
Phani Kumar Uppalapati1d303092012-09-24 19:55:56 -0700137 BT SCO port ID value from 12288 to 12289
Joonwoo Park44945812013-01-14 17:24:45 -0800138 RT Proxy port ID values from 224 to 225 and 240 to
139 241
Phani Kumar Uppalapatibebe7382012-10-08 19:19:01 -0700140 FM Rx and TX port ID values from 12292 to 12293
Mohan Kumar Gubbihalli Lachma Naik72e1b282012-12-19 11:49:07 -0800141 incall record Rx and TX port ID values from 32771 to 32772
142 inCall Music Delivery port ID is 32773
Joonwoo Park6572ac52012-07-10 17:17:00 -0700143
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700144* msm-auxpcm
145
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700146Required properties:
147
Patrick Laiafd82122013-06-15 22:50:04 -0700148 - compatible : "qcom,msm-auxpcm-dev"
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700149
Damir Didjusto04d3c362013-01-07 14:30:53 -0800150 - qcom,msm-cpudai-auxpcm-mode: mode information. The first value is
151 for 8khz mode, the second is for
152 16khz
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700153 0 - for PCM
154
Damir Didjusto04d3c362013-01-07 14:30:53 -0800155 - qcom,msm-cpudai-auxpcm-sync: sync information. The first value is
156 for 8khz mode, the second is for
157 16khz
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700158
Damir Didjusto04d3c362013-01-07 14:30:53 -0800159 - qcom,msm-cpudai-auxpcm-frame: No.of bytes per frame. The first
160 value is for 8khz mode, the second
161 is for 16khz
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700162 5 - 256BPF
Damir Didjusto04d3c362013-01-07 14:30:53 -0800163 4 - 128BPF
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700164
Damir Didjusto04d3c362013-01-07 14:30:53 -0800165 - qcom,msm-cpudai-auxpcm-quant: Type of quantization. The first
166 value is for 8khz mode, the second
167 is for 16khz
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700168 2 - Linear quantization
169
170 - qcom,msm-cpudai-auxpcm-slot: Slot number for multichannel scenario
Damir Didjusto04d3c362013-01-07 14:30:53 -0800171 The first value is for 8khz mode the
172 second is for 16khz
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700173 Value is 1
174
Damir Didjusto04d3c362013-01-07 14:30:53 -0800175 - qcom,msm-cpudai-auxpcm-data: Data field - 0. The first value is
176 for 8khz mode, the second is for
177 16khz
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700178
Damir Didjusto04d3c362013-01-07 14:30:53 -0800179 - qcom,msm-cpudai-auxpcm-pcm-clk-rate: Clock rate for pcm - 2048000. The
180 first value is for 8khz mode, the
181 second is for auxpcm
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700182
Patrick Laiafd82122013-06-15 22:50:04 -0700183 - qcom,msm-auxpcm-interface: name of AUXPCM interface "primary"
184 indicates primary AUXPCM interface
185 "secondary" indicates secondary
186 AUXPCM interface
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700187
188* msm-pcm-hostless
189
190Required properties:
191
192 - compatible : "qcom,msm-pcm-hostless"
193
Phani Kumar Uppalapati8b3a1bb2012-06-26 19:56:58 -0700194* msm-ocmem-audio
195
196Required properties:
197
198 - compatible : "qcom,msm-ocmem-audio"
199
Phani Kumar Uppalapati31492952012-09-25 20:25:53 -0700200 - qcom,msm_bus,name: Client name
Phani Kumar Uppalapati8b3a1bb2012-06-26 19:56:58 -0700201
Phani Kumar Uppalapati31492952012-09-25 20:25:53 -0700202 - qcom,msm_bus,num_cases: Total number of use cases
Phani Kumar Uppalapati8b3a1bb2012-06-26 19:56:58 -0700203
Joonwoo Park44945812013-01-14 17:24:45 -0800204 - qcom,msm_bus,active_only: Context flag for requests in active
205 or dual (active & sleep) contex
Phani Kumar Uppalapati8b3a1bb2012-06-26 19:56:58 -0700206
Phani Kumar Uppalapati31492952012-09-25 20:25:53 -0700207 - qcom,msm_bus,num_paths: Total number of master-slave pairs
Phani Kumar Uppalapati8b3a1bb2012-06-26 19:56:58 -0700208
Joonwoo Park44945812013-01-14 17:24:45 -0800209 - qcom,msm_bus,vectors: Arrays of unsigned integers
210 representing:
211 master-id, slave-id, arbitrated
212 bandwidth,
213 instantaneous bandwidth
Joonwoo Parkf6574c72012-10-10 17:29:57 -0700214* wcd9xxx_intc
215
216Required properties:
217
218 - compatible : "qcom,wcd9xxx-irq"
219
Joonwoo Park44945812013-01-14 17:24:45 -0800220 - interrupt-controller : Mark this device node as an
221 interrupt controller
Joonwoo Parkf6574c72012-10-10 17:29:57 -0700222
223 - #interrupt-cells : Should be 1
224
225 - interrupt-parent : Parent interrupt controller
226
227 - interrupts : Interrupt number on the parent
228 interrupt controller
229
230 - interrupt-names : Name of interrupt on the parent
231 interrupt controller
232
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700233Example:
234
Krishnankutty Kolathappilly01a3f9b2013-12-12 17:00:15 -0800235 qti,msm-pcm {
236 compatible = "qti,msm-pcm-dsp";
237 qti,msm-pcm-dsp-id = <0>;
Phani Kumar Uppalapati85b7c9b2013-02-19 09:59:47 -0800238 };
239
Krishnankutty Kolathappilly01a3f9b2013-12-12 17:00:15 -0800240 qti,msm-pcm-low-latency {
241 compatible = "qti,msm-pcm-dsp";
242 qti,msm-pcm-dsp-id = <1>;
243 qti,msm-pcm-low-latency;
244 };
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700245
246 qcom,msm-pcm-routing {
247 compatible = "qcom,msm-pcm-routing";
248 };
249
250 qcom,msm-pcm-lpa {
251 compatible = "qcom,msm-pcm-lpa";
252 };
253
Harmandeep Singha3453a72012-07-03 12:31:09 -0700254 qcom,msm-compr-dsp {
255 compatible = "qcom,msm-compr-dsp";
256 };
257
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700258 qcom,msm-voip-dsp {
259 compatible = "qcom,msm-voip-dsp";
260 };
261
262 qcom,msm-stub-codec {
263 compatible = "qcom,msm-stub-codec";
264 };
265
266 qcom,msm-dai-fe {
267 compatible = "qcom,msm-dai-fe";
268 };
269
Venkat Sudhir6f1a5302013-01-17 12:28:15 -0800270 qcom,msm-pcm-dtmf {
271 compatible = "qcom,msm-pcm-dtmf";
272 };
273
274 qcom,msm-dai-stub {
275 compatible = "qcom,msm-dai-stub";
276 };
277
Harmandeep Singh169f1d42012-10-01 19:19:38 -0700278 qcom,msm-dai-q6-hdmi {
279 compatible = "qcom,msm-dai-q6-hdmi";
280 qcom,msm-dai-q6-dev-id = <8>;
281 };
282
Joonwoo Park6572ac52012-07-10 17:17:00 -0700283 qcom,msm-dai-q6 {
284 compatible = "qcom,msm-dai-q6";
285 qcom,msm-dai-q6-sb-0-rx {
286 compatible = "qcom,msm-dai-q6-dev";
287 qcom,msm-dai-q6-dev-id = <16384>;
288 };
289
290 qcom,msm-dai-q6-sb-0-tx {
291 compatible = "qcom,msm-dai-q6-dev";
292 qcom,msm-dai-q6-dev-id = <16385>;
293 };
Phani Kumar Uppalapati1d303092012-09-24 19:55:56 -0700294
Phani Kumar Uppalapatiefad7312012-10-09 18:43:36 -0700295 qcom,msm-dai-q6-sb-1-rx {
296 compatible = "qcom,msm-dai-q6-dev";
297 qcom,msm-dai-q6-dev-id = <16386>;
298 };
299
300 qcom,msm-dai-q6-sb-1-tx {
301 compatible = "qcom,msm-dai-q6-dev";
302 qcom,msm-dai-q6-dev-id = <16387>;
303 };
304
305 qcom,msm-dai-q6-sb-3-rx {
306 compatible = "qcom,msm-dai-q6-dev";
307 qcom,msm-dai-q6-dev-id = <16390>;
308 };
309
310 qcom,msm-dai-q6-sb-3-tx {
311 compatible = "qcom,msm-dai-q6-dev";
312 qcom,msm-dai-q6-dev-id = <16391>;
313 };
314
315 qcom,msm-dai-q6-sb-4-rx {
316 compatible = "qcom,msm-dai-q6-dev";
317 qcom,msm-dai-q6-dev-id = <16392>;
318 };
319
320 qcom,msm-dai-q6-sb-4-tx {
321 compatible = "qcom,msm-dai-q6-dev";
322 qcom,msm-dai-q6-dev-id = <16393>;
323 };
324
Phani Kumar Uppalapati1d303092012-09-24 19:55:56 -0700325 qcom,msm-dai-q6-bt-sco-rx {
326 compatible = "qcom,msm-dai-q6-dev";
327 qcom,msm-dai-q6-dev-id = <12288>;
328 };
329
330 qcom,msm-dai-q6-bt-sco-tx {
331 compatible = "qcom,msm-dai-q6-dev";
332 qcom,msm-dai-q6-dev-id = <12289>;
333 };
334
Phani Kumar Uppalapatibebe7382012-10-08 19:19:01 -0700335 qcom,msm-dai-q6-int-fm-rx {
336 compatible = "qcom,msm-dai-q6-dev";
337 qcom,msm-dai-q6-dev-id = <12292>;
338 };
339
340 qcom,msm-dai-q6-int-fm-tx {
341 compatible = "qcom,msm-dai-q6-dev";
342 qcom,msm-dai-q6-dev-id = <12293>;
343 };
344
Phani Kumar Uppalapati1d303092012-09-24 19:55:56 -0700345 qcom,msm-dai-q6-be-afe-pcm-rx {
346 compatible = "qcom,msm-dai-q6-dev";
347 qcom,msm-dai-q6-dev-id = <224>;
348 };
349
350 qcom,msm-dai-q6-be-afe-pcm-tx {
351 compatible = "qcom,msm-dai-q6-dev";
352 qcom,msm-dai-q6-dev-id = <225>;
353 };
354
355 qcom,msm-dai-q6-afe-proxy-rx {
356 compatible = "qcom,msm-dai-q6-dev";
357 qcom,msm-dai-q6-dev-id = <241>;
358 };
359
360 qcom,msm-dai-q6-afe-proxy-tx {
361 compatible = "qcom,msm-dai-q6-dev";
362 qcom,msm-dai-q6-dev-id = <240>;
363 };
Mohan Kumar Gubbihalli Lachma Naik984252f2012-12-06 16:13:33 -0800364
365 qcom,msm-dai-q6-incall-record-rx {
366 compatible = "qcom,msm-dai-q6-dev";
367 qcom,msm-dai-q6-dev-id = <32771>;
368 };
369
370 qcom,msm-dai-q6-incall-record-tx {
371 compatible = "qcom,msm-dai-q6-dev";
372 qcom,msm-dai-q6-dev-id = <32772>;
373 };
Mohan Kumar Gubbihalli Lachma Naik72e1b282012-12-19 11:49:07 -0800374
375 qcom,msm-dai-q6-incall-music-rx {
376 compatible = "qcom,msm-dai-q6-dev";
377 qcom,msm-dai-q6-dev-id = <32773>;
378 };
Joonwoo Park6572ac52012-07-10 17:17:00 -0700379 };
380
Patrick Laiafd82122013-06-15 22:50:04 -0700381 qcom,msm-pri-auxpcm {
382 qcom,msm-cpudai-auxpcm-mode = <1>, <1>;
383 qcom,msm-cpudai-auxpcm-sync = <1>, <1>;
384 qcom,msm-cpudai-auxpcm-frame = <5>, <4>;
385 qcom,msm-cpudai-auxpcm-quant = <2>, <2>;
386 qcom,msm-cpudai-auxpcm-slot = <1>, <1>;
387 qcom,msm-cpudai-auxpcm-data = <0>, <0>;
388 qcom,msm-cpudai-auxpcm-pcm-clk-rate = <2048000>, <2048000>;
389 qcom,msm-auxpcm-interface = "primary";
390 compatible = "qcom,msm-auxpcm-dev";
391 };
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700392
393 qcom,msm-pcm-hostless {
394 compatible = "qcom,msm-pcm-hostless";
395 };
396
Phani Kumar Uppalapati8b3a1bb2012-06-26 19:56:58 -0700397 qcom,msm-ocmem-audio {
398 compatible = "qcom,msm-ocmem-audio";
Phani Kumar Uppalapati31492952012-09-25 20:25:53 -0700399 qcom,msm_bus,name = "audio-ocmem";
400 qcom,msm_bus,num_cases = <2>;
401 qcom,msm_bus,active_only = <0>;
402 qcom,msm_bus,num_paths = <1>;
403 qcom,msm_bus,vectors =
404 <11 604 0 0>,
405 <11 604 32505856 325058560>;
Phani Kumar Uppalapati8b3a1bb2012-06-26 19:56:58 -0700406 };
407
Joonwoo Parkf6574c72012-10-10 17:29:57 -0700408 wcd9xxx_intc: wcd9xxx-irq {
409 compatible = "qcom,wcd9xxx-irq";
410 interrupt-controller;
411 #interrupt-cells = <1>;
412 interrupt-parent = <&msmgpio>;
413 interrupts = <72 0>;
414 interrupt-names = "cdc-int";
415 };
416
Kiran Kandi9ee87e42012-08-20 13:05:40 -0700417* MSM8974 ASoC Machine driver
418
419Required properties:
420- compatible : "qcom,msm8974-audio-taiko"
421- qcom,model : The user-visible name of this sound card.
Banajit Goswamib1b62b52013-10-31 18:25:15 -0700422- reg : Offset and length of the register region(s) for MI2S/PCM MUX
423- reg-names : Register region name(s) referenced in reg above
424 Required register resource entries are:
425 "lpaif_pri_mode_muxsel": Physical address of MUX to select between
426 Primary PCM and Primary MI2S
427 "lpaif_sec_mode_muxsel": Physical address of MUX to select between
428 Secondary PCM and Secondary MI2S
429 "lpaif_tert_mode_muxsel": Physical address of MUX to select between
430 Primary PCM and Tertiary MI2S
431 "lpaif_quat_mode_muxsel": Physical address of MUX to select between
432 Secondary PCM and Quarternary MI2S
Kiran Kandi9ee87e42012-08-20 13:05:40 -0700433- qcom,audio-routing : A list of the connections between audio components.
434 Each entry is a pair of strings, the first being the connection's sink,
435 the second being the connection's source.
Kiran Kandi79db1b02012-08-21 13:48:19 -0700436- qcom,cdc-mclk-gpios : GPIO on which mclk signal is comming.
Kiran Kandi79db1b02012-08-21 13:48:19 -0700437- qcom,taiko-mclk-clk-freq : Taiko mclk Freq in Hz. currently only 9600000Hz
438 is supported.
Banajit Goswami57b47c42013-04-04 19:13:22 -0700439- qcom,prim-auxpcm-gpio-clk : GPIO on which Primary AUXPCM clk signal is coming.
440- qcom,prim-auxpcm-gpio-sync : GPIO on which Primary AUXPCM SYNC signal is coming.
441- qcom,prim-auxpcm-gpio-din : GPIO on which Primary AUXPCM DIN signal is coming.
442- qcom,prim-auxpcm-gpio-dout : GPIO on which Primary AUXPCM DOUT signal is coming.
Banajit Goswamif8ce89a2013-04-09 18:02:15 -0700443- qcom,prim-auxpcm-gpio-set : set of GPIO lines used for Primary AUXPCM port
444 Possible Values:
445 prim-gpio-prim : Primary AUXPCM shares GPIOs with Primary MI2S
446 prim-gpio-tert : Primary AUXPCM shares GPIOs with Tertiary MI2S
Banajit Goswamidd3d8da2013-04-03 11:17:08 -0700447- qcom,sec-auxpcm-gpio-clk : GPIO on which Secondary AUXPCM clk signal is coming.
448- qcom,sec-auxpcm-gpio-sync : GPIO on which Secondary AUXPCM SYNC signal is coming.
449- qcom,sec-auxpcm-gpio-din : GPIO on which Secondary AUXPCM DIN signal is coming.
450- qcom,sec-auxpcm-gpio-dout : GPIO on which Secondary AUXPCM DOUT signal is coming.
Fred Ohfcc8e932013-03-06 20:47:39 -0800451- qcom,us-euro-gpios : GPIO on which gnd/mic swap signal is coming.
Kiran Kandi52650322012-12-11 15:49:39 -0800452Optional properties:
453- qcom,hdmi-audio-rx: specifies if HDMI audio support is enabled or not.
Baruch Eruchimovitchdc814672013-03-10 21:46:14 +0200454- qcom,ext-ult-spk-amp-gpio : GPIO for enabling of speaker path amplifier.
Kiran Kandi52650322012-12-11 15:49:39 -0800455
Joonwoo Park4099b7a2013-03-11 20:47:59 -0700456- qcom,ext-ult-lo-amp-gpio: GPIO to enable external ultrasound lineout
457 amplifier.
458
Phani Kumar Uppalapatief087572013-05-03 11:19:33 -0700459- qcom,headset-jack-type-NO: Adjust GPIO level based on the headset jack type.
Phani Kumar Uppalapati93c74602013-05-09 19:08:16 -0700460- qcom,tapan-codec-9302: Indicates that this device node is for WCD9302 audio
461 codec.
Bhalchandra Gajared01701b2013-09-19 13:19:08 -0700462- qcom,mbhc-bias-internal: Flag to indicate if internal micbias should be used
463 for headset detection.
Simmi Pateriya35481152013-11-08 14:35:10 +0530464- qcom,mbhc-audio-jack-type : String to indicate the jack type on the hardware.
465 Possible Values:
466 4-pole-jack : Jack on the hardware is 4-pole.
467 5-pole-jack : Jack on the hardware is 5-pole.
468 6-pole-jack : Jack on the hardware is 6-pole.
Tanya Finkel6c69f0b2013-05-28 22:53:29 +0300469* APQ8074 ASoC Machine driver
470
471Required properties:
472- compatible : "qcom,apq8074-audio-taiko"
473
Kiran Kandi9ee87e42012-08-20 13:05:40 -0700474Example:
475
476sound {
477 compatible = "qcom,msm8974-audio-taiko";
478 qcom,model = "msm8974-taiko-snd-card";
479
480 qcom,audio-routing =
481 "RX_BIAS", "MCLK",
482 "LDO_H", "MCLK",
483 "HEADPHONE", "LDO_H",
484 "Ext Spk Bottom Pos", "LINEOUT1",
485 "Ext Spk Bottom Neg", "LINEOUT3",
486 "Ext Spk Top Pos", "LINEOUT2",
487 "Ext Spk Top Neg", "LINEOUT4",
488 "AMIC1", "MIC BIAS1 Internal1",
489 "MIC BIAS1 Internal1", "Handset Mic",
490 "AMIC2", "MIC BIAS2 External",
491 "MIC BIAS2 External", "Headset Mic",
492 "AMIC3", "MIC BIAS3 Internal1",
493 "MIC BIAS3 Internal1", "ANCRight Headset Mic",
494 "AMIC4", "MIC BIAS1 Internal2",
495 "MIC BIAS1 Internal2", "ANCLeft Headset Mic",
496 "DMIC1", "MIC BIAS1 External",
497 "MIC BIAS1 External", "Digital Mic1",
498 "DMIC2", "MIC BIAS1 External",
499 "MIC BIAS1 External", "Digital Mic2",
500 "DMIC3", "MIC BIAS3 External",
501 "MIC BIAS3 External", "Digital Mic3",
502 "DMIC4", "MIC BIAS3 External",
503 "MIC BIAS3 External", "Digital Mic4",
504 "DMIC5", "MIC BIAS4 External",
505 "MIC BIAS4 External", "Digital Mic5",
506 "DMIC6", "MIC BIAS4 External",
507 "MIC BIAS4 External", "Digital Mic6";
Kiran Kandi79db1b02012-08-21 13:48:19 -0700508
509 qcom,cdc-mclk-gpios = <&pm8941_gpios 15 0>;
Kiran Kandi79db1b02012-08-21 13:48:19 -0700510 qcom,taiko-mclk-clk-freq = <9600000>;
Fred Ohfcc8e932013-03-06 20:47:39 -0800511 qcom,us-euro-gpios = <&pm8941_gpios 20 0>;
Kiran Kandi52650322012-12-11 15:49:39 -0800512
513 qcom,hdmi-audio-rx;
Joonwoo Park4099b7a2013-03-11 20:47:59 -0700514 qcom,ext-ult-lo-amp-gpio = <&pm8941_gpios 6 0>;
Damir Didjusto04d3c362013-01-07 14:30:53 -0800515
Banajit Goswami57b47c42013-04-04 19:13:22 -0700516 qcom,prim-auxpcm-gpio-clk = <&msmgpio 65 0>;
517 qcom,prim-auxpcm-gpio-sync = <&msmgpio 66 0>;
518 qcom,prim-auxpcm-gpio-din = <&msmgpio 67 0>;
519 qcom,prim-auxpcm-gpio-dout = <&msmgpio 68 0>;
Banajit Goswamif8ce89a2013-04-09 18:02:15 -0700520 qcom,prim-auxpcm-gpio-set = "prim-gpio-prim";
Banajit Goswamidd3d8da2013-04-03 11:17:08 -0700521 qcom,sec-auxpcm-gpio-clk = <&msmgpio 79 0>;
522 qcom,sec-auxpcm-gpio-sync = <&msmgpio 80 0>;
523 qcom,sec-auxpcm-gpio-din = <&msmgpio 81 0>;
524 qcom,sec-auxpcm-gpio-dout = <&msmgpio 82 0>;
Simmi Pateriya35481152013-11-08 14:35:10 +0530525 qcom,mbhc-audio-jack-type = "4-pole-jack";
Kiran Kandi9ee87e42012-08-20 13:05:40 -0700526};
Venkat Sudhir4bd983e2012-10-27 02:59:54 -0700527
528* msm-dai-mi2s
529
530[First Level Nodes]
531
532Required properties:
533
534 - compatible : "msm-dai-mi2s"
535
536 [Second Level Nodes]
537
538Required properties:
539
540 - compatible : "qcom,msm-dai-q6-mi2s"
Joonwoo Park44945812013-01-14 17:24:45 -0800541 - qcom,msm-dai-q6-mi2s-dev-id: MSM or MDM can use Slimbus or I2S interface to
542 transfer data to (WCD9XXX) codec.
543 If slimbus interface is used then "msm-dai-q6"
544 needs to be filled with correct data for
545 slimbus interface.
546 The sections "msm-dai-mi2s" is used by MDM or
547 MSM to use I2S interface with codec.
548 This section is used by CPU driver in ASOC MSM
549 to configure MI2S interface. MSM internally
550 has multiple MI2S namely Primary, Secondary,
551 Tertiary and Quaternary MI2S.
552 They are represented with id 0, 1, 2, 3
553 respectively.
554 The field "qcom,msm-dai-q6-mi2s-dev-id"
555 represents which of the MI2S block is used.
556 These MI2S are connected to I2S interface.
Venkat Sudhir4bd983e2012-10-27 02:59:54 -0700557
Joonwoo Park44945812013-01-14 17:24:45 -0800558 - qcom,msm-mi2s-rx-lines: Each MI2S interface in MSM has one or more SD
559 lines. These lines are used for data transfer
560 between codec and MSM.
561 This element in indicates which output RX lines
562 are used in the MI2S interface.
Venkat Sudhir4bd983e2012-10-27 02:59:54 -0700563
Joonwoo Park44945812013-01-14 17:24:45 -0800564 - qcom,msm-mi2s-tx-lines: Each MI2S interface in MSM has one or more SD
565 lines. These lines are used for data transfer
566 between codec and MSM.
567 This element in indicates which input TX lines
568 are used in the MI2S interface.
Venkat Sudhir4bd983e2012-10-27 02:59:54 -0700569
570Example:
571
572qcom,msm-dai-mi2s {
573 compatible = "qcom,msm-dai-mi2s";
574 qcom,msm-dai-q6-mi2s-prim {
575 compatible = "qcom,msm-dai-q6-mi2s";
576 qcom,msm-dai-q6-mi2s-dev-id = <0>;
577 qcom,msm-mi2s-rx-lines = <2>;
578 qcom,msm-mi2s-tx-lines = <1>;
579 };
Venkat Sudhir64f66302012-10-30 09:30:16 -0700580};
581
582* MSM9625 ASoC Machine driver
583
584Required properties:
585- compatible : "qcom,mdm9625-audio-taiko"
586- qcom,model : The user-visible name of this sound card.
587- qcom,audio-routing : A list of the connections between audio components.
588 Each entry is a pair of strings, the first being the connection's sink,
589 the second being the connection's source.
590- qcom,taiko-mclk-clk-freq : Master clock value given to codec. Some WCD9XXX
591 codec can run at different mclk values. Mclk value can be 9.6MHz or 12.288MHz.
592 This element represents the value for MCLK provided to codec.
Venkat Sudhir459d6f52012-12-04 12:00:13 -0800593- prim-i2s-gpio-ws : Specifies gpio assigned for primary WS I2S pin.
594- prim-i2s-gpio-din : Specifies gpio assigned for primary DIN I2S pin.
595- prim-i2s-gpio-dout : Specifies gpio assigned for primary DOUT I2S pin.
596- prim-i2s-gpio-sclk : Specifies gpio assigned for primary SCLK I2S pin.
597- prim-i2s-gpio-mclk : Specifies gpio assigned for MCLK I2S pin.
Venkat Sudhir64f66302012-10-30 09:30:16 -0700598
599Example:
600
601sound {
602 compatible = "qcom,mdm9625-audio-taiko";
603 qcom,model = "mdm9625-taiko-i2s-snd-card";
604
605 qcom,audio-routing =
606 "RX_BIAS", "MCLK",
607 "LDO_H", "MCLK",
608 "Ext Spk Bottom Pos", "LINEOUT1",
609 "Ext Spk Bottom Neg", "LINEOUT3",
610 "Ext Spk Top Pos", "LINEOUT2",
611 "Ext Spk Top Neg", "LINEOUT4",
612 "AMIC1", "MIC BIAS1 External",
613 "MIC BIAS1 External", "Handset Mic",
614 "AMIC2", "MIC BIAS2 External",
615 "MIC BIAS2 External", "Headset Mic",
616 "AMIC3", "MIC BIAS3 Internal1",
617 "MIC BIAS3 Internal1", "ANCRight Headset Mic",
618 "AMIC4", "MIC BIAS1 Internal2",
619 "MIC BIAS1 Internal2", "ANCLeft Headset Mic",
620 "DMIC1", "MIC BIAS1 External",
621 "MIC BIAS1 External", "Digital Mic1",
622 "DMIC2", "MIC BIAS1 External",
623 "MIC BIAS1 External", "Digital Mic2",
624 "DMIC3", "MIC BIAS3 External",
625 "MIC BIAS3 External", "Digital Mic3",
626 "DMIC4", "MIC BIAS3 External",
627 "MIC BIAS3 External", "Digital Mic4",
628 "DMIC5", "MIC BIAS4 External",
629 "MIC BIAS4 External", "Digital Mic5",
630 "DMIC6", "MIC BIAS4 External",
631 "MIC BIAS4 External", "Digital Mic6";
632 qcom,taiko-mclk-clk-freq = <12288000>;
Venkat Sudhir459d6f52012-12-04 12:00:13 -0800633 prim-i2s-gpio-ws = <&msmgpio 12 0>;
634 prim-i2s-gpio-din = <&msmgpio 13 0>;
635 prim-i2s-gpio-dout = <&msmgpio 14 0>;
636 prim-i2s-gpio-sclk = <&msmgpio 15 0>;
637 prim-i2s-gpio-mclk = <&msmgpio 71 0>;
Venkat Sudhir64f66302012-10-30 09:30:16 -0700638};
Venkat Sudhir480db8a2012-11-09 15:31:50 -0800639
640* msm-adsp-loader
641
642Required properties:
Fred Ohde9438a2013-04-04 11:29:12 -0700643 - compatible : "qcom,adsp-loader"
Venkat Sudhir480db8a2012-11-09 15:31:50 -0800644 - qcom,adsp-state:
645 It is possible that some MSM use PIL to load the ADSP image. While
646 other MSM may use SBL to load the ADSP image at boot. Audio APR needs
647 state of ADSP to register and enable APR to be used for sending commands
Joonwoo Park44945812013-01-14 17:24:45 -0800648 to ADSP. so adsp-state represents the state of ADSP to ADSP loader.
649 Value of 0 indicates ADSP loader needs to use PIL and value of 2 means
650 ADSP image is already loaded by SBL.
Venkat Sudhir480db8a2012-11-09 15:31:50 -0800651
652Example:
653
654qcom,msm-adsp-loader {
655 compatible = "qcom,adsp-loader";
656 qcom,adsp-state = <2>;
657};
Fred Ohde9438a2013-04-04 11:29:12 -0700658
659* msm-audio-ion
660
661Required properties:
662 - compatible : "qcom,msm-audio-ion"
663
664Optional properties:
665 - qcom,smmu-enabled:
666 It is possible that some MSM have SMMU in ADSP. While other MSM use
667 no SMMU. Audio lib introduce wrapper for ION APIs. The wrapper needs
668 presence of SMMU in ADSP to handle ION APIs differently.
669 Presence of this property means ADSP has SMMU in it.
670
671Example:
672
673qcom,msm-audio-ion {
674 compatible = "qcom,msm-audio-ion;
675 qcom,smmu-enabled;
676};
Banajit Goswami25715c52013-05-10 11:45:47 -0700677
678* MSM8226 ASoC Machine driver
679
680Required properties:
681- compatible : "qcom,msm8226-audio-tapan"
682- qcom,model : The user-visible name of this sound card.
683- qcom,tapan-mclk-clk-freq : Tapan mclk Freq in Hz. currently only 9600000Hz
684 is supported.
685- qcom,prim-auxpcm-gpio-clk : GPIO on which Primary AUXPCM clk signal is coming.
686- qcom,prim-auxpcm-gpio-sync : GPIO on which Primary AUXPCM SYNC signal is coming.
687- qcom,prim-auxpcm-gpio-din : GPIO on which Primary AUXPCM DIN signal is coming.
688- qcom,prim-auxpcm-gpio-dout : GPIO on which Primary AUXPCM DOUT signal is coming.
689- qcom,prim-auxpcm-gpio-set : set of GPIO lines used for Primary AUXPCM port
690 Possible Values:
691 prim-gpio-prim : Primary AUXPCM shares GPIOs with Primary MI2S
692 prim-gpio-tert : Primary AUXPCM shares GPIOs with Tertiary MI2S
693
Bhalchandra Gajare6ce3b712013-04-23 17:30:40 -0700694Optional Properties:
mengw3d535dd2013-06-13 13:43:45 +0800695- qcom,cdc-us-euro-gpios : GPIO on which gnd/mic swap signal is coming.
696- qcom,cdc-lineout-spkr-gpios : GPIO which controls external PAs to enable Lineout1/2 speaker
697- qcom,cdc-vdd-spkr-gpios : GPIO which controls PA for VDD speaker
Bhalchandra Gajare7faec652013-07-18 20:59:30 -0700698- qcom,headset-jack-type-NC: Set if the headset jack type is NC (Normally Closed)
Bhalchandra Gajare6ce3b712013-04-23 17:30:40 -0700699
Banajit Goswami25715c52013-05-10 11:45:47 -0700700Example:
701
702sound {
703 compatible = "qcom,msm8226-audio-tapan";
704 qcom,model = "msm8226-tapan-snd-card";
705 qcom,tapan-mclk-clk-freq = <9600000>;
706 qcom,prim-auxpcm-gpio-clk = <&msmgpio 63 0>;
707 qcom,prim-auxpcm-gpio-sync = <&msmgpio 64 0>;
708 qcom,prim-auxpcm-gpio-din = <&msmgpio 65 0>;
709 qcom,prim-auxpcm-gpio-dout = <&msmgpio 66 0>;
710 qcom,prim-auxpcm-gpio-set = "prim-gpio-prim";
Bhalchandra Gajare6ce3b712013-04-23 17:30:40 -0700711 qcom,cdc-us-euro-gpios = <&msmgpio 69 0>;
mengw3d535dd2013-06-13 13:43:45 +0800712 qcom,cdc-lineout-spkr-gpios = <&pm8226_gpios 2 0>;
713 qcom,cdc-vdd-spkr-gpios = <&pm8226_gpios 3 0>;
Banajit Goswami25715c52013-05-10 11:45:47 -0700714};