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