blob: 3ee0138dde12fd01f509160907b607fcdf37eede [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
Fenglin Wu042da332017-12-14 13:29:59 +080054&soc {
55 gpio_keys {
56 compatible = "gpio-keys";
57 label = "gpio-keys";
58
59 pinctrl-names = "default";
60 pinctrl-0 = <&key_vol_up_default>;
61
62 vol_up {
63 label = "volume_up";
64 gpios = <&pm8998_gpios 6 GPIO_ACTIVE_LOW>;
65 linux,input-type = <1>;
66 linux,code = <115>;
67 gpio-key,wakeup;
68 debounce-interval = <15>;
69 linux,can-disable;
70 };
71 };
72};
73
Girish Mahadevanb8f9deb2017-05-08 14:14:46 -060074&qupv3_se3_i2c {
75 status = "ok";
Gaurav Singhalf6d253d2017-05-11 08:24:40 +053076 nq@28 {
77 compatible = "qcom,nq-nci";
78 reg = <0x28>;
79 qcom,nq-irq = <&tlmm 63 0x00>;
80 qcom,nq-ven = <&tlmm 12 0x00>;
81 qcom,nq-firm = <&tlmm 62 0x00>;
82 qcom,nq-clkreq = <&pm8998_gpios 21 0x00>;
83 qcom,nq-esepwr = <&tlmm 116 0x00>;
84 interrupt-parent = <&tlmm>;
85 qcom,clk-src = "BBCLK3";
86 interrupts = <63 0>;
87 interrupt-names = "nfc_irq";
88 pinctrl-names = "nfc_active", "nfc_suspend";
Gaurav Singhal243b94b2017-06-20 14:16:59 +053089 pinctrl-0 = <&nfc_int_active
90 &nfc_enable_active
91 &nfc_clk_default>;
Gaurav Singhalf6d253d2017-05-11 08:24:40 +053092 pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend>;
93 clocks = <&clock_rpmh RPMH_LN_BB_CLK3>;
94 clock-names = "ref_clk";
95 };
Girish Mahadevanb8f9deb2017-05-08 14:14:46 -060096};
97
98&qupv3_se10_i2c {
99 status = "ok";
100};
101
102&qupv3_se6_4uart {
103 status = "ok";
Harry Yang67111662017-04-05 15:14:52 -0700104};
105
106&pmi8998_fg {
107 qcom,battery-data = <&qrd_batterydata>;
Fenglin Wuda34a902017-08-10 16:03:24 +0800108 qcom,fg-bmd-en-delay-ms = <300>;
Harry Yang67111662017-04-05 15:14:52 -0700109};
Xiaoyu Ye73702122017-04-07 17:55:01 -0700110
Harry Yangf5999322017-09-12 15:31:16 -0700111&smb1355_charger_0 {
112 status = "ok";
113};
114
115&smb1355_charger_1 {
Harry Yang801aa2e2017-04-10 17:59:05 -0700116 status = "ok";
117};
118
Ram Chandrasekar316c3932017-04-25 12:48:55 -0600119&mdss_mdp {
120 #cooling-cells = <2>;
121};
122
Kyle Yan16860532017-05-05 15:38:47 -0700123&ufsphy_mem {
124 compatible = "qcom,ufs-phy-qmp-v3";
125
126 vdda-phy-supply = <&pm8998_l1>; /* 0.88v */
127 vdda-pll-supply = <&pm8998_l26>; /* 1.2v */
128 vdda-phy-max-microamp = <62900>;
129 vdda-pll-max-microamp = <18300>;
130
131 status = "ok";
132};
133
134&ufshc_mem {
135 vdd-hba-supply = <&ufs_phy_gdsc>;
136 vdd-hba-fixed-regulator;
137 vcc-supply = <&pm8998_l20>;
Bao D. Nguyen61e7a1a2017-09-11 12:30:01 -0700138 vcc-voltage-level = <2950000 2960000>;
Kyle Yan16860532017-05-05 15:38:47 -0700139 vccq2-supply = <&pm8998_s4>;
140 vcc-max-microamp = <600000>;
141 vccq2-max-microamp = <600000>;
142
143 qcom,vddp-ref-clk-supply = <&pm8998_l2>;
144 qcom,vddp-ref-clk-max-microamp = <100>;
145
146 status = "ok";
147};
148
Subhash Jadavanie6e12522017-06-07 14:23:55 -0700149&sdhc_2 {
150 vdd-supply = <&pm8998_l21>;
151 qcom,vdd-voltage-level = <2950000 2960000>;
152 qcom,vdd-current-level = <200 800000>;
153
154 vdd-io-supply = <&pm8998_l13>;
155 qcom,vdd-io-voltage-level = <1808000 2960000>;
156 qcom,vdd-io-current-level = <200 22000>;
157
158 pinctrl-names = "active", "sleep";
Subhash Jadavani0a975232017-09-27 11:43:28 -0700159 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &storage_cd>;
160 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &storage_cd>;
Subhash Jadavanie6e12522017-06-07 14:23:55 -0700161
Subhash Jadavani0a975232017-09-27 11:43:28 -0700162 cd-gpios = <&tlmm 126 GPIO_ACTIVE_LOW>;
Subhash Jadavanie6e12522017-06-07 14:23:55 -0700163
164 status = "ok";
165};
166
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700167&labibb {
168 status = "ok";
169 qcom,qpnp-labibb-mode = "lcd";
170};
171
172&pmi8998_wled {
173 status = "okay";
174 qcom,led-strings-list = [01 02];
175};
176
Subbaraman Narayanamurthy3c2b7b32017-07-21 13:45:55 -0700177&pmi8998_haptics {
178 qcom,vmax-mv = <1800>;
179 qcom,wave-play-rate-us = <4347>;
180 qcom,lra-auto-mode;
181 status = "okay";
182};
183
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700184&mdss_mdp {
Yuan Zhao25ac70a2017-12-05 18:52:03 +0800185 connectors = <&sde_rscc &sde_wb &sde_dp>;
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700186};
187
Narendra Muppalla48a27242017-08-01 16:07:46 -0700188&dsi_nt35597_truly_dsc_cmd {
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700189 qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
190 qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
191 qcom,mdss-dsi-bl-min-level = <1>;
192 qcom,mdss-dsi-bl-max-level = <4095>;
Narendra Muppalla48a27242017-08-01 16:07:46 -0700193 qcom,mdss-dsi-mode-sel-gpio-state = "single_port";
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700194 qcom,panel-mode-gpio = <&tlmm 52 0>;
195 qcom,platform-te-gpio = <&tlmm 10 0>;
196 qcom,platform-reset-gpio = <&tlmm 6 0>;
Dhaval Patel3d43fc42017-05-17 17:52:05 -0700197 qcom,mdss-dsi-panel-orientation = "180";
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700198};
199
Narendra Muppalla48a27242017-08-01 16:07:46 -0700200&dsi_nt35597_truly_dsc_video {
Vara Reddy07f41362017-06-20 19:54:06 -0700201 qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
202 qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
203 qcom,mdss-dsi-bl-min-level = <1>;
204 qcom,mdss-dsi-bl-max-level = <4095>;
Narendra Muppalla48a27242017-08-01 16:07:46 -0700205 qcom,mdss-dsi-mode-sel-gpio-state = "single_port";
Vara Reddy07f41362017-06-20 19:54:06 -0700206 qcom,panel-mode-gpio = <&tlmm 52 0>;
207 qcom,platform-te-gpio = <&tlmm 10 0>;
208 qcom,platform-reset-gpio = <&tlmm 6 0>;
209 qcom,mdss-dsi-panel-orientation = "180";
210};
211
Narendra Muppalla48a27242017-08-01 16:07:46 -0700212&dsi_nt35597_truly_dsc_cmd_display {
Shashank Babu Chinta Venkatab4e499f2017-05-01 11:39:57 -0700213 qcom,dsi-display-active;
214};
Maya Erez6e14acb2017-05-16 09:59:02 +0300215
216&wil6210 {
217 status = "ok";
218};
Harry Yang4c05d3e42017-05-09 16:18:17 -0700219
220&ext_5v_boost {
221 status = "ok";
222};
Siddartha Mohanadoss9a3bf9a2017-06-20 13:08:40 -0700223
224&pm8998_vadc {
225 chan@83 {
226 label = "vph_pwr";
227 reg = <0x83>;
228 qcom,decimation = <2>;
229 qcom,pre-div-channel-scaling = <1>;
230 qcom,calibration-type = "absolute";
231 qcom,scale-function = <0>;
232 qcom,hw-settle-time = <0>;
233 qcom,fast-avg-setup = <0>;
234 };
235
236 chan@85 {
237 label = "vcoin";
238 reg = <0x85>;
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@4c {
248 label = "xo_therm";
249 reg = <0x4c>;
250 qcom,decimation = <2>;
251 qcom,pre-div-channel-scaling = <0>;
252 qcom,calibration-type = "ratiometric";
253 qcom,scale-function = <4>;
254 qcom,hw-settle-time = <2>;
255 qcom,fast-avg-setup = <0>;
256 };
257
258 chan@4d {
259 label = "msm_therm";
260 reg = <0x4d>;
261 qcom,decimation = <2>;
262 qcom,pre-div-channel-scaling = <0>;
263 qcom,calibration-type = "ratiometric";
264 qcom,scale-function = <2>;
265 qcom,hw-settle-time = <2>;
266 qcom,fast-avg-setup = <0>;
267 };
268
269 chan@4f {
270 label = "pa_therm1";
271 reg = <0x4f>;
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@51 {
281 label = "quiet_therm";
282 reg = <0x51>;
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
292&pm8998_adc_tm {
293 chan@83 {
294 label = "vph_pwr";
295 reg = <0x83>;
296 qcom,pre-div-channel-scaling = <1>;
297 qcom,calibration-type = "absolute";
298 qcom,scale-function = <0>;
299 qcom,hw-settle-time = <0>;
300 qcom,btm-channel-number = <0x60>;
301 };
302
303 chan@4c {
304 label = "xo_therm";
305 reg = <0x4c>;
306 qcom,pre-div-channel-scaling = <0>;
307 qcom,calibration-type = "ratiometric";
308 qcom,scale-function = <4>;
309 qcom,hw-settle-time = <2>;
310 qcom,btm-channel-number = <0x68>;
311 qcom,thermal-node;
312 };
313
314 chan@4d {
315 label = "msm_therm";
316 reg = <0x4d>;
317 qcom,pre-div-channel-scaling = <0>;
318 qcom,calibration-type = "ratiometric";
319 qcom,scale-function = <2>;
320 qcom,hw-settle-time = <2>;
321 qcom,btm-channel-number = <0x70>;
322 qcom,thermal-node;
323 };
324
325 chan@4f {
326 label = "pa_therm1";
327 reg = <0x4f>;
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 = <0x78>;
333 qcom,thermal-node;
334 };
335
336 chan@51 {
337 label = "quiet_therm";
338 reg = <0x51>;
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 = <0x80>;
344 qcom,thermal-node;
345 };
346};
347
348&thermal_zones {
349 xo-therm-adc {
350 polling-delay-passive = <0>;
351 polling-delay = <0>;
352 thermal-sensors = <&pm8998_adc_tm 0x4c>;
353 thermal-governor = "user_space";
354
355 trips {
356 active-config0 {
357 temperature = <65000>;
358 hysteresis = <1000>;
359 type = "passive";
360 };
361 };
362 };
363
364 msm-therm-adc {
365 polling-delay-passive = <0>;
366 polling-delay = <0>;
367 thermal-sensors = <&pm8998_adc_tm 0x4d>;
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 pa-therm1-adc {
380 polling-delay-passive = <0>;
381 polling-delay = <0>;
382 thermal-sensors = <&pm8998_adc_tm 0x4f>;
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 quiet-therm-adc {
395 polling-delay-passive = <0>;
396 polling-delay = <0>;
397 thermal-sensors = <&pm8998_adc_tm 0x51>;
398 thermal-governor = "user_space";
399
400 trips {
401 active-config0 {
402 temperature = <65000>;
403 hysteresis = <1000>;
404 type = "passive";
405 };
406 };
407 };
408};