blob: 16b62a9cdca2f4710284f2968b6e37f11d742117 [file] [log] [blame]
Rohit Kumar14051282017-07-12 11:18:48 +05301/*
Laxminath Kasamd3dff862018-01-09 18:41:52 +05302 * Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
Rohit Kumar14051282017-07-12 11:18:48 +05303 *
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 Kumar14051282017-07-12 11:18:48 +053015#include "sdm670-wcd.dtsi"
Rohit Kumar8cf7fe32017-10-10 19:42:34 +053016#include "sdm670-wsa881x.dtsi"
Rohit Kumar14051282017-07-12 11:18:48 +053017#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 Kasamd3dff862018-01-09 18:41:52 +053026 audio_load_mod {
27 compatible = "qcom,audio-load-mod";
28 audio_test_mod {
29 compatible = "qcom,audio-test-mod";
30 };
31 };
32
Rohit Kumar14051282017-07-12 11:18:48 +053033 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 kumar344bd2a2017-10-18 13:11:05 +053049 qcom,ext-disp-audio-rx;
Rohit Kumar14051282017-07-12 11:18:48 +053050 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 kumar344bd2a2017-10-18 13:11:05 +053061 asoc-cpu = <&dai_dp>, <&dai_mi2s0>, <&dai_mi2s1>,
Rohit Kumardf038552017-09-22 15:14:09 +053062 <&dai_mi2s2>, <&dai_mi2s3>, <&dai_mi2s4>,
Rohit Kumar14051282017-07-12 11:18:48 +053063 <&dai_pri_auxpcm>, <&dai_sec_auxpcm>,
64 <&dai_tert_auxpcm>, <&dai_quat_auxpcm>,
Rohit Kumardf038552017-09-22 15:14:09 +053065 <&dai_quin_auxpcm>,
Rohit Kumar14051282017-07-12 11:18:48 +053066 <&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 Kumardf038552017-09-22 15:14:09 +053079 <&dai_quat_tdm_rx_0>, <&dai_quat_tdm_tx_0>,
80 <&dai_quin_tdm_rx_0>, <&dai_quin_tdm_tx_0>;
Rohit kumar344bd2a2017-10-18 13:11:05 +053081 asoc-cpu-names = "msm-dai-q6-dp.24608",
82 "msm-dai-q6-mi2s.0", "msm-dai-q6-mi2s.1",
Rohit Kumar14051282017-07-12 11:18:48 +053083 "msm-dai-q6-mi2s.2", "msm-dai-q6-mi2s.3",
Rohit kumarfc05e492017-10-16 15:32:16 +053084 "msm-dai-q6-mi2s.4",
Rohit Kumar14051282017-07-12 11:18:48 +053085 "msm-dai-q6-auxpcm.1", "msm-dai-q6-auxpcm.2",
86 "msm-dai-q6-auxpcm.3", "msm-dai-q6-auxpcm.4",
Rohit Kumardf038552017-09-22 15:14:09 +053087 "msm-dai-q6-auxpcm.5",
Rohit Kumar14051282017-07-12 11:18:48 +053088 "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 Kumardf038552017-09-22 15:14:09 +0530105 "msm-dai-q6-tdm.36912", "msm-dai-q6-tdm.36913",
106 "msm-dai-q6-tdm.36928", "msm-dai-q6-tdm.36929";
Rohit Kumar14051282017-07-12 11:18:48 +0530107 };
108
Rohit Kumarcb1d7db2017-09-18 07:52:03 +0530109 int_codec: sound {
Rohit Kumar14051282017-07-12 11:18:48 +0530110 status = "okay";
111 compatible = "qcom,sdm670-asoc-snd";
Rohit kumarf53b0732017-10-12 19:06:41 +0530112 qcom,model = "sdm670-mtp-snd-card";
Rohit Kumar14051282017-07-12 11:18:48 +0530113 qcom,wcn-btfm;
Rohit kumar344bd2a2017-10-18 13:11:05 +0530114 qcom,ext-disp-audio-rx;
Rohit Kumar14051282017-07-12 11:18:48 +0530115 qcom,mi2s-audio-intf;
116 qcom,auxpcm-audio-intf;
Rohit Kumar14051282017-07-12 11:18:48 +0530117 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 kumar344bd2a2017-10-18 13:11:05 +0530128 asoc-cpu = <&dai_dp>, <&dai_mi2s0>, <&dai_mi2s1>,
Rohit Kumardf038552017-09-22 15:14:09 +0530129 <&dai_mi2s2>, <&dai_mi2s3>, <&dai_mi2s4>,
Rohit Kumar14051282017-07-12 11:18:48 +0530130 <&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 Kumardf038552017-09-22 15:14:09 +0530135 <&dai_quin_auxpcm>,
Rohit Kumar14051282017-07-12 11:18:48 +0530136 <&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 Kumardf038552017-09-22 15:14:09 +0530145 <&dai_quat_tdm_rx_0>, <&dai_quat_tdm_tx_0>,
146 <&dai_quin_tdm_rx_0>, <&dai_quin_tdm_tx_0>;
Rohit kumar344bd2a2017-10-18 13:11:05 +0530147 asoc-cpu-names = "msm-dai-q6-dp.24608",
148 "msm-dai-q6-mi2s.0","msm-dai-q6-mi2s.1",
Rohit Kumar14051282017-07-12 11:18:48 +0530149 "msm-dai-q6-mi2s.2", "msm-dai-q6-mi2s.3",
Rohit kumarfc05e492017-10-16 15:32:16 +0530150 "msm-dai-q6-mi2s.4",
Rohit Kumar14051282017-07-12 11:18:48 +0530151 "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 Kumardf038552017-09-22 15:14:09 +0530156 "msm-dai-q6-auxpcm.5",
Rohit Kumar14051282017-07-12 11:18:48 +0530157 "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 Kumardf038552017-09-22 15:14:09 +0530167 "msm-dai-q6-tdm.36912", "msm-dai-q6-tdm.36913",
168 "msm-dai-q6-tdm.36928", "msm-dai-q6-tdm.36929";
Rohit Kumar14051282017-07-12 11:18:48 +0530169 };
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 Kumar14051282017-07-12 11:18:48 +0530179};
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 Kumar14051282017-07-12 11:18:48 +0530188};
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};