blob: 26d32a1c2458654874b4f4da06a22bc2cc2574a8 [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 Yangf5999322017-09-12 15:31:16 -070091&smb1355_charger_0 {
92 status = "ok";
93};
94
95&smb1355_charger_1 {
Harry Yang801aa2e2017-04-10 17:59:05 -070096 status = "ok";
97};
98
Ram Chandrasekar316c3932017-04-25 12:48:55 -060099&mdss_mdp {
100 #cooling-cells = <2>;
101};
102
Kyle Yan16860532017-05-05 15:38:47 -0700103&ufsphy_mem {
104 compatible = "qcom,ufs-phy-qmp-v3";
105
106 vdda-phy-supply = <&pm8998_l1>; /* 0.88v */
107 vdda-pll-supply = <&pm8998_l26>; /* 1.2v */
108 vdda-phy-max-microamp = <62900>;
109 vdda-pll-max-microamp = <18300>;
110
111 status = "ok";
112};
113
114&ufshc_mem {
115 vdd-hba-supply = <&ufs_phy_gdsc>;
116 vdd-hba-fixed-regulator;
117 vcc-supply = <&pm8998_l20>;
Bao D. Nguyen61e7a1a2017-09-11 12:30:01 -0700118 vcc-voltage-level = <2950000 2960000>;
Kyle Yan16860532017-05-05 15:38:47 -0700119 vccq2-supply = <&pm8998_s4>;
120 vcc-max-microamp = <600000>;
121 vccq2-max-microamp = <600000>;
122
123 qcom,vddp-ref-clk-supply = <&pm8998_l2>;
124 qcom,vddp-ref-clk-max-microamp = <100>;
125
126 status = "ok";
127};
128
Subhash Jadavanie6e12522017-06-07 14:23:55 -0700129&sdhc_2 {
130 vdd-supply = <&pm8998_l21>;
131 qcom,vdd-voltage-level = <2950000 2960000>;
132 qcom,vdd-current-level = <200 800000>;
133
134 vdd-io-supply = <&pm8998_l13>;
135 qcom,vdd-io-voltage-level = <1808000 2960000>;
136 qcom,vdd-io-current-level = <200 22000>;
137
138 pinctrl-names = "active", "sleep";
Subhash Jadavani0a975232017-09-27 11:43:28 -0700139 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &storage_cd>;
140 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &storage_cd>;
Subhash Jadavanie6e12522017-06-07 14:23:55 -0700141
Subhash Jadavani0a975232017-09-27 11:43:28 -0700142 cd-gpios = <&tlmm 126 GPIO_ACTIVE_LOW>;
Subhash Jadavanie6e12522017-06-07 14:23:55 -0700143
144 status = "ok";
145};
146
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700147&labibb {
148 status = "ok";
149 qcom,qpnp-labibb-mode = "lcd";
150};
151
152&pmi8998_wled {
153 status = "okay";
154 qcom,led-strings-list = [01 02];
155};
156
Subbaraman Narayanamurthy3c2b7b32017-07-21 13:45:55 -0700157&pmi8998_haptics {
158 qcom,vmax-mv = <1800>;
159 qcom,wave-play-rate-us = <4347>;
160 qcom,lra-auto-mode;
161 status = "okay";
162};
163
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700164&mdss_mdp {
Yuan Zhao25ac70a2017-12-05 18:52:03 +0800165 connectors = <&sde_rscc &sde_wb &sde_dp>;
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700166};
167
Narendra Muppalla48a27242017-08-01 16:07:46 -0700168&dsi_nt35597_truly_dsc_cmd {
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700169 qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
170 qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
171 qcom,mdss-dsi-bl-min-level = <1>;
172 qcom,mdss-dsi-bl-max-level = <4095>;
Narendra Muppalla48a27242017-08-01 16:07:46 -0700173 qcom,mdss-dsi-mode-sel-gpio-state = "single_port";
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700174 qcom,panel-mode-gpio = <&tlmm 52 0>;
175 qcom,platform-te-gpio = <&tlmm 10 0>;
176 qcom,platform-reset-gpio = <&tlmm 6 0>;
Dhaval Patel3d43fc42017-05-17 17:52:05 -0700177 qcom,mdss-dsi-panel-orientation = "180";
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700178};
179
Narendra Muppalla48a27242017-08-01 16:07:46 -0700180&dsi_nt35597_truly_dsc_video {
Vara Reddy07f41362017-06-20 19:54:06 -0700181 qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
182 qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
183 qcom,mdss-dsi-bl-min-level = <1>;
184 qcom,mdss-dsi-bl-max-level = <4095>;
Narendra Muppalla48a27242017-08-01 16:07:46 -0700185 qcom,mdss-dsi-mode-sel-gpio-state = "single_port";
Vara Reddy07f41362017-06-20 19:54:06 -0700186 qcom,panel-mode-gpio = <&tlmm 52 0>;
187 qcom,platform-te-gpio = <&tlmm 10 0>;
188 qcom,platform-reset-gpio = <&tlmm 6 0>;
189 qcom,mdss-dsi-panel-orientation = "180";
190};
191
Narendra Muppalla48a27242017-08-01 16:07:46 -0700192&dsi_nt35597_truly_dsc_cmd_display {
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700193 qcom,dsi-display-active;
194};
Maya Erez6e14acb2017-05-16 09:59:02 +0300195
196&wil6210 {
197 status = "ok";
198};
Harry Yang4c05d3e42017-05-09 16:18:17 -0700199
200&ext_5v_boost {
201 status = "ok";
202};
Siddartha Mohanadoss9a3bf9a2017-06-20 13:08:40 -0700203
204&pm8998_vadc {
205 chan@83 {
206 label = "vph_pwr";
207 reg = <0x83>;
208 qcom,decimation = <2>;
209 qcom,pre-div-channel-scaling = <1>;
210 qcom,calibration-type = "absolute";
211 qcom,scale-function = <0>;
212 qcom,hw-settle-time = <0>;
213 qcom,fast-avg-setup = <0>;
214 };
215
216 chan@85 {
217 label = "vcoin";
218 reg = <0x85>;
219 qcom,decimation = <2>;
220 qcom,pre-div-channel-scaling = <1>;
221 qcom,calibration-type = "absolute";
222 qcom,scale-function = <0>;
223 qcom,hw-settle-time = <0>;
224 qcom,fast-avg-setup = <0>;
225 };
226
227 chan@4c {
228 label = "xo_therm";
229 reg = <0x4c>;
230 qcom,decimation = <2>;
231 qcom,pre-div-channel-scaling = <0>;
232 qcom,calibration-type = "ratiometric";
233 qcom,scale-function = <4>;
234 qcom,hw-settle-time = <2>;
235 qcom,fast-avg-setup = <0>;
236 };
237
238 chan@4d {
239 label = "msm_therm";
240 reg = <0x4d>;
241 qcom,decimation = <2>;
242 qcom,pre-div-channel-scaling = <0>;
243 qcom,calibration-type = "ratiometric";
244 qcom,scale-function = <2>;
245 qcom,hw-settle-time = <2>;
246 qcom,fast-avg-setup = <0>;
247 };
248
249 chan@4f {
250 label = "pa_therm1";
251 reg = <0x4f>;
252 qcom,decimation = <2>;
253 qcom,pre-div-channel-scaling = <0>;
254 qcom,calibration-type = "ratiometric";
255 qcom,scale-function = <2>;
256 qcom,hw-settle-time = <2>;
257 qcom,fast-avg-setup = <0>;
258 };
259
260 chan@51 {
261 label = "quiet_therm";
262 reg = <0x51>;
263 qcom,decimation = <2>;
264 qcom,pre-div-channel-scaling = <0>;
265 qcom,calibration-type = "ratiometric";
266 qcom,scale-function = <2>;
267 qcom,hw-settle-time = <2>;
268 qcom,fast-avg-setup = <0>;
269 };
270};
271
272&pm8998_adc_tm {
273 chan@83 {
274 label = "vph_pwr";
275 reg = <0x83>;
276 qcom,pre-div-channel-scaling = <1>;
277 qcom,calibration-type = "absolute";
278 qcom,scale-function = <0>;
279 qcom,hw-settle-time = <0>;
280 qcom,btm-channel-number = <0x60>;
281 };
282
283 chan@4c {
284 label = "xo_therm";
285 reg = <0x4c>;
286 qcom,pre-div-channel-scaling = <0>;
287 qcom,calibration-type = "ratiometric";
288 qcom,scale-function = <4>;
289 qcom,hw-settle-time = <2>;
290 qcom,btm-channel-number = <0x68>;
291 qcom,thermal-node;
292 };
293
294 chan@4d {
295 label = "msm_therm";
296 reg = <0x4d>;
297 qcom,pre-div-channel-scaling = <0>;
298 qcom,calibration-type = "ratiometric";
299 qcom,scale-function = <2>;
300 qcom,hw-settle-time = <2>;
301 qcom,btm-channel-number = <0x70>;
302 qcom,thermal-node;
303 };
304
305 chan@4f {
306 label = "pa_therm1";
307 reg = <0x4f>;
308 qcom,pre-div-channel-scaling = <0>;
309 qcom,calibration-type = "ratiometric";
310 qcom,scale-function = <2>;
311 qcom,hw-settle-time = <2>;
312 qcom,btm-channel-number = <0x78>;
313 qcom,thermal-node;
314 };
315
316 chan@51 {
317 label = "quiet_therm";
318 reg = <0x51>;
319 qcom,pre-div-channel-scaling = <0>;
320 qcom,calibration-type = "ratiometric";
321 qcom,scale-function = <2>;
322 qcom,hw-settle-time = <2>;
323 qcom,btm-channel-number = <0x80>;
324 qcom,thermal-node;
325 };
326};
327
328&thermal_zones {
329 xo-therm-adc {
330 polling-delay-passive = <0>;
331 polling-delay = <0>;
332 thermal-sensors = <&pm8998_adc_tm 0x4c>;
333 thermal-governor = "user_space";
334
335 trips {
336 active-config0 {
337 temperature = <65000>;
338 hysteresis = <1000>;
339 type = "passive";
340 };
341 };
342 };
343
344 msm-therm-adc {
345 polling-delay-passive = <0>;
346 polling-delay = <0>;
347 thermal-sensors = <&pm8998_adc_tm 0x4d>;
348 thermal-governor = "user_space";
349
350 trips {
351 active-config0 {
352 temperature = <65000>;
353 hysteresis = <1000>;
354 type = "passive";
355 };
356 };
357 };
358
359 pa-therm1-adc {
360 polling-delay-passive = <0>;
361 polling-delay = <0>;
362 thermal-sensors = <&pm8998_adc_tm 0x4f>;
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 quiet-therm-adc {
375 polling-delay-passive = <0>;
376 polling-delay = <0>;
377 thermal-sensors = <&pm8998_adc_tm 0x51>;
378 thermal-governor = "user_space";
379
380 trips {
381 active-config0 {
382 temperature = <65000>;
383 hysteresis = <1000>;
384 type = "passive";
385 };
386 };
387 };
388};