Rohit Kumar | 1405128 | 2017-07-12 11:18:48 +0530 | [diff] [blame] | 1 | /* |
Laxminath Kasam | d3dff86 | 2018-01-09 18:41:52 +0530 | [diff] [blame^] | 2 | * Copyright (c) 2017-2018, The Linux Foundation. All rights reserved. |
Rohit Kumar | 1405128 | 2017-07-12 11:18:48 +0530 | [diff] [blame] | 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 2 and |
| 6 | * only version 2 as published by the Free Software Foundation. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | */ |
| 13 | |
| 14 | #include "msm-audio-lpass.dtsi" |
Rohit Kumar | 1405128 | 2017-07-12 11:18:48 +0530 | [diff] [blame] | 15 | #include "sdm670-wcd.dtsi" |
Rohit Kumar | 8cf7fe3 | 2017-10-10 19:42:34 +0530 | [diff] [blame] | 16 | #include "sdm670-wsa881x.dtsi" |
Rohit Kumar | 1405128 | 2017-07-12 11:18:48 +0530 | [diff] [blame] | 17 | #include "sdm670-lpi.dtsi" |
| 18 | #include <dt-bindings/clock/qcom,audio-ext-clk.h> |
| 19 | |
| 20 | &msm_audio_ion { |
| 21 | iommus = <&apps_smmu 0x1801 0x0>; |
| 22 | qcom,smmu-sid-mask = /bits/ 64 <0xf>; |
| 23 | }; |
| 24 | |
| 25 | &soc { |
Laxminath Kasam | d3dff86 | 2018-01-09 18:41:52 +0530 | [diff] [blame^] | 26 | audio_load_mod { |
| 27 | compatible = "qcom,audio-load-mod"; |
| 28 | audio_test_mod { |
| 29 | compatible = "qcom,audio-test-mod"; |
| 30 | }; |
| 31 | }; |
| 32 | |
Rohit Kumar | 1405128 | 2017-07-12 11:18:48 +0530 | [diff] [blame] | 33 | qcom,avtimer@62cf700c { |
| 34 | compatible = "qcom,avtimer"; |
| 35 | reg = <0x62cf700c 0x4>, |
| 36 | <0x62cf7010 0x4>; |
| 37 | reg-names = "avtimer_lsb_addr", "avtimer_msb_addr"; |
| 38 | qcom,clk-div = <192>; |
| 39 | qcom,clk-mult = <10>; |
| 40 | }; |
| 41 | |
| 42 | tavil_snd: sound-tavil { |
| 43 | status = "disabled"; |
| 44 | compatible = "qcom,sdm670-asoc-snd-tavil"; |
| 45 | qcom,model = "sdm670-tavil-snd-card"; |
| 46 | qcom,wcn-btfm; |
| 47 | qcom,mi2s-audio-intf; |
| 48 | qcom,auxpcm-audio-intf; |
Rohit kumar | 344bd2a | 2017-10-18 13:11:05 +0530 | [diff] [blame] | 49 | qcom,ext-disp-audio-rx; |
Rohit Kumar | 1405128 | 2017-07-12 11:18:48 +0530 | [diff] [blame] | 50 | asoc-platform = <&pcm0>, <&pcm1>, <&pcm2>, <&voip>, <&voice>, |
| 51 | <&loopback>, <&compress>, <&hostless>, |
| 52 | <&afe>, <&lsm>, <&routing>, <&cpe>, <&compr>, |
| 53 | <&pcm_noirq>; |
| 54 | asoc-platform-names = "msm-pcm-dsp.0", "msm-pcm-dsp.1", |
| 55 | "msm-pcm-dsp.2", "msm-voip-dsp", |
| 56 | "msm-pcm-voice", "msm-pcm-loopback", |
| 57 | "msm-compress-dsp", "msm-pcm-hostless", |
| 58 | "msm-pcm-afe", "msm-lsm-client", |
| 59 | "msm-pcm-routing", "msm-cpe-lsm", |
| 60 | "msm-compr-dsp", "msm-pcm-dsp-noirq"; |
Rohit kumar | 344bd2a | 2017-10-18 13:11:05 +0530 | [diff] [blame] | 61 | asoc-cpu = <&dai_dp>, <&dai_mi2s0>, <&dai_mi2s1>, |
Rohit Kumar | df03855 | 2017-09-22 15:14:09 +0530 | [diff] [blame] | 62 | <&dai_mi2s2>, <&dai_mi2s3>, <&dai_mi2s4>, |
Rohit Kumar | 1405128 | 2017-07-12 11:18:48 +0530 | [diff] [blame] | 63 | <&dai_pri_auxpcm>, <&dai_sec_auxpcm>, |
| 64 | <&dai_tert_auxpcm>, <&dai_quat_auxpcm>, |
Rohit Kumar | df03855 | 2017-09-22 15:14:09 +0530 | [diff] [blame] | 65 | <&dai_quin_auxpcm>, |
Rohit Kumar | 1405128 | 2017-07-12 11:18:48 +0530 | [diff] [blame] | 66 | <&sb_0_rx>, <&sb_0_tx>, <&sb_1_rx>, <&sb_1_tx>, |
| 67 | <&sb_2_rx>, <&sb_2_tx>, <&sb_3_rx>, <&sb_3_tx>, |
| 68 | <&sb_4_rx>, <&sb_4_tx>, <&sb_5_rx>, <&sb_5_tx>, |
| 69 | <&sb_6_rx>, <&sb_7_rx>, <&sb_7_tx>, |
| 70 | <&sb_8_rx>, <&sb_8_tx>, |
| 71 | <&afe_pcm_rx>, <&afe_pcm_tx>, <&afe_proxy_rx>, |
| 72 | <&afe_proxy_tx>, <&incall_record_rx>, |
| 73 | <&incall_record_tx>, <&incall_music_rx>, |
| 74 | <&incall_music_2_rx>, |
| 75 | <&usb_audio_rx>, <&usb_audio_tx>, |
| 76 | <&dai_pri_tdm_rx_0>, <&dai_pri_tdm_tx_0>, |
| 77 | <&dai_sec_tdm_rx_0>, <&dai_sec_tdm_tx_0>, |
| 78 | <&dai_tert_tdm_rx_0>, <&dai_tert_tdm_tx_0>, |
Rohit Kumar | df03855 | 2017-09-22 15:14:09 +0530 | [diff] [blame] | 79 | <&dai_quat_tdm_rx_0>, <&dai_quat_tdm_tx_0>, |
| 80 | <&dai_quin_tdm_rx_0>, <&dai_quin_tdm_tx_0>; |
Rohit kumar | 344bd2a | 2017-10-18 13:11:05 +0530 | [diff] [blame] | 81 | asoc-cpu-names = "msm-dai-q6-dp.24608", |
| 82 | "msm-dai-q6-mi2s.0", "msm-dai-q6-mi2s.1", |
Rohit Kumar | 1405128 | 2017-07-12 11:18:48 +0530 | [diff] [blame] | 83 | "msm-dai-q6-mi2s.2", "msm-dai-q6-mi2s.3", |
Rohit kumar | fc05e49 | 2017-10-16 15:32:16 +0530 | [diff] [blame] | 84 | "msm-dai-q6-mi2s.4", |
Rohit Kumar | 1405128 | 2017-07-12 11:18:48 +0530 | [diff] [blame] | 85 | "msm-dai-q6-auxpcm.1", "msm-dai-q6-auxpcm.2", |
| 86 | "msm-dai-q6-auxpcm.3", "msm-dai-q6-auxpcm.4", |
Rohit Kumar | df03855 | 2017-09-22 15:14:09 +0530 | [diff] [blame] | 87 | "msm-dai-q6-auxpcm.5", |
Rohit Kumar | 1405128 | 2017-07-12 11:18:48 +0530 | [diff] [blame] | 88 | "msm-dai-q6-dev.16384", "msm-dai-q6-dev.16385", |
| 89 | "msm-dai-q6-dev.16386", "msm-dai-q6-dev.16387", |
| 90 | "msm-dai-q6-dev.16388", "msm-dai-q6-dev.16389", |
| 91 | "msm-dai-q6-dev.16390", "msm-dai-q6-dev.16391", |
| 92 | "msm-dai-q6-dev.16392", "msm-dai-q6-dev.16393", |
| 93 | "msm-dai-q6-dev.16394", "msm-dai-q6-dev.16395", |
| 94 | "msm-dai-q6-dev.16396", |
| 95 | "msm-dai-q6-dev.16398", "msm-dai-q6-dev.16399", |
| 96 | "msm-dai-q6-dev.16400", "msm-dai-q6-dev.16401", |
| 97 | "msm-dai-q6-dev.224", "msm-dai-q6-dev.225", |
| 98 | "msm-dai-q6-dev.241", "msm-dai-q6-dev.240", |
| 99 | "msm-dai-q6-dev.32771", "msm-dai-q6-dev.32772", |
| 100 | "msm-dai-q6-dev.32773", "msm-dai-q6-dev.32770", |
| 101 | "msm-dai-q6-dev.28672", "msm-dai-q6-dev.28673", |
| 102 | "msm-dai-q6-tdm.36864", "msm-dai-q6-tdm.36865", |
| 103 | "msm-dai-q6-tdm.36880", "msm-dai-q6-tdm.36881", |
| 104 | "msm-dai-q6-tdm.36896", "msm-dai-q6-tdm.36897", |
Rohit Kumar | df03855 | 2017-09-22 15:14:09 +0530 | [diff] [blame] | 105 | "msm-dai-q6-tdm.36912", "msm-dai-q6-tdm.36913", |
| 106 | "msm-dai-q6-tdm.36928", "msm-dai-q6-tdm.36929"; |
Rohit Kumar | 1405128 | 2017-07-12 11:18:48 +0530 | [diff] [blame] | 107 | }; |
| 108 | |
Rohit Kumar | cb1d7db | 2017-09-18 07:52:03 +0530 | [diff] [blame] | 109 | int_codec: sound { |
Rohit Kumar | 1405128 | 2017-07-12 11:18:48 +0530 | [diff] [blame] | 110 | status = "okay"; |
| 111 | compatible = "qcom,sdm670-asoc-snd"; |
Rohit kumar | f53b073 | 2017-10-12 19:06:41 +0530 | [diff] [blame] | 112 | qcom,model = "sdm670-mtp-snd-card"; |
Rohit Kumar | 1405128 | 2017-07-12 11:18:48 +0530 | [diff] [blame] | 113 | qcom,wcn-btfm; |
Rohit kumar | 344bd2a | 2017-10-18 13:11:05 +0530 | [diff] [blame] | 114 | qcom,ext-disp-audio-rx; |
Rohit Kumar | 1405128 | 2017-07-12 11:18:48 +0530 | [diff] [blame] | 115 | qcom,mi2s-audio-intf; |
| 116 | qcom,auxpcm-audio-intf; |
Rohit Kumar | 1405128 | 2017-07-12 11:18:48 +0530 | [diff] [blame] | 117 | asoc-platform = <&pcm0>, <&pcm1>, <&pcm2>, <&voip>, <&voice>, |
| 118 | <&loopback>, <&compress>, <&hostless>, |
| 119 | <&afe>, <&lsm>, <&routing>, <&compr>, |
| 120 | <&pcm_noirq>; |
| 121 | asoc-platform-names = "msm-pcm-dsp.0", "msm-pcm-dsp.1", |
| 122 | "msm-pcm-dsp.2", "msm-voip-dsp", |
| 123 | "msm-pcm-voice", "msm-pcm-loopback", |
| 124 | "msm-compress-dsp", "msm-pcm-hostless", |
| 125 | "msm-pcm-afe", "msm-lsm-client", |
| 126 | "msm-pcm-routing", "msm-compr-dsp", |
| 127 | "msm-pcm-dsp-noirq"; |
Rohit kumar | 344bd2a | 2017-10-18 13:11:05 +0530 | [diff] [blame] | 128 | asoc-cpu = <&dai_dp>, <&dai_mi2s0>, <&dai_mi2s1>, |
Rohit Kumar | df03855 | 2017-09-22 15:14:09 +0530 | [diff] [blame] | 129 | <&dai_mi2s2>, <&dai_mi2s3>, <&dai_mi2s4>, |
Rohit Kumar | 1405128 | 2017-07-12 11:18:48 +0530 | [diff] [blame] | 130 | <&dai_int_mi2s0>, <&dai_int_mi2s1>, |
| 131 | <&dai_int_mi2s2>, <&dai_int_mi2s3>, |
| 132 | <&dai_int_mi2s4>, <&dai_int_mi2s5>, |
| 133 | <&dai_pri_auxpcm>, <&dai_sec_auxpcm>, |
| 134 | <&dai_tert_auxpcm>, <&dai_quat_auxpcm>, |
Rohit Kumar | df03855 | 2017-09-22 15:14:09 +0530 | [diff] [blame] | 135 | <&dai_quin_auxpcm>, |
Rohit Kumar | 1405128 | 2017-07-12 11:18:48 +0530 | [diff] [blame] | 136 | <&afe_pcm_rx>, <&afe_pcm_tx>, <&afe_proxy_rx>, |
| 137 | <&afe_proxy_tx>, <&incall_record_rx>, |
| 138 | <&incall_record_tx>, <&incall_music_rx>, |
| 139 | <&incall_music_2_rx>, <&sb_7_rx>, <&sb_7_tx>, |
| 140 | <&sb_8_tx>, <&sb_8_rx>, |
| 141 | <&usb_audio_rx>, <&usb_audio_tx>, |
| 142 | <&dai_pri_tdm_rx_0>, <&dai_pri_tdm_tx_0>, |
| 143 | <&dai_sec_tdm_rx_0>, <&dai_sec_tdm_tx_0>, |
| 144 | <&dai_tert_tdm_rx_0>, <&dai_tert_tdm_tx_0>, |
Rohit Kumar | df03855 | 2017-09-22 15:14:09 +0530 | [diff] [blame] | 145 | <&dai_quat_tdm_rx_0>, <&dai_quat_tdm_tx_0>, |
| 146 | <&dai_quin_tdm_rx_0>, <&dai_quin_tdm_tx_0>; |
Rohit kumar | 344bd2a | 2017-10-18 13:11:05 +0530 | [diff] [blame] | 147 | asoc-cpu-names = "msm-dai-q6-dp.24608", |
| 148 | "msm-dai-q6-mi2s.0","msm-dai-q6-mi2s.1", |
Rohit Kumar | 1405128 | 2017-07-12 11:18:48 +0530 | [diff] [blame] | 149 | "msm-dai-q6-mi2s.2", "msm-dai-q6-mi2s.3", |
Rohit kumar | fc05e49 | 2017-10-16 15:32:16 +0530 | [diff] [blame] | 150 | "msm-dai-q6-mi2s.4", |
Rohit Kumar | 1405128 | 2017-07-12 11:18:48 +0530 | [diff] [blame] | 151 | "msm-dai-q6-mi2s.7", "msm-dai-q6-mi2s.8", |
| 152 | "msm-dai-q6-mi2s.9", "msm-dai-q6-mi2s.10", |
| 153 | "msm-dai-q6-mi2s.11", "msm-dai-q6-mi2s.12", |
| 154 | "msm-dai-q6-auxpcm.1", "msm-dai-q6-auxpcm.2", |
| 155 | "msm-dai-q6-auxpcm.3", "msm-dai-q6-auxpcm.4", |
Rohit Kumar | df03855 | 2017-09-22 15:14:09 +0530 | [diff] [blame] | 156 | "msm-dai-q6-auxpcm.5", |
Rohit Kumar | 1405128 | 2017-07-12 11:18:48 +0530 | [diff] [blame] | 157 | "msm-dai-q6-dev.224", "msm-dai-q6-dev.225", |
| 158 | "msm-dai-q6-dev.241", "msm-dai-q6-dev.240", |
| 159 | "msm-dai-q6-dev.32771", "msm-dai-q6-dev.32772", |
| 160 | "msm-dai-q6-dev.32773", "msm-dai-q6-dev.32770", |
| 161 | "msm-dai-q6-dev.16398", "msm-dai-q6-dev.16399", |
| 162 | "msm-dai-q6-dev.16401", "msm-dai-q6-dev.16400", |
| 163 | "msm-dai-q6-dev.28672", "msm-dai-q6-dev.28673", |
| 164 | "msm-dai-q6-tdm.36864", "msm-dai-q6-tdm.36865", |
| 165 | "msm-dai-q6-tdm.36880", "msm-dai-q6-tdm.36881", |
| 166 | "msm-dai-q6-tdm.36896", "msm-dai-q6-tdm.36897", |
Rohit Kumar | df03855 | 2017-09-22 15:14:09 +0530 | [diff] [blame] | 167 | "msm-dai-q6-tdm.36912", "msm-dai-q6-tdm.36913", |
| 168 | "msm-dai-q6-tdm.36928", "msm-dai-q6-tdm.36929"; |
Rohit Kumar | 1405128 | 2017-07-12 11:18:48 +0530 | [diff] [blame] | 169 | }; |
| 170 | |
| 171 | cpe: qcom,msm-cpe-lsm { |
| 172 | compatible = "qcom,msm-cpe-lsm"; |
| 173 | }; |
| 174 | |
| 175 | cpe3: qcom,msm-cpe-lsm@3 { |
| 176 | compatible = "qcom,msm-cpe-lsm"; |
| 177 | qcom,msm-cpe-lsm-id = <3>; |
| 178 | }; |
Rohit Kumar | 1405128 | 2017-07-12 11:18:48 +0530 | [diff] [blame] | 179 | }; |
| 180 | |
| 181 | &slim_aud { |
| 182 | status = "disabled"; |
| 183 | dai_slim: msm_dai_slim { |
| 184 | status = "disabled"; |
| 185 | compatible = "qcom,msm-dai-slim"; |
| 186 | elemental-addr = [ff ff ff fe 17 02]; |
| 187 | }; |
Rohit Kumar | 1405128 | 2017-07-12 11:18:48 +0530 | [diff] [blame] | 188 | }; |
| 189 | |
| 190 | &msm_dai_mi2s { |
| 191 | dai_int_mi2s0: qcom,msm-dai-q6-int-mi2s0 { |
| 192 | compatible = "qcom,msm-dai-q6-mi2s"; |
| 193 | qcom,msm-dai-q6-mi2s-dev-id = <7>; |
| 194 | qcom,msm-mi2s-rx-lines = <3>; |
| 195 | qcom,msm-mi2s-tx-lines = <0>; |
| 196 | }; |
| 197 | |
| 198 | dai_int_mi2s1: qcom,msm-dai-q6-int-mi2s1 { |
| 199 | compatible = "qcom,msm-dai-q6-mi2s"; |
| 200 | qcom,msm-dai-q6-mi2s-dev-id = <8>; |
| 201 | qcom,msm-mi2s-rx-lines = <3>; |
| 202 | qcom,msm-mi2s-tx-lines = <0>; |
| 203 | }; |
| 204 | |
| 205 | dai_int_mi2s2: qcom,msm-dai-q6-int-mi2s2 { |
| 206 | compatible = "qcom,msm-dai-q6-mi2s"; |
| 207 | qcom,msm-dai-q6-mi2s-dev-id = <9>; |
| 208 | qcom,msm-mi2s-rx-lines = <0>; |
| 209 | qcom,msm-mi2s-tx-lines = <3>; |
| 210 | }; |
| 211 | |
| 212 | dai_int_mi2s3: qcom,msm-dai-q6-int-mi2s3 { |
| 213 | compatible = "qcom,msm-dai-q6-mi2s"; |
| 214 | qcom,msm-dai-q6-mi2s-dev-id = <10>; |
| 215 | qcom,msm-mi2s-rx-lines = <0>; |
| 216 | qcom,msm-mi2s-tx-lines = <3>; |
| 217 | }; |
| 218 | |
| 219 | dai_int_mi2s4: qcom,msm-dai-q6-int-mi2s4 { |
| 220 | compatible = "qcom,msm-dai-q6-mi2s"; |
| 221 | qcom,msm-dai-q6-mi2s-dev-id = <11>; |
| 222 | qcom,msm-mi2s-rx-lines = <3>; |
| 223 | qcom,msm-mi2s-tx-lines = <0>; |
| 224 | }; |
| 225 | |
| 226 | dai_int_mi2s5: qcom,msm-dai-q6-int-mi2s5 { |
| 227 | compatible = "qcom,msm-dai-q6-mi2s"; |
| 228 | qcom,msm-dai-q6-mi2s-dev-id = <12>; |
| 229 | qcom,msm-mi2s-rx-lines = <0>; |
| 230 | qcom,msm-mi2s-tx-lines = <3>; |
| 231 | }; |
| 232 | |
| 233 | dai_int_mi2s6: qcom,msm-dai-q6-int-mi2s6 { |
| 234 | compatible = "qcom,msm-dai-q6-mi2s"; |
| 235 | qcom,msm-dai-q6-mi2s-dev-id = <13>; |
| 236 | qcom,msm-mi2s-rx-lines = <0>; |
| 237 | qcom,msm-mi2s-tx-lines = <3>; |
| 238 | }; |
| 239 | }; |