blob: 2a60df4f40f12268034721a628272363b92153a8 [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"
Chandan Uddaraju6d2c8922013-01-24 23:11:12 -080014/include/ "dsi-panel-orise-720p-video.dtsi"
Amy Maloche24de28b2012-09-17 12:09:56 -070015/include/ "msm8974-leds.dtsi"
Sreesudhan Ramakrish Ramkumar97657922013-03-13 10:07:12 -070016/include/ "msm8974-camera-sensor-cdp.dtsi"
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -070017
Stepan Moskovchenko7d8cdcaa2013-04-25 17:10:55 -070018&soc {
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -070019 serial@f991e000 {
20 status = "ok";
21 };
22
Chandan Uddaraju0c33e772012-12-13 22:49:58 -080023 qcom,mdss_dsi_toshiba_720p_video {
24 status = "ok";
Siddhartha Agrawal1d0557b2013-03-06 14:53:11 -080025 qcom,cont-splash-enabled;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -070026 };
27
Chandan Uddaraju6d2c8922013-01-24 23:11:12 -080028 qcom,mdss_dsi_orise_720p_video {
29 status = "disable";
30 };
31
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -070032 qcom,hdmi_tx@fd922100 {
33 status = "ok";
34 };
35
36 i2c@f9924000 {
37 atmel_mxt_ts@4a {
38 compatible = "atmel,mxt-ts";
39 reg = <0x4a>;
40 interrupt-parent = <&msmgpio>;
41 interrupts = <61 0x2>;
42 vdd_ana-supply = <&pm8941_l18>;
43 vcc_i2c-supply = <&pm8941_lvs1>;
44 atmel,reset-gpio = <&msmgpio 60 0x00>;
45 atmel,irq-gpio = <&msmgpio 61 0x00>;
46 atmel,panel-coords = <0 0 760 1424>;
47 atmel,display-coords = <0 0 720 1280>;
Sreenivasulu Chalam Charlabf7f6212012-10-17 22:10:24 +053048 atmel,i2c-pull-up;
Amy Malochea90b0052013-02-13 11:57:10 -080049 atmel,no-force-update;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -070050 atmel,cfg_1 {
51 atmel,family-id = <0x82>;
52 atmel,variant-id = <0x19>;
53 atmel,version = <0x10>;
54 atmel,build = <0xaa>;
55 atmel,config = [
56 /* Object 6, Instance = 0 */
57 00 00 00 00 00 00
58 /* Object 38, Instance = 0 */
Amy Maloche84637212012-12-14 15:12:19 -080059 15 01 00 03 0A 0C 00 00
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -070060 /* Object 7, Instance = 0 */
Amy Maloche84637212012-12-14 15:12:19 -080061 20 08 32 03
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -070062 /* Object 8, Instance = 0 */
Amy Maloche84637212012-12-14 15:12:19 -080063 0F 00 0A 0A 00 00 0A 0A 00 00
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -070064 /* Object 9, Instance = 0 */
Amy Maloche84637212012-12-14 15:12:19 -080065 83 00 00 18 0E 00 70 46 02 01
66 00 0A 03 31 04 05 0A 0A 90 05
67 F8 02 05 F1 F1 0F 00 00 08 2D
68 12 06 00 00 00 01
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -070069 /* Object 15, Instance = 0 */
70 00 00 00 00 00 00 00 00 00 00
71 00
72 /* Object 18, Instance = 0 */
73 00 00
74 /* Object 19, Instance = 0 */
75 00 00 00 00 00 00
76 /* Object 23, Instance = 0 */
77 00 00 00 00 00 00 00 00 00 00
78 00 00 00 00 00
79 /* Object 25, Instance = 0 */
80 00 00 00 00 00 00 00 00 00 00
81 00 00 00 00 00
82 /* Object 40, Instance = 0 */
83 00 00 00 00 00
84 /* Object 42, Instance = 0 */
Amy Maloche84637212012-12-14 15:12:19 -080085 33 1E 19 10 80 00 00 00 FF 00
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -070086 /* Object 46, Instance = 0 */
87 00 00 10 10 00 00 03 00 00 01
88 /* Object 47, Instance = 0 */
89 08 0A 28 0A 02 0A 00 8C 00 20
90 00 00 00
91 /* Object 55, Instance = 0 */
92 00 00 00 00 00 00
93 /* Object 56, Instance = 0 */
Amy Maloche84637212012-12-14 15:12:19 -080094 00 00 00 18 05 05 05 05 05 05
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -070095 05 05 05 05 05 05 05 05 05 05
96 05 05 05 05 05 05 05 05 00 00
97 00 00 00 00 00 00 00 00 00 00
98 00 00
99 /* Object 57, Instance = 0 */
100 00 00 00
101 /* Object 61, Instance = 0 */
102 00 00 00 00 00
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700103 /* Object 62, Instance = 0 */
Amy Maloche84637212012-12-14 15:12:19 -0800104 01 2A 00 16 00 00 00 00 0B 01
105 02 03 04 08 00 00 08 10 18 05
106 00 0A 05 05 50 14 19 34 1A 7F
107 00 00 00 00 00 00 00 00 00 30
108 05 02 00 01 00 05 00 00 00 00
109 00 00 00 00
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700110 ];
111 };
112 };
113 };
114
Amy Maloche932657e2012-11-26 11:31:55 -0800115 gen-vkeys {
116 compatible = "qcom,gen-vkeys";
117 label = "atmel_mxt_ts";
118 qcom,disp-maxx = <720>;
119 qcom,disp-maxy = <1280>;
120 qcom,panel-maxx = <760>;
121 qcom,panel-maxy = <1424>;
122 qcom,key-codes = <158 139 102 217>;
123 };
124
Amy Maloche527acc42012-12-07 18:40:54 -0800125 i2c@f9967000 {
126 isa1200@48 {
127 status = "okay";
128 reg = <0x48>;
129 vcc_i2c-supply = <&pm8941_s3>;
130 compatible = "imagis,isa1200";
131 label = "vibrator";
132 imagis,chip-en;
133 imagis,smart-en;
134 imagis,need-pwm-clk;
135 imagis,ext-clk-en;
136 imagis,hap-en-gpio = <&msmgpio 86 0x00>;
137 imagis,max-timeout = <15000>;
138 imagis,pwm-div = <256>;
139 imagis,mode-ctrl = <2>;
140 imagis,regulator {
141 regulator-name = "vcc_i2c";
142 regulator-min-microvolt = <1800000>;
143 regulator-max-microvolt = <1800000>;
144 regulator-max-microamp = <9360>;
145 };
146 };
147 };
148
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700149 gpio_keys {
150 compatible = "gpio-keys";
151 input-name = "gpio-keys";
152
153 camera_snapshot {
154 label = "camera_snapshot";
155 gpios = <&pm8941_gpios 3 0x1>;
156 linux,input-type = <1>;
157 linux,code = <0x2fe>;
158 gpio-key,wakeup;
159 debounce-interval = <15>;
160 };
161
162 camera_focus {
163 label = "camera_focus";
164 gpios = <&pm8941_gpios 4 0x1>;
165 linux,input-type = <1>;
166 linux,code = <0x210>;
167 gpio-key,wakeup;
168 debounce-interval = <15>;
169 };
170
171 vol_up {
172 label = "volume_up";
173 gpios = <&pm8941_gpios 5 0x1>;
174 linux,input-type = <1>;
175 linux,code = <115>;
176 gpio-key,wakeup;
177 debounce-interval = <15>;
178 };
179 };
180
181 spi@f9923000 {
182 ethernet-switch@2 {
183 compatible = "micrel,ks8851";
184 reg = <2>;
185 interrupt-parent = <&msmgpio>;
186 interrupts = <94 0>;
187 spi-max-frequency = <4800000>;
188 rst-gpio = <&pm8941_mpps 6 0>;
189 vdd-io-supply = <&spi_eth_vreg>;
190 vdd-phy-supply = <&spi_eth_vreg>;
191 };
192 };
Phani Kumar Uppalapatia2129872012-11-08 20:36:45 -0800193
194 sound {
Phani Kumar Uppalapatia2129872012-11-08 20:36:45 -0800195 qcom,model = "msm8974-taiko-cdp-snd-card";
Kiran Kandi52650322012-12-11 15:49:39 -0800196 qcom,hdmi-audio-rx;
Fred Oh705c64f2013-03-07 14:25:40 -0800197 qcom,us-euro-gpios = <&pm8941_gpios 20 0>;
Joonwoo Parkd581a762013-04-15 17:12:57 -0700198 qcom,cdc-micbias2-headset-only;
Phani Kumar Uppalapatia2129872012-11-08 20:36:45 -0800199 };
David Collinsf3c0e562012-12-20 11:45:06 -0800200
201 usb2_otg_sw: regulator-tpd4s214 {
202 compatible = "regulator-fixed";
203 regulator-name = "usb2_otg_sw";
204 gpio = <&pm8941_gpios 18 0>;
205 parent-supply = <&pm8941_boost>;
206 startup-delay-us = <17000>;
207 enable-active-high;
208 };
Ming-yi Lin44c2afa2013-02-22 11:36:58 +0800209
Manu Gautamf014ff72013-03-19 16:35:27 +0530210 hsic_host: hsic@f9a00000 {
211 compatible = "qcom,hsic-host";
212 reg = <0xf9a00000 0x400>;
213 #address-cells = <0>;
214 interrupt-parent = <&hsic_host>;
215 interrupts = <0 1 2>;
216 #interrupt-cells = <1>;
217 interrupt-map-mask = <0xffffffff>;
218 interrupt-map = <0 &intc 0 136 0
219 1 &intc 0 148 0
220 2 &msmgpio 144 0x8>;
221 interrupt-names = "core_irq", "async_irq", "wakeup";
222 HSIC_VDDCX-supply = <&pm8841_s2>;
223 HSIC_GDSC-supply = <&gdsc_usb_hsic>;
224 hsic,strobe-gpio = <&msmgpio 144 0x00>;
225 hsic,data-gpio = <&msmgpio 145 0x00>;
226 hsic,resume-gpio = <&msmgpio 80 0x00>;
227 hsic,ignore-cal-pad-config;
228 hsic,strobe-pad-offset = <0x2050>;
229 hsic,data-pad-offset = <0x2054>;
230
231 qcom,msm-bus,name = "hsic";
232 qcom,msm-bus,num-cases = <2>;
Manu Gautamf014ff72013-03-19 16:35:27 +0530233 qcom,msm-bus,num-paths = <1>;
234 qcom,msm-bus,vectors-KBps =
235 <85 512 0 0>,
236 <85 512 40000 160000>;
Ming-yi Lin44c2afa2013-02-22 11:36:58 +0800237 };
238
Ming-yi Linc1b0ba32013-04-13 20:36:34 +0800239 wlan0: qca,wlan {
240 compatible = "qca,ar6004-hsic";
241 qcom,msm-bus,name = "wlan";
242 qcom,msm-bus,num-cases = <5>;
243 qcom,msm-bus,active-only = <0>;
244 qcom,msm-bus,num-paths = <1>;
245 qcom,msm-bus,vectors-KBps =
246 <85 512 0 0>,
247 <85 512 40000 160000>,
248 <85 512 40000 320000>,
249 <85 512 40000 480000>,
Ming-yi Lin2faedc12013-05-15 10:30:00 +0800250 <85 512 40000 800000>;
Ming-yi Linc1b0ba32013-04-13 20:36:34 +0800251 };
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700252};
253
Amy Maloche24de28b2012-09-17 12:09:56 -0700254&spmi_bus {
255 qcom,pm8941@1 {
256 qcom,leds@d800 {
257 status = "okay";
258 qcom,wled_0 {
259 label = "wled";
260 linux,name = "wled:backlight";
261 linux,default-trigger = "bkl-trigger";
262 qcom,cs-out-en;
Amy Malochebd687672013-03-18 11:23:45 -0700263 qcom,op-fdbck = <1>;
Siddhartha Agrawal12315e62013-02-24 11:23:02 -0800264 qcom,default-state = "on";
Amy Maloche24de28b2012-09-17 12:09:56 -0700265 qcom,max-current = <25>;
266 qcom,ctrl-delay-us = <0>;
267 qcom,boost-curr-lim = <3>;
268 qcom,cp-sel = <0>;
269 qcom,switch-freq = <2>;
270 qcom,ovp-val = <2>;
271 qcom,num-strings = <1>;
272 qcom,id = <0>;
273 };
274 };
275
276 qcom,leds@d900 {
277 status = "disabled";
278 };
279
280 qcom,leds@da00 {
281 status = "disabled";
282 };
283
284 qcom,leds@db00 {
285 status = "disabled";
286 };
287
288 qcom,leds@dc00 {
289 status = "disabled";
290 };
291
292 qcom,leds@dd00 {
293 status = "disabled";
294 };
295
296 qcom,leds@de00 {
297 status = "disabled";
298 };
299
300 qcom,leds@df00 {
301 status = "disabled";
302 };
303
304 qcom,leds@e000 {
305 status = "disabled";
306 };
307
308 qcom,leds@e100 {
309 status = "disabled";
310 };
311 };
312};
313
Venkat Gopalakrishnand446a122012-11-05 14:10:44 -0800314&sdcc1 {
315 status = "disabled";
316};
317
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700318&sdcc2 {
319 #address-cells = <0>;
320 interrupt-parent = <&sdcc2>;
321 interrupts = <0 1 2>;
322 #interrupt-cells = <1>;
323 interrupt-map-mask = <0xffffffff>;
324 interrupt-map = <0 &intc 0 125 0
325 1 &intc 0 220 0
326 2 &msmgpio 62 0x3>;
327 interrupt-names = "core_irq", "bam_irq", "status_irq";
328 cd-gpios = <&msmgpio 62 0x1>;
329 wp-gpios = <&pm8941_gpios 29 0x1>;
Venkat Gopalakrishnand446a122012-11-05 14:10:44 -0800330 status = "disabled";
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700331};
332
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700333&sdhc_1 {
334 vdd-supply = <&pm8941_l20>;
335 vdd-io-supply = <&pm8941_s3>;
336
Sahitya Tummalad0fc2dd2013-03-27 10:34:35 +0530337 qcom,vdd-always-on;
338 qcom,vdd-lpm-sup;
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700339 qcom,vdd-voltage-level = <2950000 2950000>;
340 qcom,vdd-current-level = <800 500000>;
341
342 qcom,vdd-io-always-on;
343 qcom,vdd-io-voltage-level = <1800000 1800000>;
344 qcom,vdd-io-current-level = <250 154000>;
345
346 qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
347 qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
Krishna Konda6c5d0f42013-04-12 16:44:26 -0700348 qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700349 qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */
350
351 qcom,nonremovable;
Venkat Gopalakrishnand446a122012-11-05 14:10:44 -0800352 status = "ok";
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700353};
354
355&sdhc_2 {
Sahitya Tummala6b152f82013-03-12 15:02:12 +0530356 #address-cells = <0>;
357 interrupt-parent = <&sdhc_2>;
358 interrupts = <0 1 2>;
359 #interrupt-cells = <1>;
360 interrupt-map-mask = <0xffffffff>;
361 interrupt-map = <0 &intc 0 125 0
362 1 &intc 0 221 0
363 2 &msmgpio 62 0x3>;
364 interrupt-names = "hc_irq", "pwr_irq", "status_irq";
365 cd-gpios = <&msmgpio 62 0x1>;
366
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700367 vdd-supply = <&pm8941_l21>;
368 vdd-io-supply = <&pm8941_l13>;
369
370 qcom,vdd-voltage-level = <2950000 2950000>;
371 qcom,vdd-current-level = <9000 800000>;
372
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700373 qcom,vdd-io-voltage-level = <1800000 2950000>;
374 qcom,vdd-io-current-level = <6 22000>;
375
376 qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
377 qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
Krishna Konda6c5d0f42013-04-12 16:44:26 -0700378 qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700379 qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */
Venkat Gopalakrishnand446a122012-11-05 14:10:44 -0800380 status = "ok";
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700381};
382
Krishna Konda6c5d0f42013-04-12 16:44:26 -0700383/* Drive strength recommendations for clock line from hardware team is 10 mA.
384 * But since the driver has been been using the below values from the start
385 * without any problems, continue to use those.
386 */
387&sdcc1 {
388 qcom,pad-drv-on = <0x7 0x4 0x4>; /* 16mA, 10mA, 10mA */
389};
390
391&sdcc2 {
392 qcom,pad-drv-on = <0x7 0x4 0x4>; /* 16mA, 10mA, 10mA */
393};
394
395&sdhc_1 {
396 qcom,pad-drv-on = <0x7 0x4 0x4>; /* 16mA, 10mA, 10mA */
397};
398
399&sdhc_2 {
400 qcom,pad-drv-on = <0x7 0x4 0x4>; /* 16mA, 10mA, 10mA */
401};
402
Mayank Rana3d073cf2012-12-18 10:23:27 +0530403&uart7 {
404 status = "ok";
Saket Saurabh63789cc2013-03-07 13:24:12 +0530405 qcom,tx-gpio = <&msmgpio 41 0x00>;
406 qcom,rx-gpio = <&msmgpio 42 0x00>;
407 qcom,cts-gpio = <&msmgpio 43 0x00>;
408 qcom,rfr-gpio = <&msmgpio 44 0x00>;
Mayank Rana3d073cf2012-12-18 10:23:27 +0530409};
410
Jack Pham43ac4272012-12-05 18:02:19 -0800411&usb3 {
412 qcom,otg-capability;
413};
414
David Keiteldb2602d2012-11-27 15:59:54 -0800415&pm8941_chg {
416 status = "ok";
417
David Keitele89d4782013-03-27 11:29:59 -0700418 qcom,chgr@1000 {
David Keiteldb2602d2012-11-27 15:59:54 -0800419 status = "ok";
420 };
421
David Keitele89d4782013-03-27 11:29:59 -0700422 qcom,buck@1100 {
David Keiteldb2602d2012-11-27 15:59:54 -0800423 status = "ok";
424 };
425
David Keitele89d4782013-03-27 11:29:59 -0700426 qcom,usb-chgpth@1300 {
David Keiteldb2602d2012-11-27 15:59:54 -0800427 status = "ok";
428 };
429
David Keitele89d4782013-03-27 11:29:59 -0700430 qcom,dc-chgpth@1400 {
David Keiteldb2602d2012-11-27 15:59:54 -0800431 status = "ok";
432 };
433
David Keitele89d4782013-03-27 11:29:59 -0700434 qcom,boost@1500 {
David Keiteldb2602d2012-11-27 15:59:54 -0800435 status = "ok";
436 };
437
438 qcom,chg-misc@1600 {
439 status = "ok";
440 };
441};
442
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700443&pm8941_gpios {
444 gpio@c000 { /* GPIO 1 */
445 };
446
447 gpio@c100 { /* GPIO 2 */
448 };
449
450 gpio@c200 { /* GPIO 3 */
451 qcom,mode = <0>;
452 qcom,pull = <0>;
453 qcom,vin-sel = <2>;
Michael Bohand734fb22012-10-30 14:19:22 -0700454 qcom,src-sel = <0>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700455 };
456
457 gpio@c300 { /* GPIO 4 */
458 qcom,mode = <0>;
459 qcom,pull = <0>;
460 qcom,vin-sel = <2>;
Michael Bohand734fb22012-10-30 14:19:22 -0700461 qcom,src-sel = <0>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700462 };
463
464 gpio@c400 { /* GPIO 5 */
465 qcom,mode = <0>;
466 qcom,pull = <0>;
467 qcom,vin-sel = <2>;
Michael Bohand734fb22012-10-30 14:19:22 -0700468 qcom,src-sel = <0>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700469 };
470
471 gpio@c500 { /* GPIO 6 */
472 };
473
474 gpio@c600 { /* GPIO 7 */
475 };
476
477 gpio@c700 { /* GPIO 8 */
478 };
479
480 gpio@c800 { /* GPIO 9 */
481 };
482
483 gpio@c900 { /* GPIO 10 */
484 };
485
486 gpio@ca00 { /* GPIO 11 */
487 };
488
489 gpio@cb00 { /* GPIO 12 */
490 };
491
492 gpio@cc00 { /* GPIO 13 */
493 };
494
495 gpio@cd00 { /* GPIO 14 */
496 };
497
498 gpio@ce00 { /* GPIO 15 */
499 qcom,mode = <1>;
500 qcom,output-type = <0>;
501 qcom,pull = <5>;
502 qcom,vin-sel = <2>;
Kiran Kandi1a35a222013-05-02 16:53:53 -0700503 qcom,out-strength = <1>;
Michael Bohand734fb22012-10-30 14:19:22 -0700504 qcom,src-sel = <2>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700505 qcom,master-en = <1>;
506 };
507
508 gpio@cf00 { /* GPIO 16 */
Amy Maloche527acc42012-12-07 18:40:54 -0800509 qcom,mode = <1>;
510 qcom,output-type = <0>;
511 qcom,pull = <2>;
512 qcom,vin-sel = <2>;
513 qcom,out-strength = <2>;
514 qcom,src-sel = <2>;
515 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700516 };
517
518 gpio@d000 { /* GPIO 17 */
519 };
520
521 gpio@d100 { /* GPIO 18 */
David Collinsf3c0e562012-12-20 11:45:06 -0800522 /* usb2_otg_sw regulator enable */
523 qcom,mode = <1>; /* Digital output */
524 qcom,output-type = <0>; /* CMOS logic */
525 qcom,invert = <0>; /* Output low initially */
526 qcom,vin-sel = <2>; /* PM8941 S3 = 1.8 V */
527 qcom,src-sel = <0>; /* Constant */
528 qcom,out-strength = <2>; /* Medium drive strength */
529 qcom,master-en = <1>; /* Enable GPIO */
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700530 };
531
532 gpio@d200 { /* GPIO 19 */
533 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
534 qcom,output-type = <0>; /* QPNP_PIN_OUT_BUF_CMOS */
535 qcom,pull = <5>; /* QPNP_PIN_PULL_NO */
536 qcom,vin-sel = <2>; /* QPNP_PIN_VIN2 */
537 qcom,out-strength = <2>; /* QPNP_PIN_OUT_STRENGTH_MED */
Michael Bohand734fb22012-10-30 14:19:22 -0700538 qcom,src-sel = <0>; /* QPNP_PIN_SEL_FUNC_CONSTANT */
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700539 qcom,master-en = <1>;
540 };
541
542 gpio@d300 { /* GPIO 20 */
Fred Oh705c64f2013-03-07 14:25:40 -0800543 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
544 qcom,output-type = <0>; /* QPNP_PIN_OUT_BUF_CMOS */
545 qcom,invert = <0>; /* Output low initially */
546 qcom,pull = <5>; /* QPNP_PIN_PULL_NO */
547 qcom,vin-sel = <2>; /* QPNP_PIN_VIN2 */
548 qcom,out-strength = <2>; /* QPNP_PIN_OUT_STRENGTH_MED */
549 qcom,src-sel = <0>; /* QPNP_PIN_SEL_FUNC_CONSTANT */
550 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700551 };
552
553 gpio@d400 { /* GPIO 21 */
554 };
555
556 gpio@d500 { /* GPIO 22 */
557 };
558
559 gpio@d600 { /* GPIO 23 */
560 };
561
562 gpio@d700 { /* GPIO 24 */
563 };
564
565 gpio@d800 { /* GPIO 25 */
566 };
567
568 gpio@d900 { /* GPIO 26 */
569 };
570
571 gpio@da00 { /* GPIO 27 */
572 };
573
574 gpio@db00 { /* GPIO 28 */
575 };
576
577 gpio@dc00 { /* GPIO 29 */
578 qcom,pull = <0>; /* set to default pull */
579 qcom,master-en = <1>;
580 qcom,vin-sel = <2>; /* select 1.8 V source */
581 };
582
583 gpio@dd00 { /* GPIO 30 */
584 };
585
586 gpio@de00 { /* GPIO 31 */
587 };
588
589 gpio@df00 { /* GPIO 32 */
590 };
591
592 gpio@e000 { /* GPIO 33 */
593 };
594
595 gpio@e100 { /* GPIO 34 */
596 };
597
598 gpio@e200 { /* GPIO 35 */
599 };
600
601 gpio@e300 { /* GPIO 36 */
Kuogee Hsieh865d0da2013-04-30 09:11:43 -0700602 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
603 qcom,output-type = <0>; /* QPNP_PIN_OUT_BUF_CMOS */
604 qcom,pull = <5>; /* QPNP_PIN_PULL_NO */
605 qcom,vin-sel = <2>; /* QPNP_PIN_VIN2 */
606 qcom,out-strength = <3>; /* QPNP_PIN_OUT_STRENGTH_HIGH */
607 qcom,src-sel = <3>; /* QPNP_PIN_SEL_FUNC_2 */
608 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700609 };
610};
611
612&pm8941_mpps {
613
614 mpp@a000 { /* MPP 1 */
Michael Bohanbea1f582013-03-21 17:29:49 -0700615 status = "disabled";
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700616 };
617
618 mpp@a100 { /* MPP 2 */
619 };
620
621 mpp@a200 { /* MPP 3 */
622 };
623
624 mpp@a300 { /* MPP 4 */
625 };
626
627 mpp@a400 { /* MPP 5 */
628 /* SPI_ETH config */
629 qcom,mode = <1>; /* DIG_OUT */
630 qcom,output-type = <0>; /* CMOS */
631 qcom,vin-sel = <2>; /* PM8941_S3 1.8V > 1.6V */
Michael Bohand734fb22012-10-30 14:19:22 -0700632 qcom,src-sel = <0>; /* CONSTANT */
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700633 qcom,master-en = <1>; /* ENABLE MPP */
634 };
635
636 mpp@a500 { /* MPP 6 */
637 /* SPI_ETH_RST config */
638 qcom,mode = <1>; /* DIG_OUT */
639 qcom,output-type = <0>; /* CMOS */
640 qcom,vin-sel = <2>; /* PM8941_S3 1.8V > 1.6V */
Michael Bohand734fb22012-10-30 14:19:22 -0700641 qcom,src-sel = <0>; /* CONSTANT */
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700642 qcom,master-en = <1>; /* ENABLE MPP */
643 };
644
645 mpp@a600 { /* MPP 7 */
646 };
647
648 mpp@a700 { /* MPP 8 */
649 };
650};
651
652&pm8841_mpps {
653
654 mpp@a000 { /* MPP 1 */
655 };
656
657 mpp@a100 { /* MPP 2 */
658 };
659
660 mpp@a200 { /* MPP 3 */
661 };
662
663 mpp@a300 { /* MPP 4 */
664 };
665};
Kiran Kandi4041f7f2013-02-07 23:17:18 -0800666
Pratik Patele69f8a92013-03-20 11:30:55 -0700667/* CoreSight */
668&tpiu {
669 qcom,seta-gpios = <&msmgpio 31 0>,
670 <&msmgpio 32 0>,
671 <&msmgpio 33 0>,
672 <&msmgpio 34 0>,
673 <&msmgpio 35 0>,
674 <&msmgpio 36 0>,
675 <&msmgpio 37 0>,
676 <&msmgpio 38 0>,
677 <&msmgpio 39 0>,
678 <&msmgpio 40 0>,
679 <&msmgpio 41 0>,
680 <&msmgpio 42 0>,
681 <&msmgpio 43 0>,
682 <&msmgpio 44 0>,
683 <&msmgpio 45 0>,
684 <&msmgpio 46 0>,
685 <&msmgpio 47 0>,
686 <&msmgpio 48 0>;
687 qcom,seta-gpios-func = <4 4 4 3 4 4 4 3 4 3 5 5 5 5 4 4 5 5>;
688 qcom,seta-gpios-drv = <7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7>;
689 qcom,seta-gpios-pull = <0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0>;
690 qcom,seta-gpios-dir = <2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2>;
691
692 qcom,setb-gpios = <&msmgpio 15 0>,
693 <&msmgpio 16 0>,
694 <&msmgpio 17 0>,
695 <&msmgpio 18 0>,
696 <&msmgpio 19 0>,
697 <&msmgpio 20 0>,
698 <&msmgpio 21 0>,
699 <&msmgpio 22 0>,
700 <&msmgpio 23 0>,
701 <&msmgpio 24 0>,
702 <&msmgpio 25 0>,
703 <&msmgpio 26 0>,
704 <&msmgpio 27 0>,
705 <&msmgpio 28 0>,
706 <&msmgpio 89 0>,
707 <&msmgpio 90 0>,
708 <&msmgpio 91 0>,
709 <&msmgpio 92 0>;
710 qcom,setb-gpios-func = <2 2 2 2 5 5 5 5 6 6 6 7 7 5 2 3 3 3>;
711 qcom,setb-gpios-drv = <7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7>;
712 qcom,setb-gpios-pull = <0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0>;
713 qcom,setb-gpios-dir = <2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2>;
714};
715
Kiran Kandi4041f7f2013-02-07 23:17:18 -0800716&slim_msm {
717 taiko_codec {
718 qcom,cdc-micbias1-ext-cap;
719 qcom,cdc-micbias3-ext-cap;
720 qcom,cdc-micbias4-ext-cap;
Joonwoo Parkdf0d5a92012-12-12 14:08:32 -0800721
722 /* If boot isn't available, vph_pwr_vreg can be used instead */
723 cdc-vdd-spkdrv-supply = <&pm8941_boost>;
724 qcom,cdc-vdd-spkdrv-voltage = <5000000 5000000>;
725 qcom,cdc-vdd-spkdrv-current = <1250000>;
726
727 qcom,cdc-on-demand-supplies = "cdc-vdd-spkdrv";
Kiran Kandi4041f7f2013-02-07 23:17:18 -0800728 };
729};