Joonwoo Park | 6572ac5 | 2012-07-10 17:17:00 -0700 | [diff] [blame] | 1 | Qualcomm audio devices for ALSA sound SoC |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 2 | |
| 3 | * msm-pcm |
| 4 | |
| 5 | Required properties: |
| 6 | |
| 7 | - compatible : "qcom,msm-pcm-dsp" |
| 8 | |
| 9 | * msm-pcm-routing |
| 10 | |
| 11 | Required properties: |
| 12 | |
| 13 | - compatible : "qcom,msm-pcm-routing" |
| 14 | |
| 15 | * msm-pcm-lpa |
| 16 | |
| 17 | Required properties: |
| 18 | |
| 19 | - compatible : "qcom,msm-pcm-lpa" |
| 20 | |
Harmandeep Singh | a3453a7 | 2012-07-03 12:31:09 -0700 | [diff] [blame] | 21 | * msm-compr-dsp |
| 22 | |
| 23 | Required properties: |
| 24 | |
| 25 | - compatible : "qcom,msm-compr-dsp" |
| 26 | |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 27 | * msm-voip-dsp |
| 28 | |
| 29 | Required properties: |
| 30 | |
| 31 | - compatible : "qcom,msm-voip-dsp" |
| 32 | |
Phani Kumar Uppalapati | 0878e9d | 2012-08-24 14:52:00 -0700 | [diff] [blame] | 33 | * msm-pcm-voice |
| 34 | |
| 35 | Required properties: |
| 36 | |
| 37 | - compatible : "qcom,msm-pcm-voice" |
| 38 | |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 39 | * msm-stub-codec |
| 40 | |
| 41 | Required properties: |
| 42 | |
| 43 | - compatible : "qcom,msm-stub-codec" |
| 44 | |
| 45 | * msm-dai-fe |
| 46 | |
| 47 | Required properties: |
| 48 | |
| 49 | - compatible : "qcom,msm-dai-fe" |
| 50 | |
Phani Kumar Uppalapati | 580884a | 2012-09-24 19:40:27 -0700 | [diff] [blame] | 51 | * msm-pcm-afe |
| 52 | |
| 53 | Required properties: |
| 54 | |
| 55 | - compatible : "qcom,msm-pcm-afe" |
| 56 | |
Venkat Sudhir | 6f1a530 | 2013-01-17 12:28:15 -0800 | [diff] [blame] | 57 | * msm-pcm-dtmf |
| 58 | |
| 59 | Required 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 | |
| 68 | Required 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 Singh | 169f1d4 | 2012-10-01 19:19:38 -0700 | [diff] [blame] | 74 | * msm-dai-q6-hdmi |
| 75 | |
| 76 | Required 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 Park | 6572ac5 | 2012-07-10 17:17:00 -0700 | [diff] [blame] | 84 | * msm-dai-q6 |
| 85 | |
| 86 | [First Level Nodes] |
| 87 | |
| 88 | Required properties: |
| 89 | |
| 90 | - compatible : "msm-dai-q6" |
| 91 | |
Eugene Yasman | 570dcea | 2012-11-25 09:59:17 +0200 | [diff] [blame] | 92 | Optional 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 Park | 6572ac5 | 2012-07-10 17:17:00 -0700 | [diff] [blame] | 97 | [Second Level Nodes] |
| 98 | |
| 99 | Required 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 Uppalapati | 1d30309 | 2012-09-24 19:55:56 -0700 | [diff] [blame] | 104 | BT SCO port ID value from 12288 to 12289 |
Joonwoo Park | 4494581 | 2013-01-14 17:24:45 -0800 | [diff] [blame] | 105 | RT Proxy port ID values from 224 to 225 and 240 to |
| 106 | 241 |
Phani Kumar Uppalapati | bebe738 | 2012-10-08 19:19:01 -0700 | [diff] [blame] | 107 | FM Rx and TX port ID values from 12292 to 12293 |
Mohan Kumar Gubbihalli Lachma Naik | 72e1b28 | 2012-12-19 11:49:07 -0800 | [diff] [blame] | 108 | incall record Rx and TX port ID values from 32771 to 32772 |
| 109 | inCall Music Delivery port ID is 32773 |
Joonwoo Park | 6572ac5 | 2012-07-10 17:17:00 -0700 | [diff] [blame] | 110 | |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 111 | * msm-auxpcm |
| 112 | |
| 113 | [First Level Nodes] |
| 114 | |
| 115 | Required properties: |
| 116 | |
| 117 | - compatible : "qcom,msm-auxpcm-resource" |
| 118 | |
Damir Didjusto | 04d3c36 | 2013-01-07 14:30:53 -0800 | [diff] [blame] | 119 | - qcom,msm-cpudai-auxpcm-clk: clock for auxpcm. The first value is |
| 120 | for 8khz mode, the second is for |
| 121 | 16khz |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 122 | |
Damir Didjusto | 04d3c36 | 2013-01-07 14:30:53 -0800 | [diff] [blame] | 123 | - qcom,msm-cpudai-auxpcm-mode: mode information. The first value is |
| 124 | for 8khz mode, the second is for |
| 125 | 16khz |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 126 | 0 - for PCM |
| 127 | |
Damir Didjusto | 04d3c36 | 2013-01-07 14:30:53 -0800 | [diff] [blame] | 128 | - qcom,msm-cpudai-auxpcm-sync: sync information. The first value is |
| 129 | for 8khz mode, the second is for |
| 130 | 16khz |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 131 | |
Damir Didjusto | 04d3c36 | 2013-01-07 14:30:53 -0800 | [diff] [blame] | 132 | - 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 Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 135 | 5 - 256BPF |
Damir Didjusto | 04d3c36 | 2013-01-07 14:30:53 -0800 | [diff] [blame] | 136 | 4 - 128BPF |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 137 | |
Damir Didjusto | 04d3c36 | 2013-01-07 14:30:53 -0800 | [diff] [blame] | 138 | - qcom,msm-cpudai-auxpcm-quant: Type of quantization. The first |
| 139 | value is for 8khz mode, the second |
| 140 | is for 16khz |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 141 | 2 - Linear quantization |
| 142 | |
| 143 | - qcom,msm-cpudai-auxpcm-slot: Slot number for multichannel scenario |
Damir Didjusto | 04d3c36 | 2013-01-07 14:30:53 -0800 | [diff] [blame] | 144 | The first value is for 8khz mode the |
| 145 | second is for 16khz |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 146 | Value is 1 |
| 147 | |
Damir Didjusto | 04d3c36 | 2013-01-07 14:30:53 -0800 | [diff] [blame] | 148 | - qcom,msm-cpudai-auxpcm-data: Data field - 0. The first value is |
| 149 | for 8khz mode, the second is for |
| 150 | 16khz |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 151 | |
Damir Didjusto | 04d3c36 | 2013-01-07 14:30:53 -0800 | [diff] [blame] | 152 | - 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 Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 155 | |
| 156 | [Second Level Nodes] |
| 157 | |
| 158 | Required 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 | |
| 169 | Required properties: |
| 170 | |
| 171 | - compatible : "qcom,msm-pcm-hostless" |
| 172 | |
Phani Kumar Uppalapati | 8b3a1bb | 2012-06-26 19:56:58 -0700 | [diff] [blame] | 173 | * msm-ocmem-audio |
| 174 | |
| 175 | Required properties: |
| 176 | |
| 177 | - compatible : "qcom,msm-ocmem-audio" |
| 178 | |
Phani Kumar Uppalapati | 3149295 | 2012-09-25 20:25:53 -0700 | [diff] [blame] | 179 | - qcom,msm_bus,name: Client name |
Phani Kumar Uppalapati | 8b3a1bb | 2012-06-26 19:56:58 -0700 | [diff] [blame] | 180 | |
Phani Kumar Uppalapati | 3149295 | 2012-09-25 20:25:53 -0700 | [diff] [blame] | 181 | - qcom,msm_bus,num_cases: Total number of use cases |
Phani Kumar Uppalapati | 8b3a1bb | 2012-06-26 19:56:58 -0700 | [diff] [blame] | 182 | |
Joonwoo Park | 4494581 | 2013-01-14 17:24:45 -0800 | [diff] [blame] | 183 | - qcom,msm_bus,active_only: Context flag for requests in active |
| 184 | or dual (active & sleep) contex |
Phani Kumar Uppalapati | 8b3a1bb | 2012-06-26 19:56:58 -0700 | [diff] [blame] | 185 | |
Phani Kumar Uppalapati | 3149295 | 2012-09-25 20:25:53 -0700 | [diff] [blame] | 186 | - qcom,msm_bus,num_paths: Total number of master-slave pairs |
Phani Kumar Uppalapati | 8b3a1bb | 2012-06-26 19:56:58 -0700 | [diff] [blame] | 187 | |
Joonwoo Park | 4494581 | 2013-01-14 17:24:45 -0800 | [diff] [blame] | 188 | - qcom,msm_bus,vectors: Arrays of unsigned integers |
| 189 | representing: |
| 190 | master-id, slave-id, arbitrated |
| 191 | bandwidth, |
| 192 | instantaneous bandwidth |
Joonwoo Park | f6574c7 | 2012-10-10 17:29:57 -0700 | [diff] [blame] | 193 | * wcd9xxx_intc |
| 194 | |
| 195 | Required properties: |
| 196 | |
| 197 | - compatible : "qcom,wcd9xxx-irq" |
| 198 | |
Joonwoo Park | 4494581 | 2013-01-14 17:24:45 -0800 | [diff] [blame] | 199 | - interrupt-controller : Mark this device node as an |
| 200 | interrupt controller |
Joonwoo Park | f6574c7 | 2012-10-10 17:29:57 -0700 | [diff] [blame] | 201 | |
| 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 Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 212 | Example: |
| 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 Singh | a3453a7 | 2012-07-03 12:31:09 -0700 | [diff] [blame] | 226 | qcom,msm-compr-dsp { |
| 227 | compatible = "qcom,msm-compr-dsp"; |
| 228 | }; |
| 229 | |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 230 | 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 Sudhir | 6f1a530 | 2013-01-17 12:28:15 -0800 | [diff] [blame] | 242 | 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 Singh | 169f1d4 | 2012-10-01 19:19:38 -0700 | [diff] [blame] | 250 | qcom,msm-dai-q6-hdmi { |
| 251 | compatible = "qcom,msm-dai-q6-hdmi"; |
| 252 | qcom,msm-dai-q6-dev-id = <8>; |
| 253 | }; |
| 254 | |
Joonwoo Park | 6572ac5 | 2012-07-10 17:17:00 -0700 | [diff] [blame] | 255 | 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 Uppalapati | 1d30309 | 2012-09-24 19:55:56 -0700 | [diff] [blame] | 266 | |
Phani Kumar Uppalapati | efad731 | 2012-10-09 18:43:36 -0700 | [diff] [blame] | 267 | 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 Uppalapati | 1d30309 | 2012-09-24 19:55:56 -0700 | [diff] [blame] | 297 | 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 Uppalapati | bebe738 | 2012-10-08 19:19:01 -0700 | [diff] [blame] | 307 | 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 Uppalapati | 1d30309 | 2012-09-24 19:55:56 -0700 | [diff] [blame] | 317 | 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 Naik | 984252f | 2012-12-06 16:13:33 -0800 | [diff] [blame] | 336 | |
| 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 Naik | 72e1b28 | 2012-12-19 11:49:07 -0800 | [diff] [blame] | 346 | |
| 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 Park | 6572ac5 | 2012-07-10 17:17:00 -0700 | [diff] [blame] | 351 | }; |
| 352 | |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 353 | qcom,msm-auxpcm { |
| 354 | compatible = "qcom,msm-auxpcm-resource"; |
| 355 | qcom,msm-cpudai-auxpcm-clk = "pcm_clk"; |
Damir Didjusto | 04d3c36 | 2013-01-07 14:30:53 -0800 | [diff] [blame] | 356 | 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 Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 363 | |
| 364 | qcom,msm-auxpcm-rx { |
Harmandeep Singh | a3453a7 | 2012-07-03 12:31:09 -0700 | [diff] [blame] | 365 | qcom,msm-auxpcm-dev-id = <4106>; |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 366 | compatible = "qcom,msm-auxpcm-dev"; |
| 367 | }; |
| 368 | |
| 369 | qcom,msm-auxpcm-tx { |
Harmandeep Singh | a3453a7 | 2012-07-03 12:31:09 -0700 | [diff] [blame] | 370 | qcom,msm-auxpcm-dev-id = <4107>; |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 371 | compatible = "qcom,msm-auxpcm-dev"; |
| 372 | }; |
| 373 | }; |
| 374 | |
| 375 | qcom,msm-pcm-hostless { |
| 376 | compatible = "qcom,msm-pcm-hostless"; |
| 377 | }; |
| 378 | |
Phani Kumar Uppalapati | 8b3a1bb | 2012-06-26 19:56:58 -0700 | [diff] [blame] | 379 | qcom,msm-ocmem-audio { |
| 380 | compatible = "qcom,msm-ocmem-audio"; |
Phani Kumar Uppalapati | 3149295 | 2012-09-25 20:25:53 -0700 | [diff] [blame] | 381 | 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 Uppalapati | 8b3a1bb | 2012-06-26 19:56:58 -0700 | [diff] [blame] | 388 | }; |
| 389 | |
Joonwoo Park | f6574c7 | 2012-10-10 17:29:57 -0700 | [diff] [blame] | 390 | 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 Kandi | 9ee87e4 | 2012-08-20 13:05:40 -0700 | [diff] [blame] | 399 | * MSM8974 ASoC Machine driver |
| 400 | |
| 401 | Required 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 Kandi | 79db1b0 | 2012-08-21 13:48:19 -0700 | [diff] [blame] | 407 | - 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 Didjusto | 04d3c36 | 2013-01-07 14:30:53 -0800 | [diff] [blame] | 411 | - 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 Kandi | 9ee87e4 | 2012-08-20 13:05:40 -0700 | [diff] [blame] | 415 | |
Kiran Kandi | 5265032 | 2012-12-11 15:49:39 -0800 | [diff] [blame] | 416 | Optional properties: |
| 417 | - qcom,hdmi-audio-rx: specifies if HDMI audio support is enabled or not. |
| 418 | |
Kiran Kandi | 9ee87e4 | 2012-08-20 13:05:40 -0700 | [diff] [blame] | 419 | Example: |
| 420 | |
| 421 | sound { |
| 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 Kandi | 79db1b0 | 2012-08-21 13:48:19 -0700 | [diff] [blame] | 453 | |
| 454 | qcom,cdc-mclk-gpios = <&pm8941_gpios 15 0>; |
| 455 | taiko-mclk-clk = <&pm8941_clkdiv1>; |
| 456 | qcom,taiko-mclk-clk-freq = <9600000>; |
Kiran Kandi | 5265032 | 2012-12-11 15:49:39 -0800 | [diff] [blame] | 457 | |
| 458 | qcom,hdmi-audio-rx; |
Damir Didjusto | 04d3c36 | 2013-01-07 14:30:53 -0800 | [diff] [blame] | 459 | |
| 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 Kandi | 9ee87e4 | 2012-08-20 13:05:40 -0700 | [diff] [blame] | 464 | }; |
Venkat Sudhir | 4bd983e | 2012-10-27 02:59:54 -0700 | [diff] [blame] | 465 | |
| 466 | * msm-dai-mi2s |
| 467 | |
| 468 | [First Level Nodes] |
| 469 | |
| 470 | Required properties: |
| 471 | |
| 472 | - compatible : "msm-dai-mi2s" |
| 473 | |
| 474 | [Second Level Nodes] |
| 475 | |
| 476 | Required properties: |
| 477 | |
| 478 | - compatible : "qcom,msm-dai-q6-mi2s" |
Joonwoo Park | 4494581 | 2013-01-14 17:24:45 -0800 | [diff] [blame] | 479 | - 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 Sudhir | 4bd983e | 2012-10-27 02:59:54 -0700 | [diff] [blame] | 495 | |
Joonwoo Park | 4494581 | 2013-01-14 17:24:45 -0800 | [diff] [blame] | 496 | - 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 Sudhir | 4bd983e | 2012-10-27 02:59:54 -0700 | [diff] [blame] | 501 | |
Joonwoo Park | 4494581 | 2013-01-14 17:24:45 -0800 | [diff] [blame] | 502 | - 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 Sudhir | 4bd983e | 2012-10-27 02:59:54 -0700 | [diff] [blame] | 507 | |
| 508 | Example: |
| 509 | |
| 510 | qcom,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 Sudhir | 64f6630 | 2012-10-30 09:30:16 -0700 | [diff] [blame] | 518 | }; |
| 519 | |
| 520 | * MSM9625 ASoC Machine driver |
| 521 | |
| 522 | Required 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 Sudhir | 459d6f5 | 2012-12-04 12:00:13 -0800 | [diff] [blame] | 531 | - 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 Sudhir | 64f6630 | 2012-10-30 09:30:16 -0700 | [diff] [blame] | 536 | |
| 537 | Example: |
| 538 | |
| 539 | sound { |
| 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 Sudhir | 459d6f5 | 2012-12-04 12:00:13 -0800 | [diff] [blame] | 571 | 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 Sudhir | 64f6630 | 2012-10-30 09:30:16 -0700 | [diff] [blame] | 576 | }; |
Venkat Sudhir | 480db8a | 2012-11-09 15:31:50 -0800 | [diff] [blame] | 577 | |
| 578 | * msm-adsp-loader |
| 579 | |
| 580 | Required 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 Park | 4494581 | 2013-01-14 17:24:45 -0800 | [diff] [blame] | 586 | 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 Sudhir | 480db8a | 2012-11-09 15:31:50 -0800 | [diff] [blame] | 589 | |
| 590 | Example: |
| 591 | |
| 592 | qcom,msm-adsp-loader { |
| 593 | compatible = "qcom,adsp-loader"; |
| 594 | qcom,adsp-state = <2>; |
| 595 | }; |