blob: 01d06b902e2c9d9fc0d5ab5459eca70f832c03ed [file] [log] [blame]
Channagoud Kadabi44da4952017-03-20 20:35:56 -07001/* Copyright (c) 2017, The Linux Foundation. All rights reserved.
2 *
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"
Harry Yang801aa2e2017-04-10 17:59:05 -070015#include "smb1355.dtsi"
Kyle Yan16860532017-05-05 15:38:47 -070016#include <dt-bindings/gpio/gpio.h>
Harry Yang801aa2e2017-04-10 17:59:05 -070017
Kyle Yandb9fe122017-07-06 14:58:09 -070018&vendor {
Sungjun Parkbd0446d2017-05-17 14:07: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
Harry Yang67111662017-04-05 15:14:52 -070040 qrd_batterydata: qcom,battery-data {
41 qcom,batt-id-range-pct = <15>;
Fenglin Wu4c077022017-08-15 07:32:10 +080042 #include "fg-gen3-batterydata-gt3746a6-2900mah.dtsi"
Harry Yang67111662017-04-05 15:14:52 -070043 };
Girish Mahadevanb8f9deb2017-05-08 14:14:46 -060044};
45
46&qupv3_se9_2uart {
47 status = "ok";
48};
49
50&qupv3_se8_spi {
51 status = "ok";
52};
53
54&qupv3_se3_i2c {
55 status = "ok";
Gaurav Singhalf6d253d2017-05-11 08:24:40 +053056 nq@28 {
57 compatible = "qcom,nq-nci";
58 reg = <0x28>;
59 qcom,nq-irq = <&tlmm 63 0x00>;
60 qcom,nq-ven = <&tlmm 12 0x00>;
61 qcom,nq-firm = <&tlmm 62 0x00>;
62 qcom,nq-clkreq = <&pm8998_gpios 21 0x00>;
63 qcom,nq-esepwr = <&tlmm 116 0x00>;
64 interrupt-parent = <&tlmm>;
65 qcom,clk-src = "BBCLK3";
66 interrupts = <63 0>;
67 interrupt-names = "nfc_irq";
68 pinctrl-names = "nfc_active", "nfc_suspend";
Gaurav Singhal243b94b2017-06-20 14:16:59 +053069 pinctrl-0 = <&nfc_int_active
70 &nfc_enable_active
71 &nfc_clk_default>;
Gaurav Singhalf6d253d2017-05-11 08:24:40 +053072 pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend>;
73 clocks = <&clock_rpmh RPMH_LN_BB_CLK3>;
74 clock-names = "ref_clk";
75 };
Girish Mahadevanb8f9deb2017-05-08 14:14:46 -060076};
77
78&qupv3_se10_i2c {
79 status = "ok";
80};
81
82&qupv3_se6_4uart {
83 status = "ok";
Harry Yang67111662017-04-05 15:14:52 -070084};
85
86&pmi8998_fg {
87 qcom,battery-data = <&qrd_batterydata>;
Fenglin Wuda34a902017-08-10 16:03:24 +080088 qcom,fg-bmd-en-delay-ms = <300>;
Harry Yang67111662017-04-05 15:14:52 -070089};
Xiaoyu Ye73702122017-04-07 17:55:01 -070090
Harry Yang801aa2e2017-04-10 17:59:05 -070091&smb1355_charger {
92 status = "ok";
93};
94
Ram Chandrasekar316c3932017-04-25 12:48:55 -060095&mdss_mdp {
96 #cooling-cells = <2>;
97};
98
Kyle Yan16860532017-05-05 15:38:47 -070099&ufsphy_mem {
100 compatible = "qcom,ufs-phy-qmp-v3";
101
102 vdda-phy-supply = <&pm8998_l1>; /* 0.88v */
103 vdda-pll-supply = <&pm8998_l26>; /* 1.2v */
104 vdda-phy-max-microamp = <62900>;
105 vdda-pll-max-microamp = <18300>;
106
107 status = "ok";
108};
109
110&ufshc_mem {
111 vdd-hba-supply = <&ufs_phy_gdsc>;
112 vdd-hba-fixed-regulator;
113 vcc-supply = <&pm8998_l20>;
Bao D. Nguyen61e7a1a2017-09-11 12:30:01 -0700114 vcc-voltage-level = <2950000 2960000>;
Kyle Yan16860532017-05-05 15:38:47 -0700115 vccq2-supply = <&pm8998_s4>;
116 vcc-max-microamp = <600000>;
117 vccq2-max-microamp = <600000>;
118
119 qcom,vddp-ref-clk-supply = <&pm8998_l2>;
120 qcom,vddp-ref-clk-max-microamp = <100>;
121
122 status = "ok";
123};
124
Subhash Jadavanie6e12522017-06-07 14:23:55 -0700125&extcon_storage_cd {
126 gpio = <&tlmm 126 GPIO_ACTIVE_LOW>;
127 debounce-ms = <200>;
128 irq-flags = <IRQ_TYPE_EDGE_BOTH>;
129
130 pinctrl-names = "default";
131 pinctrl-0 = <&storage_cd>;
132
133 status = "ok";
134};
135
Kyle Yan16860532017-05-05 15:38:47 -0700136&ufsphy_card {
137 compatible = "qcom,ufs-phy-qmp-v3";
138
139 vdda-phy-supply = <&pm8998_l1>; /* 0.88v */
140 vdda-pll-supply = <&pm8998_l26>; /* 1.2v */
141 vdda-phy-max-microamp = <62900>;
142 vdda-pll-max-microamp = <18300>;
143
144 status = "ok";
145};
146
147&ufshc_card {
148 vdd-hba-supply = <&ufs_card_gdsc>;
149 vdd-hba-fixed-regulator;
150 vcc-supply = <&pm8998_l21>;
Bao D. Nguyen61e7a1a2017-09-11 12:30:01 -0700151 vcc-voltage-level = <2950000 2960000>;
Kyle Yan16860532017-05-05 15:38:47 -0700152 vccq2-supply = <&pm8998_s4>;
153 vcc-max-microamp = <300000>;
154 vccq2-max-microamp = <300000>;
155
156 qcom,vddp-ref-clk-supply = <&pm8998_l2>;
157 qcom,vddp-ref-clk-max-microamp = <100>;
158
Subhash Jadavani10e7bde2017-05-05 10:29:53 -0700159 extcon = <&extcon_storage_cd>;
160
Kyle Yan16860532017-05-05 15:38:47 -0700161 status = "ok";
162};
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700163
Subhash Jadavanie6e12522017-06-07 14:23:55 -0700164&sdhc_2 {
165 vdd-supply = <&pm8998_l21>;
166 qcom,vdd-voltage-level = <2950000 2960000>;
167 qcom,vdd-current-level = <200 800000>;
168
169 vdd-io-supply = <&pm8998_l13>;
170 qcom,vdd-io-voltage-level = <1808000 2960000>;
171 qcom,vdd-io-current-level = <200 22000>;
172
173 pinctrl-names = "active", "sleep";
174 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on>;
175 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off>;
176
Subhash Jadavanie6e12522017-06-07 14:23:55 -0700177 extcon = <&extcon_storage_cd>;
178
179 status = "ok";
180};
181
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700182&labibb {
183 status = "ok";
184 qcom,qpnp-labibb-mode = "lcd";
185};
186
187&pmi8998_wled {
188 status = "okay";
189 qcom,led-strings-list = [01 02];
190};
191
Subbaraman Narayanamurthy3c2b7b32017-07-21 13:45:55 -0700192&pmi8998_haptics {
193 qcom,vmax-mv = <1800>;
194 qcom,wave-play-rate-us = <4347>;
195 qcom,lra-auto-mode;
196 status = "okay";
197};
198
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700199&mdss_mdp {
Shashank Babu Chinta Venkataded9c562017-03-15 14:43:46 -0700200 connectors = <&sde_rscc &sde_wb>;
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700201};
202
Narendra Muppalla48a27242017-08-01 16:07:46 -0700203&dsi_nt35597_truly_dsc_cmd {
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700204 qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
205 qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
206 qcom,mdss-dsi-bl-min-level = <1>;
207 qcom,mdss-dsi-bl-max-level = <4095>;
Narendra Muppalla48a27242017-08-01 16:07:46 -0700208 qcom,mdss-dsi-mode-sel-gpio-state = "single_port";
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700209 qcom,panel-mode-gpio = <&tlmm 52 0>;
210 qcom,platform-te-gpio = <&tlmm 10 0>;
211 qcom,platform-reset-gpio = <&tlmm 6 0>;
Dhaval Patel3d43fc42017-05-17 17:52:05 -0700212 qcom,mdss-dsi-panel-orientation = "180";
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700213};
214
Narendra Muppalla48a27242017-08-01 16:07:46 -0700215&dsi_nt35597_truly_dsc_video {
Vara Reddy07f41362017-06-20 19:54:06 -0700216 qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
217 qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
218 qcom,mdss-dsi-bl-min-level = <1>;
219 qcom,mdss-dsi-bl-max-level = <4095>;
Narendra Muppalla48a27242017-08-01 16:07:46 -0700220 qcom,mdss-dsi-mode-sel-gpio-state = "single_port";
Vara Reddy07f41362017-06-20 19:54:06 -0700221 qcom,panel-mode-gpio = <&tlmm 52 0>;
222 qcom,platform-te-gpio = <&tlmm 10 0>;
223 qcom,platform-reset-gpio = <&tlmm 6 0>;
224 qcom,mdss-dsi-panel-orientation = "180";
225};
226
Narendra Muppalla48a27242017-08-01 16:07:46 -0700227&dsi_nt35597_truly_dsc_cmd_display {
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700228 qcom,dsi-display-active;
229};
Maya Erez6e14acb2017-05-16 09:59:02 +0300230
231&wil6210 {
232 status = "ok";
233};
Harry Yang4c05d3e42017-05-09 16:18:17 -0700234
235&ext_5v_boost {
236 status = "ok";
237};
Siddartha Mohanadoss9a3bf9a2017-06-20 13:08:40 -0700238
239&pm8998_vadc {
240 chan@83 {
241 label = "vph_pwr";
242 reg = <0x83>;
243 qcom,decimation = <2>;
244 qcom,pre-div-channel-scaling = <1>;
245 qcom,calibration-type = "absolute";
246 qcom,scale-function = <0>;
247 qcom,hw-settle-time = <0>;
248 qcom,fast-avg-setup = <0>;
249 };
250
251 chan@85 {
252 label = "vcoin";
253 reg = <0x85>;
254 qcom,decimation = <2>;
255 qcom,pre-div-channel-scaling = <1>;
256 qcom,calibration-type = "absolute";
257 qcom,scale-function = <0>;
258 qcom,hw-settle-time = <0>;
259 qcom,fast-avg-setup = <0>;
260 };
261
262 chan@4c {
263 label = "xo_therm";
264 reg = <0x4c>;
265 qcom,decimation = <2>;
266 qcom,pre-div-channel-scaling = <0>;
267 qcom,calibration-type = "ratiometric";
268 qcom,scale-function = <4>;
269 qcom,hw-settle-time = <2>;
270 qcom,fast-avg-setup = <0>;
271 };
272
273 chan@4d {
274 label = "msm_therm";
275 reg = <0x4d>;
276 qcom,decimation = <2>;
277 qcom,pre-div-channel-scaling = <0>;
278 qcom,calibration-type = "ratiometric";
279 qcom,scale-function = <2>;
280 qcom,hw-settle-time = <2>;
281 qcom,fast-avg-setup = <0>;
282 };
283
284 chan@4f {
285 label = "pa_therm1";
286 reg = <0x4f>;
287 qcom,decimation = <2>;
288 qcom,pre-div-channel-scaling = <0>;
289 qcom,calibration-type = "ratiometric";
290 qcom,scale-function = <2>;
291 qcom,hw-settle-time = <2>;
292 qcom,fast-avg-setup = <0>;
293 };
294
295 chan@51 {
296 label = "quiet_therm";
297 reg = <0x51>;
298 qcom,decimation = <2>;
299 qcom,pre-div-channel-scaling = <0>;
300 qcom,calibration-type = "ratiometric";
301 qcom,scale-function = <2>;
302 qcom,hw-settle-time = <2>;
303 qcom,fast-avg-setup = <0>;
304 };
305};
306
307&pm8998_adc_tm {
308 chan@83 {
309 label = "vph_pwr";
310 reg = <0x83>;
311 qcom,pre-div-channel-scaling = <1>;
312 qcom,calibration-type = "absolute";
313 qcom,scale-function = <0>;
314 qcom,hw-settle-time = <0>;
315 qcom,btm-channel-number = <0x60>;
316 };
317
318 chan@4c {
319 label = "xo_therm";
320 reg = <0x4c>;
321 qcom,pre-div-channel-scaling = <0>;
322 qcom,calibration-type = "ratiometric";
323 qcom,scale-function = <4>;
324 qcom,hw-settle-time = <2>;
325 qcom,btm-channel-number = <0x68>;
326 qcom,thermal-node;
327 };
328
329 chan@4d {
330 label = "msm_therm";
331 reg = <0x4d>;
332 qcom,pre-div-channel-scaling = <0>;
333 qcom,calibration-type = "ratiometric";
334 qcom,scale-function = <2>;
335 qcom,hw-settle-time = <2>;
336 qcom,btm-channel-number = <0x70>;
337 qcom,thermal-node;
338 };
339
340 chan@4f {
341 label = "pa_therm1";
342 reg = <0x4f>;
343 qcom,pre-div-channel-scaling = <0>;
344 qcom,calibration-type = "ratiometric";
345 qcom,scale-function = <2>;
346 qcom,hw-settle-time = <2>;
347 qcom,btm-channel-number = <0x78>;
348 qcom,thermal-node;
349 };
350
351 chan@51 {
352 label = "quiet_therm";
353 reg = <0x51>;
354 qcom,pre-div-channel-scaling = <0>;
355 qcom,calibration-type = "ratiometric";
356 qcom,scale-function = <2>;
357 qcom,hw-settle-time = <2>;
358 qcom,btm-channel-number = <0x80>;
359 qcom,thermal-node;
360 };
361};
362
363&thermal_zones {
364 xo-therm-adc {
365 polling-delay-passive = <0>;
366 polling-delay = <0>;
367 thermal-sensors = <&pm8998_adc_tm 0x4c>;
368 thermal-governor = "user_space";
369
370 trips {
371 active-config0 {
372 temperature = <65000>;
373 hysteresis = <1000>;
374 type = "passive";
375 };
376 };
377 };
378
379 msm-therm-adc {
380 polling-delay-passive = <0>;
381 polling-delay = <0>;
382 thermal-sensors = <&pm8998_adc_tm 0x4d>;
383 thermal-governor = "user_space";
384
385 trips {
386 active-config0 {
387 temperature = <65000>;
388 hysteresis = <1000>;
389 type = "passive";
390 };
391 };
392 };
393
394 pa-therm1-adc {
395 polling-delay-passive = <0>;
396 polling-delay = <0>;
397 thermal-sensors = <&pm8998_adc_tm 0x4f>;
398 thermal-governor = "user_space";
399
400 trips {
401 active-config0 {
402 temperature = <65000>;
403 hysteresis = <1000>;
404 type = "passive";
405 };
406 };
407 };
408
409 quiet-therm-adc {
410 polling-delay-passive = <0>;
411 polling-delay = <0>;
412 thermal-sensors = <&pm8998_adc_tm 0x51>;
413 thermal-governor = "user_space";
414
415 trips {
416 active-config0 {
417 temperature = <65000>;
418 hysteresis = <1000>;
419 type = "passive";
420 };
421 };
422 };
423};