blob: f5a979c7e7f39377535c012e7636ab435da063b4 [file] [log] [blame]
Gaurav Singhal614111b2018-01-30 17:03:48 +05301/* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
Channagoud Kadabi44da4952017-03-20 20:35:56 -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 */
Harry Yang67111662017-04-05 15:14:52 -070012
David Collinsde33ee92017-07-12 11:55:32 -070013#include "sdm845-pmic-overlay.dtsi"
14#include "sdm845-pinctrl-overlay.dtsi"
Chen Neng1dc21992018-01-30 21:59:03 +080015#include "sdm845-camera-sensor-qrd.dtsi"
Kyle Yan16860532017-05-05 15:38:47 -070016#include <dt-bindings/gpio/gpio.h>
Harry Yang801aa2e2017-04-10 17:59:05 -070017
Ashay Jaiswalcc0c4232018-05-21 15:37:53 +053018&qupv3_se10_i2c {
19#include "smb1355.dtsi"
20};
21
Kyle Yandb9fe122017-07-06 14:58:09 -070022&vendor {
Sungjun Parkbd0446d2017-05-17 14:07:18 -070023 bluetooth: bt_wcn3990 {
24 compatible = "qca,wcn3990";
25 qca,bt-vdd-io-supply = <&pm8998_s3>;
26 qca,bt-vdd-xtal-supply = <&pm8998_s5>;
27 qca,bt-vdd-core-supply = <&pm8998_l7>;
28 qca,bt-vdd-pa-supply = <&pm8998_l17>;
29 qca,bt-vdd-ldo-supply = <&pm8998_l25>;
30
31 qca,bt-vdd-io-voltage-level = <1352000 1352000>;
32 qca,bt-vdd-xtal-voltage-level = <2040000 2040000>;
33 qca,bt-vdd-core-voltage-level = <1800000 1800000>;
34 qca,bt-vdd-pa-voltage-level = <1304000 1304000>;
35 qca,bt-vdd-ldo-voltage-level = <3312000 3312000>;
36
37 qca,bt-vdd-io-current-level = <1>; /* LPM/PFM */
38 qca,bt-vdd-xtal-current-level = <1>; /* LPM/PFM */
39 qca,bt-vdd-core-current-level = <1>; /* LPM/PFM */
40 qca,bt-vdd-pa-current-level = <1>; /* LPM/PFM */
41 qca,bt-vdd-ldo-current-level = <1>; /* LPM/PFM */
42 };
43
Harry Yang67111662017-04-05 15:14:52 -070044 qrd_batterydata: qcom,battery-data {
45 qcom,batt-id-range-pct = <15>;
Fenglin Wu4c077022017-08-15 07:32:10 +080046 #include "fg-gen3-batterydata-gt3746a6-2900mah.dtsi"
Harry Yang67111662017-04-05 15:14:52 -070047 };
Girish Mahadevanb8f9deb2017-05-08 14:14:46 -060048};
49
50&qupv3_se9_2uart {
51 status = "ok";
52};
53
54&qupv3_se8_spi {
55 status = "ok";
56};
57
Fenglin Wu042da332017-12-14 13:29:59 +080058&soc {
59 gpio_keys {
60 compatible = "gpio-keys";
61 label = "gpio-keys";
62
63 pinctrl-names = "default";
64 pinctrl-0 = <&key_vol_up_default>;
65
66 vol_up {
67 label = "volume_up";
68 gpios = <&pm8998_gpios 6 GPIO_ACTIVE_LOW>;
69 linux,input-type = <1>;
70 linux,code = <115>;
71 gpio-key,wakeup;
72 debounce-interval = <15>;
73 linux,can-disable;
74 };
75 };
76};
77
Girish Mahadevanb8f9deb2017-05-08 14:14:46 -060078&qupv3_se3_i2c {
79 status = "ok";
Gaurav Singhalf6d253d2017-05-11 08:24:40 +053080 nq@28 {
81 compatible = "qcom,nq-nci";
82 reg = <0x28>;
83 qcom,nq-irq = <&tlmm 63 0x00>;
84 qcom,nq-ven = <&tlmm 12 0x00>;
85 qcom,nq-firm = <&tlmm 62 0x00>;
86 qcom,nq-clkreq = <&pm8998_gpios 21 0x00>;
87 qcom,nq-esepwr = <&tlmm 116 0x00>;
88 interrupt-parent = <&tlmm>;
Gaurav Singhalf6d253d2017-05-11 08:24:40 +053089 interrupts = <63 0>;
90 interrupt-names = "nfc_irq";
91 pinctrl-names = "nfc_active", "nfc_suspend";
Gaurav Singhal243b94b2017-06-20 14:16:59 +053092 pinctrl-0 = <&nfc_int_active
93 &nfc_enable_active
94 &nfc_clk_default>;
Gaurav Singhalf6d253d2017-05-11 08:24:40 +053095 pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend>;
Gaurav Singhalf6d253d2017-05-11 08:24:40 +053096 };
Girish Mahadevanb8f9deb2017-05-08 14:14:46 -060097};
98
99&qupv3_se10_i2c {
100 status = "ok";
101};
102
103&qupv3_se6_4uart {
104 status = "ok";
Harry Yang67111662017-04-05 15:14:52 -0700105};
106
107&pmi8998_fg {
108 qcom,battery-data = <&qrd_batterydata>;
Fenglin Wuda34a902017-08-10 16:03:24 +0800109 qcom,fg-bmd-en-delay-ms = <300>;
Harry Yang67111662017-04-05 15:14:52 -0700110};
Xiaoyu Ye73702122017-04-07 17:55:01 -0700111
Harry Yangf5999322017-09-12 15:31:16 -0700112&smb1355_charger_0 {
113 status = "ok";
114};
115
116&smb1355_charger_1 {
Harry Yang801aa2e2017-04-10 17:59:05 -0700117 status = "ok";
118};
119
Ram Chandrasekar316c3932017-04-25 12:48:55 -0600120&mdss_mdp {
121 #cooling-cells = <2>;
122};
123
Kyle Yan16860532017-05-05 15:38:47 -0700124&ufsphy_mem {
125 compatible = "qcom,ufs-phy-qmp-v3";
126
127 vdda-phy-supply = <&pm8998_l1>; /* 0.88v */
128 vdda-pll-supply = <&pm8998_l26>; /* 1.2v */
129 vdda-phy-max-microamp = <62900>;
130 vdda-pll-max-microamp = <18300>;
131
132 status = "ok";
133};
134
135&ufshc_mem {
136 vdd-hba-supply = <&ufs_phy_gdsc>;
137 vdd-hba-fixed-regulator;
138 vcc-supply = <&pm8998_l20>;
Bao D. Nguyen61e7a1a2017-09-11 12:30:01 -0700139 vcc-voltage-level = <2950000 2960000>;
Kyle Yan16860532017-05-05 15:38:47 -0700140 vccq2-supply = <&pm8998_s4>;
141 vcc-max-microamp = <600000>;
142 vccq2-max-microamp = <600000>;
143
144 qcom,vddp-ref-clk-supply = <&pm8998_l2>;
145 qcom,vddp-ref-clk-max-microamp = <100>;
146
147 status = "ok";
148};
149
Subhash Jadavanie6e12522017-06-07 14:23:55 -0700150&sdhc_2 {
151 vdd-supply = <&pm8998_l21>;
152 qcom,vdd-voltage-level = <2950000 2960000>;
153 qcom,vdd-current-level = <200 800000>;
154
155 vdd-io-supply = <&pm8998_l13>;
156 qcom,vdd-io-voltage-level = <1808000 2960000>;
157 qcom,vdd-io-current-level = <200 22000>;
158
159 pinctrl-names = "active", "sleep";
Subhash Jadavani0a975232017-09-27 11:43:28 -0700160 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &storage_cd>;
161 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &storage_cd>;
Subhash Jadavanie6e12522017-06-07 14:23:55 -0700162
Subhash Jadavani0a975232017-09-27 11:43:28 -0700163 cd-gpios = <&tlmm 126 GPIO_ACTIVE_LOW>;
Subhash Jadavanie6e12522017-06-07 14:23:55 -0700164
165 status = "ok";
166};
167
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700168&labibb {
169 status = "ok";
170 qcom,qpnp-labibb-mode = "lcd";
171};
172
173&pmi8998_wled {
174 status = "okay";
175 qcom,led-strings-list = [01 02];
176};
177
Subbaraman Narayanamurthy3c2b7b32017-07-21 13:45:55 -0700178&pmi8998_haptics {
179 qcom,vmax-mv = <1800>;
180 qcom,wave-play-rate-us = <4347>;
181 qcom,lra-auto-mode;
182 status = "okay";
183};
184
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700185&mdss_mdp {
Yuan Zhao25ac70a2017-12-05 18:52:03 +0800186 connectors = <&sde_rscc &sde_wb &sde_dp>;
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700187};
188
Narendra Muppalla48a27242017-08-01 16:07:46 -0700189&dsi_nt35597_truly_dsc_cmd {
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700190 qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
191 qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
192 qcom,mdss-dsi-bl-min-level = <1>;
193 qcom,mdss-dsi-bl-max-level = <4095>;
Narendra Muppalla48a27242017-08-01 16:07:46 -0700194 qcom,mdss-dsi-mode-sel-gpio-state = "single_port";
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700195 qcom,panel-mode-gpio = <&tlmm 52 0>;
196 qcom,platform-te-gpio = <&tlmm 10 0>;
197 qcom,platform-reset-gpio = <&tlmm 6 0>;
Dhaval Patel3d43fc42017-05-17 17:52:05 -0700198 qcom,mdss-dsi-panel-orientation = "180";
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700199};
200
Narendra Muppalla48a27242017-08-01 16:07:46 -0700201&dsi_nt35597_truly_dsc_video {
Vara Reddy07f41362017-06-20 19:54:06 -0700202 qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
203 qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
204 qcom,mdss-dsi-bl-min-level = <1>;
205 qcom,mdss-dsi-bl-max-level = <4095>;
Narendra Muppalla48a27242017-08-01 16:07:46 -0700206 qcom,mdss-dsi-mode-sel-gpio-state = "single_port";
Vara Reddy07f41362017-06-20 19:54:06 -0700207 qcom,panel-mode-gpio = <&tlmm 52 0>;
208 qcom,platform-te-gpio = <&tlmm 10 0>;
209 qcom,platform-reset-gpio = <&tlmm 6 0>;
210 qcom,mdss-dsi-panel-orientation = "180";
211};
212
Narendra Muppalla48a27242017-08-01 16:07:46 -0700213&dsi_nt35597_truly_dsc_cmd_display {
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700214 qcom,dsi-display-active;
215};
Maya Erez6e14acb2017-05-16 09:59:02 +0300216
217&wil6210 {
218 status = "ok";
219};
Harry Yang4c05d3e42017-05-09 16:18:17 -0700220
221&ext_5v_boost {
222 status = "ok";
223};
Siddartha Mohanadoss9a3bf9a2017-06-20 13:08:40 -0700224
225&pm8998_vadc {
226 chan@83 {
227 label = "vph_pwr";
228 reg = <0x83>;
229 qcom,decimation = <2>;
230 qcom,pre-div-channel-scaling = <1>;
231 qcom,calibration-type = "absolute";
232 qcom,scale-function = <0>;
233 qcom,hw-settle-time = <0>;
234 qcom,fast-avg-setup = <0>;
235 };
236
237 chan@85 {
238 label = "vcoin";
239 reg = <0x85>;
240 qcom,decimation = <2>;
241 qcom,pre-div-channel-scaling = <1>;
242 qcom,calibration-type = "absolute";
243 qcom,scale-function = <0>;
244 qcom,hw-settle-time = <0>;
245 qcom,fast-avg-setup = <0>;
246 };
247
248 chan@4c {
249 label = "xo_therm";
250 reg = <0x4c>;
251 qcom,decimation = <2>;
252 qcom,pre-div-channel-scaling = <0>;
253 qcom,calibration-type = "ratiometric";
254 qcom,scale-function = <4>;
255 qcom,hw-settle-time = <2>;
256 qcom,fast-avg-setup = <0>;
257 };
258
259 chan@4d {
260 label = "msm_therm";
261 reg = <0x4d>;
262 qcom,decimation = <2>;
263 qcom,pre-div-channel-scaling = <0>;
264 qcom,calibration-type = "ratiometric";
265 qcom,scale-function = <2>;
266 qcom,hw-settle-time = <2>;
267 qcom,fast-avg-setup = <0>;
268 };
269
270 chan@4f {
271 label = "pa_therm1";
272 reg = <0x4f>;
273 qcom,decimation = <2>;
274 qcom,pre-div-channel-scaling = <0>;
275 qcom,calibration-type = "ratiometric";
276 qcom,scale-function = <2>;
277 qcom,hw-settle-time = <2>;
278 qcom,fast-avg-setup = <0>;
279 };
280
281 chan@51 {
282 label = "quiet_therm";
283 reg = <0x51>;
284 qcom,decimation = <2>;
285 qcom,pre-div-channel-scaling = <0>;
286 qcom,calibration-type = "ratiometric";
287 qcom,scale-function = <2>;
288 qcom,hw-settle-time = <2>;
289 qcom,fast-avg-setup = <0>;
290 };
291};
292
293&pm8998_adc_tm {
294 chan@83 {
295 label = "vph_pwr";
296 reg = <0x83>;
297 qcom,pre-div-channel-scaling = <1>;
298 qcom,calibration-type = "absolute";
299 qcom,scale-function = <0>;
300 qcom,hw-settle-time = <0>;
301 qcom,btm-channel-number = <0x60>;
302 };
303
304 chan@4c {
305 label = "xo_therm";
306 reg = <0x4c>;
307 qcom,pre-div-channel-scaling = <0>;
308 qcom,calibration-type = "ratiometric";
309 qcom,scale-function = <4>;
310 qcom,hw-settle-time = <2>;
311 qcom,btm-channel-number = <0x68>;
312 qcom,thermal-node;
313 };
314
315 chan@4d {
316 label = "msm_therm";
317 reg = <0x4d>;
318 qcom,pre-div-channel-scaling = <0>;
319 qcom,calibration-type = "ratiometric";
320 qcom,scale-function = <2>;
321 qcom,hw-settle-time = <2>;
322 qcom,btm-channel-number = <0x70>;
323 qcom,thermal-node;
324 };
325
326 chan@4f {
327 label = "pa_therm1";
328 reg = <0x4f>;
329 qcom,pre-div-channel-scaling = <0>;
330 qcom,calibration-type = "ratiometric";
331 qcom,scale-function = <2>;
332 qcom,hw-settle-time = <2>;
333 qcom,btm-channel-number = <0x78>;
334 qcom,thermal-node;
335 };
336
337 chan@51 {
338 label = "quiet_therm";
339 reg = <0x51>;
340 qcom,pre-div-channel-scaling = <0>;
341 qcom,calibration-type = "ratiometric";
342 qcom,scale-function = <2>;
343 qcom,hw-settle-time = <2>;
344 qcom,btm-channel-number = <0x80>;
345 qcom,thermal-node;
346 };
347};
348
349&thermal_zones {
350 xo-therm-adc {
351 polling-delay-passive = <0>;
352 polling-delay = <0>;
353 thermal-sensors = <&pm8998_adc_tm 0x4c>;
354 thermal-governor = "user_space";
355
356 trips {
357 active-config0 {
358 temperature = <65000>;
359 hysteresis = <1000>;
360 type = "passive";
361 };
362 };
363 };
364
365 msm-therm-adc {
366 polling-delay-passive = <0>;
367 polling-delay = <0>;
368 thermal-sensors = <&pm8998_adc_tm 0x4d>;
369 thermal-governor = "user_space";
370
371 trips {
372 active-config0 {
373 temperature = <65000>;
374 hysteresis = <1000>;
375 type = "passive";
376 };
377 };
378 };
379
380 pa-therm1-adc {
381 polling-delay-passive = <0>;
382 polling-delay = <0>;
383 thermal-sensors = <&pm8998_adc_tm 0x4f>;
384 thermal-governor = "user_space";
385
386 trips {
387 active-config0 {
388 temperature = <65000>;
389 hysteresis = <1000>;
390 type = "passive";
391 };
392 };
393 };
394
395 quiet-therm-adc {
396 polling-delay-passive = <0>;
397 polling-delay = <0>;
398 thermal-sensors = <&pm8998_adc_tm 0x51>;
399 thermal-governor = "user_space";
400
401 trips {
402 active-config0 {
403 temperature = <65000>;
404 hysteresis = <1000>;
405 type = "passive";
406 };
407 };
408 };
409};