blob: 6e2f1e00bd891c657918f320d2153a09df292417 [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
Harry Yang801aa2e2017-04-10 17:59:05 -070013#include "smb1355.dtsi"
Kyle Yan16860532017-05-05 15:38:47 -070014#include <dt-bindings/gpio/gpio.h>
Harry Yang801aa2e2017-04-10 17:59:05 -070015
Kyle Yandb9fe122017-07-06 14:58:09 -070016&vendor {
Sungjun Parkbd0446d2017-05-17 14:07:18 -070017 bluetooth: bt_wcn3990 {
18 compatible = "qca,wcn3990";
19 qca,bt-vdd-io-supply = <&pm8998_s3>;
20 qca,bt-vdd-xtal-supply = <&pm8998_s5>;
21 qca,bt-vdd-core-supply = <&pm8998_l7>;
22 qca,bt-vdd-pa-supply = <&pm8998_l17>;
23 qca,bt-vdd-ldo-supply = <&pm8998_l25>;
24
25 qca,bt-vdd-io-voltage-level = <1352000 1352000>;
26 qca,bt-vdd-xtal-voltage-level = <2040000 2040000>;
27 qca,bt-vdd-core-voltage-level = <1800000 1800000>;
28 qca,bt-vdd-pa-voltage-level = <1304000 1304000>;
29 qca,bt-vdd-ldo-voltage-level = <3312000 3312000>;
30
31 qca,bt-vdd-io-current-level = <1>; /* LPM/PFM */
32 qca,bt-vdd-xtal-current-level = <1>; /* LPM/PFM */
33 qca,bt-vdd-core-current-level = <1>; /* LPM/PFM */
34 qca,bt-vdd-pa-current-level = <1>; /* LPM/PFM */
35 qca,bt-vdd-ldo-current-level = <1>; /* LPM/PFM */
36 };
37
Harry Yang67111662017-04-05 15:14:52 -070038 qrd_batterydata: qcom,battery-data {
39 qcom,batt-id-range-pct = <15>;
40 #include "fg-gen3-batterydata-itech-3000mah.dtsi"
41 #include "fg-gen3-batterydata-ascent-3450mah.dtsi"
42 };
Girish Mahadevanb8f9deb2017-05-08 14:14:46 -060043};
44
45&qupv3_se9_2uart {
46 status = "ok";
47};
48
49&qupv3_se8_spi {
50 status = "ok";
51};
52
53&qupv3_se3_i2c {
54 status = "ok";
Gaurav Singhalf6d253d2017-05-11 08:24:40 +053055 nq@28 {
56 compatible = "qcom,nq-nci";
57 reg = <0x28>;
58 qcom,nq-irq = <&tlmm 63 0x00>;
59 qcom,nq-ven = <&tlmm 12 0x00>;
60 qcom,nq-firm = <&tlmm 62 0x00>;
61 qcom,nq-clkreq = <&pm8998_gpios 21 0x00>;
62 qcom,nq-esepwr = <&tlmm 116 0x00>;
63 interrupt-parent = <&tlmm>;
64 qcom,clk-src = "BBCLK3";
65 interrupts = <63 0>;
66 interrupt-names = "nfc_irq";
67 pinctrl-names = "nfc_active", "nfc_suspend";
Gaurav Singhal243b94b2017-06-20 14:16:59 +053068 pinctrl-0 = <&nfc_int_active
69 &nfc_enable_active
70 &nfc_clk_default>;
Gaurav Singhalf6d253d2017-05-11 08:24:40 +053071 pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend>;
72 clocks = <&clock_rpmh RPMH_LN_BB_CLK3>;
73 clock-names = "ref_clk";
74 };
Girish Mahadevanb8f9deb2017-05-08 14:14:46 -060075};
76
77&qupv3_se10_i2c {
78 status = "ok";
79};
80
81&qupv3_se6_4uart {
82 status = "ok";
Harry Yang67111662017-04-05 15:14:52 -070083};
84
85&pmi8998_fg {
86 qcom,battery-data = <&qrd_batterydata>;
87};
Xiaoyu Ye73702122017-04-07 17:55:01 -070088
Harry Yang801aa2e2017-04-10 17:59:05 -070089&smb1355_charger {
90 status = "ok";
91};
92
Ram Chandrasekar316c3932017-04-25 12:48:55 -060093&mdss_mdp {
94 #cooling-cells = <2>;
95};
96
Kyle Yan16860532017-05-05 15:38:47 -070097&ufsphy_mem {
98 compatible = "qcom,ufs-phy-qmp-v3";
99
100 vdda-phy-supply = <&pm8998_l1>; /* 0.88v */
101 vdda-pll-supply = <&pm8998_l26>; /* 1.2v */
102 vdda-phy-max-microamp = <62900>;
103 vdda-pll-max-microamp = <18300>;
104
105 status = "ok";
106};
107
108&ufshc_mem {
109 vdd-hba-supply = <&ufs_phy_gdsc>;
110 vdd-hba-fixed-regulator;
111 vcc-supply = <&pm8998_l20>;
112 vccq2-supply = <&pm8998_s4>;
113 vcc-max-microamp = <600000>;
114 vccq2-max-microamp = <600000>;
115
116 qcom,vddp-ref-clk-supply = <&pm8998_l2>;
117 qcom,vddp-ref-clk-max-microamp = <100>;
118
119 status = "ok";
120};
121
Subhash Jadavanie6e12522017-06-07 14:23:55 -0700122&extcon_storage_cd {
123 gpio = <&tlmm 126 GPIO_ACTIVE_LOW>;
124 debounce-ms = <200>;
125 irq-flags = <IRQ_TYPE_EDGE_BOTH>;
126
127 pinctrl-names = "default";
128 pinctrl-0 = <&storage_cd>;
129
130 status = "ok";
131};
132
Kyle Yan16860532017-05-05 15:38:47 -0700133&ufsphy_card {
134 compatible = "qcom,ufs-phy-qmp-v3";
135
136 vdda-phy-supply = <&pm8998_l1>; /* 0.88v */
137 vdda-pll-supply = <&pm8998_l26>; /* 1.2v */
138 vdda-phy-max-microamp = <62900>;
139 vdda-pll-max-microamp = <18300>;
140
141 status = "ok";
142};
143
144&ufshc_card {
145 vdd-hba-supply = <&ufs_card_gdsc>;
146 vdd-hba-fixed-regulator;
147 vcc-supply = <&pm8998_l21>;
148 vccq2-supply = <&pm8998_s4>;
149 vcc-max-microamp = <300000>;
150 vccq2-max-microamp = <300000>;
151
152 qcom,vddp-ref-clk-supply = <&pm8998_l2>;
153 qcom,vddp-ref-clk-max-microamp = <100>;
154
Subhash Jadavani10e7bde2017-05-05 10:29:53 -0700155 extcon = <&extcon_storage_cd>;
156
Kyle Yan16860532017-05-05 15:38:47 -0700157 status = "ok";
158};
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700159
Subhash Jadavanie6e12522017-06-07 14:23:55 -0700160&sdhc_2 {
161 vdd-supply = <&pm8998_l21>;
162 qcom,vdd-voltage-level = <2950000 2960000>;
163 qcom,vdd-current-level = <200 800000>;
164
165 vdd-io-supply = <&pm8998_l13>;
166 qcom,vdd-io-voltage-level = <1808000 2960000>;
167 qcom,vdd-io-current-level = <200 22000>;
168
169 pinctrl-names = "active", "sleep";
170 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on>;
171 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off>;
172
Subhash Jadavanie6e12522017-06-07 14:23:55 -0700173 extcon = <&extcon_storage_cd>;
174
175 status = "ok";
176};
177
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700178&labibb {
179 status = "ok";
180 qcom,qpnp-labibb-mode = "lcd";
181};
182
183&pmi8998_wled {
184 status = "okay";
185 qcom,led-strings-list = [01 02];
186};
187
Subbaraman Narayanamurthy3c2b7b32017-07-21 13:45:55 -0700188&pmi8998_haptics {
189 qcom,vmax-mv = <1800>;
190 qcom,wave-play-rate-us = <4347>;
191 qcom,lra-auto-mode;
192 status = "okay";
193};
194
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700195&mdss_mdp {
Shashank Babu Chinta Venkataded9c562017-03-15 14:43:46 -0700196 connectors = <&sde_rscc &sde_wb>;
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700197};
198
199&dsi_sharp_4k_dsc_video {
200 qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
201 qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
202 qcom,mdss-dsi-bl-min-level = <1>;
203 qcom,mdss-dsi-bl-max-level = <4095>;
Vara Reddy199c2822017-05-19 10:14:44 -0700204 qcom,mdss-dsi-mode-sel-gpio-state = "dual_port";
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700205 qcom,panel-mode-gpio = <&tlmm 52 0>;
206 qcom,platform-te-gpio = <&tlmm 10 0>;
207 qcom,platform-reset-gpio = <&tlmm 6 0>;
Dhaval Patel3d43fc42017-05-17 17:52:05 -0700208 qcom,mdss-dsi-panel-orientation = "180";
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700209};
210
Vara Reddy07f41362017-06-20 19:54:06 -0700211&dsi_sharp_4k_dsc_cmd {
212 qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
213 qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
214 qcom,mdss-dsi-bl-min-level = <1>;
215 qcom,mdss-dsi-bl-max-level = <4095>;
216 qcom,mdss-dsi-mode-sel-gpio-state = "dual_port";
217 qcom,panel-mode-gpio = <&tlmm 52 0>;
218 qcom,platform-te-gpio = <&tlmm 10 0>;
219 qcom,platform-reset-gpio = <&tlmm 6 0>;
220 qcom,mdss-dsi-panel-orientation = "180";
221};
222
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700223&dsi_sharp_4k_dsc_video_display {
224 qcom,dsi-display-active;
225};
Maya Erez6e14acb2017-05-16 09:59:02 +0300226
227&wil6210 {
228 status = "ok";
229};
Harry Yang4c05d3e42017-05-09 16:18:17 -0700230
231&ext_5v_boost {
232 status = "ok";
233};
Siddartha Mohanadoss9a3bf9a2017-06-20 13:08:40 -0700234
235&pm8998_vadc {
236 chan@83 {
237 label = "vph_pwr";
238 reg = <0x83>;
239 qcom,decimation = <2>;
240 qcom,pre-div-channel-scaling = <1>;
241 qcom,calibration-type = "absolute";
242 qcom,scale-function = <0>;
243 qcom,hw-settle-time = <0>;
244 qcom,fast-avg-setup = <0>;
245 };
246
247 chan@85 {
248 label = "vcoin";
249 reg = <0x85>;
250 qcom,decimation = <2>;
251 qcom,pre-div-channel-scaling = <1>;
252 qcom,calibration-type = "absolute";
253 qcom,scale-function = <0>;
254 qcom,hw-settle-time = <0>;
255 qcom,fast-avg-setup = <0>;
256 };
257
258 chan@4c {
259 label = "xo_therm";
260 reg = <0x4c>;
261 qcom,decimation = <2>;
262 qcom,pre-div-channel-scaling = <0>;
263 qcom,calibration-type = "ratiometric";
264 qcom,scale-function = <4>;
265 qcom,hw-settle-time = <2>;
266 qcom,fast-avg-setup = <0>;
267 };
268
269 chan@4d {
270 label = "msm_therm";
271 reg = <0x4d>;
272 qcom,decimation = <2>;
273 qcom,pre-div-channel-scaling = <0>;
274 qcom,calibration-type = "ratiometric";
275 qcom,scale-function = <2>;
276 qcom,hw-settle-time = <2>;
277 qcom,fast-avg-setup = <0>;
278 };
279
280 chan@4f {
281 label = "pa_therm1";
282 reg = <0x4f>;
283 qcom,decimation = <2>;
284 qcom,pre-div-channel-scaling = <0>;
285 qcom,calibration-type = "ratiometric";
286 qcom,scale-function = <2>;
287 qcom,hw-settle-time = <2>;
288 qcom,fast-avg-setup = <0>;
289 };
290
291 chan@51 {
292 label = "quiet_therm";
293 reg = <0x51>;
294 qcom,decimation = <2>;
295 qcom,pre-div-channel-scaling = <0>;
296 qcom,calibration-type = "ratiometric";
297 qcom,scale-function = <2>;
298 qcom,hw-settle-time = <2>;
299 qcom,fast-avg-setup = <0>;
300 };
301};
302
303&pm8998_adc_tm {
304 chan@83 {
305 label = "vph_pwr";
306 reg = <0x83>;
307 qcom,pre-div-channel-scaling = <1>;
308 qcom,calibration-type = "absolute";
309 qcom,scale-function = <0>;
310 qcom,hw-settle-time = <0>;
311 qcom,btm-channel-number = <0x60>;
312 };
313
314 chan@4c {
315 label = "xo_therm";
316 reg = <0x4c>;
317 qcom,pre-div-channel-scaling = <0>;
318 qcom,calibration-type = "ratiometric";
319 qcom,scale-function = <4>;
320 qcom,hw-settle-time = <2>;
321 qcom,btm-channel-number = <0x68>;
322 qcom,thermal-node;
323 };
324
325 chan@4d {
326 label = "msm_therm";
327 reg = <0x4d>;
328 qcom,pre-div-channel-scaling = <0>;
329 qcom,calibration-type = "ratiometric";
330 qcom,scale-function = <2>;
331 qcom,hw-settle-time = <2>;
332 qcom,btm-channel-number = <0x70>;
333 qcom,thermal-node;
334 };
335
336 chan@4f {
337 label = "pa_therm1";
338 reg = <0x4f>;
339 qcom,pre-div-channel-scaling = <0>;
340 qcom,calibration-type = "ratiometric";
341 qcom,scale-function = <2>;
342 qcom,hw-settle-time = <2>;
343 qcom,btm-channel-number = <0x78>;
344 qcom,thermal-node;
345 };
346
347 chan@51 {
348 label = "quiet_therm";
349 reg = <0x51>;
350 qcom,pre-div-channel-scaling = <0>;
351 qcom,calibration-type = "ratiometric";
352 qcom,scale-function = <2>;
353 qcom,hw-settle-time = <2>;
354 qcom,btm-channel-number = <0x80>;
355 qcom,thermal-node;
356 };
357};
358
359&thermal_zones {
360 xo-therm-adc {
361 polling-delay-passive = <0>;
362 polling-delay = <0>;
363 thermal-sensors = <&pm8998_adc_tm 0x4c>;
364 thermal-governor = "user_space";
365
366 trips {
367 active-config0 {
368 temperature = <65000>;
369 hysteresis = <1000>;
370 type = "passive";
371 };
372 };
373 };
374
375 msm-therm-adc {
376 polling-delay-passive = <0>;
377 polling-delay = <0>;
378 thermal-sensors = <&pm8998_adc_tm 0x4d>;
379 thermal-governor = "user_space";
380
381 trips {
382 active-config0 {
383 temperature = <65000>;
384 hysteresis = <1000>;
385 type = "passive";
386 };
387 };
388 };
389
390 pa-therm1-adc {
391 polling-delay-passive = <0>;
392 polling-delay = <0>;
393 thermal-sensors = <&pm8998_adc_tm 0x4f>;
394 thermal-governor = "user_space";
395
396 trips {
397 active-config0 {
398 temperature = <65000>;
399 hysteresis = <1000>;
400 type = "passive";
401 };
402 };
403 };
404
405 quiet-therm-adc {
406 polling-delay-passive = <0>;
407 polling-delay = <0>;
408 thermal-sensors = <&pm8998_adc_tm 0x51>;
409 thermal-governor = "user_space";
410
411 trips {
412 active-config0 {
413 temperature = <65000>;
414 hysteresis = <1000>;
415 type = "passive";
416 };
417 };
418 };
419};