blob: 27da1e7447646708522b0f3e1033f7a79b26a271 [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>;
Fenglin Wu4c077022017-08-15 07:32:10 +080040 #include "fg-gen3-batterydata-gt3746a6-2900mah.dtsi"
Harry Yang67111662017-04-05 15:14:52 -070041 };
Girish Mahadevanb8f9deb2017-05-08 14:14:46 -060042};
43
44&qupv3_se9_2uart {
45 status = "ok";
46};
47
48&qupv3_se8_spi {
49 status = "ok";
50};
51
52&qupv3_se3_i2c {
53 status = "ok";
Gaurav Singhalf6d253d2017-05-11 08:24:40 +053054 nq@28 {
55 compatible = "qcom,nq-nci";
56 reg = <0x28>;
57 qcom,nq-irq = <&tlmm 63 0x00>;
58 qcom,nq-ven = <&tlmm 12 0x00>;
59 qcom,nq-firm = <&tlmm 62 0x00>;
60 qcom,nq-clkreq = <&pm8998_gpios 21 0x00>;
61 qcom,nq-esepwr = <&tlmm 116 0x00>;
62 interrupt-parent = <&tlmm>;
63 qcom,clk-src = "BBCLK3";
64 interrupts = <63 0>;
65 interrupt-names = "nfc_irq";
66 pinctrl-names = "nfc_active", "nfc_suspend";
Gaurav Singhal243b94b2017-06-20 14:16:59 +053067 pinctrl-0 = <&nfc_int_active
68 &nfc_enable_active
69 &nfc_clk_default>;
Gaurav Singhalf6d253d2017-05-11 08:24:40 +053070 pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend>;
71 clocks = <&clock_rpmh RPMH_LN_BB_CLK3>;
72 clock-names = "ref_clk";
73 };
Girish Mahadevanb8f9deb2017-05-08 14:14:46 -060074};
75
76&qupv3_se10_i2c {
77 status = "ok";
78};
79
80&qupv3_se6_4uart {
81 status = "ok";
Harry Yang67111662017-04-05 15:14:52 -070082};
83
84&pmi8998_fg {
85 qcom,battery-data = <&qrd_batterydata>;
86};
Xiaoyu Ye73702122017-04-07 17:55:01 -070087
Harry Yang801aa2e2017-04-10 17:59:05 -070088&smb1355_charger {
89 status = "ok";
90};
91
Ram Chandrasekar316c3932017-04-25 12:48:55 -060092&mdss_mdp {
93 #cooling-cells = <2>;
94};
95
Kyle Yan16860532017-05-05 15:38:47 -070096&ufsphy_mem {
97 compatible = "qcom,ufs-phy-qmp-v3";
98
99 vdda-phy-supply = <&pm8998_l1>; /* 0.88v */
100 vdda-pll-supply = <&pm8998_l26>; /* 1.2v */
101 vdda-phy-max-microamp = <62900>;
102 vdda-pll-max-microamp = <18300>;
103
104 status = "ok";
105};
106
107&ufshc_mem {
108 vdd-hba-supply = <&ufs_phy_gdsc>;
109 vdd-hba-fixed-regulator;
110 vcc-supply = <&pm8998_l20>;
111 vccq2-supply = <&pm8998_s4>;
112 vcc-max-microamp = <600000>;
113 vccq2-max-microamp = <600000>;
114
115 qcom,vddp-ref-clk-supply = <&pm8998_l2>;
116 qcom,vddp-ref-clk-max-microamp = <100>;
117
118 status = "ok";
119};
120
Subhash Jadavanie6e12522017-06-07 14:23:55 -0700121&extcon_storage_cd {
122 gpio = <&tlmm 126 GPIO_ACTIVE_LOW>;
123 debounce-ms = <200>;
124 irq-flags = <IRQ_TYPE_EDGE_BOTH>;
125
126 pinctrl-names = "default";
127 pinctrl-0 = <&storage_cd>;
128
129 status = "ok";
130};
131
Kyle Yan16860532017-05-05 15:38:47 -0700132&ufsphy_card {
133 compatible = "qcom,ufs-phy-qmp-v3";
134
135 vdda-phy-supply = <&pm8998_l1>; /* 0.88v */
136 vdda-pll-supply = <&pm8998_l26>; /* 1.2v */
137 vdda-phy-max-microamp = <62900>;
138 vdda-pll-max-microamp = <18300>;
139
140 status = "ok";
141};
142
143&ufshc_card {
144 vdd-hba-supply = <&ufs_card_gdsc>;
145 vdd-hba-fixed-regulator;
146 vcc-supply = <&pm8998_l21>;
147 vccq2-supply = <&pm8998_s4>;
148 vcc-max-microamp = <300000>;
149 vccq2-max-microamp = <300000>;
150
151 qcom,vddp-ref-clk-supply = <&pm8998_l2>;
152 qcom,vddp-ref-clk-max-microamp = <100>;
153
Subhash Jadavani10e7bde2017-05-05 10:29:53 -0700154 extcon = <&extcon_storage_cd>;
155
Kyle Yan16860532017-05-05 15:38:47 -0700156 status = "ok";
157};
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700158
Subhash Jadavanie6e12522017-06-07 14:23:55 -0700159&sdhc_2 {
160 vdd-supply = <&pm8998_l21>;
161 qcom,vdd-voltage-level = <2950000 2960000>;
162 qcom,vdd-current-level = <200 800000>;
163
164 vdd-io-supply = <&pm8998_l13>;
165 qcom,vdd-io-voltage-level = <1808000 2960000>;
166 qcom,vdd-io-current-level = <200 22000>;
167
168 pinctrl-names = "active", "sleep";
169 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on>;
170 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off>;
171
Subhash Jadavanie6e12522017-06-07 14:23:55 -0700172 extcon = <&extcon_storage_cd>;
173
174 status = "ok";
175};
176
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700177&labibb {
178 status = "ok";
179 qcom,qpnp-labibb-mode = "lcd";
180};
181
182&pmi8998_wled {
183 status = "okay";
184 qcom,led-strings-list = [01 02];
185};
186
Subbaraman Narayanamurthy3c2b7b32017-07-21 13:45:55 -0700187&pmi8998_haptics {
188 qcom,vmax-mv = <1800>;
189 qcom,wave-play-rate-us = <4347>;
190 qcom,lra-auto-mode;
191 status = "okay";
192};
193
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700194&mdss_mdp {
Shashank Babu Chinta Venkataded9c562017-03-15 14:43:46 -0700195 connectors = <&sde_rscc &sde_wb>;
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700196};
197
Narendra Muppalla48a27242017-08-01 16:07:46 -0700198&dsi_nt35597_truly_dsc_cmd {
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700199 qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
200 qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
201 qcom,mdss-dsi-bl-min-level = <1>;
202 qcom,mdss-dsi-bl-max-level = <4095>;
Narendra Muppalla48a27242017-08-01 16:07:46 -0700203 qcom,mdss-dsi-mode-sel-gpio-state = "single_port";
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700204 qcom,panel-mode-gpio = <&tlmm 52 0>;
205 qcom,platform-te-gpio = <&tlmm 10 0>;
206 qcom,platform-reset-gpio = <&tlmm 6 0>;
Dhaval Patel3d43fc42017-05-17 17:52:05 -0700207 qcom,mdss-dsi-panel-orientation = "180";
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700208};
209
Narendra Muppalla48a27242017-08-01 16:07:46 -0700210&dsi_nt35597_truly_dsc_video {
Vara Reddy07f41362017-06-20 19:54:06 -0700211 qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
212 qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
213 qcom,mdss-dsi-bl-min-level = <1>;
214 qcom,mdss-dsi-bl-max-level = <4095>;
Narendra Muppalla48a27242017-08-01 16:07:46 -0700215 qcom,mdss-dsi-mode-sel-gpio-state = "single_port";
Vara Reddy07f41362017-06-20 19:54:06 -0700216 qcom,panel-mode-gpio = <&tlmm 52 0>;
217 qcom,platform-te-gpio = <&tlmm 10 0>;
218 qcom,platform-reset-gpio = <&tlmm 6 0>;
219 qcom,mdss-dsi-panel-orientation = "180";
220};
221
Narendra Muppalla48a27242017-08-01 16:07:46 -0700222&dsi_nt35597_truly_dsc_cmd_display {
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700223 qcom,dsi-display-active;
224};
Maya Erez6e14acb2017-05-16 09:59:02 +0300225
226&wil6210 {
227 status = "ok";
228};
Harry Yang4c05d3e42017-05-09 16:18:17 -0700229
230&ext_5v_boost {
231 status = "ok";
232};
Siddartha Mohanadoss9a3bf9a2017-06-20 13:08:40 -0700233
234&pm8998_vadc {
235 chan@83 {
236 label = "vph_pwr";
237 reg = <0x83>;
238 qcom,decimation = <2>;
239 qcom,pre-div-channel-scaling = <1>;
240 qcom,calibration-type = "absolute";
241 qcom,scale-function = <0>;
242 qcom,hw-settle-time = <0>;
243 qcom,fast-avg-setup = <0>;
244 };
245
246 chan@85 {
247 label = "vcoin";
248 reg = <0x85>;
249 qcom,decimation = <2>;
250 qcom,pre-div-channel-scaling = <1>;
251 qcom,calibration-type = "absolute";
252 qcom,scale-function = <0>;
253 qcom,hw-settle-time = <0>;
254 qcom,fast-avg-setup = <0>;
255 };
256
257 chan@4c {
258 label = "xo_therm";
259 reg = <0x4c>;
260 qcom,decimation = <2>;
261 qcom,pre-div-channel-scaling = <0>;
262 qcom,calibration-type = "ratiometric";
263 qcom,scale-function = <4>;
264 qcom,hw-settle-time = <2>;
265 qcom,fast-avg-setup = <0>;
266 };
267
268 chan@4d {
269 label = "msm_therm";
270 reg = <0x4d>;
271 qcom,decimation = <2>;
272 qcom,pre-div-channel-scaling = <0>;
273 qcom,calibration-type = "ratiometric";
274 qcom,scale-function = <2>;
275 qcom,hw-settle-time = <2>;
276 qcom,fast-avg-setup = <0>;
277 };
278
279 chan@4f {
280 label = "pa_therm1";
281 reg = <0x4f>;
282 qcom,decimation = <2>;
283 qcom,pre-div-channel-scaling = <0>;
284 qcom,calibration-type = "ratiometric";
285 qcom,scale-function = <2>;
286 qcom,hw-settle-time = <2>;
287 qcom,fast-avg-setup = <0>;
288 };
289
290 chan@51 {
291 label = "quiet_therm";
292 reg = <0x51>;
293 qcom,decimation = <2>;
294 qcom,pre-div-channel-scaling = <0>;
295 qcom,calibration-type = "ratiometric";
296 qcom,scale-function = <2>;
297 qcom,hw-settle-time = <2>;
298 qcom,fast-avg-setup = <0>;
299 };
300};
301
302&pm8998_adc_tm {
303 chan@83 {
304 label = "vph_pwr";
305 reg = <0x83>;
306 qcom,pre-div-channel-scaling = <1>;
307 qcom,calibration-type = "absolute";
308 qcom,scale-function = <0>;
309 qcom,hw-settle-time = <0>;
310 qcom,btm-channel-number = <0x60>;
311 };
312
313 chan@4c {
314 label = "xo_therm";
315 reg = <0x4c>;
316 qcom,pre-div-channel-scaling = <0>;
317 qcom,calibration-type = "ratiometric";
318 qcom,scale-function = <4>;
319 qcom,hw-settle-time = <2>;
320 qcom,btm-channel-number = <0x68>;
321 qcom,thermal-node;
322 };
323
324 chan@4d {
325 label = "msm_therm";
326 reg = <0x4d>;
327 qcom,pre-div-channel-scaling = <0>;
328 qcom,calibration-type = "ratiometric";
329 qcom,scale-function = <2>;
330 qcom,hw-settle-time = <2>;
331 qcom,btm-channel-number = <0x70>;
332 qcom,thermal-node;
333 };
334
335 chan@4f {
336 label = "pa_therm1";
337 reg = <0x4f>;
338 qcom,pre-div-channel-scaling = <0>;
339 qcom,calibration-type = "ratiometric";
340 qcom,scale-function = <2>;
341 qcom,hw-settle-time = <2>;
342 qcom,btm-channel-number = <0x78>;
343 qcom,thermal-node;
344 };
345
346 chan@51 {
347 label = "quiet_therm";
348 reg = <0x51>;
349 qcom,pre-div-channel-scaling = <0>;
350 qcom,calibration-type = "ratiometric";
351 qcom,scale-function = <2>;
352 qcom,hw-settle-time = <2>;
353 qcom,btm-channel-number = <0x80>;
354 qcom,thermal-node;
355 };
356};
357
358&thermal_zones {
359 xo-therm-adc {
360 polling-delay-passive = <0>;
361 polling-delay = <0>;
362 thermal-sensors = <&pm8998_adc_tm 0x4c>;
363 thermal-governor = "user_space";
364
365 trips {
366 active-config0 {
367 temperature = <65000>;
368 hysteresis = <1000>;
369 type = "passive";
370 };
371 };
372 };
373
374 msm-therm-adc {
375 polling-delay-passive = <0>;
376 polling-delay = <0>;
377 thermal-sensors = <&pm8998_adc_tm 0x4d>;
378 thermal-governor = "user_space";
379
380 trips {
381 active-config0 {
382 temperature = <65000>;
383 hysteresis = <1000>;
384 type = "passive";
385 };
386 };
387 };
388
389 pa-therm1-adc {
390 polling-delay-passive = <0>;
391 polling-delay = <0>;
392 thermal-sensors = <&pm8998_adc_tm 0x4f>;
393 thermal-governor = "user_space";
394
395 trips {
396 active-config0 {
397 temperature = <65000>;
398 hysteresis = <1000>;
399 type = "passive";
400 };
401 };
402 };
403
404 quiet-therm-adc {
405 polling-delay-passive = <0>;
406 polling-delay = <0>;
407 thermal-sensors = <&pm8998_adc_tm 0x51>;
408 thermal-governor = "user_space";
409
410 trips {
411 active-config0 {
412 temperature = <65000>;
413 hysteresis = <1000>;
414 type = "passive";
415 };
416 };
417 };
418};