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