blob: 1ac603ee2838572b085351a27e2414fd95f85d81 [file] [log] [blame]
Jagadeesh Banisettib2d8daa2018-04-03 15:43:53 +05301/*
2 * Copyright (c) 2018, 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/dts-v1/;
15
16#include "msm8909-mtp.dtsi"
17#include "8909-pm8916.dtsi"
18#include "msm8909-pm8916-mtp.dtsi"
Jagadeesh Banisettib2d8daa2018-04-03 15:43:53 +053019
20/ {
21 model = "Qualcomm Technologies, Inc. APQ8009 Dragon Board";
22 compatible = "qcom,apq8009-mtp", "qcom,apq8009", "qcom,mtp";
23 qcom,msm-id = <265 2>;
24 qcom,board-id = <32 0x0>;
25};
26
27&soc {
Md Mansoor Ahmed0a5698b2018-08-29 15:59:58 +053028 cdc_dmic_gpios: cdc_dmic_pinctrl {
29 compatible = "qcom,msm-cdc-pinctrl";
30 pinctrl-names = "aud_active", "aud_sleep";
31 pinctrl-0 = <&cdc_dmic0_clk_act &cdc_dmic0_data_act>;
32 pinctrl-1 = <&cdc_dmic0_clk_sus &cdc_dmic0_data_sus>;
33 };
34
35 cdc_prim_mi2s_gpios: msm_cdc_pinctrl_pri {
36 compatible = "qcom,msm-cdc-pinctrl";
37 pinctrl-names = "aud_active", "aud_sleep";
38 pinctrl-0 = <&pri_mi2s_sleep &pri_mi2s_ws_sleep
39 &pri_mi2s_dout_sleep &pri_mi2s_din_sleep
40 &ext_amp_ctrl_sleep &amp_mute_sleep>;
41 pinctrl-1 = <&pri_mi2s_active &pri_mi2s_ws_active
42 &pri_mi2s_dout_active &pri_mi2s_din_active
43 &ext_amp_ctrl_active &amp_mute_active>;
44
45 };
46
47 audio_codec_mtp: sound {
48 status = "ok";
49 qcom,msm-hs-micbias-type = "internal";
50 qcom,model = "msm8909-212-som-snd-card";
Jagadeesh Banisettib2d8daa2018-04-03 15:43:53 +053051 qcom,msm-mbhc-hphl-swh = <0>;
Md Mansoor Ahmed0a5698b2018-08-29 15:59:58 +053052
Jagadeesh Banisettib2d8daa2018-04-03 15:43:53 +053053 qcom,audio-routing =
Jagadeesh Banisettib2d8daa2018-04-03 15:43:53 +053054 "RX_BIAS", "MCLK",
Md Mansoor Ahmed0a5698b2018-08-29 15:59:58 +053055 "SPK_RX_BIAS", "MCLK",
56 "INT_LDO_H", "MCLK",
57 "RX_I2S_CLK", "MCLK",
58 "TX_I2S_CLK", "MCLK",
59 "MIC BIAS Internal1", "Handset Mic",
60 "MIC BIAS Internal2", "Headset Mic",
61 "MIC BIAS Internal1", "Secondary Mic",
62 "AMIC1", "MIC BIAS Internal1",
63 "AMIC2", "MIC BIAS Internal2",
64 "AMIC3", "MIC BIAS Internal1",
65 "DMIC1", "DIGITAL_REGULATOR",
66 "DIGITAL_REGULATOR", "Digital Mic1",
67 "DMIC2", "DIGITAL_REGULATOR",
68 "DIGITAL_REGULATOR", "Digital Mic2";
69
70 qcom,pri-mi2s-gpios = <&cdc_prim_mi2s_gpios>;
71 qcom,cdc-dmic-gpios = <&cdc_dmic_gpios>;
72
73 qcom,afe-rxtx-lb;
74 asoc-platform = <&pcm0>, <&pcm1>, <&pcm2>, <&voip>, <&voice>,
75 <&loopback>, <&compress>, <&hostless>,
76 <&afe>, <&lsm>, <&routing>, <&pcm_noirq>;
77 asoc-platform-names = "msm-pcm-dsp.0", "msm-pcm-dsp.1",
78 "msm-pcm-dsp.2", "msm-voip-dsp",
79 "msm-pcm-voice", "msm-pcm-loopback",
80 "msm-compress-dsp", "msm-pcm-hostless",
81 "msm-pcm-afe", "msm-lsm-client",
82 "msm-pcm-routing", "msm-pcm-dsp-noirq";
83 asoc-cpu = <&dai_pri_auxpcm>,
84 <&dai_mi2s0>, <&dai_mi2s1>,
85 <&dai_mi2s2>, <&dai_mi2s3>,
86 <&dai_mi2s4>, <&dai_mi2s5>,
87 <&sb_0_rx>, <&sb_0_tx>, <&sb_1_rx>, <&sb_1_tx>,
88 <&sb_3_rx>, <&sb_3_tx>, <&sb_4_rx>, <&sb_4_tx>,
89 <&bt_sco_rx>, <&bt_sco_tx>,
90 <&int_fm_rx>, <&int_fm_tx>,
91 <&afe_pcm_rx>, <&afe_pcm_tx>,
92 <&afe_proxy_rx>, <&afe_proxy_tx>,
93 <&incall_record_rx>, <&incall_record_tx>,
94 <&incall_music_rx>, <&incall_music_2_rx>,
95 <&bt_a2dp_rx>, <&afe_loopback_tx>;
96
97 asoc-cpu-names = "msm-dai-q6-auxpcm.1",
98 "msm-dai-q6-mi2s.0", "msm-dai-q6-mi2s.1",
99 "msm-dai-q6-mi2s.2", "msm-dai-q6-mi2s.3",
100 "msm-dai-q6-mi2s.4", "msm-dai-q6-mi2s.6",
101 "msm-dai-q6-dev.16384", "msmdai-q6-dev.16385",
102 "msm-dai-q6-dev.16386", "msm-dai-q6-dev.16387",
103 "msm-dai-q6-dev.16390", "msm-dai-q6-dev.16391",
104 "msm-dai-q6-dev.16392", "msm-dai-q6-dev.16393",
105 "msm-dai-q6-dev.12288", "msm-dai-q6-dev.12289",
106 "msm-dai-q6-dev.12292", "msm-dai-q6-dev.12293",
107 "msm-dai-q6-dev.224", "msm-dai-q6-dev.225",
108 "msm-dai-q6-dev.241", "msm-dai-q6-dev.240",
109 "msm-dai-q6-dev.32771", "msm-dai-q6-dev.32772",
110 "msm-dai-q6-dev.32773", "msm-dai-q6-dev.32770",
111 "msm-dai-q6-dev.12290", "msm-dai-q6-dev.24577";
112
113 asoc-codec = <&stub_codec>, <&msm_digital_codec>,
114 <&pmic_analog_codec>;
115 asoc-codec-names = "msm-stub-codec.1", "msm-dig-codec",
116 "analog-codec";
Jagadeesh Banisettib2d8daa2018-04-03 15:43:53 +0530117 };
118
119 sound-9335 {
120 status = "disabled";
121 };
122
123 i2c@78b8000 {
124 wcd9xxx_codec@d {
125 status = "disabled";
126 };
127 };
128
129 vph_pwr_vreg: vph_pwr_vreg {
130 compatible = "regulator-fixed";
131 status = "ok";
132 regulator-name = "vph_pwr";
133 regulator-always-on;
134 };
135
136 mdss_mdp: qcom,mdss_mdp@1a00000 {
137 status = "disabled";
138 };
Tim Jiang6b649f52018-05-08 13:52:17 +0800139
140 bluetooth: bt_qca9379 {
141 compatible = "qca,qca9379";
142 qca,bt-reset-gpio = <&msm_gpio 47 0>; /* BT_EN */
143 };
gaolez718993e2018-06-08 13:46:03 +0800144
145 cnss_sdio: qcom,cnss_sdio {
146 compatible = "qcom,cnss_sdio";
147 subsys-name = "AR6320";
148 /**
149 * There is no vdd-wlan on board and this is not for DSRC.
150 * IO and XTAL share the same vreg.
151 **/
152 vdd-wlan-io-supply = <&pm8916_l5>;
153 qcom,cap-tsf-gpio = <&msm_gpio 42 1>;
154 qcom,wlan-ramdump-dynamic = <0x200000>;
155 qcom,msm-bus,name = "msm-cnss";
156 qcom,msm-bus,num-cases = <4>;
157 qcom,msm-bus,num-paths = <1>;
158 qcom,msm-bus,vectors-KBps =
159 <79 512 0 0>, /* No vote */
160 <79 512 6250 200000>, /* 50 Mbps */
161 <79 512 25000 200000>, /* 200 Mbps */
162 <79 512 2048000 4096000>; /* MAX */
163 };
164};
165
166&wcnss {
167 status = "disabled";
168};
169
Md Mansoor Ahmed0a5698b2018-08-29 15:59:58 +0530170&pm8916_1 {
171 pmic_analog_codec: analog-codec@f000 {
172 compatible = "qcom,pmic-analog-codec";
173 reg = <0xf000 0x200>;
174 #address-cells = <2>;
175 #size-cells = <0>;
176 interrupt-parent = <&spmi_bus>;
177 interrupts = <0x1 0xf0 0x0 IRQ_TYPE_NONE>,
178 <0x1 0xf0 0x1 IRQ_TYPE_NONE>,
179 <0x1 0xf0 0x2 IRQ_TYPE_NONE>,
180 <0x1 0xf0 0x3 IRQ_TYPE_NONE>,
181 <0x1 0xf0 0x4 IRQ_TYPE_NONE>,
182 <0x1 0xf0 0x5 IRQ_TYPE_NONE>,
183 <0x1 0xf0 0x6 IRQ_TYPE_NONE>,
184 <0x1 0xf0 0x7 IRQ_TYPE_NONE>,
185 <0x1 0xf1 0x0 IRQ_TYPE_NONE>,
186 <0x1 0xf1 0x1 IRQ_TYPE_NONE>,
187 <0x1 0xf1 0x2 IRQ_TYPE_NONE>,
188 <0x1 0xf1 0x3 IRQ_TYPE_NONE>,
189 <0x1 0xf1 0x4 IRQ_TYPE_NONE>,
190 <0x1 0xf1 0x5 IRQ_TYPE_NONE>;
191 interrupt-names = "spk_cnp_int",
192 "spk_clip_int",
193 "spk_ocp_int",
194 "ins_rem_det1",
195 "but_rel_det",
196 "but_press_det",
197 "ins_rem_det",
198 "mbhc_int",
199 "ear_ocp_int",
200 "hphr_ocp_int",
201 "hphl_ocp_det",
202 "ear_cnp_int",
203 "hphr_cnp_int",
204 "hphl_cnp_int";
205
206 cdc-vdda-cp-supply = <&pm8916_s4>;
207 qcom,cdc-vdda-cp-voltage = <1800000 2200000>;
208 qcom,cdc-vdda-cp-current = <770000>;
209
210 cdc-vdd-pa-supply = <&pm8916_l5>;
211 qcom,cdc-vdd-pa-voltage = <1800000 1800000>;
212 qcom,cdc-vdd-pa-current = <5000>;
213
214 cdc-vdd-mic-bias-supply = <&pm8916_l13>;
215 qcom,cdc-vdd-mic-bias-voltage = <3075000 3075000>;
216 qcom,cdc-vdd-mic-bias-current = <25000>;
217
218 qcom,cdc-mclk-clk-rate = <9600000>;
219
220 qcom,cdc-static-supplies = "cdc-vdda-cp",
221 "cdc-vdd-pa";
222
223 qcom,cdc-on-demand-supplies = "cdc-vdd-mic-bias";
224
225 msm_digital_codec: msm-dig-codec {
226 compatible = "qcom,msm-digital-codec";
227 reg = <0x0771C000 0x0>;
228 cdc-vdd-digital-supply = <&pm8916_l5>;
229 qcom,cdc-vdd-digital-voltage = <1800000 1800000>;
230 qcom,cdc-vdd-digital-current = <5000>;
231 qcom,cdc-on-demand-supplies = "cdc-vdd-digital";
232 };
233 };
234};
235
gaolez718993e2018-06-08 13:46:03 +0800236&msm_gpio {
237 sdc2_wlan_gpio_on: sdc2_wlan_gpio_on {
238 mux {
239 pins = "gpio43";
240 function = "gpio";
241 };
242 config {
243 pins = "gpio43";
244 drive-strength = <10>;
245 bias-pull-up;
246 output-high;
247 };
248 };
249
250 sdc2_wlan_gpio_off: sdc2_wlan_gpio_off {
251 mux {
252 pins = "gpio43";
253 function = "gpio";
254 };
255 config {
256 pins = "gpio43";
257 drive-strength = <2>;
258 bias-disable;
259 output-low;
260 };
261 };
Jagadeesh Banisettib2d8daa2018-04-03 15:43:53 +0530262};
263
264&sdhc_2 {
gaolez718993e2018-06-08 13:46:03 +0800265 /delete-property/cd-gpios;
266 #address-cells = <0>;
267 interrupt-parent = <&sdhc_2>;
268 interrupts = <0 1 2>;
269 #interrupt-cells = <1>;
270 interrupt-map-mask = <0xffffffff>;
271 interrupt-map = <0 &intc 0 125 0
272 1 &intc 0 221 0
273 2 &msm_gpio 40 0x1>;
274 interrupt-names = "hc_irq", "pwr_irq", "sdiowakeup_irq";
275
276 qcom,vdd-voltage-level = <1800000 2950000>;
277 qcom,vdd-current-level = <15000 400000>;
278
279 qcom,vdd-io-voltage-level = <1800000 1800000>;
280 qcom,vdd-io-current-level = <200 50000>;
281 qcom,clk-rates = <400000 25000000 50000000 100000000 200000000>;
282 qcom,bus-speed-mode = "SDR12", "SDR25", "SDR50", "DDR50", "SDR104";
283
284 pinctrl-names = "active", "sleep";
285 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on
286 &sdc2_wlan_gpio_on>;
287 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off
288 &sdc2_wlan_gpio_off>;
289 qcom,nonremovable;
290 qcom,core_3_0v_support;
291 status = "ok";
Jagadeesh Banisettib2d8daa2018-04-03 15:43:53 +0530292};
293
294&usb_otg {
Sriharsha Allenkibc39b8d2018-08-24 17:47:42 +0530295 interrupts = <0 134 0>,<0 140 0>;
296 interrupt-names = "core_irq", "async_irq";
Jagadeesh Banisettib2d8daa2018-04-03 15:43:53 +0530297 qcom,hsusb-otg-mode = <3>;
Arulpandiyan Vadivelacd7fb82018-04-19 12:38:34 +0530298 qcom,switch-vbus-w-id;
Jagadeesh Banisettib2d8daa2018-04-03 15:43:53 +0530299 vbus_otg-supply = <&vph_pwr_vreg>;
Arulpandiyan Vadivelacd7fb82018-04-19 12:38:34 +0530300 extcon = <&pm8916_chg>;
Jagadeesh Banisettib2d8daa2018-04-03 15:43:53 +0530301};
302
303&external_image_mem {
304 reg = <0x0 0x87a00000 0x0 0x0600000>;
305};
306
307&modem_adsp_mem {
308 reg = <0x0 0x88000000 0x0 0x01e00000>;
309};
310
311&peripheral_mem {
312 reg = <0x0 0x89e00000 0x0 0x0700000>;
313};
314
315&i2c_4 {
316 smb1360_otg_supply: smb1360-chg-fg@14 {
317 compatible = "qcom,smb1360-chg-fg";
318 reg = <0x14>;
319 interrupt-parent = <&msm_gpio>;
320 interrupts = <58 8>;
321 pinctrl-names = "default";
322 pinctrl-0 = <&smb_int_default>;
323 qcom,charging-disabled;
324 qcom,empty-soc-disabled;
325 qcom,chg-inhibit-disabled;
326 qcom,float-voltage-mv = <4200>;
327 qcom,iterm-ma = <200>;
328 qcom,recharge-thresh-mv = <100>;
329 qcom,thermal-mitigation = <1500 700 600 0>;
330 regulator-name = "smb1360_otg_vreg";
Md Mansoor Ahmed0a5698b2018-08-29 15:59:58 +0530331 status= "okay";
Jagadeesh Banisettib2d8daa2018-04-03 15:43:53 +0530332 };
333};
Arulpandiyan Vadivelacd7fb82018-04-19 12:38:34 +0530334
Madhukar Sandid7c1dc62018-04-27 12:21:17 +0530335&firmware {
336 android {
337 compatible = "android,firmware";
338 fstab {
339 compatible = "android,fstab";
340 vendor_fstab: vendor {
341 fsmgr_flags = "wait,slotselect";
342 };
343 /delete-node/ system;
344 };
345 };
346};
347
Arulpandiyan Vadivelacd7fb82018-04-19 12:38:34 +0530348&pm8916_chg {
349 status = "ok";
Venkataraman Nerellapallide527a712018-07-01 11:41:02 +0530350 qcom,use-default-batt-values;
Arulpandiyan Vadivelacd7fb82018-04-19 12:38:34 +0530351};
352
353&pm8916_bms {
354 status = "ok";
355};
Tim Jiang6b649f52018-05-08 13:52:17 +0800356
357&blsp1_uart2_hs {
358 status = "ok";
359};
Md Mansoor Ahmed0a5698b2018-08-29 15:59:58 +0530360
361&blsp1_uart1 {
362 status = "disabled";
363};
Vijay Navnath Kambleb1e1b8c2018-09-20 14:30:52 +0530364
365&i2c_5 {
366 status = "okay";
367 goodix_ts@5d {
368 compatible = "goodix,gt9xx";
369 status = "okay";
370 reg = <0x5d>;
371 vdd_ana-supply = <&pm8916_l17>;
372 vcc_i2c-supply = <&pm8916_l6>;
373 interrupt-parent = <&msm_gpio>;
374 interrupts = <13 0x2008>;
375 pinctrl-names = "gdix_ts_int_default", "gdix_ts_int_output_low",
376 "gdix_ts_int_output_high", "gdix_ts_int_input",
377 "gdix_ts_rst_default", "gdix_ts_rst_output_low",
378 "gdix_ts_rst_output_high", "gdix_ts_rst_input";
379 pinctrl-0 = <&ts_int_default>;
380 pinctrl-1 = <&ts_int_output_low>;
381 pinctrl-2 = <&ts_int_output_high>;
382 pinctrl-3 = <&ts_int_input>;
383 pinctrl-4 = <&ts_rst_default>;
384 pinctrl-5 = <&ts_rst_output_low>;
385 pinctrl-6 = <&ts_rst_output_high>;
386 pinctrl-7 = <&ts_rst_input>;
387 reset-gpios = <&msm_gpio 16 0x00>;
388 irq-gpios = <&msm_gpio 13 0x2008>;
389 irq-flags = <2>;
390 touchscreen-max-id = <5>;
391 touchscreen-size-x = <479>;
392 touchscreen-size-y = <853>;
393 touchscreen-max-w = <1024>;
394 touchscreen-max-p = <1024>;
395 goodix,type-a-report = <0>;
396 goodix,driver-send-cfg = <1>;
397 goodix,wakeup-with-reset = <0>;
398 goodix,resume-in-workqueue = <1>;
399 goodix,int-sync = <1>;
400 goodix,swap-x2y = <0>;
401 goodix,esd-protect = <1>;
402 goodix,pen-suppress-finger = <0>;
403 goodix,auto-update = <1>;
404 goodix,auto-update-cfg = <0>;
405 goodix,power-off-sleep = <0>;
406 };
407};