blob: 72ea9f70b88e13d4c28b18ebab3e93b10914b579 [file] [log] [blame]
Banajit Goswami7885c692017-03-16 16:00:34 -07001/* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
Channagoud Kadabi6d4bb832016-06-30 23:40:05 -07002 *
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 */
David Collinsc6686252017-03-31 14:23:09 -070012
13#include <dt-bindings/gpio/gpio.h>
Jigarkumar Zala861231152017-02-28 14:05:11 -080014#include "sdm845-camera-sensor-mtp.dtsi"
Harry Yang801aa2e2017-04-10 17:59:05 -070015#include "smb1355.dtsi"
Sungjun Parkc9f9c062017-03-21 16:45:18 -070016
17/ {
18 bluetooth: bt_wcn3990 {
19 compatible = "qca,wcn3990";
20 qca,bt-vdd-io-supply = <&pm8998_s3>;
21 qca,bt-vdd-xtal-supply = <&pm8998_s5>;
22 qca,bt-vdd-core-supply = <&pm8998_l7>;
23 qca,bt-vdd-pa-supply = <&pm8998_l17>;
24 qca,bt-vdd-ldo-supply = <&pm8998_l25>;
25
26 qca,bt-vdd-io-voltage-level = <1352000 1352000>;
27 qca,bt-vdd-xtal-voltage-level = <2040000 2040000>;
28 qca,bt-vdd-core-voltage-level = <1800000 1800000>;
29 qca,bt-vdd-pa-voltage-level = <1304000 1304000>;
30 qca,bt-vdd-ldo-voltage-level = <3312000 3312000>;
31
32 qca,bt-vdd-io-current-level = <1>; /* LPM/PFM */
33 qca,bt-vdd-xtal-current-level = <1>; /* LPM/PFM */
34 qca,bt-vdd-core-current-level = <1>; /* LPM/PFM */
35 qca,bt-vdd-pa-current-level = <1>; /* LPM/PFM */
36 qca,bt-vdd-ldo-current-level = <1>; /* LPM/PFM */
37 };
38};
39
David Collinsc6686252017-03-31 14:23:09 -070040&soc {
41 gpio_keys {
42 compatible = "gpio-keys";
43 label = "gpio-keys";
44
45 pinctrl-names = "default";
46 pinctrl-0 = <&key_vol_up_default
47 &key_cam_snapshot_default
48 &key_cam_focus_default>;
49
50 vol_up {
51 label = "volume_up";
52 gpios = <&pm8998_gpios 6 GPIO_ACTIVE_LOW>;
53 linux,input-type = <1>;
54 linux,code = <115>;
55 gpio-key,wakeup;
56 debounce-interval = <15>;
57 linux,can-disable;
58 };
59
60 cam_snapshot {
61 label = "cam_snapshot";
62 gpios = <&pm8998_gpios 7 GPIO_ACTIVE_LOW>;
63 linux,input-type = <1>;
64 linux,code = <766>;
65 gpio-key,wakeup;
66 debounce-interval = <15>;
67 linux,can-disable;
68 };
69
70 cam_focus {
71 label = "cam_focus";
72 gpios = <&pm8998_gpios 8 GPIO_ACTIVE_LOW>;
73 linux,input-type = <1>;
74 linux,code = <528>;
75 gpio-key,wakeup;
76 debounce-interval = <15>;
77 linux,can-disable;
78 };
79 };
80};
Subhash Jadavani20a48962017-03-27 15:37:57 -070081
Shashank Babu Chinta Venkata59e305f2017-04-05 12:14:18 -070082&labibb {
83 status = "ok";
84 qcom,qpnp-labibb-mode = "lcd";
85};
86
87&dsi_dual_nt35597_truly_video {
88 qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
89 qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
90 qcom,mdss-dsi-bl-min-level = <1>;
91 qcom,mdss-dsi-bl-max-level = <4095>;
92 qcom,mdss-dsi-panel-mode-gpio-state = "dual_port";
93 qcom,panel-mode-gpio = <&tlmm 52 0>;
94 qcom,platform-reset-gpio = <&tlmm 6 0>;
95};
96
Narendra Muppallae8c25c82017-04-02 19:20:57 -070097&dsi_sim_vid {
98 qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
99 qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
100 qcom,platform-reset-gpio = <&tlmm 6 0>;
101};
102
103&dsi_dual_sim_vid {
104 qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
105 qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
106 qcom,platform-reset-gpio = <&tlmm 6 0>;
107};
108
Shashank Babu Chinta Venkata59e305f2017-04-05 12:14:18 -0700109&dsi_dual_nt35597_truly_video_display {
110 qcom,dsi-display-active;
111};
112
113&pmi8998_wled {
114 status = "okay";
115 qcom,led-strings-list = [01 02];
116};
117
Ram Chandrasekar316c3932017-04-25 12:48:55 -0600118&mdss_mdp {
119 #cooling-cells = <2>;
120};
121
Subhash Jadavani20a48962017-03-27 15:37:57 -0700122&ufsphy_mem {
123 compatible = "qcom,ufs-phy-qmp-v3";
124
125 vdda-phy-supply = <&pm8998_l1>; /* 0.88v */
126 vdda-pll-supply = <&pm8998_l26>; /* 1.2v */
Subhash Jadavani20a48962017-03-27 15:37:57 -0700127 vdda-phy-max-microamp = <62900>;
128 vdda-pll-max-microamp = <18300>;
Subhash Jadavani20a48962017-03-27 15:37:57 -0700129
130 status = "ok";
131};
132
133&ufshc_mem {
134 vdd-hba-supply = <&ufs_phy_gdsc>;
135 vdd-hba-fixed-regulator;
136 vcc-supply = <&pm8998_l20>;
137 vccq2-supply = <&pm8998_s4>;
138 vcc-max-microamp = <600000>;
139 vccq2-max-microamp = <600000>;
140
Subhash Jadavani05480172017-04-01 15:51:52 -0700141 qcom,vddp-ref-clk-supply = <&pm8998_l2>;
142 qcom,vddp-ref-clk-max-microamp = <100>;
143
Subhash Jadavani20a48962017-03-27 15:37:57 -0700144 status = "ok";
145};
146
147&ufsphy_card {
148 compatible = "qcom,ufs-phy-qmp-v3";
149
150 vdda-phy-supply = <&pm8998_l1>; /* 0.88v */
151 vdda-pll-supply = <&pm8998_l26>; /* 1.2v */
Subhash Jadavani20a48962017-03-27 15:37:57 -0700152 vdda-phy-max-microamp = <62900>;
153 vdda-pll-max-microamp = <18300>;
Subhash Jadavani20a48962017-03-27 15:37:57 -0700154
155 status = "ok";
156};
157
158&ufshc_card {
159 vdd-hba-supply = <&ufs_card_gdsc>;
160 vdd-hba-fixed-regulator;
161 vcc-supply = <&pm8998_l21>;
162 vccq2-supply = <&pm8998_s4>;
163 vcc-max-microamp = <300000>;
164 vccq2-max-microamp = <300000>;
165
Subhash Jadavani05480172017-04-01 15:51:52 -0700166 qcom,vddp-ref-clk-supply = <&pm8998_l2>;
167 qcom,vddp-ref-clk-max-microamp = <100>;
168
Subhash Jadavani20a48962017-03-27 15:37:57 -0700169 status = "ok";
170};
Subbaraman Narayanamurthycd21c812017-03-30 18:36:49 -0700171
Xiaonian Wang7d9ac832017-04-08 06:52:01 +0800172&sdhc_2 {
173 vdd-supply = <&pm8998_l21>;
174 qcom,vdd-voltage-level = <2950000 2960000>;
175 qcom,vdd-current-level = <200 800000>;
176
177 vdd-io-supply = <&pm8998_l13>;
178 qcom,vdd-io-voltage-level = <1808000 2960000>;
179 qcom,vdd-io-current-level = <200 22000>;
180
181 pinctrl-names = "active", "sleep";
182 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on>;
183 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off>;
184
185 qcom,clk-rates = <400000 20000000 25000000
186 50000000 100000000 200000000>;
187 qcom,bus-speed-mode = "SDR12", "SDR25", "SDR50", "DDR50", "SDR104";
188
189 status = "ok";
190};
191
Subbaraman Narayanamurthy58377f02017-03-21 20:38:43 -0700192&pmi8998_switch1 {
Subbaraman Narayanamurthycd21c812017-03-30 18:36:49 -0700193 pinctrl-names = "led_enable", "led_disable";
194 pinctrl-0 = <&flash_led3_front_en>;
195 pinctrl-1 = <&flash_led3_front_dis>;
196};
Harry Yang67111662017-04-05 15:14:52 -0700197
198/{
199 mtp_batterydata: qcom,battery-data {
200 qcom,batt-id-range-pct = <15>;
201 #include "fg-gen3-batterydata-itech-3000mah.dtsi"
202 #include "fg-gen3-batterydata-ascent-3450mah.dtsi"
203 #include "fg-gen3-batterydata-demo-6000mah.dtsi"
204 };
Jack Phamc2160c842017-04-05 09:48:59 -0700205
206 extcon_usb1: extcon_usb1 {
207 compatible = "linux,extcon-usb-gpio";
208 vbus-gpio = <&pmi8998_gpios 8 GPIO_ACTIVE_HIGH>;
209
210 pinctrl-names = "default";
211 pinctrl-0 = <&usb2_vbus_det_default>;
212 };
Harry Yang67111662017-04-05 15:14:52 -0700213};
214
215&pmi8998_fg {
216 qcom,battery-data = <&mtp_batterydata>;
217};
Girish Mahadevan11bc2ff2017-04-08 08:26:35 -0600218
Harry Yang801aa2e2017-04-10 17:59:05 -0700219&smb1355_charger {
220 status = "ok";
221};
222
Girish Mahadevan11bc2ff2017-04-08 08:26:35 -0600223/ {
224aliases {
225 serial0 = &qupv3_se9_2uart;
226 spi0 = &qupv3_se8_spi;
227 i2c0 = &qupv3_se10_i2c;
228 i2c1 = &qupv3_se3_i2c;
Girish Mahadevan1d38bd32017-04-11 17:59:47 -0600229 hsuart0 = &qupv3_se6_4uart;
Girish Mahadevan11bc2ff2017-04-08 08:26:35 -0600230 };
231};
232
233&qupv3_se9_2uart {
234 status = "ok";
235};
236
237&qupv3_se8_spi {
238 status = "ok";
239};
240
241&qupv3_se3_i2c {
242 status = "ok";
243};
244
245&qupv3_se10_i2c {
246 status = "ok";
247};
Jack Phamc2160c842017-04-05 09:48:59 -0700248
Girish Mahadevan1d38bd32017-04-11 17:59:47 -0600249&qupv3_se6_4uart {
250 status = "ok";
251};
252
Jack Phamc2160c842017-04-05 09:48:59 -0700253&usb1 {
254 status = "okay";
255 extcon = <&extcon_usb1>;
256};
257
258&qusb_phy1 {
259 status = "okay";
260};
261
262&usb_qmp_phy {
263 status = "okay";
264};
Siddartha Mohanadoss81021962017-04-12 11:31:00 -0700265
266&pm8998_vadc {
267 chan@83 {
268 label = "vph_pwr";
269 reg = <0x83>;
270 qcom,decimation = <2>;
271 qcom,pre-div-channel-scaling = <1>;
272 qcom,calibration-type = "absolute";
273 qcom,scale-function = <0>;
274 qcom,hw-settle-time = <0>;
275 qcom,fast-avg-setup = <0>;
276 };
277
278 chan@85 {
279 label = "vcoin";
280 reg = <0x85>;
281 qcom,decimation = <2>;
282 qcom,pre-div-channel-scaling = <1>;
283 qcom,calibration-type = "absolute";
284 qcom,scale-function = <0>;
285 qcom,hw-settle-time = <0>;
286 qcom,fast-avg-setup = <0>;
287 };
288
289 chan@4c {
290 label = "xo_therm";
291 reg = <0x4c>;
292 qcom,decimation = <2>;
293 qcom,pre-div-channel-scaling = <0>;
294 qcom,calibration-type = "ratiometric";
295 qcom,scale-function = <4>;
296 qcom,hw-settle-time = <2>;
297 qcom,fast-avg-setup = <0>;
Siddartha Mohanadoss0fbfc822017-04-21 11:41:32 -0700298 qcom,vadc-thermal-node;
Siddartha Mohanadoss81021962017-04-12 11:31:00 -0700299 };
300
301 chan@4d {
302 label = "msm_therm";
303 reg = <0x4d>;
304 qcom,decimation = <2>;
305 qcom,pre-div-channel-scaling = <0>;
306 qcom,calibration-type = "ratiometric";
307 qcom,scale-function = <2>;
308 qcom,hw-settle-time = <2>;
309 qcom,fast-avg-setup = <0>;
Siddartha Mohanadoss0fbfc822017-04-21 11:41:32 -0700310 qcom,vadc-thermal-node;
Siddartha Mohanadoss81021962017-04-12 11:31:00 -0700311 };
312
313 chan@4f {
314 label = "pa_therm1";
315 reg = <0x4f>;
316 qcom,decimation = <2>;
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,fast-avg-setup = <0>;
Siddartha Mohanadoss0fbfc822017-04-21 11:41:32 -0700322 qcom,vadc-thermal-node;
Siddartha Mohanadoss81021962017-04-12 11:31:00 -0700323 };
324
325 chan@51 {
326 label = "quiet_therm";
327 reg = <0x51>;
328 qcom,decimation = <2>;
329 qcom,pre-div-channel-scaling = <0>;
330 qcom,calibration-type = "ratiometric";
331 qcom,scale-function = <2>;
332 qcom,hw-settle-time = <2>;
333 qcom,fast-avg-setup = <0>;
Siddartha Mohanadoss0fbfc822017-04-21 11:41:32 -0700334 qcom,vadc-thermal-node;
Siddartha Mohanadoss81021962017-04-12 11:31:00 -0700335 };
336};
337
338&pm8998_adc_tm {
339 chan@83 {
340 label = "vph_pwr";
341 reg = <0x83>;
342 qcom,pre-div-channel-scaling = <1>;
343 qcom,calibration-type = "absolute";
344 qcom,scale-function = <0>;
345 qcom,hw-settle-time = <0>;
346 qcom,btm-channel-number = <0x60>;
347 };
Siddartha Mohanadoss0fbfc822017-04-21 11:41:32 -0700348};
Siddartha Mohanadoss81021962017-04-12 11:31:00 -0700349
Siddartha Mohanadoss0fbfc822017-04-21 11:41:32 -0700350&thermal_zones {
351 xo-therm-adc {
352 polling-delay-passive = <0>;
353 polling-delay = <0>;
354 thermal-sensors = <&pm8998_vadc 0x4c>;
Siddartha Mohanadoss81021962017-04-12 11:31:00 -0700355 };
356
Siddartha Mohanadoss0fbfc822017-04-21 11:41:32 -0700357 msm-therm-adc {
358 polling-delay-passive = <0>;
359 polling-delay = <0>;
360 thermal-sensors = <&pm8998_vadc 0x4d>;
Siddartha Mohanadoss81021962017-04-12 11:31:00 -0700361 };
362
Siddartha Mohanadoss0fbfc822017-04-21 11:41:32 -0700363 pa-therm1-adc {
364 polling-delay-passive = <0>;
365 polling-delay = <0>;
366 thermal-sensors = <&pm8998_vadc 0x4f>;
Siddartha Mohanadoss81021962017-04-12 11:31:00 -0700367 };
368
Siddartha Mohanadoss0fbfc822017-04-21 11:41:32 -0700369 quiet-therm-adc {
370 polling-delay-passive = <0>;
371 polling-delay = <0>;
372 thermal-sensors = <&pm8998_vadc 0x51>;
Siddartha Mohanadoss81021962017-04-12 11:31:00 -0700373 };
374};