blob: b812f890aa0484f09532ef3b89f61ab42067585f [file] [log] [blame]
Soumya Managoli91ec9502018-01-18 16:53:47 +05301/*
Shashi Kant Mauryaa5b85602020-07-16 10:30:10 +05302 * Copyright (c) 2015-2016, 2018, 2020, The Linux Foundation. All rights reserved.
Soumya Managoli91ec9502018-01-18 16:53:47 +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"
15#include "msm8953-wsa881x.dtsi"
16
17&msm_audio_ion {
18 iommus = <&apps_iommu 0x2401 0x0>;
19 qcom,smmu-sid-mask = /bits/ 64 <0xf>;
20};
21
22&soc {
23 qcom,msm-audio-apr {
24 compatible = "qcom,msm-audio-apr";
25 msm_audio_apr_dummy {
26 compatible = "qcom,msm-audio-apr-dummy";
27 };
28 };
29
30 qcom,avtimer@c0a300c {
31 compatible = "qcom,avtimer";
32 reg = <0x0c0a300c 0x4>,
33 <0x0c0a3010 0x4>;
34 reg-names = "avtimer_lsb_addr", "avtimer_msb_addr";
35 qcom,clk-div = <27>;
36 };
37
38 int_codec: sound {
jinjiawu56520262020-05-14 18:02:17 +080039 status = "disabled";
Soumya Managoli91ec9502018-01-18 16:53:47 +053040 compatible = "qcom,msm8952-audio-codec";
41 qcom,model = "msm8953-snd-card-mtp";
42 reg = <0xc051000 0x4>,
43 <0xc051004 0x4>,
44 <0xc055000 0x4>,
45 <0xc052000 0x4>;
46 reg-names = "csr_gp_io_mux_mic_ctl",
47 "csr_gp_io_mux_spkr_ctl",
48 "csr_gp_io_lpaif_pri_pcm_pri_mode_muxsel",
49 "csr_gp_io_mux_quin_ctl";
50
51 qcom,msm-ext-pa = "primary";
52 qcom,msm-mclk-freq = <9600000>;
53 qcom,msm-mbhc-hphl-swh = <0>;
54 qcom,msm-mbhc-gnd-swh = <0>;
55 qcom,msm-hs-micbias-type = "internal";
56 qcom,msm-micbias1-ext-cap;
57
58 qcom,audio-routing =
59 "RX_BIAS", "MCLK",
60 "SPK_RX_BIAS", "MCLK",
61 "INT_LDO_H", "MCLK",
62 "RX_I2S_CLK", "MCLK",
63 "TX_I2S_CLK", "MCLK",
64 "MIC BIAS External", "Handset Mic",
65 "MIC BIAS External2", "Headset Mic",
66 "MIC BIAS External", "Secondary Mic",
67 "AMIC1", "MIC BIAS External",
68 "AMIC2", "MIC BIAS External2",
69 "AMIC3", "MIC BIAS External",
70 "ADC1_IN", "ADC1_OUT",
71 "ADC2_IN", "ADC2_OUT",
72 "ADC3_IN", "ADC3_OUT",
73 "PDM_IN_RX1", "PDM_OUT_RX1",
74 "PDM_IN_RX2", "PDM_OUT_RX2",
75 "PDM_IN_RX3", "PDM_OUT_RX3",
76 "WSA_SPK OUT", "VDD_WSA_SWITCH",
77 "SpkrMono WSA_IN", "WSA_SPK OUT";
78
jinjiawu56520262020-05-14 18:02:17 +080079 //qcom,cdc-us-euro-gpios = <&tlmm 63 0>;
80 //qcom,cdc-us-eu-gpios = <&cdc_us_euro_sw>;
81 //qcom,cdc-comp-gpios = <&cdc_comp_gpios>;
82 //qcom,pri-mi2s-gpios = <&cdc_pri_mi2s_gpios>;
Soumya Managoli91ec9502018-01-18 16:53:47 +053083 qcom,quin-mi2s-gpios = <&cdc_quin_mi2s_gpios>;
84
Md Mansoor Ahmed0a2c0272018-04-24 15:45:50 +053085 qcom,afe-rxtx-lb;
86
Soumya Managoli91ec9502018-01-18 16:53:47 +053087 asoc-platform = <&pcm0>, <&pcm1>, <&pcm2>, <&voip>, <&voice>,
88 <&loopback>, <&compress>, <&hostless>,
89 <&afe>, <&lsm>, <&routing>, <&pcm_noirq>;
90 asoc-platform-names = "msm-pcm-dsp.0", "msm-pcm-dsp.1",
91 "msm-pcm-dsp.2", "msm-voip-dsp",
92 "msm-pcm-voice", "msm-pcm-loopback",
93 "msm-compress-dsp", "msm-pcm-hostless",
94 "msm-pcm-afe", "msm-lsm-client",
95 "msm-pcm-routing", "msm-pcm-dsp-noirq";
96 asoc-cpu = <&dai_pri_auxpcm>,
97 <&dai_mi2s0>, <&dai_mi2s1>,
98 <&dai_mi2s2>, <&dai_mi2s3>,
99 <&dai_mi2s4>, <&dai_mi2s5>,
100 <&sb_0_rx>, <&sb_0_tx>, <&sb_1_rx>, <&sb_1_tx>,
101 <&sb_3_rx>, <&sb_3_tx>, <&sb_4_rx>, <&sb_4_tx>,
102 <&bt_sco_rx>, <&bt_sco_tx>,
103 <&int_fm_rx>, <&int_fm_tx>,
104 <&afe_pcm_rx>, <&afe_pcm_tx>,
105 <&afe_proxy_rx>, <&afe_proxy_tx>,
106 <&incall_record_rx>, <&incall_record_tx>,
Md Mansoor Ahmed0a2c0272018-04-24 15:45:50 +0530107 <&incall_music_rx>, <&incall_music_2_rx>,
Shashi Kant Mauryaa5b85602020-07-16 10:30:10 +0530108 <&afe_loopback_tx>,
109 <&proxy_rx>, <&proxy_tx>;
Soumya Managoli91ec9502018-01-18 16:53:47 +0530110
111 asoc-cpu-names = "msm-dai-q6-auxpcm.1",
112 "msm-dai-q6-mi2s.0", "msm-dai-q6-mi2s.1",
113 "msm-dai-q6-mi2s.2", "msm-dai-q6-mi2s.3",
114 "msm-dai-q6-mi2s.4", "msm-dai-q6-mi2s.6",
115 "msm-dai-q6-dev.16384", "msmdai-q6-dev.16385",
116 "msm-dai-q6-dev.16386", "msm-dai-q6-dev.16387",
117 "msm-dai-q6-dev.16390", "msm-dai-q6-dev.16391",
118 "msm-dai-q6-dev.16392", "msm-dai-q6-dev.16393",
119 "msm-dai-q6-dev.12288", "msm-dai-q6-dev.12289",
120 "msm-dai-q6-dev.12292", "msm-dai-q6-dev.12293",
121 "msm-dai-q6-dev.224", "msm-dai-q6-dev.225",
122 "msm-dai-q6-dev.241", "msm-dai-q6-dev.240",
123 "msm-dai-q6-dev.32771", "msm-dai-q6-dev.32772",
Md Mansoor Ahmed0a2c0272018-04-24 15:45:50 +0530124 "msm-dai-q6-dev.32773", "msm-dai-q6-dev.32770",
Shashi Kant Mauryaa5b85602020-07-16 10:30:10 +0530125 "msm-dai-q6-dev.24577",
126 "msm-dai-q6-dev.8194", "msm-dai-q6-dev.8195";
Soumya Managoli91ec9502018-01-18 16:53:47 +0530127
128 asoc-codec = <&stub_codec>, <&msm_digital_codec>,
129 <&pmic_analog_codec>;
130 asoc-codec-names = "msm-stub-codec.1", "msm-dig-codec",
131 "analog-codec";
132 asoc-wsa-codec-names = "wsa881x-i2c-codec.2-000f";
133 asoc-wsa-codec-prefixes = "SpkrMono";
134 msm-vdd-wsa-switch-supply = <&pm8953_l5>;
135 qcom,msm-vdd-wsa-switch-voltage = <1800000>;
136 qcom,msm-vdd-wsa-switch-current = <10000>;
137 };
138
Soumya Managoli91ec9502018-01-18 16:53:47 +0530139 cdc_comp_gpios: cdc_comp_pinctrl {
jinjiawu56520262020-05-14 18:02:17 +0800140 status = "disabled";
Soumya Managoli91ec9502018-01-18 16:53:47 +0530141 compatible = "qcom,msm-cdc-pinctrl";
142 pinctrl-names = "aud_active", "aud_sleep";
143 pinctrl-0 = <&cdc_pdm_comp_lines_act>;
144 pinctrl-1 = <&cdc_pdm_comp_lines_sus>;
145 };
146
147 cdc_pri_mi2s_gpios: msm_cdc_pinctrl_pri {
jinjiawu56520262020-05-14 18:02:17 +0800148 status = "disabled";
Soumya Managoli91ec9502018-01-18 16:53:47 +0530149 compatible = "qcom,msm-cdc-pinctrl";
150 pinctrl-names = "aud_active", "aud_sleep";
151 pinctrl-0 = <&cdc_pdm_lines_act &cdc_pdm_lines_2_act>;
152 pinctrl-1 = <&cdc_pdm_lines_sus &cdc_pdm_lines_2_sus>;
153 };
154
155 cdc_quin_mi2s_gpios: msm_cdc_pinctrl_quin {
156 compatible = "qcom,msm-cdc-pinctrl";
157 pinctrl-names = "aud_active", "aud_sleep";
158 pinctrl-0 = <&pri_tlmm_lines_act &pri_tlmm_ws_act>;
159 pinctrl-1 = <&pri_tlmm_lines_sus &pri_tlmm_ws_sus>;
160 };
161
162
163 i2c@78b6000 {
164 status = "okay";
165 #address-cells = <1>;
166 #size-cells = <0>;
167 wsa881x_i2c_f: wsa881x-i2c-codec@f {
jinjiawu56520262020-05-14 18:02:17 +0800168 status = "disabled";
Soumya Managoli91ec9502018-01-18 16:53:47 +0530169 compatible = "qcom,wsa881x-i2c-codec";
170 reg = <0x0f>;
171 qcom,wsa-analog-vi-gpio = <&wsa881x_analog_vi_gpio>;
172 qcom,wsa-analog-clk-gpio = <&wsa881x_analog_clk_gpio>;
173 qcom,wsa-analog-reset-gpio =
174 <&wsa881x_analog_reset_gpio>;
175 };
176 wsa881x_i2c_45: wsa881x-i2c-codec@45 {
jinjiawu56520262020-05-14 18:02:17 +0800177 status = "disabled";
Soumya Managoli91ec9502018-01-18 16:53:47 +0530178 compatible = "qcom,wsa881x-i2c-codec";
179 reg = <0x45>;
180 };
181 };
182
183 wsa881x_analog_vi_gpio: wsa881x_analog_vi_pctrl {
184 compatible = "qcom,msm-cdc-pinctrl";
185 pinctrl-names = "aud_active", "aud_sleep";
186 pinctrl-0 = <&wsa_vi_on>;
187 pinctrl-1 = <&wsa_vi_off>;
188 };
189 wsa881x_analog_clk_gpio: wsa881x_analog_clk_pctrl {
190 compatible = "qcom,msm-cdc-pinctrl";
191 pinctrl-names = "aud_active", "aud_sleep";
192 pinctrl-0 = <&wsa_clk_on>;
193 pinctrl-1 = <&wsa_clk_off>;
194 };
195 wsa881x_analog_reset_gpio: wsa881x_analog_reset_pctrl {
jinjiawu56520262020-05-14 18:02:17 +0800196 status = "disabled";
197 //compatible = "qcom,msm-cdc-pinctrl";
198 //pinctrl-names = "aud_active", "aud_sleep";
199 //pinctrl-0 = <&wsa_reset_on>;
200 //pinctrl-1 = <&wsa_reset_off>;
Soumya Managoli91ec9502018-01-18 16:53:47 +0530201 };
202
203 ext_codec: sound-9335 {
jinjiawu56520262020-05-14 18:02:17 +0800204 status = "okay";
Soumya Managoli91ec9502018-01-18 16:53:47 +0530205 compatible = "qcom,msm8952-audio-slim-codec";
206 qcom,model = "msm8953-tasha-snd-card";
207
208 reg = <0xc051000 0x4>,
209 <0xc051004 0x4>,
210 <0xc055000 0x4>,
jinjiawu56520262020-05-14 18:02:17 +0800211 <0xc052000 0x4>,
212 <0x0c056000 0x4>,
213 <0x0c054000 0x4>,
214 <0x0c053000 0x4>;
Soumya Managoli91ec9502018-01-18 16:53:47 +0530215 reg-names = "csr_gp_io_mux_mic_ctl",
216 "csr_gp_io_mux_spkr_ctl",
217 "csr_gp_io_lpaif_pri_pcm_pri_mode_muxsel",
jinjiawu56520262020-05-14 18:02:17 +0800218 "csr_gp_io_mux_quin_ctl",
219 "csr_gp_io_lpaif_qui_pcm_sec_mode_muxsel",
220 "csr_gp_io_mux_mic_ext_clk_ctl",
221 "csr_gp_io_mux_sec_tlmm_ctl";
222
223 qcom,msm-ext-pa = "quinary";
Soumya Managoli91ec9502018-01-18 16:53:47 +0530224
225 qcom,audio-routing =
226 "AIF4 VI", "MCLK",
227 "AIF4 VI", "MICBIAS_REGULATOR",
228 "RX_BIAS", "MCLK",
229 "MADINPUT", "MCLK",
230 "AIF4 MAD", "MICBIAS_REGULATOR",
231 "AMIC2", "MIC BIAS2",
232 "MIC BIAS2", "Headset Mic",
233 "AMIC3", "MIC BIAS2",
234 "MIC BIAS2", "ANCRight Headset Mic",
235 "AMIC4", "MIC BIAS2",
236 "MIC BIAS2", "ANCLeft Headset Mic",
237 "AMIC5", "MIC BIAS3",
238 "MIC BIAS3", "Handset Mic",
239 "AMIC6", "MIC BIAS4",
240 "MIC BIAS4", "Analog Mic6",
241 "DMIC0", "MIC BIAS1",
242 "MIC BIAS1", "Digital Mic0",
243 "DMIC1", "MIC BIAS1",
244 "MIC BIAS1", "Digital Mic1",
245 "DMIC2", "MIC BIAS3",
246 "MIC BIAS3", "Digital Mic2",
247 "DMIC3", "MIC BIAS3",
248 "MIC BIAS3", "Digital Mic3",
249 "DMIC4", "MIC BIAS4",
250 "MIC BIAS4", "Digital Mic4",
251 "DMIC5", "MIC BIAS4",
252 "MIC BIAS4", "Digital Mic5",
253 "MIC BIAS1", "MICBIAS_REGULATOR",
254 "MIC BIAS2", "MICBIAS_REGULATOR",
255 "MIC BIAS3", "MICBIAS_REGULATOR",
256 "MIC BIAS4", "MICBIAS_REGULATOR",
257 "SpkrLeft IN", "SPK1 OUT",
258 "SpkrRight IN", "SPK2 OUT";
259
260 qcom,tasha-mclk-clk-freq = <9600000>;
jinjiawu56520262020-05-14 18:02:17 +0800261 qcom,msm-mbhc-hphl-swh = <1>;
262 qcom,msm-mbhc-gnd-swh = <1>;
Soumya Managolia88ad0b2018-02-17 11:31:19 +0530263 qcom,quin-mi2s-gpios = <&cdc_quin_mi2s_gpios>;
Soumya Managoli91ec9502018-01-18 16:53:47 +0530264
265 asoc-platform = <&pcm0>, <&pcm1>, <&pcm2>, <&voip>, <&voice>,
266 <&loopback>, <&compress>, <&hostless>,
Soumya Managolia88ad0b2018-02-17 11:31:19 +0530267 <&afe>, <&lsm>, <&routing>, <&cpe>, <&compr>,
268 <&pcm_noirq>;
Soumya Managoli91ec9502018-01-18 16:53:47 +0530269 asoc-platform-names = "msm-pcm-dsp.0", "msm-pcm-dsp.1",
270 "msm-pcm-dsp.2", "msm-voip-dsp",
271 "msm-pcm-voice", "msm-pcm-loopback",
272 "msm-compress-dsp", "msm-pcm-hostless",
273 "msm-pcm-afe", "msm-lsm-client",
Soumya Managolia88ad0b2018-02-17 11:31:19 +0530274 "msm-pcm-routing", "msm-cpe-lsm",
275 "msm-compr-dsp", "msm-pcm-dsp-noirq";
Soumya Managoli91ec9502018-01-18 16:53:47 +0530276
277 asoc-cpu = <&dai_pri_auxpcm>,
278 <&dai_mi2s2>, <&dai_mi2s3>, <&dai_mi2s5>,
279 <&sb_0_rx>, <&sb_0_tx>, <&sb_1_rx>, <&sb_1_tx>,
280 <&sb_2_rx>, <&sb_2_tx>, <&sb_3_rx>, <&sb_3_tx>,
281 <&sb_4_rx>, <&sb_4_tx>, <&sb_5_tx>,
282 <&afe_pcm_rx>, <&afe_pcm_tx>,
283 <&afe_proxy_rx>, <&afe_proxy_tx>,
284 <&incall_record_rx>, <&incall_record_tx>,
285 <&incall_music_rx>, <&incall_music_2_rx>,
286 <&sb_5_rx>, <&bt_sco_rx>, <&bt_sco_tx>,
Shashi Kant Mauryaa5b85602020-07-16 10:30:10 +0530287 <&int_fm_rx>, <&int_fm_tx>, <&sb_6_rx>,
288 <&proxy_rx>, <&proxy_tx>;
Soumya Managoli91ec9502018-01-18 16:53:47 +0530289
290 asoc-cpu-names = "msm-dai-q6-auxpcm.1",
291 "msm-dai-q6-mi2s.2", "msm-dai-q6-mi2s.3",
292 "msm-dai-q6-mi2s.5", "msm-dai-q6-dev.16384",
293 "msm-dai-q6-dev.16385", "msm-dai-q6-dev.16386",
294 "msm-dai-q6-dev.16387", "msm-dai-q6-dev.16388",
295 "msm-dai-q6-dev.16389", "msm-dai-q6-dev.16390",
296 "msm-dai-q6-dev.16391", "msm-dai-q6-dev.16392",
297 "msm-dai-q6-dev.16393", "msm-dai-q6-dev.16395",
298 "msm-dai-q6-dev.224", "msm-dai-q6-dev.225",
299 "msm-dai-q6-dev.241", "msm-dai-q6-dev.240",
300 "msm-dai-q6-dev.32771", "msm-dai-q6-dev.32772",
301 "msm-dai-q6-dev.32773", "msm-dai-q6-dev.32770",
302 "msm-dai-q6-dev.16394", "msm-dai-q6-dev.12288",
303 "msm-dai-q6-dev.12289", "msm-dai-q6-dev.12292",
Shashi Kant Mauryaa5b85602020-07-16 10:30:10 +0530304 "msm-dai-q6-dev.12293", "msm-dai-q6-dev.16396",
305 "msm-dai-q6-dev.8194", "msm-dai-q6-dev.8195";
Soumya Managoli91ec9502018-01-18 16:53:47 +0530306
jinjiawu56520262020-05-14 18:02:17 +0800307 asoc-codec = <&stub_codec>, <&dai_mi2s5>;
308 asoc-codec-names = "msm-stub-codec.1", "msm-dai-q6-mi2s.5";
Soumya Managoli91ec9502018-01-18 16:53:47 +0530309
jinjiawu56520262020-05-14 18:02:17 +0800310 qcom,wsa-max-devs = <0>;
Soumya Managoli91ec9502018-01-18 16:53:47 +0530311 qcom,wsa-devs = <&wsa881x_211>, <&wsa881x_212>,
312 <&wsa881x_213>, <&wsa881x_214>;
313 qcom,wsa-aux-dev-prefix = "SpkrLeft", "SpkrRight",
314 "SpkrLeft", "SpkrRight";
315 };
316
Soumya Managolia88ad0b2018-02-17 11:31:19 +0530317 cpe: qcom,msm-cpe-lsm {
318 compatible = "qcom,msm-cpe-lsm";
319 };
320
Soumya Managoli91ec9502018-01-18 16:53:47 +0530321 wcd9xxx_intc: wcd9xxx-irq {
jinjiawu56520262020-05-14 18:02:17 +0800322 status = "okay";
Soumya Managolia88ad0b2018-02-17 11:31:19 +0530323 compatible = "qcom,wcd9xxx-irq";
324 interrupt-controller;
325 #interrupt-cells = <1>;
Soumya Managoli91ec9502018-01-18 16:53:47 +0530326 interrupt-parent = <&tlmm>;
Soumya Managoli91ec9502018-01-18 16:53:47 +0530327 qcom,gpio-connect = <&tlmm 73 0>;
Soumya Managolia88ad0b2018-02-17 11:31:19 +0530328 pinctrl-names = "default";
329 pinctrl-0 = <&wcd_intr_default>;
Soumya Managoli91ec9502018-01-18 16:53:47 +0530330 };
331
332 clock_audio: audio_ext_clk {
jinjiawu56520262020-05-14 18:02:17 +0800333 status = "okay";
Soumya Managoli91ec9502018-01-18 16:53:47 +0530334 compatible = "qcom,audio-ref-clk";
335 clock-names = "osr_clk";
336 qcom,node_has_rpm_clock;
337 #clock-cells = <1>;
Soumya Managolia88ad0b2018-02-17 11:31:19 +0530338 pinctrl-names = "active", "sleep";
339 pinctrl-0 = <&tasha_mclk_default>;
340 pinctrl-1 = <&tasha_mclk_default>;
Soumya Managoli91ec9502018-01-18 16:53:47 +0530341 qcom,audio-ref-clk-gpio = <&pm8953_gpios 1 0>;
Soumya Managoli91ec9502018-01-18 16:53:47 +0530342 clocks = <&clock_gcc clk_div_clk2>;
Soumya Managoli91ec9502018-01-18 16:53:47 +0530343 };
344
Soumya Managolia88ad0b2018-02-17 11:31:19 +0530345 wcd_rst_gpio: msm_cdc_pinctrl@67 {
jinjiawu56520262020-05-14 18:02:17 +0800346 status = "okay";
Soumya Managolia88ad0b2018-02-17 11:31:19 +0530347 compatible = "qcom,msm-cdc-pinctrl";
348 pinctrl-names = "aud_active", "aud_sleep";
349 pinctrl-0 = <&cdc_reset_active>;
350 pinctrl-1 = <&cdc_reset_sleep>;
Soumya Managoli91ec9502018-01-18 16:53:47 +0530351 };
352};
353
354&slim_msm {
jinjiawu56520262020-05-14 18:02:17 +0800355 status = "okay";
Soumya Managolia88ad0b2018-02-17 11:31:19 +0530356
357 dai_slim: msm_dai_slim {
jinjiawu56520262020-05-14 18:02:17 +0800358 status = "okay";
Soumya Managolia88ad0b2018-02-17 11:31:19 +0530359 compatible = "qcom,msm-dai-slim";
360 elemental-addr = [ff ff ff fe 17 02];
361 };
362
Soumya Managoli91ec9502018-01-18 16:53:47 +0530363 wcd9335: tasha_codec {
jinjiawu56520262020-05-14 18:02:17 +0800364 status = "okay";
Soumya Managoli91ec9502018-01-18 16:53:47 +0530365 compatible = "qcom,tasha-slim-pgd";
Soumya Managolia88ad0b2018-02-17 11:31:19 +0530366 elemental-addr = [00 01 A0 01 17 02];
367
368 qcom,cdc-slim-ifd = "tasha-slim-ifd";
369 qcom,cdc-slim-ifd-elemental-addr = [00 00 A0 01 17 02];
370
371 interrupt-parent = <&wcd9xxx_intc>;
372 interrupts = <0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
373 17 18 19 20 21 22 23 24 25 26 27 28 29 30>;
374
375 qcom,wcd-rst-gpio-node = <&wcd_rst_gpio>;
376
Soumya Managoli91ec9502018-01-18 16:53:47 +0530377 clock-names = "wcd_clk", "wcd_native_clk";
378 clocks = <&clock_audio clk_audio_pmi_clk>,
379 <&clock_audio clk_audio_ap_clk2>;
380
Soumya Managolia88ad0b2018-02-17 11:31:19 +0530381 qcom,cdc-static-supplies =
382 "cdc-vdd-buck",
383 "cdc-buck-sido",
384 "cdc-vdd-tx-h",
385 "cdc-vdd-rx-h",
386 "cdc-vdd-px";
387
388 qcom,cdc-on-demand-supplies = "cdc-vdd-mic-bias";
389 qcom,cdc-micbias1-mv = <1800>;
jinjiawu56520262020-05-14 18:02:17 +0800390 qcom,cdc-micbias2-mv = <2800>;
Soumya Managolia88ad0b2018-02-17 11:31:19 +0530391 qcom,cdc-micbias3-mv = <1800>;
392 qcom,cdc-micbias4-mv = <1800>;
393
394 qcom,cdc-dmic-sample-rate = <2400000>;
395 qcom,cdc-mclk-clk-rate = <9600000>;
Soumya Managoli91ec9502018-01-18 16:53:47 +0530396
397 cdc-vdd-buck-supply = <&eldo2_8953>;
398 qcom,cdc-vdd-buck-voltage = <1800000 1800000>;
399 qcom,cdc-vdd-buck-current = <650000>;
400
401 cdc-buck-sido-supply = <&eldo2_8953>;
402 qcom,cdc-buck-sido-voltage = <1800000 1800000>;
403 qcom,cdc-buck-sido-current = <150000>;
404
405 cdc-vdd-tx-h-supply = <&eldo2_8953>;
406 qcom,cdc-vdd-tx-h-voltage = <1800000 1800000>;
407 qcom,cdc-vdd-tx-h-current = <25000>;
408
409 cdc-vdd-rx-h-supply = <&eldo2_8953>;
410 qcom,cdc-vdd-rx-h-voltage = <1800000 1800000>;
411 qcom,cdc-vdd-rx-h-current = <25000>;
412
413 cdc-vdd-px-supply = <&eldo2_8953>;
414 qcom,cdc-vdd-px-voltage = <1800000 1800000>;
415 qcom,cdc-vdd-px-current = <10000>;
416
417 cdc-vdd-mic-bias-supply = <&pm8953_l13>;
418 qcom,cdc-vdd-mic-bias-voltage = <3125000 3125000>;
419 qcom,cdc-vdd-mic-bias-current = <15000>;
420 };
421};
422&pm8953_gpios {
423 gpio@c000 {
424 status = "ok";
425 qcom,mode = <1>;
426 qcom,pull = <5>;
427 qcom,vin-sel = <0>;
428 qcom,src-sel = <2>;
429 qcom,master-en = <1>;
430 qcom,out-strength = <2>;
431 };
Soumya Managolia88ad0b2018-02-17 11:31:19 +0530432
433 tasha_mclk {
434 tasha_mclk_default: tasha_mclk_default{
435 pins = "gpio1";
436 function = "func1";
437 qcom,drive-strength = <2>;
438 power-source = <0>;
439 bias-disable;
440 output-low;
441 };
442 };
Soumya Managoli91ec9502018-01-18 16:53:47 +0530443};
444
445&pm8953_1 {
446 pmic_analog_codec: analog-codec@f000 {
jinjiawu56520262020-05-14 18:02:17 +0800447 status = "disabled";
Soumya Managoli91ec9502018-01-18 16:53:47 +0530448 compatible = "qcom,pmic-analog-codec";
449 reg = <0xf000 0x200>;
450 #address-cells = <2>;
451 #size-cells = <0>;
452 interrupt-parent = <&spmi_bus>;
453 interrupts = <0x1 0xf0 0x0 IRQ_TYPE_NONE>,
454 <0x1 0xf0 0x1 IRQ_TYPE_NONE>,
455 <0x1 0xf0 0x2 IRQ_TYPE_NONE>,
456 <0x1 0xf0 0x3 IRQ_TYPE_NONE>,
457 <0x1 0xf0 0x4 IRQ_TYPE_NONE>,
458 <0x1 0xf0 0x5 IRQ_TYPE_NONE>,
459 <0x1 0xf0 0x6 IRQ_TYPE_NONE>,
460 <0x1 0xf0 0x7 IRQ_TYPE_NONE>,
461 <0x1 0xf1 0x0 IRQ_TYPE_NONE>,
462 <0x1 0xf1 0x1 IRQ_TYPE_NONE>,
463 <0x1 0xf1 0x2 IRQ_TYPE_NONE>,
464 <0x1 0xf1 0x3 IRQ_TYPE_NONE>,
465 <0x1 0xf1 0x4 IRQ_TYPE_NONE>,
466 <0x1 0xf1 0x5 IRQ_TYPE_NONE>;
467 interrupt-names = "spk_cnp_int",
468 "spk_clip_int",
469 "spk_ocp_int",
470 "ins_rem_det1",
471 "but_rel_det",
472 "but_press_det",
473 "ins_rem_det",
474 "mbhc_int",
475 "ear_ocp_int",
476 "hphr_ocp_int",
477 "hphl_ocp_det",
478 "ear_cnp_int",
479 "hphr_cnp_int",
480 "hphl_cnp_int";
481
482 cdc-vdda-cp-supply = <&pm8953_s4>;
483 qcom,cdc-vdda-cp-voltage = <1900000 2050000>;
484 qcom,cdc-vdda-cp-current = <500000>;
485
486 cdc-vdd-io-supply = <&pm8953_l5>;
487 qcom,cdc-vdd-io-voltage = <1800000 1800000>;
488 qcom,cdc-vdd-io-current = <5000>;
489
490 cdc-vdd-pa-supply = <&pm8953_s4>;
491 qcom,cdc-vdd-pa-voltage = <1900000 2050000>;
492 qcom,cdc-vdd-pa-current = <260000>;
493
494 cdc-vdd-mic-bias-supply = <&pm8953_l13>;
495 qcom,cdc-vdd-mic-bias-voltage = <3125000 3125000>;
496 qcom,cdc-vdd-mic-bias-current = <5000>;
497
498 qcom,cdc-mclk-clk-rate = <9600000>;
499
500 qcom,cdc-static-supplies = "cdc-vdd-io",
501 "cdc-vdd-pa",
502 "cdc-vdda-cp";
503
504 qcom,cdc-on-demand-supplies = "cdc-vdd-mic-bias";
505
506 msm_digital_codec: msm-dig-codec {
507 compatible = "qcom,msm-digital-codec";
508 reg = <0xc0f0000 0x0>;
509 };
510 };
511};