blob: 6f40faec0fcef20117ca9245aa70d256eb03c0e7 [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 */
Kyle Yan6a20fae2017-02-14 13:34:41 -080012
David Collinsc6686252017-03-31 14:23:09 -070013#include <dt-bindings/gpio/gpio.h>
Jigarkumar Zala861231152017-02-28 14:05:11 -080014#include "sdm845-camera-sensor-cdp.dtsi"
Sungjun Parkc9f9c062017-03-21 16:45:18 -070015
16/ {
17 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};
38
Banajit Goswamic0b75812017-03-16 16:14:17 -070039&soc {
40 sound-tavil {
41 qcom,us-euro-gpios = <&tavil_us_euro_sw>;
42 };
David Collinsc6686252017-03-31 14:23:09 -070043
44 gpio_keys {
45 compatible = "gpio-keys";
46 label = "gpio-keys";
47
48 pinctrl-names = "default";
49 pinctrl-0 = <&key_home_default
50 &key_vol_up_default
51 &key_cam_snapshot_default
52 &key_cam_focus_default>;
53
54 home {
55 label = "home";
56 gpios = <&pm8998_gpios 5 GPIO_ACTIVE_LOW>;
57 linux,input-type = <1>;
58 linux,code = <102>;
59 gpio-key,wakeup;
60 debounce-interval = <15>;
61 linux,can-disable;
62 };
63
64 vol_up {
65 label = "volume_up";
66 gpios = <&pm8998_gpios 6 GPIO_ACTIVE_LOW>;
67 linux,input-type = <1>;
68 linux,code = <115>;
69 gpio-key,wakeup;
70 debounce-interval = <15>;
71 linux,can-disable;
72 };
73
74 cam_snapshot {
75 label = "cam_snapshot";
76 gpios = <&pm8998_gpios 7 GPIO_ACTIVE_LOW>;
77 linux,input-type = <1>;
78 linux,code = <766>;
79 gpio-key,wakeup;
80 debounce-interval = <15>;
81 linux,can-disable;
82 };
83
84 cam_focus {
85 label = "cam_focus";
86 gpios = <&pm8998_gpios 8 GPIO_ACTIVE_LOW>;
87 linux,input-type = <1>;
88 linux,code = <528>;
89 gpio-key,wakeup;
90 debounce-interval = <15>;
91 linux,can-disable;
92 };
93 };
Banajit Goswamic0b75812017-03-16 16:14:17 -070094};
Subhash Jadavani20a48962017-03-27 15:37:57 -070095
Ram Chandrasekar316c3932017-04-25 12:48:55 -060096&mdss_mdp {
97 #cooling-cells = <2>;
98};
99
Subhash Jadavani20a48962017-03-27 15:37:57 -0700100&ufsphy_mem {
101 compatible = "qcom,ufs-phy-qmp-v3";
102
103 vdda-phy-supply = <&pm8998_l1>; /* 0.88v */
104 vdda-pll-supply = <&pm8998_l26>; /* 1.2v */
Subhash Jadavani20a48962017-03-27 15:37:57 -0700105 vdda-phy-max-microamp = <62900>;
106 vdda-pll-max-microamp = <18300>;
Subhash Jadavani20a48962017-03-27 15:37:57 -0700107
108 status = "ok";
109};
110
111&ufshc_mem {
112 vdd-hba-supply = <&ufs_phy_gdsc>;
113 vdd-hba-fixed-regulator;
114 vcc-supply = <&pm8998_l20>;
115 vccq2-supply = <&pm8998_s4>;
116 vcc-max-microamp = <600000>;
117 vccq2-max-microamp = <600000>;
118
Subhash Jadavani05480172017-04-01 15:51:52 -0700119 qcom,vddp-ref-clk-supply = <&pm8998_l2>;
120 qcom,vddp-ref-clk-max-microamp = <100>;
121
Subhash Jadavani20a48962017-03-27 15:37:57 -0700122 status = "ok";
123};
124
125&ufsphy_card {
126 compatible = "qcom,ufs-phy-qmp-v3";
127
128 vdda-phy-supply = <&pm8998_l1>; /* 0.88v */
129 vdda-pll-supply = <&pm8998_l26>; /* 1.2v */
Subhash Jadavani20a48962017-03-27 15:37:57 -0700130 vdda-phy-max-microamp = <62900>;
131 vdda-pll-max-microamp = <18300>;
Subhash Jadavani20a48962017-03-27 15:37:57 -0700132
133 status = "ok";
134};
135
136&ufshc_card {
137 vdd-hba-supply = <&ufs_card_gdsc>;
138 vdd-hba-fixed-regulator;
139 vcc-supply = <&pm8998_l21>;
140 vccq2-supply = <&pm8998_s4>;
141 vcc-max-microamp = <300000>;
142 vccq2-max-microamp = <300000>;
143
Subhash Jadavani05480172017-04-01 15:51:52 -0700144 qcom,vddp-ref-clk-supply = <&pm8998_l2>;
145 qcom,vddp-ref-clk-max-microamp = <100>;
146
Subhash Jadavani20a48962017-03-27 15:37:57 -0700147 status = "ok";
148};
Subbaraman Narayanamurthycd21c812017-03-30 18:36:49 -0700149
Xiaonian Wange5dedbb2017-04-08 06:48:59 +0800150&sdhc_2 {
151 vdd-supply = <&pm8998_l21>;
152 qcom,vdd-voltage-level = <2950000 2960000>;
153 qcom,vdd-current-level = <200 800000>;
154
155 vdd-io-supply = <&pm8998_l13>;
156 qcom,vdd-io-voltage-level = <1808000 2960000>;
157 qcom,vdd-io-current-level = <200 22000>;
158
159 pinctrl-names = "active", "sleep";
160 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on>;
161 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off>;
162
163 qcom,clk-rates = <400000 20000000 25000000
164 50000000 100000000 200000000>;
165 qcom,bus-speed-mode = "SDR12", "SDR25", "SDR50", "DDR50", "SDR104";
166
167 status = "ok";
168};
169
Subbaraman Narayanamurthy58377f02017-03-21 20:38:43 -0700170&pmi8998_switch1 {
Subbaraman Narayanamurthycd21c812017-03-30 18:36:49 -0700171 pinctrl-names = "led_enable", "led_disable";
172 pinctrl-0 = <&flash_led3_front_en>;
173 pinctrl-1 = <&flash_led3_front_dis>;
174};
Harry Yang67111662017-04-05 15:14:52 -0700175
176&pmi8998_charger {
177 qcom,batteryless-platform;
178};
Girish Mahadevan11bc2ff2017-04-08 08:26:35 -0600179
180/ {
Jack Phamc2160c842017-04-05 09:48:59 -0700181 extcon_usb1: extcon_usb1 {
182 compatible = "linux,extcon-usb-gpio";
183 id-gpio = <&pmi8998_gpios 9 GPIO_ACTIVE_HIGH>;
184 vbus-gpio = <&pmi8998_gpios 8 GPIO_ACTIVE_HIGH>;
185
186 pinctrl-names = "default";
187 pinctrl-0 = <&usb2_vbus_det_default
188 &usb2_id_det_default>;
189 };
190
191 usb1_vbus_vreg: usb1_vbus_vreg {
192 compatible = "regulator-fixed";
193 regulator-name = "usb_vbus_vreg";
194 gpio = <&pmi8998_gpios 2 GPIO_ACTIVE_HIGH>;
195 enable-active-high;
196
197 /* Typical EN-to-VBUS turn on time for NX5P1100 */
198 regulator-enable-ramp-delay = <630>;
199
200 pinctrl-names = "default";
201 pinctrl-0 = <&usb2_vbus_boost_default>;
202 };
203
Girish Mahadevan11bc2ff2017-04-08 08:26:35 -0600204aliases {
205 serial0 = &qupv3_se9_2uart;
206 spi0 = &qupv3_se8_spi;
207 i2c0 = &qupv3_se10_i2c;
208 i2c1 = &qupv3_se3_i2c;
209 };
210};
211
212&qupv3_se9_2uart {
213 status = "ok";
214};
215
Shashank Babu Chinta Venkata59e305f2017-04-05 12:14:18 -0700216&labibb {
217 status = "ok";
218 qcom,qpnp-labibb-mode = "lcd";
219};
220
221&dsi_dual_nt35597_truly_video {
222 qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
223 qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
224 qcom,mdss-dsi-bl-min-level = <1>;
225 qcom,mdss-dsi-bl-max-level = <4095>;
226 qcom,mdss-dsi-panel-mode-gpio-state = "dual_port";
227 qcom,panel-mode-gpio = <&tlmm 52 0>;
228 qcom,platform-reset-gpio = <&tlmm 6 0>;
229};
230
231&dsi_dual_nt35597_truly_video_display {
232 qcom,dsi-display-active;
233};
234
235&pmi8998_wled {
236 status = "okay";
237 qcom,led-strings-list = [01 02];
238};
239
Girish Mahadevan11bc2ff2017-04-08 08:26:35 -0600240&qupv3_se8_spi {
241 status = "ok";
242};
243
244&qupv3_se3_i2c {
245 status = "ok";
246};
247
248&qupv3_se10_i2c {
249 status = "ok";
250};
Jack Phamc2160c842017-04-05 09:48:59 -0700251
252&usb1 {
253 status = "okay";
254 extcon = <&extcon_usb1>;
255 vbus_dwc3-supply = <&usb1_vbus_vreg>;
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};