blob: 81ce1e50430417dcf98d818bafd19db56233ddaf [file] [log] [blame]
Banajit Goswami7885c692017-03-16 16:00:34 -07001/* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
Channagoud Kadabi6d4bb832016-06-30 23:40:05 -07002 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
Kyle Yan6a20fae2017-02-14 13:34:41 -080012
David Collinsc6686252017-03-31 14:23:09 -070013#include <dt-bindings/gpio/gpio.h>
David Collinsde33ee92017-07-12 11:55:32 -070014#include "sdm845-pmic-overlay.dtsi"
15#include "sdm845-pinctrl-overlay.dtsi"
Jigarkumar Zala861231152017-02-28 14:05:11 -080016#include "sdm845-camera-sensor-cdp.dtsi"
Sungjun Parkc9f9c062017-03-21 16:45:18 -070017
Kyle Yandb9fe122017-07-06 14:58:09 -070018&vendor {
Sungjun Parkc9f9c062017-03-21 16:45:18 -070019 bluetooth: bt_wcn3990 {
20 compatible = "qca,wcn3990";
21 qca,bt-vdd-io-supply = <&pm8998_s3>;
22 qca,bt-vdd-xtal-supply = <&pm8998_s5>;
23 qca,bt-vdd-core-supply = <&pm8998_l7>;
24 qca,bt-vdd-pa-supply = <&pm8998_l17>;
25 qca,bt-vdd-ldo-supply = <&pm8998_l25>;
26
27 qca,bt-vdd-io-voltage-level = <1352000 1352000>;
28 qca,bt-vdd-xtal-voltage-level = <2040000 2040000>;
29 qca,bt-vdd-core-voltage-level = <1800000 1800000>;
30 qca,bt-vdd-pa-voltage-level = <1304000 1304000>;
31 qca,bt-vdd-ldo-voltage-level = <3312000 3312000>;
32
33 qca,bt-vdd-io-current-level = <1>; /* LPM/PFM */
34 qca,bt-vdd-xtal-current-level = <1>; /* LPM/PFM */
35 qca,bt-vdd-core-current-level = <1>; /* LPM/PFM */
36 qca,bt-vdd-pa-current-level = <1>; /* LPM/PFM */
37 qca,bt-vdd-ldo-current-level = <1>; /* LPM/PFM */
38 };
39};
40
Banajit Goswamic0b75812017-03-16 16:14:17 -070041&soc {
David Collinsc6686252017-03-31 14:23:09 -070042 gpio_keys {
43 compatible = "gpio-keys";
44 label = "gpio-keys";
45
46 pinctrl-names = "default";
47 pinctrl-0 = <&key_home_default
48 &key_vol_up_default
49 &key_cam_snapshot_default
50 &key_cam_focus_default>;
51
52 home {
53 label = "home";
54 gpios = <&pm8998_gpios 5 GPIO_ACTIVE_LOW>;
55 linux,input-type = <1>;
56 linux,code = <102>;
57 gpio-key,wakeup;
58 debounce-interval = <15>;
59 linux,can-disable;
60 };
61
62 vol_up {
63 label = "volume_up";
64 gpios = <&pm8998_gpios 6 GPIO_ACTIVE_LOW>;
65 linux,input-type = <1>;
66 linux,code = <115>;
67 gpio-key,wakeup;
68 debounce-interval = <15>;
69 linux,can-disable;
70 };
71
72 cam_snapshot {
73 label = "cam_snapshot";
74 gpios = <&pm8998_gpios 7 GPIO_ACTIVE_LOW>;
75 linux,input-type = <1>;
76 linux,code = <766>;
77 gpio-key,wakeup;
78 debounce-interval = <15>;
79 linux,can-disable;
80 };
81
82 cam_focus {
83 label = "cam_focus";
84 gpios = <&pm8998_gpios 8 GPIO_ACTIVE_LOW>;
85 linux,input-type = <1>;
86 linux,code = <528>;
87 gpio-key,wakeup;
88 debounce-interval = <15>;
89 linux,can-disable;
90 };
91 };
Banajit Goswamic0b75812017-03-16 16:14:17 -070092};
Subhash Jadavani20a48962017-03-27 15:37:57 -070093
Ram Chandrasekar316c3932017-04-25 12:48:55 -060094&mdss_mdp {
95 #cooling-cells = <2>;
96};
97
Subhash Jadavani20a48962017-03-27 15:37:57 -070098&ufsphy_mem {
99 compatible = "qcom,ufs-phy-qmp-v3";
100
101 vdda-phy-supply = <&pm8998_l1>; /* 0.88v */
102 vdda-pll-supply = <&pm8998_l26>; /* 1.2v */
Subhash Jadavani20a48962017-03-27 15:37:57 -0700103 vdda-phy-max-microamp = <62900>;
104 vdda-pll-max-microamp = <18300>;
Subhash Jadavani20a48962017-03-27 15:37:57 -0700105
106 status = "ok";
107};
108
109&ufshc_mem {
110 vdd-hba-supply = <&ufs_phy_gdsc>;
111 vdd-hba-fixed-regulator;
112 vcc-supply = <&pm8998_l20>;
Bao D. Nguyen61e7a1a2017-09-11 12:30:01 -0700113 vcc-voltage-level = <2950000 2960000>;
Subhash Jadavani20a48962017-03-27 15:37:57 -0700114 vccq2-supply = <&pm8998_s4>;
115 vcc-max-microamp = <600000>;
116 vccq2-max-microamp = <600000>;
117
Subhash Jadavani05480172017-04-01 15:51:52 -0700118 qcom,vddp-ref-clk-supply = <&pm8998_l2>;
119 qcom,vddp-ref-clk-max-microamp = <100>;
120
Subhash Jadavani20a48962017-03-27 15:37:57 -0700121 status = "ok";
122};
123
Xiaonian Wange5dedbb2017-04-08 06:48:59 +0800124&sdhc_2 {
125 vdd-supply = <&pm8998_l21>;
126 qcom,vdd-voltage-level = <2950000 2960000>;
127 qcom,vdd-current-level = <200 800000>;
128
129 vdd-io-supply = <&pm8998_l13>;
130 qcom,vdd-io-voltage-level = <1808000 2960000>;
131 qcom,vdd-io-current-level = <200 22000>;
132
133 pinctrl-names = "active", "sleep";
Subhash Jadavani0a975232017-09-27 11:43:28 -0700134 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &storage_cd>;
135 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &storage_cd>;
Xiaonian Wange5dedbb2017-04-08 06:48:59 +0800136
Subhash Jadavani0a975232017-09-27 11:43:28 -0700137 cd-gpios = <&tlmm 126 GPIO_ACTIVE_LOW>;
Subhash Jadavanidd416c42017-05-15 11:54:10 -0700138
Xiaonian Wange5dedbb2017-04-08 06:48:59 +0800139 status = "ok";
140};
141
Subbaraman Narayanamurthy58377f02017-03-21 20:38:43 -0700142&pmi8998_switch1 {
Subbaraman Narayanamurthycd21c812017-03-30 18:36:49 -0700143 pinctrl-names = "led_enable", "led_disable";
144 pinctrl-0 = <&flash_led3_front_en>;
145 pinctrl-1 = <&flash_led3_front_dis>;
146};
Harry Yang67111662017-04-05 15:14:52 -0700147
148&pmi8998_charger {
149 qcom,batteryless-platform;
150};
Girish Mahadevan11bc2ff2017-04-08 08:26:35 -0600151
Kyle Yandb9fe122017-07-06 14:58:09 -0700152&vendor {
Jack Phamc2160c842017-04-05 09:48:59 -0700153 extcon_usb1: extcon_usb1 {
154 compatible = "linux,extcon-usb-gpio";
155 id-gpio = <&pmi8998_gpios 9 GPIO_ACTIVE_HIGH>;
156 vbus-gpio = <&pmi8998_gpios 8 GPIO_ACTIVE_HIGH>;
157
158 pinctrl-names = "default";
159 pinctrl-0 = <&usb2_vbus_det_default
160 &usb2_id_det_default>;
161 };
162
163 usb1_vbus_vreg: usb1_vbus_vreg {
164 compatible = "regulator-fixed";
165 regulator-name = "usb_vbus_vreg";
166 gpio = <&pmi8998_gpios 2 GPIO_ACTIVE_HIGH>;
167 enable-active-high;
168
169 /* Typical EN-to-VBUS turn on time for NX5P1100 */
170 regulator-enable-ramp-delay = <630>;
171
172 pinctrl-names = "default";
173 pinctrl-0 = <&usb2_vbus_boost_default>;
174 };
Girish Mahadevan11bc2ff2017-04-08 08:26:35 -0600175};
176
177&qupv3_se9_2uart {
178 status = "ok";
179};
180
Shashank Babu Chinta Venkata59e305f2017-04-05 12:14:18 -0700181&labibb {
182 status = "ok";
183 qcom,qpnp-labibb-mode = "lcd";
184};
185
186&dsi_dual_nt35597_truly_video {
187 qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
188 qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
189 qcom,mdss-dsi-bl-min-level = <1>;
190 qcom,mdss-dsi-bl-max-level = <4095>;
Vara Reddy199c2822017-05-19 10:14:44 -0700191 qcom,mdss-dsi-mode-sel-gpio-state = "dual_port";
Shashank Babu Chinta Venkata59e305f2017-04-05 12:14:18 -0700192 qcom,panel-mode-gpio = <&tlmm 52 0>;
193 qcom,platform-reset-gpio = <&tlmm 6 0>;
194};
195
Shashank Babu Chinta Venkatac5ab0192017-05-15 09:57:19 -0700196&dsi_dual_nt35597_truly_cmd {
197 qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
198 qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
199 qcom,mdss-dsi-bl-min-level = <1>;
200 qcom,mdss-dsi-bl-max-level = <4095>;
Vara Reddy199c2822017-05-19 10:14:44 -0700201 qcom,mdss-dsi-mode-sel-gpio-state = "dual_port";
202 qcom,panel-mode-gpio = <&tlmm 52 0>;
203 qcom,platform-reset-gpio = <&tlmm 6 0>;
204 qcom,platform-te-gpio = <&tlmm 10 0>;
205};
206
207&dsi_nt35597_truly_dsc_cmd {
208 qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
209 qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
210 qcom,mdss-dsi-bl-min-level = <1>;
211 qcom,mdss-dsi-bl-max-level = <4095>;
212 qcom,mdss-dsi-mode-sel-gpio-state = "single_port";
213 qcom,panel-mode-gpio = <&tlmm 52 0>;
214 qcom,platform-reset-gpio = <&tlmm 6 0>;
215 qcom,platform-te-gpio = <&tlmm 10 0>;
216};
217
218&dsi_nt35597_truly_dsc_video {
219 qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
220 qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
221 qcom,mdss-dsi-bl-min-level = <1>;
222 qcom,mdss-dsi-bl-max-level = <4095>;
223 qcom,mdss-dsi-mode-sel-gpio-state = "single_port";
Shashank Babu Chinta Venkatac5ab0192017-05-15 09:57:19 -0700224 qcom,panel-mode-gpio = <&tlmm 52 0>;
225 qcom,platform-reset-gpio = <&tlmm 6 0>;
226};
227
Lloyd Atkinson24f743f2017-05-12 11:48:51 -0400228&dsi_sharp_1080_cmd {
229 qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
230 qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
231 qcom,mdss-dsi-bl-min-level = <1>;
232 qcom,mdss-dsi-bl-max-level = <4095>;
233 qcom,platform-reset-gpio = <&tlmm 6 0>;
234};
235
Narendra Muppallae8c25c82017-04-02 19:20:57 -0700236&dsi_sim_vid {
237 qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
238 qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
239 qcom,platform-reset-gpio = <&tlmm 6 0>;
240};
241
242&dsi_dual_sim_vid {
243 qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
244 qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
245 qcom,platform-reset-gpio = <&tlmm 6 0>;
246};
247
Narendra Muppallaa1a55462017-04-04 18:07:27 -0700248&dsi_sim_cmd {
249 qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
250 qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
251 qcom,platform-reset-gpio = <&tlmm 6 0>;
252};
253
254&dsi_dual_sim_cmd {
255 qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
256 qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
257 qcom,platform-reset-gpio = <&tlmm 6 0>;
258};
259
Rajkumar Subbiah01671a42017-07-14 16:41:01 -0400260&dsi_sim_dsc_375_cmd {
261 qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
262 qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
263 qcom,platform-reset-gpio = <&tlmm 6 0>;
264};
265
266&dsi_dual_sim_dsc_375_cmd {
267 qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
268 qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
269 qcom,platform-reset-gpio = <&tlmm 6 0>;
270};
271
Vara Reddy9f484ac2017-06-14 15:20:43 -0700272&dsi_nt35597_truly_dsc_cmd_display {
Shashank Babu Chinta Venkata59e305f2017-04-05 12:14:18 -0700273 qcom,dsi-display-active;
274};
275
276&pmi8998_wled {
277 status = "okay";
278 qcom,led-strings-list = [01 02];
279};
280
Subbaraman Narayanamurthyb6340482017-05-15 20:08:15 -0700281&pmi8998_haptics {
282 qcom,vmax-mv = <2400>;
283 qcom,lra-auto-mode;
284 status = "okay";
285};
286
Girish Mahadevan11bc2ff2017-04-08 08:26:35 -0600287&qupv3_se8_spi {
288 status = "ok";
289};
290
291&qupv3_se3_i2c {
292 status = "ok";
Gaurav Singhalf6d253d2017-05-11 08:24:40 +0530293 nq@28 {
294 compatible = "qcom,nq-nci";
295 reg = <0x28>;
296 qcom,nq-irq = <&tlmm 63 0x00>;
297 qcom,nq-ven = <&tlmm 12 0x00>;
298 qcom,nq-firm = <&tlmm 62 0x00>;
299 qcom,nq-clkreq = <&pm8998_gpios 21 0x00>;
300 qcom,nq-esepwr = <&tlmm 116 0x00>;
301 interrupt-parent = <&tlmm>;
302 qcom,clk-src = "BBCLK3";
303 interrupts = <63 0>;
304 interrupt-names = "nfc_irq";
305 pinctrl-names = "nfc_active", "nfc_suspend";
Gaurav Singhal243b94b2017-06-20 14:16:59 +0530306 pinctrl-0 = <&nfc_int_active
307 &nfc_enable_active
308 &nfc_clk_default>;
Gaurav Singhalf6d253d2017-05-11 08:24:40 +0530309 pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend>;
310 clocks = <&clock_rpmh RPMH_LN_BB_CLK3>;
311 clock-names = "ref_clk";
312 };
Girish Mahadevan11bc2ff2017-04-08 08:26:35 -0600313};
314
315&qupv3_se10_i2c {
316 status = "ok";
317};
Jack Phamc2160c842017-04-05 09:48:59 -0700318
Girish Mahadevan1d38bd32017-04-11 17:59:47 -0600319&qupv3_se6_4uart {
320 status = "ok";
321};
322
Jack Phamc2160c842017-04-05 09:48:59 -0700323&usb1 {
324 status = "okay";
325 extcon = <&extcon_usb1>;
326 vbus_dwc3-supply = <&usb1_vbus_vreg>;
327};
328
329&qusb_phy1 {
330 status = "okay";
331};
332
333&usb_qmp_phy {
334 status = "okay";
335};
Siddartha Mohanadoss81021962017-04-12 11:31:00 -0700336
337&pm8998_vadc {
338 chan@83 {
339 label = "vph_pwr";
340 reg = <0x83>;
341 qcom,decimation = <2>;
342 qcom,pre-div-channel-scaling = <1>;
343 qcom,calibration-type = "absolute";
344 qcom,scale-function = <0>;
345 qcom,hw-settle-time = <0>;
346 qcom,fast-avg-setup = <0>;
347 };
348
349 chan@85 {
350 label = "vcoin";
351 reg = <0x85>;
352 qcom,decimation = <2>;
353 qcom,pre-div-channel-scaling = <1>;
354 qcom,calibration-type = "absolute";
355 qcom,scale-function = <0>;
356 qcom,hw-settle-time = <0>;
357 qcom,fast-avg-setup = <0>;
358 };
359
360 chan@4c {
361 label = "xo_therm";
362 reg = <0x4c>;
363 qcom,decimation = <2>;
364 qcom,pre-div-channel-scaling = <0>;
365 qcom,calibration-type = "ratiometric";
366 qcom,scale-function = <4>;
367 qcom,hw-settle-time = <2>;
368 qcom,fast-avg-setup = <0>;
369 };
370
371 chan@4d {
372 label = "msm_therm";
373 reg = <0x4d>;
374 qcom,decimation = <2>;
375 qcom,pre-div-channel-scaling = <0>;
376 qcom,calibration-type = "ratiometric";
377 qcom,scale-function = <2>;
378 qcom,hw-settle-time = <2>;
379 qcom,fast-avg-setup = <0>;
380 };
381
382 chan@4f {
383 label = "pa_therm1";
384 reg = <0x4f>;
385 qcom,decimation = <2>;
386 qcom,pre-div-channel-scaling = <0>;
387 qcom,calibration-type = "ratiometric";
388 qcom,scale-function = <2>;
389 qcom,hw-settle-time = <2>;
390 qcom,fast-avg-setup = <0>;
391 };
392
393 chan@51 {
394 label = "quiet_therm";
395 reg = <0x51>;
396 qcom,decimation = <2>;
397 qcom,pre-div-channel-scaling = <0>;
398 qcom,calibration-type = "ratiometric";
399 qcom,scale-function = <2>;
400 qcom,hw-settle-time = <2>;
401 qcom,fast-avg-setup = <0>;
402 };
403};
404
405&pm8998_adc_tm {
406 chan@83 {
407 label = "vph_pwr";
408 reg = <0x83>;
409 qcom,pre-div-channel-scaling = <1>;
410 qcom,calibration-type = "absolute";
411 qcom,scale-function = <0>;
412 qcom,hw-settle-time = <0>;
413 qcom,btm-channel-number = <0x60>;
414 };
Siddartha Mohanadossd550ea42017-05-12 10:03:17 -0700415
416 chan@4c {
417 label = "xo_therm";
418 reg = <0x4c>;
419 qcom,pre-div-channel-scaling = <0>;
420 qcom,calibration-type = "ratiometric";
421 qcom,scale-function = <4>;
422 qcom,hw-settle-time = <2>;
423 qcom,btm-channel-number = <0x68>;
424 qcom,thermal-node;
425 };
426
427 chan@4d {
428 label = "msm_therm";
429 reg = <0x4d>;
430 qcom,pre-div-channel-scaling = <0>;
431 qcom,calibration-type = "ratiometric";
432 qcom,scale-function = <2>;
433 qcom,hw-settle-time = <2>;
434 qcom,btm-channel-number = <0x70>;
435 qcom,thermal-node;
436 };
437
438 chan@4f {
439 label = "pa_therm1";
440 reg = <0x4f>;
441 qcom,pre-div-channel-scaling = <0>;
442 qcom,calibration-type = "ratiometric";
443 qcom,scale-function = <2>;
444 qcom,hw-settle-time = <2>;
445 qcom,btm-channel-number = <0x78>;
446 qcom,thermal-node;
447 };
448
449 chan@51 {
450 label = "quiet_therm";
451 reg = <0x51>;
452 qcom,pre-div-channel-scaling = <0>;
453 qcom,calibration-type = "ratiometric";
454 qcom,scale-function = <2>;
455 qcom,hw-settle-time = <2>;
456 qcom,btm-channel-number = <0x80>;
457 qcom,thermal-node;
458 };
Siddartha Mohanadoss0fbfc822017-04-21 11:41:32 -0700459};
Siddartha Mohanadoss81021962017-04-12 11:31:00 -0700460
Siddartha Mohanadoss0fbfc822017-04-21 11:41:32 -0700461&thermal_zones {
462 xo-therm-adc {
463 polling-delay-passive = <0>;
464 polling-delay = <0>;
Siddartha Mohanadossd550ea42017-05-12 10:03:17 -0700465 thermal-sensors = <&pm8998_adc_tm 0x4c>;
466 thermal-governor = "user_space";
467
468 trips {
469 active-config0 {
470 temperature = <65000>;
471 hysteresis = <1000>;
472 type = "passive";
473 };
474 };
Siddartha Mohanadoss81021962017-04-12 11:31:00 -0700475 };
476
Siddartha Mohanadoss0fbfc822017-04-21 11:41:32 -0700477 msm-therm-adc {
478 polling-delay-passive = <0>;
479 polling-delay = <0>;
Siddartha Mohanadossd550ea42017-05-12 10:03:17 -0700480 thermal-sensors = <&pm8998_adc_tm 0x4d>;
481 thermal-governor = "user_space";
482
483 trips {
484 active-config0 {
485 temperature = <65000>;
486 hysteresis = <1000>;
487 type = "passive";
488 };
489 };
Siddartha Mohanadoss81021962017-04-12 11:31:00 -0700490 };
491
Siddartha Mohanadoss0fbfc822017-04-21 11:41:32 -0700492 pa-therm1-adc {
493 polling-delay-passive = <0>;
494 polling-delay = <0>;
Siddartha Mohanadossd550ea42017-05-12 10:03:17 -0700495 thermal-sensors = <&pm8998_adc_tm 0x4f>;
496 thermal-governor = "user_space";
497
498 trips {
499 active-config0 {
500 temperature = <65000>;
501 hysteresis = <1000>;
502 type = "passive";
503 };
504 };
Siddartha Mohanadoss81021962017-04-12 11:31:00 -0700505 };
506
Siddartha Mohanadoss0fbfc822017-04-21 11:41:32 -0700507 quiet-therm-adc {
508 polling-delay-passive = <0>;
509 polling-delay = <0>;
Siddartha Mohanadossd550ea42017-05-12 10:03:17 -0700510 thermal-sensors = <&pm8998_adc_tm 0x51>;
511 thermal-governor = "user_space";
512
513 trips {
514 active-config0 {
515 temperature = <65000>;
516 hysteresis = <1000>;
517 type = "passive";
518 };
519 };
Siddartha Mohanadoss81021962017-04-12 11:31:00 -0700520 };
521};
Maya Erez6e14acb2017-05-16 09:59:02 +0300522
523&wil6210 {
524 status = "ok";
525};
Harry Yang4c05d3e42017-05-09 16:18:17 -0700526
527&ext_5v_boost {
528 status = "ok";
529};