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 | |
Phani Kumar Uppalapati | 85b7c9b | 2013-02-19 09:59:47 -0800 | [diff] [blame] | 9 | - qcom,msm-pcm-dsp-id : device node id |
| 10 | |
| 11 | * msm-pcm-low-latency |
| 12 | |
| 13 | Required 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 Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 24 | * msm-pcm-routing |
| 25 | |
| 26 | Required properties: |
| 27 | |
| 28 | - compatible : "qcom,msm-pcm-routing" |
| 29 | |
| 30 | * msm-pcm-lpa |
| 31 | |
| 32 | Required properties: |
| 33 | |
| 34 | - compatible : "qcom,msm-pcm-lpa" |
| 35 | |
Harmandeep Singh | a3453a7 | 2012-07-03 12:31:09 -0700 | [diff] [blame] | 36 | * msm-compr-dsp |
| 37 | |
| 38 | Required properties: |
| 39 | |
| 40 | - compatible : "qcom,msm-compr-dsp" |
| 41 | |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 42 | * msm-voip-dsp |
| 43 | |
| 44 | Required properties: |
| 45 | |
| 46 | - compatible : "qcom,msm-voip-dsp" |
| 47 | |
Phani Kumar Uppalapati | 0878e9d | 2012-08-24 14:52:00 -0700 | [diff] [blame] | 48 | * msm-pcm-voice |
| 49 | |
| 50 | Required properties: |
| 51 | |
| 52 | - compatible : "qcom,msm-pcm-voice" |
| 53 | |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 54 | * msm-stub-codec |
| 55 | |
| 56 | Required properties: |
| 57 | |
| 58 | - compatible : "qcom,msm-stub-codec" |
| 59 | |
| 60 | * msm-dai-fe |
| 61 | |
| 62 | Required properties: |
| 63 | |
| 64 | - compatible : "qcom,msm-dai-fe" |
| 65 | |
Phani Kumar Uppalapati | 580884a | 2012-09-24 19:40:27 -0700 | [diff] [blame] | 66 | * msm-pcm-afe |
| 67 | |
| 68 | Required properties: |
| 69 | |
| 70 | - compatible : "qcom,msm-pcm-afe" |
| 71 | |
Venkat Sudhir | 6f1a530 | 2013-01-17 12:28:15 -0800 | [diff] [blame] | 72 | * msm-pcm-dtmf |
| 73 | |
| 74 | Required 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 | |
| 83 | Required 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 Singh | 169f1d4 | 2012-10-01 19:19:38 -0700 | [diff] [blame] | 89 | * msm-dai-q6-hdmi |
| 90 | |
| 91 | Required 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 Park | b91e48e | 2013-02-21 10:24:56 -0800 | [diff] [blame] | 99 | * msm-lsm-client |
| 100 | |
| 101 | Required properties: |
| 102 | |
| 103 | - compatible : "qcom,msm-lsm-client" |
| 104 | |
Joonwoo Park | 6572ac5 | 2012-07-10 17:17:00 -0700 | [diff] [blame] | 105 | * msm-dai-q6 |
| 106 | |
| 107 | [First Level Nodes] |
| 108 | |
| 109 | Required properties: |
| 110 | |
| 111 | - compatible : "msm-dai-q6" |
| 112 | |
Eugene Yasman | 570dcea | 2012-11-25 09:59:17 +0200 | [diff] [blame] | 113 | Optional properties: |
| 114 | |
| 115 | - qcom,ext-spk-amp-supply : External speaker amplifier power supply. |
| 116 | - qcom,ext-spk-amp-gpio : External speaker amplifier enable signal. |
| 117 | |
Joonwoo Park | 6572ac5 | 2012-07-10 17:17:00 -0700 | [diff] [blame] | 118 | [Second Level Nodes] |
| 119 | |
| 120 | Required properties: |
| 121 | |
| 122 | - compatible : "qcom,msm-dai-q6-dev" |
| 123 | - qcom,msm-dai-q6-dev-id : The slimbus multi channel port ID |
| 124 | Value is from 16384 to 16393 |
Phani Kumar Uppalapati | 1d30309 | 2012-09-24 19:55:56 -0700 | [diff] [blame] | 125 | BT SCO port ID value from 12288 to 12289 |
Joonwoo Park | 4494581 | 2013-01-14 17:24:45 -0800 | [diff] [blame] | 126 | RT Proxy port ID values from 224 to 225 and 240 to |
| 127 | 241 |
Phani Kumar Uppalapati | bebe738 | 2012-10-08 19:19:01 -0700 | [diff] [blame] | 128 | 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] | 129 | incall record Rx and TX port ID values from 32771 to 32772 |
| 130 | inCall Music Delivery port ID is 32773 |
Joonwoo Park | 6572ac5 | 2012-07-10 17:17:00 -0700 | [diff] [blame] | 131 | |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 132 | * msm-auxpcm |
| 133 | |
| 134 | [First Level Nodes] |
| 135 | |
| 136 | Required properties: |
| 137 | |
| 138 | - compatible : "qcom,msm-auxpcm-resource" |
| 139 | |
Damir Didjusto | 04d3c36 | 2013-01-07 14:30:53 -0800 | [diff] [blame] | 140 | - qcom,msm-cpudai-auxpcm-clk: clock for auxpcm. The first value is |
| 141 | for 8khz mode, the second is for |
| 142 | 16khz |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 143 | |
Damir Didjusto | 04d3c36 | 2013-01-07 14:30:53 -0800 | [diff] [blame] | 144 | - qcom,msm-cpudai-auxpcm-mode: mode information. The first value is |
| 145 | for 8khz mode, the second is for |
| 146 | 16khz |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 147 | 0 - for PCM |
| 148 | |
Damir Didjusto | 04d3c36 | 2013-01-07 14:30:53 -0800 | [diff] [blame] | 149 | - qcom,msm-cpudai-auxpcm-sync: sync information. The first value is |
| 150 | for 8khz mode, the second is for |
| 151 | 16khz |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 152 | |
Damir Didjusto | 04d3c36 | 2013-01-07 14:30:53 -0800 | [diff] [blame] | 153 | - qcom,msm-cpudai-auxpcm-frame: No.of bytes per frame. The first |
| 154 | value is for 8khz mode, the second |
| 155 | is for 16khz |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 156 | 5 - 256BPF |
Damir Didjusto | 04d3c36 | 2013-01-07 14:30:53 -0800 | [diff] [blame] | 157 | 4 - 128BPF |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 158 | |
Damir Didjusto | 04d3c36 | 2013-01-07 14:30:53 -0800 | [diff] [blame] | 159 | - qcom,msm-cpudai-auxpcm-quant: Type of quantization. The first |
| 160 | value is for 8khz mode, the second |
| 161 | is for 16khz |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 162 | 2 - Linear quantization |
| 163 | |
| 164 | - qcom,msm-cpudai-auxpcm-slot: Slot number for multichannel scenario |
Damir Didjusto | 04d3c36 | 2013-01-07 14:30:53 -0800 | [diff] [blame] | 165 | The first value is for 8khz mode the |
| 166 | second is for 16khz |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 167 | Value is 1 |
| 168 | |
Damir Didjusto | 04d3c36 | 2013-01-07 14:30:53 -0800 | [diff] [blame] | 169 | - qcom,msm-cpudai-auxpcm-data: Data field - 0. The first value is |
| 170 | for 8khz mode, the second is for |
| 171 | 16khz |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 172 | |
Damir Didjusto | 04d3c36 | 2013-01-07 14:30:53 -0800 | [diff] [blame] | 173 | - qcom,msm-cpudai-auxpcm-pcm-clk-rate: Clock rate for pcm - 2048000. The |
| 174 | first value is for 8khz mode, the |
| 175 | second is for auxpcm |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 176 | |
| 177 | [Second Level Nodes] |
| 178 | |
| 179 | Required Properties: |
| 180 | |
| 181 | - qcom,msm-auxpcm-dev-id: This property specifies the device |
| 182 | port id. |
| 183 | For Rx device, the port id is 4106 |
| 184 | and for Tx device, the port id is 4107 |
| 185 | |
| 186 | - compatible: "qcom,msm-auxpcm-dev" |
| 187 | |
| 188 | * msm-pcm-hostless |
| 189 | |
| 190 | Required properties: |
| 191 | |
| 192 | - compatible : "qcom,msm-pcm-hostless" |
| 193 | |
Phani Kumar Uppalapati | 8b3a1bb | 2012-06-26 19:56:58 -0700 | [diff] [blame] | 194 | * msm-ocmem-audio |
| 195 | |
| 196 | Required properties: |
| 197 | |
| 198 | - compatible : "qcom,msm-ocmem-audio" |
| 199 | |
Phani Kumar Uppalapati | 3149295 | 2012-09-25 20:25:53 -0700 | [diff] [blame] | 200 | - qcom,msm_bus,name: Client name |
Phani Kumar Uppalapati | 8b3a1bb | 2012-06-26 19:56:58 -0700 | [diff] [blame] | 201 | |
Phani Kumar Uppalapati | 3149295 | 2012-09-25 20:25:53 -0700 | [diff] [blame] | 202 | - qcom,msm_bus,num_cases: Total number of use cases |
Phani Kumar Uppalapati | 8b3a1bb | 2012-06-26 19:56:58 -0700 | [diff] [blame] | 203 | |
Joonwoo Park | 4494581 | 2013-01-14 17:24:45 -0800 | [diff] [blame] | 204 | - qcom,msm_bus,active_only: Context flag for requests in active |
| 205 | or dual (active & sleep) contex |
Phani Kumar Uppalapati | 8b3a1bb | 2012-06-26 19:56:58 -0700 | [diff] [blame] | 206 | |
Phani Kumar Uppalapati | 3149295 | 2012-09-25 20:25:53 -0700 | [diff] [blame] | 207 | - qcom,msm_bus,num_paths: Total number of master-slave pairs |
Phani Kumar Uppalapati | 8b3a1bb | 2012-06-26 19:56:58 -0700 | [diff] [blame] | 208 | |
Joonwoo Park | 4494581 | 2013-01-14 17:24:45 -0800 | [diff] [blame] | 209 | - qcom,msm_bus,vectors: Arrays of unsigned integers |
| 210 | representing: |
| 211 | master-id, slave-id, arbitrated |
| 212 | bandwidth, |
| 213 | instantaneous bandwidth |
Joonwoo Park | f6574c7 | 2012-10-10 17:29:57 -0700 | [diff] [blame] | 214 | * wcd9xxx_intc |
| 215 | |
| 216 | Required properties: |
| 217 | |
| 218 | - compatible : "qcom,wcd9xxx-irq" |
| 219 | |
Joonwoo Park | 4494581 | 2013-01-14 17:24:45 -0800 | [diff] [blame] | 220 | - interrupt-controller : Mark this device node as an |
| 221 | interrupt controller |
Joonwoo Park | f6574c7 | 2012-10-10 17:29:57 -0700 | [diff] [blame] | 222 | |
| 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 Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 233 | Example: |
| 234 | |
| 235 | qcom,msm-pcm { |
Phani Kumar Uppalapati | 85b7c9b | 2013-02-19 09:59:47 -0800 | [diff] [blame] | 236 | compatible = "qcom,msm-pcm-dsp"; |
| 237 | qcom,msm-pcm-dsp-id = <0>; |
| 238 | }; |
| 239 | |
| 240 | qcom,msm-pcm-low-latency { |
| 241 | compatible = "qcom,msm-pcm-dsp"; |
| 242 | qcom,msm-pcm-dsp-id = <1>; |
| 243 | qcom,msm-pcm-low-latency; |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 244 | }; |
| 245 | |
| 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 Singh | a3453a7 | 2012-07-03 12:31:09 -0700 | [diff] [blame] | 254 | qcom,msm-compr-dsp { |
| 255 | compatible = "qcom,msm-compr-dsp"; |
| 256 | }; |
| 257 | |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 258 | 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 Sudhir | 6f1a530 | 2013-01-17 12:28:15 -0800 | [diff] [blame] | 270 | 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 Singh | 169f1d4 | 2012-10-01 19:19:38 -0700 | [diff] [blame] | 278 | qcom,msm-dai-q6-hdmi { |
| 279 | compatible = "qcom,msm-dai-q6-hdmi"; |
| 280 | qcom,msm-dai-q6-dev-id = <8>; |
| 281 | }; |
| 282 | |
Joonwoo Park | 6572ac5 | 2012-07-10 17:17:00 -0700 | [diff] [blame] | 283 | 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 Uppalapati | 1d30309 | 2012-09-24 19:55:56 -0700 | [diff] [blame] | 294 | |
Phani Kumar Uppalapati | efad731 | 2012-10-09 18:43:36 -0700 | [diff] [blame] | 295 | 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 Uppalapati | 1d30309 | 2012-09-24 19:55:56 -0700 | [diff] [blame] | 325 | 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 Uppalapati | bebe738 | 2012-10-08 19:19:01 -0700 | [diff] [blame] | 335 | 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 Uppalapati | 1d30309 | 2012-09-24 19:55:56 -0700 | [diff] [blame] | 345 | 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 Naik | 984252f | 2012-12-06 16:13:33 -0800 | [diff] [blame] | 364 | |
| 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 Naik | 72e1b28 | 2012-12-19 11:49:07 -0800 | [diff] [blame] | 374 | |
| 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 Park | 6572ac5 | 2012-07-10 17:17:00 -0700 | [diff] [blame] | 379 | }; |
| 380 | |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 381 | qcom,msm-auxpcm { |
| 382 | compatible = "qcom,msm-auxpcm-resource"; |
| 383 | qcom,msm-cpudai-auxpcm-clk = "pcm_clk"; |
Damir Didjusto | 04d3c36 | 2013-01-07 14:30:53 -0800 | [diff] [blame] | 384 | qcom,msm-cpudai-auxpcm-mode = <0>, <0>; |
| 385 | qcom,msm-cpudai-auxpcm-sync = <1>, <1>; |
| 386 | qcom,msm-cpudai-auxpcm-frame = <5>, <4>; |
| 387 | qcom,msm-cpudai-auxpcm-quant = <2>, <2>; |
| 388 | qcom,msm-cpudai-auxpcm-slot = <1>, <1>; |
| 389 | qcom,msm-cpudai-auxpcm-data = <0>, <0>; |
| 390 | qcom,msm-cpudai-auxpcm-pcm-clk-rate = <2048000>, <2048000>; |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 391 | |
Banajit Goswami | 57b47c4 | 2013-04-04 19:13:22 -0700 | [diff] [blame] | 392 | qcom,msm-prim-auxpcm-rx { |
Harmandeep Singh | a3453a7 | 2012-07-03 12:31:09 -0700 | [diff] [blame] | 393 | qcom,msm-auxpcm-dev-id = <4106>; |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 394 | compatible = "qcom,msm-auxpcm-dev"; |
| 395 | }; |
| 396 | |
Banajit Goswami | 57b47c4 | 2013-04-04 19:13:22 -0700 | [diff] [blame] | 397 | qcom,msm-prim-auxpcm-tx { |
Harmandeep Singh | a3453a7 | 2012-07-03 12:31:09 -0700 | [diff] [blame] | 398 | qcom,msm-auxpcm-dev-id = <4107>; |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 399 | compatible = "qcom,msm-auxpcm-dev"; |
| 400 | }; |
Banajit Goswami | dd3d8da | 2013-04-03 11:17:08 -0700 | [diff] [blame] | 401 | |
| 402 | qcom,msm-sec-auxpcm-rx { |
| 403 | qcom,msm-auxpcm-dev-id = <4108>; |
| 404 | compatible = "qcom,msm-auxpcm-dev"; |
| 405 | }; |
| 406 | |
| 407 | qcom,msm-sec-auxpcm-tx { |
| 408 | qcom,msm-auxpcm-dev-id = <4109>; |
| 409 | compatible = "qcom,msm-auxpcm-dev"; |
| 410 | }; |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 411 | }; |
| 412 | |
| 413 | qcom,msm-pcm-hostless { |
| 414 | compatible = "qcom,msm-pcm-hostless"; |
| 415 | }; |
| 416 | |
Phani Kumar Uppalapati | 8b3a1bb | 2012-06-26 19:56:58 -0700 | [diff] [blame] | 417 | qcom,msm-ocmem-audio { |
| 418 | compatible = "qcom,msm-ocmem-audio"; |
Phani Kumar Uppalapati | 3149295 | 2012-09-25 20:25:53 -0700 | [diff] [blame] | 419 | qcom,msm_bus,name = "audio-ocmem"; |
| 420 | qcom,msm_bus,num_cases = <2>; |
| 421 | qcom,msm_bus,active_only = <0>; |
| 422 | qcom,msm_bus,num_paths = <1>; |
| 423 | qcom,msm_bus,vectors = |
| 424 | <11 604 0 0>, |
| 425 | <11 604 32505856 325058560>; |
Phani Kumar Uppalapati | 8b3a1bb | 2012-06-26 19:56:58 -0700 | [diff] [blame] | 426 | }; |
| 427 | |
Joonwoo Park | f6574c7 | 2012-10-10 17:29:57 -0700 | [diff] [blame] | 428 | wcd9xxx_intc: wcd9xxx-irq { |
| 429 | compatible = "qcom,wcd9xxx-irq"; |
| 430 | interrupt-controller; |
| 431 | #interrupt-cells = <1>; |
| 432 | interrupt-parent = <&msmgpio>; |
| 433 | interrupts = <72 0>; |
| 434 | interrupt-names = "cdc-int"; |
| 435 | }; |
| 436 | |
Kiran Kandi | 9ee87e4 | 2012-08-20 13:05:40 -0700 | [diff] [blame] | 437 | * MSM8974 ASoC Machine driver |
| 438 | |
| 439 | Required properties: |
| 440 | - compatible : "qcom,msm8974-audio-taiko" |
| 441 | - qcom,model : The user-visible name of this sound card. |
| 442 | - qcom,audio-routing : A list of the connections between audio components. |
| 443 | Each entry is a pair of strings, the first being the connection's sink, |
| 444 | the second being the connection's source. |
Kiran Kandi | 79db1b0 | 2012-08-21 13:48:19 -0700 | [diff] [blame] | 445 | - qcom,cdc-mclk-gpios : GPIO on which mclk signal is comming. |
Kiran Kandi | 79db1b0 | 2012-08-21 13:48:19 -0700 | [diff] [blame] | 446 | - qcom,taiko-mclk-clk-freq : Taiko mclk Freq in Hz. currently only 9600000Hz |
| 447 | is supported. |
Banajit Goswami | 57b47c4 | 2013-04-04 19:13:22 -0700 | [diff] [blame] | 448 | - qcom,prim-auxpcm-gpio-clk : GPIO on which Primary AUXPCM clk signal is coming. |
| 449 | - qcom,prim-auxpcm-gpio-sync : GPIO on which Primary AUXPCM SYNC signal is coming. |
| 450 | - qcom,prim-auxpcm-gpio-din : GPIO on which Primary AUXPCM DIN signal is coming. |
| 451 | - qcom,prim-auxpcm-gpio-dout : GPIO on which Primary AUXPCM DOUT signal is coming. |
Banajit Goswami | f8ce89a | 2013-04-09 18:02:15 -0700 | [diff] [blame] | 452 | - qcom,prim-auxpcm-gpio-set : set of GPIO lines used for Primary AUXPCM port |
| 453 | Possible Values: |
| 454 | prim-gpio-prim : Primary AUXPCM shares GPIOs with Primary MI2S |
| 455 | prim-gpio-tert : Primary AUXPCM shares GPIOs with Tertiary MI2S |
Banajit Goswami | dd3d8da | 2013-04-03 11:17:08 -0700 | [diff] [blame] | 456 | - qcom,sec-auxpcm-gpio-clk : GPIO on which Secondary AUXPCM clk signal is coming. |
| 457 | - qcom,sec-auxpcm-gpio-sync : GPIO on which Secondary AUXPCM SYNC signal is coming. |
| 458 | - qcom,sec-auxpcm-gpio-din : GPIO on which Secondary AUXPCM DIN signal is coming. |
| 459 | - qcom,sec-auxpcm-gpio-dout : GPIO on which Secondary AUXPCM DOUT signal is coming. |
Fred Oh | fcc8e93 | 2013-03-06 20:47:39 -0800 | [diff] [blame] | 460 | - qcom,us-euro-gpios : GPIO on which gnd/mic swap signal is coming. |
Kiran Kandi | 9ee87e4 | 2012-08-20 13:05:40 -0700 | [diff] [blame] | 461 | |
Kiran Kandi | 5265032 | 2012-12-11 15:49:39 -0800 | [diff] [blame] | 462 | Optional properties: |
| 463 | - qcom,hdmi-audio-rx: specifies if HDMI audio support is enabled or not. |
| 464 | |
Kiran Kandi | 9ee87e4 | 2012-08-20 13:05:40 -0700 | [diff] [blame] | 465 | Example: |
| 466 | |
| 467 | sound { |
| 468 | compatible = "qcom,msm8974-audio-taiko"; |
| 469 | qcom,model = "msm8974-taiko-snd-card"; |
| 470 | |
| 471 | qcom,audio-routing = |
| 472 | "RX_BIAS", "MCLK", |
| 473 | "LDO_H", "MCLK", |
| 474 | "HEADPHONE", "LDO_H", |
| 475 | "Ext Spk Bottom Pos", "LINEOUT1", |
| 476 | "Ext Spk Bottom Neg", "LINEOUT3", |
| 477 | "Ext Spk Top Pos", "LINEOUT2", |
| 478 | "Ext Spk Top Neg", "LINEOUT4", |
| 479 | "AMIC1", "MIC BIAS1 Internal1", |
| 480 | "MIC BIAS1 Internal1", "Handset Mic", |
| 481 | "AMIC2", "MIC BIAS2 External", |
| 482 | "MIC BIAS2 External", "Headset Mic", |
| 483 | "AMIC3", "MIC BIAS3 Internal1", |
| 484 | "MIC BIAS3 Internal1", "ANCRight Headset Mic", |
| 485 | "AMIC4", "MIC BIAS1 Internal2", |
| 486 | "MIC BIAS1 Internal2", "ANCLeft Headset Mic", |
| 487 | "DMIC1", "MIC BIAS1 External", |
| 488 | "MIC BIAS1 External", "Digital Mic1", |
| 489 | "DMIC2", "MIC BIAS1 External", |
| 490 | "MIC BIAS1 External", "Digital Mic2", |
| 491 | "DMIC3", "MIC BIAS3 External", |
| 492 | "MIC BIAS3 External", "Digital Mic3", |
| 493 | "DMIC4", "MIC BIAS3 External", |
| 494 | "MIC BIAS3 External", "Digital Mic4", |
| 495 | "DMIC5", "MIC BIAS4 External", |
| 496 | "MIC BIAS4 External", "Digital Mic5", |
| 497 | "DMIC6", "MIC BIAS4 External", |
| 498 | "MIC BIAS4 External", "Digital Mic6"; |
Kiran Kandi | 79db1b0 | 2012-08-21 13:48:19 -0700 | [diff] [blame] | 499 | |
| 500 | qcom,cdc-mclk-gpios = <&pm8941_gpios 15 0>; |
Kiran Kandi | 79db1b0 | 2012-08-21 13:48:19 -0700 | [diff] [blame] | 501 | qcom,taiko-mclk-clk-freq = <9600000>; |
Fred Oh | fcc8e93 | 2013-03-06 20:47:39 -0800 | [diff] [blame] | 502 | qcom,us-euro-gpios = <&pm8941_gpios 20 0>; |
Kiran Kandi | 5265032 | 2012-12-11 15:49:39 -0800 | [diff] [blame] | 503 | |
| 504 | qcom,hdmi-audio-rx; |
Damir Didjusto | 04d3c36 | 2013-01-07 14:30:53 -0800 | [diff] [blame] | 505 | |
Banajit Goswami | 57b47c4 | 2013-04-04 19:13:22 -0700 | [diff] [blame] | 506 | qcom,prim-auxpcm-gpio-clk = <&msmgpio 65 0>; |
| 507 | qcom,prim-auxpcm-gpio-sync = <&msmgpio 66 0>; |
| 508 | qcom,prim-auxpcm-gpio-din = <&msmgpio 67 0>; |
| 509 | qcom,prim-auxpcm-gpio-dout = <&msmgpio 68 0>; |
Banajit Goswami | f8ce89a | 2013-04-09 18:02:15 -0700 | [diff] [blame] | 510 | qcom,prim-auxpcm-gpio-set = "prim-gpio-prim"; |
Banajit Goswami | dd3d8da | 2013-04-03 11:17:08 -0700 | [diff] [blame] | 511 | qcom,sec-auxpcm-gpio-clk = <&msmgpio 79 0>; |
| 512 | qcom,sec-auxpcm-gpio-sync = <&msmgpio 80 0>; |
| 513 | qcom,sec-auxpcm-gpio-din = <&msmgpio 81 0>; |
| 514 | qcom,sec-auxpcm-gpio-dout = <&msmgpio 82 0>; |
Kiran Kandi | 9ee87e4 | 2012-08-20 13:05:40 -0700 | [diff] [blame] | 515 | }; |
Venkat Sudhir | 4bd983e | 2012-10-27 02:59:54 -0700 | [diff] [blame] | 516 | |
| 517 | * msm-dai-mi2s |
| 518 | |
| 519 | [First Level Nodes] |
| 520 | |
| 521 | Required properties: |
| 522 | |
| 523 | - compatible : "msm-dai-mi2s" |
| 524 | |
| 525 | [Second Level Nodes] |
| 526 | |
| 527 | Required properties: |
| 528 | |
| 529 | - compatible : "qcom,msm-dai-q6-mi2s" |
Joonwoo Park | 4494581 | 2013-01-14 17:24:45 -0800 | [diff] [blame] | 530 | - qcom,msm-dai-q6-mi2s-dev-id: MSM or MDM can use Slimbus or I2S interface to |
| 531 | transfer data to (WCD9XXX) codec. |
| 532 | If slimbus interface is used then "msm-dai-q6" |
| 533 | needs to be filled with correct data for |
| 534 | slimbus interface. |
| 535 | The sections "msm-dai-mi2s" is used by MDM or |
| 536 | MSM to use I2S interface with codec. |
| 537 | This section is used by CPU driver in ASOC MSM |
| 538 | to configure MI2S interface. MSM internally |
| 539 | has multiple MI2S namely Primary, Secondary, |
| 540 | Tertiary and Quaternary MI2S. |
| 541 | They are represented with id 0, 1, 2, 3 |
| 542 | respectively. |
| 543 | The field "qcom,msm-dai-q6-mi2s-dev-id" |
| 544 | represents which of the MI2S block is used. |
| 545 | These MI2S are connected to I2S interface. |
Venkat Sudhir | 4bd983e | 2012-10-27 02:59:54 -0700 | [diff] [blame] | 546 | |
Joonwoo Park | 4494581 | 2013-01-14 17:24:45 -0800 | [diff] [blame] | 547 | - qcom,msm-mi2s-rx-lines: Each MI2S interface in MSM has one or more SD |
| 548 | lines. These lines are used for data transfer |
| 549 | between codec and MSM. |
| 550 | This element in indicates which output RX lines |
| 551 | are used in the MI2S interface. |
Venkat Sudhir | 4bd983e | 2012-10-27 02:59:54 -0700 | [diff] [blame] | 552 | |
Joonwoo Park | 4494581 | 2013-01-14 17:24:45 -0800 | [diff] [blame] | 553 | - qcom,msm-mi2s-tx-lines: Each MI2S interface in MSM has one or more SD |
| 554 | lines. These lines are used for data transfer |
| 555 | between codec and MSM. |
| 556 | This element in indicates which input TX lines |
| 557 | are used in the MI2S interface. |
Venkat Sudhir | 4bd983e | 2012-10-27 02:59:54 -0700 | [diff] [blame] | 558 | |
| 559 | Example: |
| 560 | |
| 561 | qcom,msm-dai-mi2s { |
| 562 | compatible = "qcom,msm-dai-mi2s"; |
| 563 | qcom,msm-dai-q6-mi2s-prim { |
| 564 | compatible = "qcom,msm-dai-q6-mi2s"; |
| 565 | qcom,msm-dai-q6-mi2s-dev-id = <0>; |
| 566 | qcom,msm-mi2s-rx-lines = <2>; |
| 567 | qcom,msm-mi2s-tx-lines = <1>; |
| 568 | }; |
Venkat Sudhir | 64f6630 | 2012-10-30 09:30:16 -0700 | [diff] [blame] | 569 | }; |
| 570 | |
| 571 | * MSM9625 ASoC Machine driver |
| 572 | |
| 573 | Required properties: |
| 574 | - compatible : "qcom,mdm9625-audio-taiko" |
| 575 | - qcom,model : The user-visible name of this sound card. |
| 576 | - qcom,audio-routing : A list of the connections between audio components. |
| 577 | Each entry is a pair of strings, the first being the connection's sink, |
| 578 | the second being the connection's source. |
| 579 | - qcom,taiko-mclk-clk-freq : Master clock value given to codec. Some WCD9XXX |
| 580 | codec can run at different mclk values. Mclk value can be 9.6MHz or 12.288MHz. |
| 581 | This element represents the value for MCLK provided to codec. |
Venkat Sudhir | 459d6f5 | 2012-12-04 12:00:13 -0800 | [diff] [blame] | 582 | - prim-i2s-gpio-ws : Specifies gpio assigned for primary WS I2S pin. |
| 583 | - prim-i2s-gpio-din : Specifies gpio assigned for primary DIN I2S pin. |
| 584 | - prim-i2s-gpio-dout : Specifies gpio assigned for primary DOUT I2S pin. |
| 585 | - prim-i2s-gpio-sclk : Specifies gpio assigned for primary SCLK I2S pin. |
| 586 | - prim-i2s-gpio-mclk : Specifies gpio assigned for MCLK I2S pin. |
Venkat Sudhir | 64f6630 | 2012-10-30 09:30:16 -0700 | [diff] [blame] | 587 | |
| 588 | Example: |
| 589 | |
| 590 | sound { |
| 591 | compatible = "qcom,mdm9625-audio-taiko"; |
| 592 | qcom,model = "mdm9625-taiko-i2s-snd-card"; |
| 593 | |
| 594 | qcom,audio-routing = |
| 595 | "RX_BIAS", "MCLK", |
| 596 | "LDO_H", "MCLK", |
| 597 | "Ext Spk Bottom Pos", "LINEOUT1", |
| 598 | "Ext Spk Bottom Neg", "LINEOUT3", |
| 599 | "Ext Spk Top Pos", "LINEOUT2", |
| 600 | "Ext Spk Top Neg", "LINEOUT4", |
| 601 | "AMIC1", "MIC BIAS1 External", |
| 602 | "MIC BIAS1 External", "Handset Mic", |
| 603 | "AMIC2", "MIC BIAS2 External", |
| 604 | "MIC BIAS2 External", "Headset Mic", |
| 605 | "AMIC3", "MIC BIAS3 Internal1", |
| 606 | "MIC BIAS3 Internal1", "ANCRight Headset Mic", |
| 607 | "AMIC4", "MIC BIAS1 Internal2", |
| 608 | "MIC BIAS1 Internal2", "ANCLeft Headset Mic", |
| 609 | "DMIC1", "MIC BIAS1 External", |
| 610 | "MIC BIAS1 External", "Digital Mic1", |
| 611 | "DMIC2", "MIC BIAS1 External", |
| 612 | "MIC BIAS1 External", "Digital Mic2", |
| 613 | "DMIC3", "MIC BIAS3 External", |
| 614 | "MIC BIAS3 External", "Digital Mic3", |
| 615 | "DMIC4", "MIC BIAS3 External", |
| 616 | "MIC BIAS3 External", "Digital Mic4", |
| 617 | "DMIC5", "MIC BIAS4 External", |
| 618 | "MIC BIAS4 External", "Digital Mic5", |
| 619 | "DMIC6", "MIC BIAS4 External", |
| 620 | "MIC BIAS4 External", "Digital Mic6"; |
| 621 | qcom,taiko-mclk-clk-freq = <12288000>; |
Venkat Sudhir | 459d6f5 | 2012-12-04 12:00:13 -0800 | [diff] [blame] | 622 | prim-i2s-gpio-ws = <&msmgpio 12 0>; |
| 623 | prim-i2s-gpio-din = <&msmgpio 13 0>; |
| 624 | prim-i2s-gpio-dout = <&msmgpio 14 0>; |
| 625 | prim-i2s-gpio-sclk = <&msmgpio 15 0>; |
| 626 | prim-i2s-gpio-mclk = <&msmgpio 71 0>; |
Venkat Sudhir | 64f6630 | 2012-10-30 09:30:16 -0700 | [diff] [blame] | 627 | }; |
Venkat Sudhir | 480db8a | 2012-11-09 15:31:50 -0800 | [diff] [blame] | 628 | |
| 629 | * msm-adsp-loader |
| 630 | |
| 631 | Required properties: |
Fred Oh | de9438a | 2013-04-04 11:29:12 -0700 | [diff] [blame] | 632 | - compatible : "qcom,adsp-loader" |
Venkat Sudhir | 480db8a | 2012-11-09 15:31:50 -0800 | [diff] [blame] | 633 | - qcom,adsp-state: |
| 634 | It is possible that some MSM use PIL to load the ADSP image. While |
| 635 | other MSM may use SBL to load the ADSP image at boot. Audio APR needs |
| 636 | 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] | 637 | to ADSP. so adsp-state represents the state of ADSP to ADSP loader. |
| 638 | Value of 0 indicates ADSP loader needs to use PIL and value of 2 means |
| 639 | ADSP image is already loaded by SBL. |
Venkat Sudhir | 480db8a | 2012-11-09 15:31:50 -0800 | [diff] [blame] | 640 | |
| 641 | Example: |
| 642 | |
| 643 | qcom,msm-adsp-loader { |
| 644 | compatible = "qcom,adsp-loader"; |
| 645 | qcom,adsp-state = <2>; |
| 646 | }; |
Fred Oh | de9438a | 2013-04-04 11:29:12 -0700 | [diff] [blame] | 647 | |
| 648 | * msm-audio-ion |
| 649 | |
| 650 | Required properties: |
| 651 | - compatible : "qcom,msm-audio-ion" |
| 652 | |
| 653 | Optional properties: |
| 654 | - qcom,smmu-enabled: |
| 655 | It is possible that some MSM have SMMU in ADSP. While other MSM use |
| 656 | no SMMU. Audio lib introduce wrapper for ION APIs. The wrapper needs |
| 657 | presence of SMMU in ADSP to handle ION APIs differently. |
| 658 | Presence of this property means ADSP has SMMU in it. |
| 659 | |
| 660 | Example: |
| 661 | |
| 662 | qcom,msm-audio-ion { |
| 663 | compatible = "qcom,msm-audio-ion; |
| 664 | qcom,smmu-enabled; |
| 665 | }; |