blob: 2864fd1ba71d939e5e04d01a744749aba3ea86b7 [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
Joonwoo Park6572ac52012-07-10 17:17:00 -070057* msm-dai-q6
58
59[First Level Nodes]
60
61Required properties:
62
63 - compatible : "msm-dai-q6"
64
65[Second Level Nodes]
66
67Required properties:
68
69 - compatible : "qcom,msm-dai-q6-dev"
70 - qcom,msm-dai-q6-dev-id : The slimbus multi channel port ID
71 Value is from 16384 to 16393
Phani Kumar Uppalapati1d303092012-09-24 19:55:56 -070072 BT SCO port ID value from 12288 to 12289
73 RT Proxy port ID values from 224 to 225 and 240 to 241
Joonwoo Park6572ac52012-07-10 17:17:00 -070074
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -070075* msm-auxpcm
76
77[First Level Nodes]
78
79Required properties:
80
81 - compatible : "qcom,msm-auxpcm-resource"
82
83 - qcom,msm-cpudai-auxpcm-clk: clock for auxpcm
84
85 - qcom,msm-cpudai-auxpcm-mode: mode information
86 0 - for PCM
87
88 - qcom,msm-cpudai-auxpcm-sync: sync information
89
90 - qcom,msm-cpudai-auxpcm-frame: No.of bytes per frame
91 5 - 256BPF
92
93 - qcom,msm-cpudai-auxpcm-quant: Type of quantization
94 2 - Linear quantization
95
96 - qcom,msm-cpudai-auxpcm-slot: Slot number for multichannel scenario
97 Value is 1
98
99 - qcom,msm-cpudai-auxpcm-data: Data field - 0
100
101 - qcom,msm-cpudai-auxpcm-pcm-clk-rate: Clock rate for pcm - 2048000
102
103[Second Level Nodes]
104
105Required Properties:
106
107 - qcom,msm-auxpcm-dev-id: This property specifies the device
108 port id.
109 For Rx device, the port id is 4106
110 and for Tx device, the port id is 4107
111
112 - compatible: "qcom,msm-auxpcm-dev"
113
114* msm-pcm-hostless
115
116Required properties:
117
118 - compatible : "qcom,msm-pcm-hostless"
119
Phani Kumar Uppalapati8b3a1bb2012-06-26 19:56:58 -0700120* msm-ocmem-audio
121
122Required properties:
123
124 - compatible : "qcom,msm-ocmem-audio"
125
126 - qcom,msm-ocmem-audio-src-id: Master port id
127
128 - qcom,msm-ocmem-audio-dst-id: Slave port id
129
130 - qcom,msm-ocmem-audio-ab: arbitrated bandwidth
131 in Bytes/s
132
133 - qcom,msm-ocmem-audio-ib: instantaneous bandwidth
134 in Bytes/s
135
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700136Example:
137
138 qcom,msm-pcm {
139 compatible = "qcom,msm-pcm-dsp";
140 };
141
142 qcom,msm-pcm-routing {
143 compatible = "qcom,msm-pcm-routing";
144 };
145
146 qcom,msm-pcm-lpa {
147 compatible = "qcom,msm-pcm-lpa";
148 };
149
Harmandeep Singha3453a72012-07-03 12:31:09 -0700150 qcom,msm-compr-dsp {
151 compatible = "qcom,msm-compr-dsp";
152 };
153
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700154 qcom,msm-voip-dsp {
155 compatible = "qcom,msm-voip-dsp";
156 };
157
158 qcom,msm-stub-codec {
159 compatible = "qcom,msm-stub-codec";
160 };
161
162 qcom,msm-dai-fe {
163 compatible = "qcom,msm-dai-fe";
164 };
165
Joonwoo Park6572ac52012-07-10 17:17:00 -0700166 qcom,msm-dai-q6 {
167 compatible = "qcom,msm-dai-q6";
168 qcom,msm-dai-q6-sb-0-rx {
169 compatible = "qcom,msm-dai-q6-dev";
170 qcom,msm-dai-q6-dev-id = <16384>;
171 };
172
173 qcom,msm-dai-q6-sb-0-tx {
174 compatible = "qcom,msm-dai-q6-dev";
175 qcom,msm-dai-q6-dev-id = <16385>;
176 };
Phani Kumar Uppalapati1d303092012-09-24 19:55:56 -0700177
178 qcom,msm-dai-q6-bt-sco-rx {
179 compatible = "qcom,msm-dai-q6-dev";
180 qcom,msm-dai-q6-dev-id = <12288>;
181 };
182
183 qcom,msm-dai-q6-bt-sco-tx {
184 compatible = "qcom,msm-dai-q6-dev";
185 qcom,msm-dai-q6-dev-id = <12289>;
186 };
187
188 qcom,msm-dai-q6-be-afe-pcm-rx {
189 compatible = "qcom,msm-dai-q6-dev";
190 qcom,msm-dai-q6-dev-id = <224>;
191 };
192
193 qcom,msm-dai-q6-be-afe-pcm-tx {
194 compatible = "qcom,msm-dai-q6-dev";
195 qcom,msm-dai-q6-dev-id = <225>;
196 };
197
198 qcom,msm-dai-q6-afe-proxy-rx {
199 compatible = "qcom,msm-dai-q6-dev";
200 qcom,msm-dai-q6-dev-id = <241>;
201 };
202
203 qcom,msm-dai-q6-afe-proxy-tx {
204 compatible = "qcom,msm-dai-q6-dev";
205 qcom,msm-dai-q6-dev-id = <240>;
206 };
Joonwoo Park6572ac52012-07-10 17:17:00 -0700207 };
208
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700209 qcom,msm-auxpcm {
210 compatible = "qcom,msm-auxpcm-resource";
211 qcom,msm-cpudai-auxpcm-clk = "pcm_clk";
212 qcom,msm-cpudai-auxpcm-mode = <0>;
213 qcom,msm-cpudai-auxpcm-sync = <1>;
214 qcom,msm-cpudai-auxpcm-frame = <5>;
215 qcom,msm-cpudai-auxpcm-quant = <2>;
216 qcom,msm-cpudai-auxpcm-slot = <1>;
217 qcom,msm-cpudai-auxpcm-data = <0>;
218 qcom,msm-cpudai-auxpcm-pcm-clk-rate = <2048000>;
219
220 qcom,msm-auxpcm-rx {
Harmandeep Singha3453a72012-07-03 12:31:09 -0700221 qcom,msm-auxpcm-dev-id = <4106>;
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700222 compatible = "qcom,msm-auxpcm-dev";
223 };
224
225 qcom,msm-auxpcm-tx {
Harmandeep Singha3453a72012-07-03 12:31:09 -0700226 qcom,msm-auxpcm-dev-id = <4107>;
Phani Kumar Uppalapati87841c82012-06-14 21:28:43 -0700227 compatible = "qcom,msm-auxpcm-dev";
228 };
229 };
230
231 qcom,msm-pcm-hostless {
232 compatible = "qcom,msm-pcm-hostless";
233 };
234
Phani Kumar Uppalapati8b3a1bb2012-06-26 19:56:58 -0700235 qcom,msm-ocmem-audio {
236 compatible = "qcom,msm-ocmem-audio";
237 qcom,msm-ocmem-audio-src-id = <11>;
238 qcom,msm-ocmem-audio-dst-id = <604>;
239 qcom,msm-ocmem-audio-ab = <209715200>;
240 qcom,msm-ocmem-audio-ib = <471859200>;
241 };
242
Kiran Kandi9ee87e42012-08-20 13:05:40 -0700243* MSM8974 ASoC Machine driver
244
245Required properties:
246- compatible : "qcom,msm8974-audio-taiko"
247- qcom,model : The user-visible name of this sound card.
248- qcom,audio-routing : A list of the connections between audio components.
249 Each entry is a pair of strings, the first being the connection's sink,
250 the second being the connection's source.
Kiran Kandi79db1b02012-08-21 13:48:19 -0700251- qcom,cdc-mclk-gpios : GPIO on which mclk signal is comming.
252- taiko-mclk-clk : phandle to PMIC8941 clkdiv1 node.
253- qcom,taiko-mclk-clk-freq : Taiko mclk Freq in Hz. currently only 9600000Hz
254 is supported.
Kiran Kandi9ee87e42012-08-20 13:05:40 -0700255
256Example:
257
258sound {
259 compatible = "qcom,msm8974-audio-taiko";
260 qcom,model = "msm8974-taiko-snd-card";
261
262 qcom,audio-routing =
263 "RX_BIAS", "MCLK",
264 "LDO_H", "MCLK",
265 "HEADPHONE", "LDO_H",
266 "Ext Spk Bottom Pos", "LINEOUT1",
267 "Ext Spk Bottom Neg", "LINEOUT3",
268 "Ext Spk Top Pos", "LINEOUT2",
269 "Ext Spk Top Neg", "LINEOUT4",
270 "AMIC1", "MIC BIAS1 Internal1",
271 "MIC BIAS1 Internal1", "Handset Mic",
272 "AMIC2", "MIC BIAS2 External",
273 "MIC BIAS2 External", "Headset Mic",
274 "AMIC3", "MIC BIAS3 Internal1",
275 "MIC BIAS3 Internal1", "ANCRight Headset Mic",
276 "AMIC4", "MIC BIAS1 Internal2",
277 "MIC BIAS1 Internal2", "ANCLeft Headset Mic",
278 "DMIC1", "MIC BIAS1 External",
279 "MIC BIAS1 External", "Digital Mic1",
280 "DMIC2", "MIC BIAS1 External",
281 "MIC BIAS1 External", "Digital Mic2",
282 "DMIC3", "MIC BIAS3 External",
283 "MIC BIAS3 External", "Digital Mic3",
284 "DMIC4", "MIC BIAS3 External",
285 "MIC BIAS3 External", "Digital Mic4",
286 "DMIC5", "MIC BIAS4 External",
287 "MIC BIAS4 External", "Digital Mic5",
288 "DMIC6", "MIC BIAS4 External",
289 "MIC BIAS4 External", "Digital Mic6";
Kiran Kandi79db1b02012-08-21 13:48:19 -0700290
291 qcom,cdc-mclk-gpios = <&pm8941_gpios 15 0>;
292 taiko-mclk-clk = <&pm8941_clkdiv1>;
293 qcom,taiko-mclk-clk-freq = <9600000>;
Kiran Kandi9ee87e42012-08-20 13:05:40 -0700294};