blob: 4678629947c11687bf5ba8f79c6fadadd0edd8de [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
96&ufsphy_mem {
97 compatible = "qcom,ufs-phy-qmp-v3";
98
99 vdda-phy-supply = <&pm8998_l1>; /* 0.88v */
100 vdda-pll-supply = <&pm8998_l26>; /* 1.2v */
Subhash Jadavani20a48962017-03-27 15:37:57 -0700101 vdda-phy-max-microamp = <62900>;
102 vdda-pll-max-microamp = <18300>;
Subhash Jadavani20a48962017-03-27 15:37:57 -0700103
104 status = "ok";
105};
106
107&ufshc_mem {
108 vdd-hba-supply = <&ufs_phy_gdsc>;
109 vdd-hba-fixed-regulator;
110 vcc-supply = <&pm8998_l20>;
111 vccq2-supply = <&pm8998_s4>;
112 vcc-max-microamp = <600000>;
113 vccq2-max-microamp = <600000>;
114
Subhash Jadavani05480172017-04-01 15:51:52 -0700115 qcom,vddp-ref-clk-supply = <&pm8998_l2>;
116 qcom,vddp-ref-clk-max-microamp = <100>;
117
Subhash Jadavani20a48962017-03-27 15:37:57 -0700118 status = "ok";
119};
120
121&ufsphy_card {
122 compatible = "qcom,ufs-phy-qmp-v3";
123
124 vdda-phy-supply = <&pm8998_l1>; /* 0.88v */
125 vdda-pll-supply = <&pm8998_l26>; /* 1.2v */
Subhash Jadavani20a48962017-03-27 15:37:57 -0700126 vdda-phy-max-microamp = <62900>;
127 vdda-pll-max-microamp = <18300>;
Subhash Jadavani20a48962017-03-27 15:37:57 -0700128
129 status = "ok";
130};
131
132&ufshc_card {
133 vdd-hba-supply = <&ufs_card_gdsc>;
134 vdd-hba-fixed-regulator;
135 vcc-supply = <&pm8998_l21>;
136 vccq2-supply = <&pm8998_s4>;
137 vcc-max-microamp = <300000>;
138 vccq2-max-microamp = <300000>;
139
Subhash Jadavani05480172017-04-01 15:51:52 -0700140 qcom,vddp-ref-clk-supply = <&pm8998_l2>;
141 qcom,vddp-ref-clk-max-microamp = <100>;
142
Subhash Jadavani20a48962017-03-27 15:37:57 -0700143 status = "ok";
144};
Subbaraman Narayanamurthycd21c812017-03-30 18:36:49 -0700145
Subbaraman Narayanamurthy58377f02017-03-21 20:38:43 -0700146&pmi8998_switch1 {
Subbaraman Narayanamurthycd21c812017-03-30 18:36:49 -0700147 pinctrl-names = "led_enable", "led_disable";
148 pinctrl-0 = <&flash_led3_front_en>;
149 pinctrl-1 = <&flash_led3_front_dis>;
150};
Harry Yang67111662017-04-05 15:14:52 -0700151
152&pmi8998_charger {
153 qcom,batteryless-platform;
154};
Girish Mahadevan11bc2ff2017-04-08 08:26:35 -0600155
156/ {
Jack Phamc2160c842017-04-05 09:48:59 -0700157 extcon_usb1: extcon_usb1 {
158 compatible = "linux,extcon-usb-gpio";
159 id-gpio = <&pmi8998_gpios 9 GPIO_ACTIVE_HIGH>;
160 vbus-gpio = <&pmi8998_gpios 8 GPIO_ACTIVE_HIGH>;
161
162 pinctrl-names = "default";
163 pinctrl-0 = <&usb2_vbus_det_default
164 &usb2_id_det_default>;
165 };
166
167 usb1_vbus_vreg: usb1_vbus_vreg {
168 compatible = "regulator-fixed";
169 regulator-name = "usb_vbus_vreg";
170 gpio = <&pmi8998_gpios 2 GPIO_ACTIVE_HIGH>;
171 enable-active-high;
172
173 /* Typical EN-to-VBUS turn on time for NX5P1100 */
174 regulator-enable-ramp-delay = <630>;
175
176 pinctrl-names = "default";
177 pinctrl-0 = <&usb2_vbus_boost_default>;
178 };
179
Girish Mahadevan11bc2ff2017-04-08 08:26:35 -0600180aliases {
181 serial0 = &qupv3_se9_2uart;
182 spi0 = &qupv3_se8_spi;
183 i2c0 = &qupv3_se10_i2c;
184 i2c1 = &qupv3_se3_i2c;
185 };
186};
187
188&qupv3_se9_2uart {
189 status = "ok";
190};
191
192&qupv3_se8_spi {
193 status = "ok";
194};
195
196&qupv3_se3_i2c {
197 status = "ok";
198};
199
200&qupv3_se10_i2c {
201 status = "ok";
202};
Jack Phamc2160c842017-04-05 09:48:59 -0700203
204&usb1 {
205 status = "okay";
206 extcon = <&extcon_usb1>;
207 vbus_dwc3-supply = <&usb1_vbus_vreg>;
208};
209
210&qusb_phy1 {
211 status = "okay";
212};
213
214&usb_qmp_phy {
215 status = "okay";
216};
Siddartha Mohanadoss81021962017-04-12 11:31:00 -0700217
218&pm8998_vadc {
219 chan@83 {
220 label = "vph_pwr";
221 reg = <0x83>;
222 qcom,decimation = <2>;
223 qcom,pre-div-channel-scaling = <1>;
224 qcom,calibration-type = "absolute";
225 qcom,scale-function = <0>;
226 qcom,hw-settle-time = <0>;
227 qcom,fast-avg-setup = <0>;
228 };
229
230 chan@85 {
231 label = "vcoin";
232 reg = <0x85>;
233 qcom,decimation = <2>;
234 qcom,pre-div-channel-scaling = <1>;
235 qcom,calibration-type = "absolute";
236 qcom,scale-function = <0>;
237 qcom,hw-settle-time = <0>;
238 qcom,fast-avg-setup = <0>;
239 };
240
241 chan@4c {
242 label = "xo_therm";
243 reg = <0x4c>;
244 qcom,decimation = <2>;
245 qcom,pre-div-channel-scaling = <0>;
246 qcom,calibration-type = "ratiometric";
247 qcom,scale-function = <4>;
248 qcom,hw-settle-time = <2>;
249 qcom,fast-avg-setup = <0>;
250 };
251
252 chan@4d {
253 label = "msm_therm";
254 reg = <0x4d>;
255 qcom,decimation = <2>;
256 qcom,pre-div-channel-scaling = <0>;
257 qcom,calibration-type = "ratiometric";
258 qcom,scale-function = <2>;
259 qcom,hw-settle-time = <2>;
260 qcom,fast-avg-setup = <0>;
261 };
262
263 chan@4f {
264 label = "pa_therm1";
265 reg = <0x4f>;
266 qcom,decimation = <2>;
267 qcom,pre-div-channel-scaling = <0>;
268 qcom,calibration-type = "ratiometric";
269 qcom,scale-function = <2>;
270 qcom,hw-settle-time = <2>;
271 qcom,fast-avg-setup = <0>;
272 };
273
274 chan@51 {
275 label = "quiet_therm";
276 reg = <0x51>;
277 qcom,decimation = <2>;
278 qcom,pre-div-channel-scaling = <0>;
279 qcom,calibration-type = "ratiometric";
280 qcom,scale-function = <2>;
281 qcom,hw-settle-time = <2>;
282 qcom,fast-avg-setup = <0>;
283 };
284};
285
286&pm8998_adc_tm {
287 chan@83 {
288 label = "vph_pwr";
289 reg = <0x83>;
290 qcom,pre-div-channel-scaling = <1>;
291 qcom,calibration-type = "absolute";
292 qcom,scale-function = <0>;
293 qcom,hw-settle-time = <0>;
294 qcom,btm-channel-number = <0x60>;
295 };
296
297 chan@4d {
298 label = "msm_therm";
299 reg = <0x4d>;
300 qcom,pre-div-channel-scaling = <0>;
301 qcom,calibration-type = "ratiometric";
302 qcom,scale-function = <2>;
303 qcom,hw-settle-time = <2>;
304 qcom,btm-channel-number = <0x68>;
305 qcom,thermal-node;
306 };
307
308 chan@51 {
309 label = "quiet_therm";
310 reg = <0x51>;
311 qcom,pre-div-channel-scaling = <0>;
312 qcom,calibration-type = "ratiometric";
313 qcom,scale-function = <2>;
314 qcom,hw-settle-time = <2>;
315 qcom,btm-channel-number = <0x70>;
316 qcom,thermal-node;
317 };
318
319 chan@4c {
320 label = "xo_therm";
321 reg = <0x4c>;
322 qcom,pre-div-channel-scaling = <0>;
323 qcom,calibration-type = "ratiometric";
324 qcom,scale-function = <4>;
325 qcom,hw-settle-time = <2>;
326 qcom,btm-channel-number = <0x78>;
327 qcom,thermal-node;
328 };
329
330 chan@4f {
331 label = "pa_therm1";
332 reg = <0x4f>;
333 qcom,pre-div-channel-scaling = <0>;
334 qcom,calibration-type = "ratiometric";
335 qcom,scale-function = <2>;
336 qcom,hw-settle-time = <2>;
337 qcom,btm-channel-number = <0x80>;
338 qcom,thermal-node;
339 };
340};