blob: 6f199c6dc44f9d76c263b10f01e25fb9df91afab [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;
Girish Mahadevan1d38bd32017-04-11 17:59:47 -0600209 hsuart0 = &qupv3_se6_4uart;
Girish Mahadevan11bc2ff2017-04-08 08:26:35 -0600210 };
211};
212
213&qupv3_se9_2uart {
214 status = "ok";
215};
216
Shashank Babu Chinta Venkata59e305f2017-04-05 12:14:18 -0700217&labibb {
218 status = "ok";
219 qcom,qpnp-labibb-mode = "lcd";
220};
221
222&dsi_dual_nt35597_truly_video {
223 qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
224 qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
225 qcom,mdss-dsi-bl-min-level = <1>;
226 qcom,mdss-dsi-bl-max-level = <4095>;
227 qcom,mdss-dsi-panel-mode-gpio-state = "dual_port";
228 qcom,panel-mode-gpio = <&tlmm 52 0>;
229 qcom,platform-reset-gpio = <&tlmm 6 0>;
230};
231
Narendra Muppallae8c25c82017-04-02 19:20:57 -0700232&dsi_sim_vid {
233 qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
234 qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
235 qcom,platform-reset-gpio = <&tlmm 6 0>;
236};
237
238&dsi_dual_sim_vid {
239 qcom,panel-supply-entries = <&dsi_panel_pwr_supply>;
240 qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled";
241 qcom,platform-reset-gpio = <&tlmm 6 0>;
242};
243
Shashank Babu Chinta Venkata59e305f2017-04-05 12:14:18 -0700244&dsi_dual_nt35597_truly_video_display {
245 qcom,dsi-display-active;
246};
247
248&pmi8998_wled {
249 status = "okay";
250 qcom,led-strings-list = [01 02];
251};
252
Girish Mahadevan11bc2ff2017-04-08 08:26:35 -0600253&qupv3_se8_spi {
254 status = "ok";
255};
256
257&qupv3_se3_i2c {
258 status = "ok";
259};
260
261&qupv3_se10_i2c {
262 status = "ok";
263};
Jack Phamc2160c842017-04-05 09:48:59 -0700264
Girish Mahadevan1d38bd32017-04-11 17:59:47 -0600265&qupv3_se6_4uart {
266 status = "ok";
267};
268
Jack Phamc2160c842017-04-05 09:48:59 -0700269&usb1 {
270 status = "okay";
271 extcon = <&extcon_usb1>;
272 vbus_dwc3-supply = <&usb1_vbus_vreg>;
273};
274
275&qusb_phy1 {
276 status = "okay";
277};
278
279&usb_qmp_phy {
280 status = "okay";
281};
Siddartha Mohanadoss81021962017-04-12 11:31:00 -0700282
283&pm8998_vadc {
284 chan@83 {
285 label = "vph_pwr";
286 reg = <0x83>;
287 qcom,decimation = <2>;
288 qcom,pre-div-channel-scaling = <1>;
289 qcom,calibration-type = "absolute";
290 qcom,scale-function = <0>;
291 qcom,hw-settle-time = <0>;
292 qcom,fast-avg-setup = <0>;
293 };
294
295 chan@85 {
296 label = "vcoin";
297 reg = <0x85>;
298 qcom,decimation = <2>;
299 qcom,pre-div-channel-scaling = <1>;
300 qcom,calibration-type = "absolute";
301 qcom,scale-function = <0>;
302 qcom,hw-settle-time = <0>;
303 qcom,fast-avg-setup = <0>;
304 };
305
306 chan@4c {
307 label = "xo_therm";
308 reg = <0x4c>;
309 qcom,decimation = <2>;
310 qcom,pre-div-channel-scaling = <0>;
311 qcom,calibration-type = "ratiometric";
312 qcom,scale-function = <4>;
313 qcom,hw-settle-time = <2>;
314 qcom,fast-avg-setup = <0>;
Siddartha Mohanadoss0fbfc822017-04-21 11:41:32 -0700315 qcom,vadc-thermal-node;
Siddartha Mohanadoss81021962017-04-12 11:31:00 -0700316 };
317
318 chan@4d {
319 label = "msm_therm";
320 reg = <0x4d>;
321 qcom,decimation = <2>;
322 qcom,pre-div-channel-scaling = <0>;
323 qcom,calibration-type = "ratiometric";
324 qcom,scale-function = <2>;
325 qcom,hw-settle-time = <2>;
326 qcom,fast-avg-setup = <0>;
Siddartha Mohanadoss0fbfc822017-04-21 11:41:32 -0700327 qcom,vadc-thermal-node;
Siddartha Mohanadoss81021962017-04-12 11:31:00 -0700328 };
329
330 chan@4f {
331 label = "pa_therm1";
332 reg = <0x4f>;
333 qcom,decimation = <2>;
334 qcom,pre-div-channel-scaling = <0>;
335 qcom,calibration-type = "ratiometric";
336 qcom,scale-function = <2>;
337 qcom,hw-settle-time = <2>;
338 qcom,fast-avg-setup = <0>;
Siddartha Mohanadoss0fbfc822017-04-21 11:41:32 -0700339 qcom,vadc-thermal-node;
Siddartha Mohanadoss81021962017-04-12 11:31:00 -0700340 };
341
342 chan@51 {
343 label = "quiet_therm";
344 reg = <0x51>;
345 qcom,decimation = <2>;
346 qcom,pre-div-channel-scaling = <0>;
347 qcom,calibration-type = "ratiometric";
348 qcom,scale-function = <2>;
349 qcom,hw-settle-time = <2>;
350 qcom,fast-avg-setup = <0>;
Siddartha Mohanadoss0fbfc822017-04-21 11:41:32 -0700351 qcom,vadc-thermal-node;
Siddartha Mohanadoss81021962017-04-12 11:31:00 -0700352 };
353};
354
355&pm8998_adc_tm {
356 chan@83 {
357 label = "vph_pwr";
358 reg = <0x83>;
359 qcom,pre-div-channel-scaling = <1>;
360 qcom,calibration-type = "absolute";
361 qcom,scale-function = <0>;
362 qcom,hw-settle-time = <0>;
363 qcom,btm-channel-number = <0x60>;
364 };
Siddartha Mohanadoss0fbfc822017-04-21 11:41:32 -0700365};
Siddartha Mohanadoss81021962017-04-12 11:31:00 -0700366
Siddartha Mohanadoss0fbfc822017-04-21 11:41:32 -0700367&thermal_zones {
368 xo-therm-adc {
369 polling-delay-passive = <0>;
370 polling-delay = <0>;
371 thermal-sensors = <&pm8998_vadc 0x4c>;
Siddartha Mohanadoss81021962017-04-12 11:31:00 -0700372 };
373
Siddartha Mohanadoss0fbfc822017-04-21 11:41:32 -0700374 msm-therm-adc {
375 polling-delay-passive = <0>;
376 polling-delay = <0>;
377 thermal-sensors = <&pm8998_vadc 0x4d>;
Siddartha Mohanadoss81021962017-04-12 11:31:00 -0700378 };
379
Siddartha Mohanadoss0fbfc822017-04-21 11:41:32 -0700380 pa-therm1-adc {
381 polling-delay-passive = <0>;
382 polling-delay = <0>;
383 thermal-sensors = <&pm8998_vadc 0x4f>;
Siddartha Mohanadoss81021962017-04-12 11:31:00 -0700384 };
385
Siddartha Mohanadoss0fbfc822017-04-21 11:41:32 -0700386 quiet-therm-adc {
387 polling-delay-passive = <0>;
388 polling-delay = <0>;
389 thermal-sensors = <&pm8998_vadc 0x51>;
Siddartha Mohanadoss81021962017-04-12 11:31:00 -0700390 };
391};