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 | |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 134 | Required properties: |
| 135 | |
Patrick Lai | afd8212 | 2013-06-15 22:50:04 -0700 | [diff] [blame] | 136 | - compatible : "qcom,msm-auxpcm-dev" |
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-mode: mode information. The first value is |
| 139 | for 8khz mode, the second is for |
| 140 | 16khz |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 141 | 0 - for PCM |
| 142 | |
Damir Didjusto | 04d3c36 | 2013-01-07 14:30:53 -0800 | [diff] [blame] | 143 | - qcom,msm-cpudai-auxpcm-sync: sync information. The first value is |
| 144 | for 8khz mode, the second is for |
| 145 | 16khz |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 146 | |
Damir Didjusto | 04d3c36 | 2013-01-07 14:30:53 -0800 | [diff] [blame] | 147 | - qcom,msm-cpudai-auxpcm-frame: No.of bytes per frame. The first |
| 148 | value is for 8khz mode, the second |
| 149 | is for 16khz |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 150 | 5 - 256BPF |
Damir Didjusto | 04d3c36 | 2013-01-07 14:30:53 -0800 | [diff] [blame] | 151 | 4 - 128BPF |
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-quant: Type of quantization. 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 | 2 - Linear quantization |
| 157 | |
| 158 | - qcom,msm-cpudai-auxpcm-slot: Slot number for multichannel scenario |
Damir Didjusto | 04d3c36 | 2013-01-07 14:30:53 -0800 | [diff] [blame] | 159 | The first value is for 8khz mode the |
| 160 | second is for 16khz |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 161 | Value is 1 |
| 162 | |
Damir Didjusto | 04d3c36 | 2013-01-07 14:30:53 -0800 | [diff] [blame] | 163 | - qcom,msm-cpudai-auxpcm-data: Data field - 0. The first value is |
| 164 | for 8khz mode, the second is for |
| 165 | 16khz |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 166 | |
Damir Didjusto | 04d3c36 | 2013-01-07 14:30:53 -0800 | [diff] [blame] | 167 | - qcom,msm-cpudai-auxpcm-pcm-clk-rate: Clock rate for pcm - 2048000. The |
| 168 | first value is for 8khz mode, the |
| 169 | second is for auxpcm |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 170 | |
Patrick Lai | afd8212 | 2013-06-15 22:50:04 -0700 | [diff] [blame] | 171 | - qcom,msm-auxpcm-interface: name of AUXPCM interface "primary" |
| 172 | indicates primary AUXPCM interface |
| 173 | "secondary" indicates secondary |
| 174 | AUXPCM interface |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 175 | |
| 176 | * msm-pcm-hostless |
| 177 | |
| 178 | Required properties: |
| 179 | |
| 180 | - compatible : "qcom,msm-pcm-hostless" |
| 181 | |
Phani Kumar Uppalapati | 8b3a1bb | 2012-06-26 19:56:58 -0700 | [diff] [blame] | 182 | * msm-ocmem-audio |
| 183 | |
| 184 | Required properties: |
| 185 | |
| 186 | - compatible : "qcom,msm-ocmem-audio" |
| 187 | |
Phani Kumar Uppalapati | 3149295 | 2012-09-25 20:25:53 -0700 | [diff] [blame] | 188 | - qcom,msm_bus,name: Client name |
Phani Kumar Uppalapati | 8b3a1bb | 2012-06-26 19:56:58 -0700 | [diff] [blame] | 189 | |
Phani Kumar Uppalapati | 3149295 | 2012-09-25 20:25:53 -0700 | [diff] [blame] | 190 | - qcom,msm_bus,num_cases: Total number of use cases |
Phani Kumar Uppalapati | 8b3a1bb | 2012-06-26 19:56:58 -0700 | [diff] [blame] | 191 | |
Joonwoo Park | 4494581 | 2013-01-14 17:24:45 -0800 | [diff] [blame] | 192 | - qcom,msm_bus,active_only: Context flag for requests in active |
| 193 | or dual (active & sleep) contex |
Phani Kumar Uppalapati | 8b3a1bb | 2012-06-26 19:56:58 -0700 | [diff] [blame] | 194 | |
Phani Kumar Uppalapati | 3149295 | 2012-09-25 20:25:53 -0700 | [diff] [blame] | 195 | - qcom,msm_bus,num_paths: Total number of master-slave pairs |
Phani Kumar Uppalapati | 8b3a1bb | 2012-06-26 19:56:58 -0700 | [diff] [blame] | 196 | |
Joonwoo Park | 4494581 | 2013-01-14 17:24:45 -0800 | [diff] [blame] | 197 | - qcom,msm_bus,vectors: Arrays of unsigned integers |
| 198 | representing: |
| 199 | master-id, slave-id, arbitrated |
| 200 | bandwidth, |
| 201 | instantaneous bandwidth |
Joonwoo Park | f6574c7 | 2012-10-10 17:29:57 -0700 | [diff] [blame] | 202 | * wcd9xxx_intc |
| 203 | |
| 204 | Required properties: |
| 205 | |
| 206 | - compatible : "qcom,wcd9xxx-irq" |
| 207 | |
Joonwoo Park | 4494581 | 2013-01-14 17:24:45 -0800 | [diff] [blame] | 208 | - interrupt-controller : Mark this device node as an |
| 209 | interrupt controller |
Joonwoo Park | f6574c7 | 2012-10-10 17:29:57 -0700 | [diff] [blame] | 210 | |
| 211 | - #interrupt-cells : Should be 1 |
| 212 | |
| 213 | - interrupt-parent : Parent interrupt controller |
| 214 | |
| 215 | - interrupts : Interrupt number on the parent |
| 216 | interrupt controller |
| 217 | |
| 218 | - interrupt-names : Name of interrupt on the parent |
| 219 | interrupt controller |
| 220 | |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 221 | Example: |
| 222 | |
| 223 | qcom,msm-pcm { |
Phani Kumar Uppalapati | 85b7c9b | 2013-02-19 09:59:47 -0800 | [diff] [blame] | 224 | compatible = "qcom,msm-pcm-dsp"; |
| 225 | qcom,msm-pcm-dsp-id = <0>; |
| 226 | }; |
| 227 | |
| 228 | qcom,msm-pcm-low-latency { |
| 229 | compatible = "qcom,msm-pcm-dsp"; |
| 230 | qcom,msm-pcm-dsp-id = <1>; |
| 231 | qcom,msm-pcm-low-latency; |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 232 | }; |
| 233 | |
| 234 | qcom,msm-pcm-routing { |
| 235 | compatible = "qcom,msm-pcm-routing"; |
| 236 | }; |
| 237 | |
| 238 | qcom,msm-pcm-lpa { |
| 239 | compatible = "qcom,msm-pcm-lpa"; |
| 240 | }; |
| 241 | |
Harmandeep Singh | a3453a7 | 2012-07-03 12:31:09 -0700 | [diff] [blame] | 242 | qcom,msm-compr-dsp { |
| 243 | compatible = "qcom,msm-compr-dsp"; |
| 244 | }; |
| 245 | |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 246 | qcom,msm-voip-dsp { |
| 247 | compatible = "qcom,msm-voip-dsp"; |
| 248 | }; |
| 249 | |
| 250 | qcom,msm-stub-codec { |
| 251 | compatible = "qcom,msm-stub-codec"; |
| 252 | }; |
| 253 | |
| 254 | qcom,msm-dai-fe { |
| 255 | compatible = "qcom,msm-dai-fe"; |
| 256 | }; |
| 257 | |
Venkat Sudhir | 6f1a530 | 2013-01-17 12:28:15 -0800 | [diff] [blame] | 258 | qcom,msm-pcm-dtmf { |
| 259 | compatible = "qcom,msm-pcm-dtmf"; |
| 260 | }; |
| 261 | |
| 262 | qcom,msm-dai-stub { |
| 263 | compatible = "qcom,msm-dai-stub"; |
| 264 | }; |
| 265 | |
Harmandeep Singh | 169f1d4 | 2012-10-01 19:19:38 -0700 | [diff] [blame] | 266 | qcom,msm-dai-q6-hdmi { |
| 267 | compatible = "qcom,msm-dai-q6-hdmi"; |
| 268 | qcom,msm-dai-q6-dev-id = <8>; |
| 269 | }; |
| 270 | |
Joonwoo Park | 6572ac5 | 2012-07-10 17:17:00 -0700 | [diff] [blame] | 271 | qcom,msm-dai-q6 { |
| 272 | compatible = "qcom,msm-dai-q6"; |
| 273 | qcom,msm-dai-q6-sb-0-rx { |
| 274 | compatible = "qcom,msm-dai-q6-dev"; |
| 275 | qcom,msm-dai-q6-dev-id = <16384>; |
| 276 | }; |
| 277 | |
| 278 | qcom,msm-dai-q6-sb-0-tx { |
| 279 | compatible = "qcom,msm-dai-q6-dev"; |
| 280 | qcom,msm-dai-q6-dev-id = <16385>; |
| 281 | }; |
Phani Kumar Uppalapati | 1d30309 | 2012-09-24 19:55:56 -0700 | [diff] [blame] | 282 | |
Phani Kumar Uppalapati | efad731 | 2012-10-09 18:43:36 -0700 | [diff] [blame] | 283 | qcom,msm-dai-q6-sb-1-rx { |
| 284 | compatible = "qcom,msm-dai-q6-dev"; |
| 285 | qcom,msm-dai-q6-dev-id = <16386>; |
| 286 | }; |
| 287 | |
| 288 | qcom,msm-dai-q6-sb-1-tx { |
| 289 | compatible = "qcom,msm-dai-q6-dev"; |
| 290 | qcom,msm-dai-q6-dev-id = <16387>; |
| 291 | }; |
| 292 | |
| 293 | qcom,msm-dai-q6-sb-3-rx { |
| 294 | compatible = "qcom,msm-dai-q6-dev"; |
| 295 | qcom,msm-dai-q6-dev-id = <16390>; |
| 296 | }; |
| 297 | |
| 298 | qcom,msm-dai-q6-sb-3-tx { |
| 299 | compatible = "qcom,msm-dai-q6-dev"; |
| 300 | qcom,msm-dai-q6-dev-id = <16391>; |
| 301 | }; |
| 302 | |
| 303 | qcom,msm-dai-q6-sb-4-rx { |
| 304 | compatible = "qcom,msm-dai-q6-dev"; |
| 305 | qcom,msm-dai-q6-dev-id = <16392>; |
| 306 | }; |
| 307 | |
| 308 | qcom,msm-dai-q6-sb-4-tx { |
| 309 | compatible = "qcom,msm-dai-q6-dev"; |
| 310 | qcom,msm-dai-q6-dev-id = <16393>; |
| 311 | }; |
| 312 | |
Phani Kumar Uppalapati | 1d30309 | 2012-09-24 19:55:56 -0700 | [diff] [blame] | 313 | qcom,msm-dai-q6-bt-sco-rx { |
| 314 | compatible = "qcom,msm-dai-q6-dev"; |
| 315 | qcom,msm-dai-q6-dev-id = <12288>; |
| 316 | }; |
| 317 | |
| 318 | qcom,msm-dai-q6-bt-sco-tx { |
| 319 | compatible = "qcom,msm-dai-q6-dev"; |
| 320 | qcom,msm-dai-q6-dev-id = <12289>; |
| 321 | }; |
| 322 | |
Phani Kumar Uppalapati | bebe738 | 2012-10-08 19:19:01 -0700 | [diff] [blame] | 323 | qcom,msm-dai-q6-int-fm-rx { |
| 324 | compatible = "qcom,msm-dai-q6-dev"; |
| 325 | qcom,msm-dai-q6-dev-id = <12292>; |
| 326 | }; |
| 327 | |
| 328 | qcom,msm-dai-q6-int-fm-tx { |
| 329 | compatible = "qcom,msm-dai-q6-dev"; |
| 330 | qcom,msm-dai-q6-dev-id = <12293>; |
| 331 | }; |
| 332 | |
Phani Kumar Uppalapati | 1d30309 | 2012-09-24 19:55:56 -0700 | [diff] [blame] | 333 | qcom,msm-dai-q6-be-afe-pcm-rx { |
| 334 | compatible = "qcom,msm-dai-q6-dev"; |
| 335 | qcom,msm-dai-q6-dev-id = <224>; |
| 336 | }; |
| 337 | |
| 338 | qcom,msm-dai-q6-be-afe-pcm-tx { |
| 339 | compatible = "qcom,msm-dai-q6-dev"; |
| 340 | qcom,msm-dai-q6-dev-id = <225>; |
| 341 | }; |
| 342 | |
| 343 | qcom,msm-dai-q6-afe-proxy-rx { |
| 344 | compatible = "qcom,msm-dai-q6-dev"; |
| 345 | qcom,msm-dai-q6-dev-id = <241>; |
| 346 | }; |
| 347 | |
| 348 | qcom,msm-dai-q6-afe-proxy-tx { |
| 349 | compatible = "qcom,msm-dai-q6-dev"; |
| 350 | qcom,msm-dai-q6-dev-id = <240>; |
| 351 | }; |
Mohan Kumar Gubbihalli Lachma Naik | 984252f | 2012-12-06 16:13:33 -0800 | [diff] [blame] | 352 | |
| 353 | qcom,msm-dai-q6-incall-record-rx { |
| 354 | compatible = "qcom,msm-dai-q6-dev"; |
| 355 | qcom,msm-dai-q6-dev-id = <32771>; |
| 356 | }; |
| 357 | |
| 358 | qcom,msm-dai-q6-incall-record-tx { |
| 359 | compatible = "qcom,msm-dai-q6-dev"; |
| 360 | qcom,msm-dai-q6-dev-id = <32772>; |
| 361 | }; |
Mohan Kumar Gubbihalli Lachma Naik | 72e1b28 | 2012-12-19 11:49:07 -0800 | [diff] [blame] | 362 | |
| 363 | qcom,msm-dai-q6-incall-music-rx { |
| 364 | compatible = "qcom,msm-dai-q6-dev"; |
| 365 | qcom,msm-dai-q6-dev-id = <32773>; |
| 366 | }; |
Joonwoo Park | 6572ac5 | 2012-07-10 17:17:00 -0700 | [diff] [blame] | 367 | }; |
| 368 | |
Patrick Lai | afd8212 | 2013-06-15 22:50:04 -0700 | [diff] [blame] | 369 | qcom,msm-pri-auxpcm { |
| 370 | qcom,msm-cpudai-auxpcm-mode = <1>, <1>; |
| 371 | qcom,msm-cpudai-auxpcm-sync = <1>, <1>; |
| 372 | qcom,msm-cpudai-auxpcm-frame = <5>, <4>; |
| 373 | qcom,msm-cpudai-auxpcm-quant = <2>, <2>; |
| 374 | qcom,msm-cpudai-auxpcm-slot = <1>, <1>; |
| 375 | qcom,msm-cpudai-auxpcm-data = <0>, <0>; |
| 376 | qcom,msm-cpudai-auxpcm-pcm-clk-rate = <2048000>, <2048000>; |
| 377 | qcom,msm-auxpcm-interface = "primary"; |
| 378 | compatible = "qcom,msm-auxpcm-dev"; |
| 379 | }; |
Phani Kumar Uppalapati | 87841c8 | 2012-06-14 21:28:43 -0700 | [diff] [blame] | 380 | |
| 381 | qcom,msm-pcm-hostless { |
| 382 | compatible = "qcom,msm-pcm-hostless"; |
| 383 | }; |
| 384 | |
Phani Kumar Uppalapati | 8b3a1bb | 2012-06-26 19:56:58 -0700 | [diff] [blame] | 385 | qcom,msm-ocmem-audio { |
| 386 | compatible = "qcom,msm-ocmem-audio"; |
Phani Kumar Uppalapati | 3149295 | 2012-09-25 20:25:53 -0700 | [diff] [blame] | 387 | qcom,msm_bus,name = "audio-ocmem"; |
| 388 | qcom,msm_bus,num_cases = <2>; |
| 389 | qcom,msm_bus,active_only = <0>; |
| 390 | qcom,msm_bus,num_paths = <1>; |
| 391 | qcom,msm_bus,vectors = |
| 392 | <11 604 0 0>, |
| 393 | <11 604 32505856 325058560>; |
Phani Kumar Uppalapati | 8b3a1bb | 2012-06-26 19:56:58 -0700 | [diff] [blame] | 394 | }; |
| 395 | |
Joonwoo Park | f6574c7 | 2012-10-10 17:29:57 -0700 | [diff] [blame] | 396 | wcd9xxx_intc: wcd9xxx-irq { |
| 397 | compatible = "qcom,wcd9xxx-irq"; |
| 398 | interrupt-controller; |
| 399 | #interrupt-cells = <1>; |
| 400 | interrupt-parent = <&msmgpio>; |
| 401 | interrupts = <72 0>; |
| 402 | interrupt-names = "cdc-int"; |
| 403 | }; |
| 404 | |
Kiran Kandi | 9ee87e4 | 2012-08-20 13:05:40 -0700 | [diff] [blame] | 405 | * MSM8974 ASoC Machine driver |
| 406 | |
| 407 | Required properties: |
| 408 | - compatible : "qcom,msm8974-audio-taiko" |
| 409 | - qcom,model : The user-visible name of this sound card. |
| 410 | - qcom,audio-routing : A list of the connections between audio components. |
| 411 | Each entry is a pair of strings, the first being the connection's sink, |
| 412 | the second being the connection's source. |
Kiran Kandi | 79db1b0 | 2012-08-21 13:48:19 -0700 | [diff] [blame] | 413 | - qcom,cdc-mclk-gpios : GPIO on which mclk signal is comming. |
Kiran Kandi | 79db1b0 | 2012-08-21 13:48:19 -0700 | [diff] [blame] | 414 | - qcom,taiko-mclk-clk-freq : Taiko mclk Freq in Hz. currently only 9600000Hz |
| 415 | is supported. |
Banajit Goswami | 57b47c4 | 2013-04-04 19:13:22 -0700 | [diff] [blame] | 416 | - qcom,prim-auxpcm-gpio-clk : GPIO on which Primary AUXPCM clk signal is coming. |
| 417 | - qcom,prim-auxpcm-gpio-sync : GPIO on which Primary AUXPCM SYNC signal is coming. |
| 418 | - qcom,prim-auxpcm-gpio-din : GPIO on which Primary AUXPCM DIN signal is coming. |
| 419 | - 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] | 420 | - qcom,prim-auxpcm-gpio-set : set of GPIO lines used for Primary AUXPCM port |
| 421 | Possible Values: |
| 422 | prim-gpio-prim : Primary AUXPCM shares GPIOs with Primary MI2S |
| 423 | prim-gpio-tert : Primary AUXPCM shares GPIOs with Tertiary MI2S |
Banajit Goswami | dd3d8da | 2013-04-03 11:17:08 -0700 | [diff] [blame] | 424 | - qcom,sec-auxpcm-gpio-clk : GPIO on which Secondary AUXPCM clk signal is coming. |
| 425 | - qcom,sec-auxpcm-gpio-sync : GPIO on which Secondary AUXPCM SYNC signal is coming. |
| 426 | - qcom,sec-auxpcm-gpio-din : GPIO on which Secondary AUXPCM DIN signal is coming. |
| 427 | - 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] | 428 | - qcom,us-euro-gpios : GPIO on which gnd/mic swap signal is coming. |
Kiran Kandi | 5265032 | 2012-12-11 15:49:39 -0800 | [diff] [blame] | 429 | Optional properties: |
| 430 | - qcom,hdmi-audio-rx: specifies if HDMI audio support is enabled or not. |
Baruch Eruchimovitch | dc81467 | 2013-03-10 21:46:14 +0200 | [diff] [blame] | 431 | - qcom,ext-ult-spk-amp-gpio : GPIO for enabling of speaker path amplifier. |
Kiran Kandi | 5265032 | 2012-12-11 15:49:39 -0800 | [diff] [blame] | 432 | |
Joonwoo Park | 4099b7a | 2013-03-11 20:47:59 -0700 | [diff] [blame] | 433 | - qcom,ext-ult-lo-amp-gpio: GPIO to enable external ultrasound lineout |
| 434 | amplifier. |
| 435 | |
Phani Kumar Uppalapati | ef08757 | 2013-05-03 11:19:33 -0700 | [diff] [blame] | 436 | - qcom,headset-jack-type-NO: Adjust GPIO level based on the headset jack type. |
Phani Kumar Uppalapati | 93c7460 | 2013-05-09 19:08:16 -0700 | [diff] [blame] | 437 | - qcom,tapan-codec-9302: Indicates that this device node is for WCD9302 audio |
| 438 | codec. |
Bhalchandra Gajare | d01701b | 2013-09-19 13:19:08 -0700 | [diff] [blame] | 439 | - qcom,mbhc-bias-internal: Flag to indicate if internal micbias should be used |
| 440 | for headset detection. |
Tanya Finkel | 6c69f0b | 2013-05-28 22:53:29 +0300 | [diff] [blame] | 441 | |
| 442 | * APQ8074 ASoC Machine driver |
| 443 | |
| 444 | Required properties: |
| 445 | - compatible : "qcom,apq8074-audio-taiko" |
| 446 | |
Kiran Kandi | 9ee87e4 | 2012-08-20 13:05:40 -0700 | [diff] [blame] | 447 | Example: |
| 448 | |
| 449 | sound { |
| 450 | compatible = "qcom,msm8974-audio-taiko"; |
| 451 | qcom,model = "msm8974-taiko-snd-card"; |
| 452 | |
| 453 | qcom,audio-routing = |
| 454 | "RX_BIAS", "MCLK", |
| 455 | "LDO_H", "MCLK", |
| 456 | "HEADPHONE", "LDO_H", |
| 457 | "Ext Spk Bottom Pos", "LINEOUT1", |
| 458 | "Ext Spk Bottom Neg", "LINEOUT3", |
| 459 | "Ext Spk Top Pos", "LINEOUT2", |
| 460 | "Ext Spk Top Neg", "LINEOUT4", |
| 461 | "AMIC1", "MIC BIAS1 Internal1", |
| 462 | "MIC BIAS1 Internal1", "Handset Mic", |
| 463 | "AMIC2", "MIC BIAS2 External", |
| 464 | "MIC BIAS2 External", "Headset Mic", |
| 465 | "AMIC3", "MIC BIAS3 Internal1", |
| 466 | "MIC BIAS3 Internal1", "ANCRight Headset Mic", |
| 467 | "AMIC4", "MIC BIAS1 Internal2", |
| 468 | "MIC BIAS1 Internal2", "ANCLeft Headset Mic", |
| 469 | "DMIC1", "MIC BIAS1 External", |
| 470 | "MIC BIAS1 External", "Digital Mic1", |
| 471 | "DMIC2", "MIC BIAS1 External", |
| 472 | "MIC BIAS1 External", "Digital Mic2", |
| 473 | "DMIC3", "MIC BIAS3 External", |
| 474 | "MIC BIAS3 External", "Digital Mic3", |
| 475 | "DMIC4", "MIC BIAS3 External", |
| 476 | "MIC BIAS3 External", "Digital Mic4", |
| 477 | "DMIC5", "MIC BIAS4 External", |
| 478 | "MIC BIAS4 External", "Digital Mic5", |
| 479 | "DMIC6", "MIC BIAS4 External", |
| 480 | "MIC BIAS4 External", "Digital Mic6"; |
Kiran Kandi | 79db1b0 | 2012-08-21 13:48:19 -0700 | [diff] [blame] | 481 | |
| 482 | qcom,cdc-mclk-gpios = <&pm8941_gpios 15 0>; |
Kiran Kandi | 79db1b0 | 2012-08-21 13:48:19 -0700 | [diff] [blame] | 483 | qcom,taiko-mclk-clk-freq = <9600000>; |
Fred Oh | fcc8e93 | 2013-03-06 20:47:39 -0800 | [diff] [blame] | 484 | qcom,us-euro-gpios = <&pm8941_gpios 20 0>; |
Kiran Kandi | 5265032 | 2012-12-11 15:49:39 -0800 | [diff] [blame] | 485 | |
| 486 | qcom,hdmi-audio-rx; |
Joonwoo Park | 4099b7a | 2013-03-11 20:47:59 -0700 | [diff] [blame] | 487 | qcom,ext-ult-lo-amp-gpio = <&pm8941_gpios 6 0>; |
Damir Didjusto | 04d3c36 | 2013-01-07 14:30:53 -0800 | [diff] [blame] | 488 | |
Banajit Goswami | 57b47c4 | 2013-04-04 19:13:22 -0700 | [diff] [blame] | 489 | qcom,prim-auxpcm-gpio-clk = <&msmgpio 65 0>; |
| 490 | qcom,prim-auxpcm-gpio-sync = <&msmgpio 66 0>; |
| 491 | qcom,prim-auxpcm-gpio-din = <&msmgpio 67 0>; |
| 492 | qcom,prim-auxpcm-gpio-dout = <&msmgpio 68 0>; |
Banajit Goswami | f8ce89a | 2013-04-09 18:02:15 -0700 | [diff] [blame] | 493 | qcom,prim-auxpcm-gpio-set = "prim-gpio-prim"; |
Banajit Goswami | dd3d8da | 2013-04-03 11:17:08 -0700 | [diff] [blame] | 494 | qcom,sec-auxpcm-gpio-clk = <&msmgpio 79 0>; |
| 495 | qcom,sec-auxpcm-gpio-sync = <&msmgpio 80 0>; |
| 496 | qcom,sec-auxpcm-gpio-din = <&msmgpio 81 0>; |
| 497 | qcom,sec-auxpcm-gpio-dout = <&msmgpio 82 0>; |
Kiran Kandi | 9ee87e4 | 2012-08-20 13:05:40 -0700 | [diff] [blame] | 498 | }; |
Venkat Sudhir | 4bd983e | 2012-10-27 02:59:54 -0700 | [diff] [blame] | 499 | |
| 500 | * msm-dai-mi2s |
| 501 | |
| 502 | [First Level Nodes] |
| 503 | |
| 504 | Required properties: |
| 505 | |
| 506 | - compatible : "msm-dai-mi2s" |
| 507 | |
| 508 | [Second Level Nodes] |
| 509 | |
| 510 | Required properties: |
| 511 | |
| 512 | - compatible : "qcom,msm-dai-q6-mi2s" |
Joonwoo Park | 4494581 | 2013-01-14 17:24:45 -0800 | [diff] [blame] | 513 | - qcom,msm-dai-q6-mi2s-dev-id: MSM or MDM can use Slimbus or I2S interface to |
| 514 | transfer data to (WCD9XXX) codec. |
| 515 | If slimbus interface is used then "msm-dai-q6" |
| 516 | needs to be filled with correct data for |
| 517 | slimbus interface. |
| 518 | The sections "msm-dai-mi2s" is used by MDM or |
| 519 | MSM to use I2S interface with codec. |
| 520 | This section is used by CPU driver in ASOC MSM |
| 521 | to configure MI2S interface. MSM internally |
| 522 | has multiple MI2S namely Primary, Secondary, |
| 523 | Tertiary and Quaternary MI2S. |
| 524 | They are represented with id 0, 1, 2, 3 |
| 525 | respectively. |
| 526 | The field "qcom,msm-dai-q6-mi2s-dev-id" |
| 527 | represents which of the MI2S block is used. |
| 528 | These MI2S are connected to I2S interface. |
Venkat Sudhir | 4bd983e | 2012-10-27 02:59:54 -0700 | [diff] [blame] | 529 | |
Joonwoo Park | 4494581 | 2013-01-14 17:24:45 -0800 | [diff] [blame] | 530 | - qcom,msm-mi2s-rx-lines: Each MI2S interface in MSM has one or more SD |
| 531 | lines. These lines are used for data transfer |
| 532 | between codec and MSM. |
| 533 | This element in indicates which output RX lines |
| 534 | are used in the MI2S interface. |
Venkat Sudhir | 4bd983e | 2012-10-27 02:59:54 -0700 | [diff] [blame] | 535 | |
Joonwoo Park | 4494581 | 2013-01-14 17:24:45 -0800 | [diff] [blame] | 536 | - qcom,msm-mi2s-tx-lines: Each MI2S interface in MSM has one or more SD |
| 537 | lines. These lines are used for data transfer |
| 538 | between codec and MSM. |
| 539 | This element in indicates which input TX lines |
| 540 | are used in the MI2S interface. |
Venkat Sudhir | 4bd983e | 2012-10-27 02:59:54 -0700 | [diff] [blame] | 541 | |
| 542 | Example: |
| 543 | |
| 544 | qcom,msm-dai-mi2s { |
| 545 | compatible = "qcom,msm-dai-mi2s"; |
| 546 | qcom,msm-dai-q6-mi2s-prim { |
| 547 | compatible = "qcom,msm-dai-q6-mi2s"; |
| 548 | qcom,msm-dai-q6-mi2s-dev-id = <0>; |
| 549 | qcom,msm-mi2s-rx-lines = <2>; |
| 550 | qcom,msm-mi2s-tx-lines = <1>; |
| 551 | }; |
Venkat Sudhir | 64f6630 | 2012-10-30 09:30:16 -0700 | [diff] [blame] | 552 | }; |
| 553 | |
| 554 | * MSM9625 ASoC Machine driver |
| 555 | |
| 556 | Required properties: |
| 557 | - compatible : "qcom,mdm9625-audio-taiko" |
| 558 | - qcom,model : The user-visible name of this sound card. |
| 559 | - qcom,audio-routing : A list of the connections between audio components. |
| 560 | Each entry is a pair of strings, the first being the connection's sink, |
| 561 | the second being the connection's source. |
| 562 | - qcom,taiko-mclk-clk-freq : Master clock value given to codec. Some WCD9XXX |
| 563 | codec can run at different mclk values. Mclk value can be 9.6MHz or 12.288MHz. |
| 564 | This element represents the value for MCLK provided to codec. |
Venkat Sudhir | 459d6f5 | 2012-12-04 12:00:13 -0800 | [diff] [blame] | 565 | - prim-i2s-gpio-ws : Specifies gpio assigned for primary WS I2S pin. |
| 566 | - prim-i2s-gpio-din : Specifies gpio assigned for primary DIN I2S pin. |
| 567 | - prim-i2s-gpio-dout : Specifies gpio assigned for primary DOUT I2S pin. |
| 568 | - prim-i2s-gpio-sclk : Specifies gpio assigned for primary SCLK I2S pin. |
| 569 | - prim-i2s-gpio-mclk : Specifies gpio assigned for MCLK I2S pin. |
Venkat Sudhir | 64f6630 | 2012-10-30 09:30:16 -0700 | [diff] [blame] | 570 | |
| 571 | Example: |
| 572 | |
| 573 | sound { |
| 574 | compatible = "qcom,mdm9625-audio-taiko"; |
| 575 | qcom,model = "mdm9625-taiko-i2s-snd-card"; |
| 576 | |
| 577 | qcom,audio-routing = |
| 578 | "RX_BIAS", "MCLK", |
| 579 | "LDO_H", "MCLK", |
| 580 | "Ext Spk Bottom Pos", "LINEOUT1", |
| 581 | "Ext Spk Bottom Neg", "LINEOUT3", |
| 582 | "Ext Spk Top Pos", "LINEOUT2", |
| 583 | "Ext Spk Top Neg", "LINEOUT4", |
| 584 | "AMIC1", "MIC BIAS1 External", |
| 585 | "MIC BIAS1 External", "Handset Mic", |
| 586 | "AMIC2", "MIC BIAS2 External", |
| 587 | "MIC BIAS2 External", "Headset Mic", |
| 588 | "AMIC3", "MIC BIAS3 Internal1", |
| 589 | "MIC BIAS3 Internal1", "ANCRight Headset Mic", |
| 590 | "AMIC4", "MIC BIAS1 Internal2", |
| 591 | "MIC BIAS1 Internal2", "ANCLeft Headset Mic", |
| 592 | "DMIC1", "MIC BIAS1 External", |
| 593 | "MIC BIAS1 External", "Digital Mic1", |
| 594 | "DMIC2", "MIC BIAS1 External", |
| 595 | "MIC BIAS1 External", "Digital Mic2", |
| 596 | "DMIC3", "MIC BIAS3 External", |
| 597 | "MIC BIAS3 External", "Digital Mic3", |
| 598 | "DMIC4", "MIC BIAS3 External", |
| 599 | "MIC BIAS3 External", "Digital Mic4", |
| 600 | "DMIC5", "MIC BIAS4 External", |
| 601 | "MIC BIAS4 External", "Digital Mic5", |
| 602 | "DMIC6", "MIC BIAS4 External", |
| 603 | "MIC BIAS4 External", "Digital Mic6"; |
| 604 | qcom,taiko-mclk-clk-freq = <12288000>; |
Venkat Sudhir | 459d6f5 | 2012-12-04 12:00:13 -0800 | [diff] [blame] | 605 | prim-i2s-gpio-ws = <&msmgpio 12 0>; |
| 606 | prim-i2s-gpio-din = <&msmgpio 13 0>; |
| 607 | prim-i2s-gpio-dout = <&msmgpio 14 0>; |
| 608 | prim-i2s-gpio-sclk = <&msmgpio 15 0>; |
| 609 | prim-i2s-gpio-mclk = <&msmgpio 71 0>; |
Venkat Sudhir | 64f6630 | 2012-10-30 09:30:16 -0700 | [diff] [blame] | 610 | }; |
Venkat Sudhir | 480db8a | 2012-11-09 15:31:50 -0800 | [diff] [blame] | 611 | |
| 612 | * msm-adsp-loader |
| 613 | |
| 614 | Required properties: |
Fred Oh | de9438a | 2013-04-04 11:29:12 -0700 | [diff] [blame] | 615 | - compatible : "qcom,adsp-loader" |
Venkat Sudhir | 480db8a | 2012-11-09 15:31:50 -0800 | [diff] [blame] | 616 | - qcom,adsp-state: |
| 617 | It is possible that some MSM use PIL to load the ADSP image. While |
| 618 | other MSM may use SBL to load the ADSP image at boot. Audio APR needs |
| 619 | 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] | 620 | to ADSP. so adsp-state represents the state of ADSP to ADSP loader. |
| 621 | Value of 0 indicates ADSP loader needs to use PIL and value of 2 means |
| 622 | ADSP image is already loaded by SBL. |
Venkat Sudhir | 480db8a | 2012-11-09 15:31:50 -0800 | [diff] [blame] | 623 | |
| 624 | Example: |
| 625 | |
| 626 | qcom,msm-adsp-loader { |
| 627 | compatible = "qcom,adsp-loader"; |
| 628 | qcom,adsp-state = <2>; |
| 629 | }; |
Fred Oh | de9438a | 2013-04-04 11:29:12 -0700 | [diff] [blame] | 630 | |
| 631 | * msm-audio-ion |
| 632 | |
| 633 | Required properties: |
| 634 | - compatible : "qcom,msm-audio-ion" |
| 635 | |
| 636 | Optional properties: |
| 637 | - qcom,smmu-enabled: |
| 638 | It is possible that some MSM have SMMU in ADSP. While other MSM use |
| 639 | no SMMU. Audio lib introduce wrapper for ION APIs. The wrapper needs |
| 640 | presence of SMMU in ADSP to handle ION APIs differently. |
| 641 | Presence of this property means ADSP has SMMU in it. |
| 642 | |
| 643 | Example: |
| 644 | |
| 645 | qcom,msm-audio-ion { |
| 646 | compatible = "qcom,msm-audio-ion; |
| 647 | qcom,smmu-enabled; |
| 648 | }; |
Banajit Goswami | 25715c5 | 2013-05-10 11:45:47 -0700 | [diff] [blame] | 649 | |
| 650 | * MSM8226 ASoC Machine driver |
| 651 | |
| 652 | Required properties: |
| 653 | - compatible : "qcom,msm8226-audio-tapan" |
| 654 | - qcom,model : The user-visible name of this sound card. |
| 655 | - qcom,tapan-mclk-clk-freq : Tapan mclk Freq in Hz. currently only 9600000Hz |
| 656 | is supported. |
| 657 | - qcom,prim-auxpcm-gpio-clk : GPIO on which Primary AUXPCM clk signal is coming. |
| 658 | - qcom,prim-auxpcm-gpio-sync : GPIO on which Primary AUXPCM SYNC signal is coming. |
| 659 | - qcom,prim-auxpcm-gpio-din : GPIO on which Primary AUXPCM DIN signal is coming. |
| 660 | - qcom,prim-auxpcm-gpio-dout : GPIO on which Primary AUXPCM DOUT signal is coming. |
| 661 | - qcom,prim-auxpcm-gpio-set : set of GPIO lines used for Primary AUXPCM port |
| 662 | Possible Values: |
| 663 | prim-gpio-prim : Primary AUXPCM shares GPIOs with Primary MI2S |
| 664 | prim-gpio-tert : Primary AUXPCM shares GPIOs with Tertiary MI2S |
| 665 | |
Bhalchandra Gajare | 6ce3b71 | 2013-04-23 17:30:40 -0700 | [diff] [blame] | 666 | Optional Properties: |
mengw | 3d535dd | 2013-06-13 13:43:45 +0800 | [diff] [blame] | 667 | - qcom,cdc-us-euro-gpios : GPIO on which gnd/mic swap signal is coming. |
| 668 | - qcom,cdc-lineout-spkr-gpios : GPIO which controls external PAs to enable Lineout1/2 speaker |
| 669 | - qcom,cdc-vdd-spkr-gpios : GPIO which controls PA for VDD speaker |
Bhalchandra Gajare | 7faec65 | 2013-07-18 20:59:30 -0700 | [diff] [blame] | 670 | - qcom,headset-jack-type-NC: Set if the headset jack type is NC (Normally Closed) |
Bhalchandra Gajare | 6ce3b71 | 2013-04-23 17:30:40 -0700 | [diff] [blame] | 671 | |
Banajit Goswami | 25715c5 | 2013-05-10 11:45:47 -0700 | [diff] [blame] | 672 | Example: |
| 673 | |
| 674 | sound { |
| 675 | compatible = "qcom,msm8226-audio-tapan"; |
| 676 | qcom,model = "msm8226-tapan-snd-card"; |
| 677 | qcom,tapan-mclk-clk-freq = <9600000>; |
| 678 | qcom,prim-auxpcm-gpio-clk = <&msmgpio 63 0>; |
| 679 | qcom,prim-auxpcm-gpio-sync = <&msmgpio 64 0>; |
| 680 | qcom,prim-auxpcm-gpio-din = <&msmgpio 65 0>; |
| 681 | qcom,prim-auxpcm-gpio-dout = <&msmgpio 66 0>; |
| 682 | qcom,prim-auxpcm-gpio-set = "prim-gpio-prim"; |
Bhalchandra Gajare | 6ce3b71 | 2013-04-23 17:30:40 -0700 | [diff] [blame] | 683 | qcom,cdc-us-euro-gpios = <&msmgpio 69 0>; |
mengw | 3d535dd | 2013-06-13 13:43:45 +0800 | [diff] [blame] | 684 | qcom,cdc-lineout-spkr-gpios = <&pm8226_gpios 2 0>; |
| 685 | qcom,cdc-vdd-spkr-gpios = <&pm8226_gpios 3 0>; |
Banajit Goswami | 25715c5 | 2013-05-10 11:45:47 -0700 | [diff] [blame] | 686 | }; |