blob: 28111fadba16ec0b1f8d859fa5875d6460305038 [file] [log] [blame]
Mayank Rana3d073cf2012-12-18 10:23:27 +05301/* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -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 */
12
13/include/ "dsi-panel-toshiba-720p-video.dtsi"
Sreesudhan Ramakrish Ramkumar97657922013-03-13 10:07:12 -070014/include/ "msm8974-camera-sensor-mtp.dtsi"
Amy Maloche24de28b2012-09-17 12:09:56 -070015/include/ "msm8974-leds.dtsi"
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -070016
Stepan Moskovchenko7d8cdcaa2013-04-25 17:10:55 -070017&soc {
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -070018 serial@f991e000 {
19 status = "ok";
20 };
21
Chandan Uddaraju0c33e772012-12-13 22:49:58 -080022 qcom,mdss_dsi_toshiba_720p_video {
23 status = "ok";
Siddhartha Agrawal1d0557b2013-03-06 14:53:11 -080024 qcom,cont-splash-enabled;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -070025 };
26
27 qcom,hdmi_tx@fd922100 {
28 status = "disabled";
29 };
30
31 i2c@f9924000 {
32 atmel_mxt_ts@4a {
33 compatible = "atmel,mxt-ts";
34 reg = <0x4a>;
35 interrupt-parent = <&msmgpio>;
36 interrupts = <61 0x2>;
37 vdd_ana-supply = <&pm8941_l18>;
38 vcc_i2c-supply = <&pm8941_lvs1>;
39 atmel,reset-gpio = <&msmgpio 60 0x00>;
40 atmel,irq-gpio = <&msmgpio 61 0x00>;
41 atmel,panel-coords = <0 0 760 1424>;
42 atmel,display-coords = <0 0 720 1280>;
Sreenivasulu Chalam Charlabf7f6212012-10-17 22:10:24 +053043 atmel,i2c-pull-up;
Amy Malochea90b0052013-02-13 11:57:10 -080044 atmel,no-force-update;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -070045 atmel,cfg_1 {
46 atmel,family-id = <0x82>;
47 atmel,variant-id = <0x19>;
48 atmel,version = <0x10>;
49 atmel,build = <0xaa>;
50 atmel,config = [
51 /* Object 6, Instance = 0 */
52 00 00 00 00 00 00
53 /* Object 38, Instance = 0 */
Amy Maloche84637212012-12-14 15:12:19 -080054 15 01 00 03 0A 0C 00 00
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -070055 /* Object 7, Instance = 0 */
Amy Maloche84637212012-12-14 15:12:19 -080056 20 08 32 03
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -070057 /* Object 8, Instance = 0 */
Amy Maloche84637212012-12-14 15:12:19 -080058 0F 00 0A 0A 00 00 0A 0A 00 00
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -070059 /* Object 9, Instance = 0 */
Amy Maloche84637212012-12-14 15:12:19 -080060 83 00 00 18 0E 00 70 46 02 01
61 00 0A 03 31 04 05 0A 0A 90 05
62 F8 02 05 F1 F1 0F 00 00 08 2D
63 12 06 00 00 00 01
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -070064 /* Object 15, Instance = 0 */
65 00 00 00 00 00 00 00 00 00 00
66 00
67 /* Object 18, Instance = 0 */
68 00 00
69 /* Object 19, Instance = 0 */
70 00 00 00 00 00 00
71 /* Object 23, Instance = 0 */
72 00 00 00 00 00 00 00 00 00 00
73 00 00 00 00 00
74 /* Object 25, Instance = 0 */
75 00 00 00 00 00 00 00 00 00 00
76 00 00 00 00 00
77 /* Object 40, Instance = 0 */
78 00 00 00 00 00
79 /* Object 42, Instance = 0 */
Amy Maloche84637212012-12-14 15:12:19 -080080 33 1E 19 10 80 00 00 00 FF 00
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -070081 /* Object 46, Instance = 0 */
82 00 00 10 10 00 00 03 00 00 01
83 /* Object 47, Instance = 0 */
84 08 0A 28 0A 02 0A 00 8C 00 20
85 00 00 00
86 /* Object 55, Instance = 0 */
87 00 00 00 00 00 00
88 /* Object 56, Instance = 0 */
Amy Maloche84637212012-12-14 15:12:19 -080089 00 00 00 18 05 05 05 05 05 05
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -070090 05 05 05 05 05 05 05 05 05 05
91 05 05 05 05 05 05 05 05 00 00
92 00 00 00 00 00 00 00 00 00 00
93 00 00
94 /* Object 57, Instance = 0 */
95 00 00 00
96 /* Object 61, Instance = 0 */
97 00 00 00 00 00
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -070098 /* Object 62, Instance = 0 */
Amy Maloche84637212012-12-14 15:12:19 -080099 01 2A 00 16 00 00 00 00 0B 01
100 02 03 04 08 00 00 08 10 18 05
101 00 0A 05 05 50 14 19 34 1A 7F
102 00 00 00 00 00 00 00 00 00 30
103 05 02 00 01 00 05 00 00 00 00
104 00 00 00 00
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700105 ];
106 };
107 };
108 };
109
Amy Maloche932657e2012-11-26 11:31:55 -0800110 gen-vkeys {
111 compatible = "qcom,gen-vkeys";
112 label = "atmel_mxt_ts";
113 qcom,disp-maxx = <720>;
114 qcom,disp-maxy = <1280>;
115 qcom,panel-maxx = <760>;
116 qcom,panel-maxy = <1424>;
117 qcom,key-codes = <158 139 102 217>;
118 };
119
Amy Maloche527acc42012-12-07 18:40:54 -0800120 i2c@f9967000 {
121 isa1200@48 {
122 status = "okay";
123 reg = <0x48>;
124 vcc_i2c-supply = <&pm8941_s3>;
125 compatible = "imagis,isa1200";
126 label = "vibrator";
127 imagis,chip-en;
128 imagis,need-pwm-clk;
129 imagis,ext-clk-en;
130 imagis,hap-en-gpio = <&msmgpio 86 0x00>;
131 imagis,max-timeout = <15000>;
132 imagis,pwm-div = <256>;
133 imagis,mode-ctrl = <2>;
134 imagis,regulator {
135 regulator-name = "vcc_i2c";
136 regulator-min-microvolt = <1800000>;
137 regulator-max-microvolt = <1800000>;
138 regulator-max-microamp = <9360>;
139 };
140 };
141 };
142
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700143 gpio_keys {
144 compatible = "gpio-keys";
145 input-name = "gpio-keys";
146
147 camera_snapshot {
148 label = "camera_snapshot";
149 gpios = <&pm8941_gpios 3 0x1>;
150 linux,input-type = <1>;
151 linux,code = <0x2fe>;
152 gpio-key,wakeup;
153 debounce-interval = <15>;
154 };
155
156 camera_focus {
157 label = "camera_focus";
158 gpios = <&pm8941_gpios 4 0x1>;
159 linux,input-type = <1>;
160 linux,code = <0x210>;
161 gpio-key,wakeup;
162 debounce-interval = <15>;
163 };
164
165 vol_up {
166 label = "volume_up";
167 gpios = <&pm8941_gpios 5 0x1>;
168 linux,input-type = <1>;
169 linux,code = <115>;
170 gpio-key,wakeup;
171 debounce-interval = <15>;
172 };
173 };
174
175 spi@f9923000 {
176 ethernet-switch@2 {
177 compatible = "micrel,ks8851";
178 reg = <2>;
179 interrupt-parent = <&msmgpio>;
180 interrupts = <94 0>;
181 spi-max-frequency = <4800000>;
182 rst-gpio = <&pm8941_mpps 6 0>;
183 vdd-io-supply = <&spi_eth_vreg>;
184 vdd-phy-supply = <&spi_eth_vreg>;
185 };
186 };
Phani Kumar Uppalapatia2129872012-11-08 20:36:45 -0800187
188 sound {
Phani Kumar Uppalapatia2129872012-11-08 20:36:45 -0800189 qcom,model = "msm8974-taiko-mtp-snd-card";
Joonwoo Parkd581a762013-04-15 17:12:57 -0700190 qcom,cdc-micbias2-headset-only;
Phani Kumar Uppalapatia2129872012-11-08 20:36:45 -0800191 };
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700192};
193
Amy Maloche24de28b2012-09-17 12:09:56 -0700194&spmi_bus {
195 qcom,pm8941@1 {
196 qcom,leds@d800 {
197 status = "okay";
198 qcom,wled_0 {
199 label = "wled";
200 linux,name = "wled:backlight";
201 linux,default-trigger = "bkl-trigger";
202 qcom,cs-out-en;
Amy Malochebd687672013-03-18 11:23:45 -0700203 qcom,op-fdbck = <1>;
Siddhartha Agrawal12315e62013-02-24 11:23:02 -0800204 qcom,default-state = "on";
Amy Maloche24de28b2012-09-17 12:09:56 -0700205 qcom,max-current = <25>;
206 qcom,ctrl-delay-us = <0>;
207 qcom,boost-curr-lim = <3>;
208 qcom,cp-sel = <0>;
209 qcom,switch-freq = <2>;
210 qcom,ovp-val = <2>;
211 qcom,num-strings = <1>;
212 qcom,id = <0>;
213 };
214 };
215
216 qcom,leds@d900 {
217 status = "disabled";
218 };
219
220 qcom,leds@da00 {
221 status = "disabled";
222 };
223
224 qcom,leds@db00 {
225 status = "disabled";
226 };
227
228 qcom,leds@dc00 {
229 status = "disabled";
230 };
231
232 qcom,leds@dd00 {
233 status = "disabled";
234 };
235
236 qcom,leds@de00 {
237 status = "disabled";
238 };
239
240 qcom,leds@df00 {
241 status = "disabled";
242 };
243
244 qcom,leds@e000 {
245 status = "disabled";
246 };
247
248 qcom,leds@e100 {
249 status = "disabled";
250 };
251 };
252};
253
Venkat Gopalakrishnand446a122012-11-05 14:10:44 -0800254&sdcc1 {
255 status = "disabled";
256};
257
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700258&sdcc2 {
259 #address-cells = <0>;
260 interrupt-parent = <&sdcc2>;
261 interrupts = <0 1 2>;
262 #interrupt-cells = <1>;
263 interrupt-map-mask = <0xffffffff>;
264 interrupt-map = <0 &intc 0 125 0
265 1 &intc 0 220 0
266 2 &msmgpio 62 0x3>;
267 interrupt-names = "core_irq", "bam_irq", "status_irq";
268 cd-gpios = <&msmgpio 62 0x1>;
Venkat Gopalakrishnand446a122012-11-05 14:10:44 -0800269 status = "disabled";
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700270};
271
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700272&sdhc_1 {
273 vdd-supply = <&pm8941_l20>;
274 vdd-io-supply = <&pm8941_s3>;
275
Sahitya Tummalad0fc2dd2013-03-27 10:34:35 +0530276 qcom,vdd-always-on;
277 qcom,vdd-lpm-sup;
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700278 qcom,vdd-voltage-level = <2950000 2950000>;
279 qcom,vdd-current-level = <800 500000>;
280
281 qcom,vdd-io-always-on;
282 qcom,vdd-io-voltage-level = <1800000 1800000>;
283 qcom,vdd-io-current-level = <250 154000>;
284
285 qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
286 qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
Krishna Konda6c5d0f42013-04-12 16:44:26 -0700287 qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700288 qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */
289
290 qcom,nonremovable;
Venkat Gopalakrishnand446a122012-11-05 14:10:44 -0800291 status = "ok";
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700292};
293
294&sdhc_2 {
Sahitya Tummala6b152f82013-03-12 15:02:12 +0530295 #address-cells = <0>;
296 interrupt-parent = <&sdhc_2>;
297 interrupts = <0 1 2>;
298 #interrupt-cells = <1>;
299 interrupt-map-mask = <0xffffffff>;
300 interrupt-map = <0 &intc 0 125 0
301 1 &intc 0 221 0
302 2 &msmgpio 62 0x3>;
303 interrupt-names = "hc_irq", "pwr_irq", "status_irq";
304 cd-gpios = <&msmgpio 62 0x1>;
305
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700306 vdd-supply = <&pm8941_l21>;
307 vdd-io-supply = <&pm8941_l13>;
308
309 qcom,vdd-voltage-level = <2950000 2950000>;
310 qcom,vdd-current-level = <9000 800000>;
311
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700312 qcom,vdd-io-voltage-level = <1800000 2950000>;
313 qcom,vdd-io-current-level = <6 22000>;
314
315 qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
316 qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
Krishna Konda6c5d0f42013-04-12 16:44:26 -0700317 qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700318 qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */
Venkat Gopalakrishnand446a122012-11-05 14:10:44 -0800319 status = "ok";
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700320};
321
Krishna Konda6c5d0f42013-04-12 16:44:26 -0700322/* Drive strength recommendations for clock line from hardware team is 10 mA.
323 * But since the driver has been been using the below values from the start
324 * without any problems, continue to use those.
325 */
326&sdcc1 {
327 qcom,pad-drv-on = <0x7 0x4 0x4>; /* 16mA, 10mA, 10mA */
328};
329
330&sdcc2 {
331 qcom,pad-drv-on = <0x7 0x4 0x4>; /* 16mA, 10mA, 10mA */
332};
333
334&sdhc_1 {
335 qcom,pad-drv-on = <0x7 0x4 0x4>; /* 16mA, 10mA, 10mA */
336};
337
338&sdhc_2 {
339 qcom,pad-drv-on = <0x7 0x4 0x4>; /* 16mA, 10mA, 10mA */
340};
341
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700342&usb_otg {
343 qcom,hsusb-otg-otg-control = <2>;
344};
345
Mayank Rana3d073cf2012-12-18 10:23:27 +0530346&uart7 {
347 status = "ok";
348};
349
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700350&usb3 {
Manu Gautam6c0ff032012-11-02 14:55:35 +0530351 qcom,otg-capability;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700352};
353
Xiaozhe Shi03a44bf2012-11-12 15:59:27 -0800354&pm8941_bms {
Anirudh Ghayalb20578c2013-06-04 20:27:03 +0530355 qcom,enable-fcc-learning;
356 qcom,min-fcc-learning-soc = <20>;
357 qcom,min-fcc-ocv-pc = <30>;
358 qcom,min-fcc-learning-samples = <5>;
Xiaozhe Shi03a44bf2012-11-12 15:59:27 -0800359 status = "ok";
360};
361
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700362&pm8941_chg {
363 status = "ok";
David Keitela2a6ff82013-04-09 16:52:54 -0700364 qcom,charging-disabled;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700365
David Keitele89d4782013-03-27 11:29:59 -0700366 qcom,chgr@1000 {
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700367 status = "ok";
368 };
369
David Keitele89d4782013-03-27 11:29:59 -0700370 qcom,buck@1100 {
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700371 status = "ok";
372 };
373
David Keitele89d4782013-03-27 11:29:59 -0700374 qcom,bat-if@1200 {
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700375 status = "ok";
376 };
377
David Keitele89d4782013-03-27 11:29:59 -0700378 qcom,usb-chgpth@1300 {
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700379 status = "ok";
380 };
381
David Keitele89d4782013-03-27 11:29:59 -0700382 qcom,dc-chgpth@1400 {
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700383 status = "ok";
384 };
385
David Keitele89d4782013-03-27 11:29:59 -0700386 qcom,boost@1500 {
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700387 status = "ok";
388 };
389
390 qcom,chg-misc@1600 {
391 status = "ok";
392 };
393};
394
395&pm8941_gpios {
396 gpio@c000 { /* GPIO 1 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700397 qcom,mode = <0>; /* QPNP_PIN_MODE_DIG_IN */
398 qcom,pull = <0>; /* QPNP_PIN_PULL_UP_30 */
399 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700400 };
401
402 gpio@c100 { /* GPIO 2 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700403 qcom,mode = <0>; /* QPNP_PIN_MODE_DIG_IN */
404 qcom,pull = <0>; /* QPNP_PIN_PULL_UP_30 */
405 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700406 };
407
408 gpio@c200 { /* GPIO 3 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700409 qcom,mode = <0>; /* QPNP_PIN_MODE_DIG_IN */
410 qcom,pull = <0>; /* QPNP_PIN_PULL_UP_30 */
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700411 qcom,vin-sel = <2>;
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700412 qcom,src-sel = <0>; /* QPNP_PIN_SEL_FUNC_CONSTANT */
413 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700414 };
415
416 gpio@c300 { /* GPIO 4 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700417 qcom,mode = <0>; /* QPNP_PIN_MODE_DIG_IN */
418 qcom,pull = <0>; /* QPNP_PIN_PULL_UP_30 */
419 qcom,vin-sel = <2>; /* QPNP_PIN_VIN2 */
420 qcom,src-sel = <0>; /* QPNP_PIN_SEL_FUNC_CONSTANT */
421 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700422 };
423
424 gpio@c400 { /* GPIO 5 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700425 qcom,mode = <0>; /* QPNP_PIN_MODE_DIG_IN */
426 qcom,pull = <0>; /* QPNP_PIN_PULL_UP_30 */
427 qcom,vin-sel = <2>; /* QPNP_PIN_VIN2 */
428 qcom,src-sel = <0>; /* QPNP_PIN_SEL_FUNC_CONSTANT */
429 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700430 };
431
432 gpio@c500 { /* GPIO 6 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700433 qcom,mode = <0>; /* QPNP_PIN_MODE_DIG_IN */
434 qcom,pull = <0>; /* QPNP_PIN_PULL_UP_30 */
435 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700436 };
437
438 gpio@c600 { /* GPIO 7 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700439 qcom,mode = <0>; /* QPNP_PIN_MODE_DIG_IN */
440 qcom,pull = <0>; /* QPNP_PIN_PULL_UP_30 */
441 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700442 };
443
444 gpio@c700 { /* GPIO 8 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700445 qcom,mode = <0>; /* QPNP_PIN_MODE_DIG_IN */
446 qcom,pull = <0>; /* QPNP_PIN_PULL_UP_30 */
447 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700448 };
449
450 gpio@c800 { /* GPIO 9 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700451 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
452 qcom,out-strength = <1>; /* QPNP_PIN_OUT_STRENGTH_LOW */
453 qcom,src-sel = <2>; /* QPNP_PIN_SEL_FUNC_1 */
454 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700455 };
456
457 gpio@c900 { /* GPIO 10 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700458 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
459 qcom,out-strength = <1>; /* QPNP_PIN_OUT_STRENGTH_LOW */
460 qcom,src-sel = <2>; /* QPNP_PIN_SEL_FUNC_1 */
461 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700462 };
463
464 gpio@ca00 { /* GPIO 11 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700465 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
466 qcom,out-strength = <1>; /* QPNP_PIN_OUT_STRENGTH_LOW */
467 qcom,src-sel = <2>; /* QPNP_PIN_SEL_FUNC_1 */
468 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700469 };
470
471 gpio@cb00 { /* GPIO 12 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700472 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
473 qcom,out-strength = <1>; /* QPNP_PIN_OUT_STRENGTH_LOW */
474 qcom,src-sel = <2>; /* QPNP_PIN_SEL_FUNC_1 */
475 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700476 };
477
478 gpio@cc00 { /* GPIO 13 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700479 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
480 qcom,out-strength = <1>; /* QPNP_PIN_OUT_STRENGTH_LOW */
481 qcom,src-sel = <2>; /* QPNP_PIN_SEL_FUNC_1 */
482 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700483 };
484
485 gpio@cd00 { /* GPIO 14 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700486 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
487 qcom,out-strength = <1>; /* QPNP_PIN_OUT_STRENGTH_LOW */
488 qcom,src-sel = <2>; /* QPNP_PIN_SEL_FUNC_1 */
489 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700490 };
491
492 gpio@ce00 { /* GPIO 15 */
493 qcom,mode = <1>;
494 qcom,output-type = <0>;
495 qcom,pull = <5>;
496 qcom,vin-sel = <2>;
Kiran Kandi1a35a222013-05-02 16:53:53 -0700497 qcom,out-strength = <1>;
Michael Bohand734fb22012-10-30 14:19:22 -0700498 qcom,src-sel = <2>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700499 qcom,master-en = <1>;
500 };
501
502 gpio@cf00 { /* GPIO 16 */
Amy Maloche527acc42012-12-07 18:40:54 -0800503 qcom,mode = <1>;
504 qcom,output-type = <0>;
505 qcom,pull = <5>;
506 qcom,vin-sel = <2>;
507 qcom,out-strength = <3>;
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700508 qcom,src-sel = <3>; /* QPNP_PIN_SEL_FUNC_2 */
Amy Maloche527acc42012-12-07 18:40:54 -0800509 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700510 };
511
512 gpio@d000 { /* GPIO 17 */
513 };
514
515 gpio@d100 { /* GPIO 18 */
516 };
517
518 gpio@d200 { /* GPIO 19 */
519 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
520 qcom,output-type = <0>; /* QPNP_PIN_OUT_BUF_CMOS */
521 qcom,pull = <5>; /* QPNP_PIN_PULL_NO */
522 qcom,vin-sel = <2>; /* QPNP_PIN_VIN2 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700523 qcom,out-strength = <1>; /* QPNP_PIN_OUT_STRENGTH_LOW */
Michael Bohand734fb22012-10-30 14:19:22 -0700524 qcom,src-sel = <0>; /* QPNP_PIN_SEL_FUNC_CONSTANT */
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700525 qcom,master-en = <1>;
526 };
527
528 gpio@d300 { /* GPIO 20 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700529 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
530 qcom,out-strength = <1>; /* QPNP_PIN_OUT_STRENGTH_LOW */
531 qcom,src-sel = <2>; /* QPNP_PIN_SEL_FUNC_1 */
532 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700533 };
534
535 gpio@d400 { /* GPIO 21 */
536 };
537
538 gpio@d500 { /* GPIO 22 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700539 qcom,mode = <0>; /* QPNP_PIN_MODE_DIG_IN */
540 qcom,pull = <4>; /* QPNP_PIN_PULL_DN */
541 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700542 };
543
544 gpio@d600 { /* GPIO 23 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700545 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
546 qcom,out-strength = <1>; /* QPNP_PIN_OUT_STRENGTH_LOW */
547 qcom,src-sel = <2>; /* QPNP_PIN_SEL_FUNC_1 */
548 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700549 };
550
551 gpio@d700 { /* GPIO 24 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700552 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
553 qcom,out-strength = <1>; /* QPNP_PIN_OUT_STRENGTH_LOW */
554 qcom,src-sel = <2>; /* QPNP_PIN_SEL_FUNC_1 */
555 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700556 };
557
558 gpio@d800 { /* GPIO 25 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700559 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
560 qcom,out-strength = <1>; /* QPNP_PIN_OUT_STRENGTH_LOW */
561 qcom,src-sel = <2>; /* QPNP_PIN_SEL_FUNC_1 */
562 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700563 };
564
565 gpio@d900 { /* GPIO 26 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700566 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
567 qcom,out-strength = <1>; /* QPNP_PIN_OUT_STRENGTH_LOW */
568 qcom,src-sel = <2>; /* QPNP_PIN_SEL_FUNC_1 */
569 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700570 };
571
572 gpio@da00 { /* GPIO 27 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700573 qcom,mode = <0>; /* QPNP_PIN_MODE_DIG_IN */
574 qcom,pull = <4>; /* QPNP_PIN_PULL_DN */
575 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700576 };
577
578 gpio@db00 { /* GPIO 28 */
579 };
580
581 gpio@dc00 { /* GPIO 29 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700582 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
583 qcom,out-strength = <1>; /* QPNP_PIN_OUT_STRENGTH_LOW */
584 qcom,src-sel = <2>; /* QPNP_PIN_SEL_FUNC_1 */
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700585 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700586 };
587
588 gpio@dd00 { /* GPIO 30 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700589 qcom,mode = <0>; /* QPNP_PIN_MODE_DIG_IN */
590 qcom,pull = <4>; /* QPNP_PIN_PULL_DN */
591 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700592 };
593
594 gpio@de00 { /* GPIO 31 */
595 };
596
597 gpio@df00 { /* GPIO 32 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700598 qcom,mode = <0>; /* QPNP_PIN_MODE_DIG_IN */
599 qcom,pull = <4>; /* QPNP_PIN_PULL_DN */
600 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700601 };
602
603 gpio@e000 { /* GPIO 33 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700604 qcom,mode = <0>; /* QPNP_PIN_MODE_DIG_IN */
605 qcom,pull = <4>; /* QPNP_PIN_PULL_DN */
606 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700607 };
608
609 gpio@e100 { /* GPIO 34 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700610 qcom,mode = <0>; /* QPNP_PIN_MODE_DIG_IN */
611 qcom,pull = <4>; /* QPNP_PIN_PULL_DN */
612 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700613 };
614
615 gpio@e200 { /* GPIO 35 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700616 qcom,mode = <0>; /* QPNP_PIN_MODE_DIG_IN */
617 qcom,pull = <4>; /* QPNP_PIN_PULL_DN */
618 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700619 };
620
621 gpio@e300 { /* GPIO 36 */
622 };
623};
624
625&pm8941_mpps {
626
627 mpp@a000 { /* MPP 1 */
Michael Bohanbea1f582013-03-21 17:29:49 -0700628 status = "disabled";
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700629 };
630
631 mpp@a100 { /* MPP 2 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700632 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
633 qcom,out-strength = <1>; /* QPNP_PIN_OUT_STRENGTH_LOW */
634 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700635 };
636
637 mpp@a200 { /* MPP 3 */
638 };
639
640 mpp@a300 { /* MPP 4 */
641 };
642
643 mpp@a400 { /* MPP 5 */
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700644 };
645
646 mpp@a500 { /* MPP 6 */
647 /* SPI_ETH_RST config */
648 qcom,mode = <1>; /* DIG_OUT */
649 qcom,output-type = <0>; /* CMOS */
650 qcom,vin-sel = <2>; /* PM8941_S3 1.8V > 1.6V */
Michael Bohand734fb22012-10-30 14:19:22 -0700651 qcom,src-sel = <0>; /* CONSTANT */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700652 qcom,out-strength = <1>; /* QPNP_PIN_OUT_STRENGTH_LOW */
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700653 qcom,master-en = <1>; /* ENABLE MPP */
654 };
655
656 mpp@a600 { /* MPP 7 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700657 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
658 qcom,out-strength = <1>; /* QPNP_PIN_OUT_STRENGTH_LOW */
659 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700660 };
661
662 mpp@a700 { /* MPP 8 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700663 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
664 qcom,out-strength = <1>; /* QPNP_PIN_OUT_STRENGTH_LOW */
665 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700666 };
667};
668
669&pm8841_mpps {
670
671 mpp@a000 { /* MPP 1 */
672 };
673
674 mpp@a100 { /* MPP 2 */
675 };
676
677 mpp@a200 { /* MPP 3 */
678 };
679
680 mpp@a300 { /* MPP 4 */
681 };
682};
683
684&slim_msm {
685 taiko_codec {
Kiran Kandi4041f7f2013-02-07 23:17:18 -0800686 qcom,cdc-micbias1-ext-cap;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700687 qcom,cdc-micbias2-ext-cap;
Kiran Kandi4041f7f2013-02-07 23:17:18 -0800688 qcom,cdc-micbias4-ext-cap;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700689 };
690};
Siddartha Mohanadosse9f24de2012-11-02 17:13:18 -0700691
692&spi_epm {
693 epm-adc@0 {
694 compatible = "cy,epm-adc-cy8c5568lti-114";
695 reg = <0>;
696 interrupt-parent = <&msmgpio>;
697 spi-max-frequency = <960000>;
698 qcom,channels = <31>;
699 qcom,gain = <100 100 100 50 100 100 1 100 1 50
700 1 100 1 100 50 50 50 50 50 50
701 100 50 100 50 50 50 50 50 50 50
702 50>;
703 qcom,rsense = <2 2 2 200 20 2 1 2 1 30
704 1 10 1 30 50 30 500 30 100 30
705 100 500 20 200 1000 20 1000 1000 70 200
706 50>;
707 qcom,channel-type = <0x1540>;
708 };
709};