blob: f0fd7098b775a3b2f558a9e547449d604f160e36 [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
17/ {
18 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";
Phani Kumar Uppalapatia2129872012-11-08 20:36:45 -0800190 };
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700191};
192
Amy Maloche24de28b2012-09-17 12:09:56 -0700193&spmi_bus {
194 qcom,pm8941@1 {
195 qcom,leds@d800 {
196 status = "okay";
197 qcom,wled_0 {
198 label = "wled";
199 linux,name = "wled:backlight";
200 linux,default-trigger = "bkl-trigger";
201 qcom,cs-out-en;
Amy Malochebd687672013-03-18 11:23:45 -0700202 qcom,op-fdbck = <1>;
Siddhartha Agrawal12315e62013-02-24 11:23:02 -0800203 qcom,default-state = "on";
Amy Maloche24de28b2012-09-17 12:09:56 -0700204 qcom,max-current = <25>;
205 qcom,ctrl-delay-us = <0>;
206 qcom,boost-curr-lim = <3>;
207 qcom,cp-sel = <0>;
208 qcom,switch-freq = <2>;
209 qcom,ovp-val = <2>;
210 qcom,num-strings = <1>;
211 qcom,id = <0>;
212 };
213 };
214
215 qcom,leds@d900 {
216 status = "disabled";
217 };
218
219 qcom,leds@da00 {
220 status = "disabled";
221 };
222
223 qcom,leds@db00 {
224 status = "disabled";
225 };
226
227 qcom,leds@dc00 {
228 status = "disabled";
229 };
230
231 qcom,leds@dd00 {
232 status = "disabled";
233 };
234
235 qcom,leds@de00 {
236 status = "disabled";
237 };
238
239 qcom,leds@df00 {
240 status = "disabled";
241 };
242
243 qcom,leds@e000 {
244 status = "disabled";
245 };
246
247 qcom,leds@e100 {
248 status = "disabled";
249 };
250 };
251};
252
Venkat Gopalakrishnand446a122012-11-05 14:10:44 -0800253&sdcc1 {
254 status = "disabled";
255};
256
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700257&sdcc2 {
258 #address-cells = <0>;
259 interrupt-parent = <&sdcc2>;
260 interrupts = <0 1 2>;
261 #interrupt-cells = <1>;
262 interrupt-map-mask = <0xffffffff>;
263 interrupt-map = <0 &intc 0 125 0
264 1 &intc 0 220 0
265 2 &msmgpio 62 0x3>;
266 interrupt-names = "core_irq", "bam_irq", "status_irq";
267 cd-gpios = <&msmgpio 62 0x1>;
Venkat Gopalakrishnand446a122012-11-05 14:10:44 -0800268 status = "disabled";
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700269};
270
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700271&sdhc_1 {
272 vdd-supply = <&pm8941_l20>;
273 vdd-io-supply = <&pm8941_s3>;
274
Sahitya Tummalad0fc2dd2013-03-27 10:34:35 +0530275 qcom,vdd-always-on;
276 qcom,vdd-lpm-sup;
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700277 qcom,vdd-voltage-level = <2950000 2950000>;
278 qcom,vdd-current-level = <800 500000>;
279
280 qcom,vdd-io-always-on;
281 qcom,vdd-io-voltage-level = <1800000 1800000>;
282 qcom,vdd-io-current-level = <250 154000>;
283
284 qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
285 qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
286 qcom,pad-drv-on = <0x7 0x4 0x4>; /* 16mA, 10mA, 10mA */
287 qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */
288
289 qcom,nonremovable;
Venkat Gopalakrishnand446a122012-11-05 14:10:44 -0800290 status = "ok";
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700291};
292
293&sdhc_2 {
Sahitya Tummala6b152f82013-03-12 15:02:12 +0530294 #address-cells = <0>;
295 interrupt-parent = <&sdhc_2>;
296 interrupts = <0 1 2>;
297 #interrupt-cells = <1>;
298 interrupt-map-mask = <0xffffffff>;
299 interrupt-map = <0 &intc 0 125 0
300 1 &intc 0 221 0
301 2 &msmgpio 62 0x3>;
302 interrupt-names = "hc_irq", "pwr_irq", "status_irq";
303 cd-gpios = <&msmgpio 62 0x1>;
304
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700305 vdd-supply = <&pm8941_l21>;
306 vdd-io-supply = <&pm8941_l13>;
307
308 qcom,vdd-voltage-level = <2950000 2950000>;
309 qcom,vdd-current-level = <9000 800000>;
310
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700311 qcom,vdd-io-voltage-level = <1800000 2950000>;
312 qcom,vdd-io-current-level = <6 22000>;
313
314 qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
315 qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
316 qcom,pad-drv-on = <0x7 0x4 0x4>; /* 16mA, 10mA, 10mA */
317 qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */
Venkat Gopalakrishnand446a122012-11-05 14:10:44 -0800318 status = "ok";
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700319};
320
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700321&usb_otg {
322 qcom,hsusb-otg-otg-control = <2>;
323};
324
Mayank Rana3d073cf2012-12-18 10:23:27 +0530325&uart7 {
326 status = "ok";
327};
328
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700329&usb3 {
Manu Gautam6c0ff032012-11-02 14:55:35 +0530330 qcom,otg-capability;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700331};
332
Xiaozhe Shi03a44bf2012-11-12 15:59:27 -0800333&pm8941_bms {
334 status = "ok";
335};
336
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700337&pm8941_chg {
338 status = "ok";
339
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700340 qcom,chg-chgr@1000 {
341 status = "ok";
342 };
343
344 qcom,chg-buck@1100 {
345 status = "ok";
346 };
347
348 qcom,chg-bat-if@1200 {
349 status = "ok";
350 };
351
352 qcom,chg-usb-chgpth@1300 {
353 status = "ok";
354 };
355
356 qcom,chg-dc-chgpth@1400 {
357 status = "ok";
358 };
359
360 qcom,chg-boost@1500 {
361 status = "ok";
362 };
363
364 qcom,chg-misc@1600 {
365 status = "ok";
366 };
367};
368
369&pm8941_gpios {
370 gpio@c000 { /* GPIO 1 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700371 qcom,mode = <0>; /* QPNP_PIN_MODE_DIG_IN */
372 qcom,pull = <0>; /* QPNP_PIN_PULL_UP_30 */
373 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700374 };
375
376 gpio@c100 { /* GPIO 2 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700377 qcom,mode = <0>; /* QPNP_PIN_MODE_DIG_IN */
378 qcom,pull = <0>; /* QPNP_PIN_PULL_UP_30 */
379 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700380 };
381
382 gpio@c200 { /* GPIO 3 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700383 qcom,mode = <0>; /* QPNP_PIN_MODE_DIG_IN */
384 qcom,pull = <0>; /* QPNP_PIN_PULL_UP_30 */
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700385 qcom,vin-sel = <2>;
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700386 qcom,src-sel = <0>; /* QPNP_PIN_SEL_FUNC_CONSTANT */
387 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700388 };
389
390 gpio@c300 { /* GPIO 4 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700391 qcom,mode = <0>; /* QPNP_PIN_MODE_DIG_IN */
392 qcom,pull = <0>; /* QPNP_PIN_PULL_UP_30 */
393 qcom,vin-sel = <2>; /* QPNP_PIN_VIN2 */
394 qcom,src-sel = <0>; /* QPNP_PIN_SEL_FUNC_CONSTANT */
395 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700396 };
397
398 gpio@c400 { /* GPIO 5 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700399 qcom,mode = <0>; /* QPNP_PIN_MODE_DIG_IN */
400 qcom,pull = <0>; /* QPNP_PIN_PULL_UP_30 */
401 qcom,vin-sel = <2>; /* QPNP_PIN_VIN2 */
402 qcom,src-sel = <0>; /* QPNP_PIN_SEL_FUNC_CONSTANT */
403 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700404 };
405
406 gpio@c500 { /* GPIO 6 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700407 qcom,mode = <0>; /* QPNP_PIN_MODE_DIG_IN */
408 qcom,pull = <0>; /* QPNP_PIN_PULL_UP_30 */
409 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700410 };
411
412 gpio@c600 { /* GPIO 7 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700413 qcom,mode = <0>; /* QPNP_PIN_MODE_DIG_IN */
414 qcom,pull = <0>; /* QPNP_PIN_PULL_UP_30 */
415 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700416 };
417
418 gpio@c700 { /* GPIO 8 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700419 qcom,mode = <0>; /* QPNP_PIN_MODE_DIG_IN */
420 qcom,pull = <0>; /* QPNP_PIN_PULL_UP_30 */
421 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700422 };
423
424 gpio@c800 { /* GPIO 9 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700425 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
426 qcom,out-strength = <1>; /* QPNP_PIN_OUT_STRENGTH_LOW */
427 qcom,src-sel = <2>; /* QPNP_PIN_SEL_FUNC_1 */
428 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700429 };
430
431 gpio@c900 { /* GPIO 10 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700432 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
433 qcom,out-strength = <1>; /* QPNP_PIN_OUT_STRENGTH_LOW */
434 qcom,src-sel = <2>; /* QPNP_PIN_SEL_FUNC_1 */
435 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700436 };
437
438 gpio@ca00 { /* GPIO 11 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700439 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
440 qcom,out-strength = <1>; /* QPNP_PIN_OUT_STRENGTH_LOW */
441 qcom,src-sel = <2>; /* QPNP_PIN_SEL_FUNC_1 */
442 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700443 };
444
445 gpio@cb00 { /* GPIO 12 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700446 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
447 qcom,out-strength = <1>; /* QPNP_PIN_OUT_STRENGTH_LOW */
448 qcom,src-sel = <2>; /* QPNP_PIN_SEL_FUNC_1 */
449 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700450 };
451
452 gpio@cc00 { /* GPIO 13 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700453 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
454 qcom,out-strength = <1>; /* QPNP_PIN_OUT_STRENGTH_LOW */
455 qcom,src-sel = <2>; /* QPNP_PIN_SEL_FUNC_1 */
456 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700457 };
458
459 gpio@cd00 { /* GPIO 14 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700460 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
461 qcom,out-strength = <1>; /* QPNP_PIN_OUT_STRENGTH_LOW */
462 qcom,src-sel = <2>; /* QPNP_PIN_SEL_FUNC_1 */
463 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700464 };
465
466 gpio@ce00 { /* GPIO 15 */
467 qcom,mode = <1>;
468 qcom,output-type = <0>;
469 qcom,pull = <5>;
470 qcom,vin-sel = <2>;
471 qcom,out-strength = <3>;
Michael Bohand734fb22012-10-30 14:19:22 -0700472 qcom,src-sel = <2>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700473 qcom,master-en = <1>;
474 };
475
476 gpio@cf00 { /* GPIO 16 */
Amy Maloche527acc42012-12-07 18:40:54 -0800477 qcom,mode = <1>;
478 qcom,output-type = <0>;
479 qcom,pull = <5>;
480 qcom,vin-sel = <2>;
481 qcom,out-strength = <3>;
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700482 qcom,src-sel = <3>; /* QPNP_PIN_SEL_FUNC_2 */
Amy Maloche527acc42012-12-07 18:40:54 -0800483 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700484 };
485
486 gpio@d000 { /* GPIO 17 */
487 };
488
489 gpio@d100 { /* GPIO 18 */
490 };
491
492 gpio@d200 { /* GPIO 19 */
493 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
494 qcom,output-type = <0>; /* QPNP_PIN_OUT_BUF_CMOS */
495 qcom,pull = <5>; /* QPNP_PIN_PULL_NO */
496 qcom,vin-sel = <2>; /* QPNP_PIN_VIN2 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700497 qcom,out-strength = <1>; /* QPNP_PIN_OUT_STRENGTH_LOW */
Michael Bohand734fb22012-10-30 14:19:22 -0700498 qcom,src-sel = <0>; /* QPNP_PIN_SEL_FUNC_CONSTANT */
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700499 qcom,master-en = <1>;
500 };
501
502 gpio@d300 { /* GPIO 20 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700503 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
504 qcom,out-strength = <1>; /* QPNP_PIN_OUT_STRENGTH_LOW */
505 qcom,src-sel = <2>; /* QPNP_PIN_SEL_FUNC_1 */
506 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700507 };
508
509 gpio@d400 { /* GPIO 21 */
510 };
511
512 gpio@d500 { /* GPIO 22 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700513 qcom,mode = <0>; /* QPNP_PIN_MODE_DIG_IN */
514 qcom,pull = <4>; /* QPNP_PIN_PULL_DN */
515 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700516 };
517
518 gpio@d600 { /* GPIO 23 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700519 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
520 qcom,out-strength = <1>; /* QPNP_PIN_OUT_STRENGTH_LOW */
521 qcom,src-sel = <2>; /* QPNP_PIN_SEL_FUNC_1 */
522 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700523 };
524
525 gpio@d700 { /* GPIO 24 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700526 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
527 qcom,out-strength = <1>; /* QPNP_PIN_OUT_STRENGTH_LOW */
528 qcom,src-sel = <2>; /* QPNP_PIN_SEL_FUNC_1 */
529 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700530 };
531
532 gpio@d800 { /* GPIO 25 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700533 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
534 qcom,out-strength = <1>; /* QPNP_PIN_OUT_STRENGTH_LOW */
535 qcom,src-sel = <2>; /* QPNP_PIN_SEL_FUNC_1 */
536 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700537 };
538
539 gpio@d900 { /* GPIO 26 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700540 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
541 qcom,out-strength = <1>; /* QPNP_PIN_OUT_STRENGTH_LOW */
542 qcom,src-sel = <2>; /* QPNP_PIN_SEL_FUNC_1 */
543 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700544 };
545
546 gpio@da00 { /* GPIO 27 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700547 qcom,mode = <0>; /* QPNP_PIN_MODE_DIG_IN */
548 qcom,pull = <4>; /* QPNP_PIN_PULL_DN */
549 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700550 };
551
552 gpio@db00 { /* GPIO 28 */
553 };
554
555 gpio@dc00 { /* GPIO 29 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700556 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
557 qcom,out-strength = <1>; /* QPNP_PIN_OUT_STRENGTH_LOW */
558 qcom,src-sel = <2>; /* QPNP_PIN_SEL_FUNC_1 */
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700559 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700560 };
561
562 gpio@dd00 { /* GPIO 30 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700563 qcom,mode = <0>; /* QPNP_PIN_MODE_DIG_IN */
564 qcom,pull = <4>; /* QPNP_PIN_PULL_DN */
565 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700566 };
567
568 gpio@de00 { /* GPIO 31 */
569 };
570
571 gpio@df00 { /* GPIO 32 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700572 qcom,mode = <0>; /* QPNP_PIN_MODE_DIG_IN */
573 qcom,pull = <4>; /* QPNP_PIN_PULL_DN */
574 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700575 };
576
577 gpio@e000 { /* GPIO 33 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700578 qcom,mode = <0>; /* QPNP_PIN_MODE_DIG_IN */
579 qcom,pull = <4>; /* QPNP_PIN_PULL_DN */
580 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700581 };
582
583 gpio@e100 { /* GPIO 34 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700584 qcom,mode = <0>; /* QPNP_PIN_MODE_DIG_IN */
585 qcom,pull = <4>; /* QPNP_PIN_PULL_DN */
586 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700587 };
588
589 gpio@e200 { /* GPIO 35 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700590 qcom,mode = <0>; /* QPNP_PIN_MODE_DIG_IN */
591 qcom,pull = <4>; /* QPNP_PIN_PULL_DN */
592 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700593 };
594
595 gpio@e300 { /* GPIO 36 */
596 };
597};
598
599&pm8941_mpps {
600
601 mpp@a000 { /* MPP 1 */
Michael Bohanbea1f582013-03-21 17:29:49 -0700602 status = "disabled";
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700603 };
604
605 mpp@a100 { /* MPP 2 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700606 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
607 qcom,out-strength = <1>; /* QPNP_PIN_OUT_STRENGTH_LOW */
608 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700609 };
610
611 mpp@a200 { /* MPP 3 */
612 };
613
614 mpp@a300 { /* MPP 4 */
615 };
616
617 mpp@a400 { /* MPP 5 */
618 /* SPI_ETH config */
619 qcom,mode = <1>; /* DIG_OUT */
620 qcom,output-type = <0>; /* CMOS */
621 qcom,vin-sel = <2>; /* PM8941_S3 1.8V > 1.6V */
Michael Bohand734fb22012-10-30 14:19:22 -0700622 qcom,src-sel = <0>; /* CONSTANT */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700623 qcom,out-strength = <1>; /* QPNP_PIN_OUT_STRENGTH_LOW */
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700624 qcom,master-en = <1>; /* ENABLE MPP */
625 };
626
627 mpp@a500 { /* MPP 6 */
628 /* SPI_ETH_RST 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 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700633 qcom,out-strength = <1>; /* QPNP_PIN_OUT_STRENGTH_LOW */
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700634 qcom,master-en = <1>; /* ENABLE MPP */
635 };
636
637 mpp@a600 { /* MPP 7 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700638 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
639 qcom,out-strength = <1>; /* QPNP_PIN_OUT_STRENGTH_LOW */
640 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700641 };
642
643 mpp@a700 { /* MPP 8 */
Pawan Kumar Nimmagaddaab3a24c2013-04-08 11:33:36 -0700644 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
645 qcom,out-strength = <1>; /* QPNP_PIN_OUT_STRENGTH_LOW */
646 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700647 };
648};
649
650&pm8841_mpps {
651
652 mpp@a000 { /* MPP 1 */
653 };
654
655 mpp@a100 { /* MPP 2 */
656 };
657
658 mpp@a200 { /* MPP 3 */
659 };
660
661 mpp@a300 { /* MPP 4 */
662 };
663};
664
665&slim_msm {
666 taiko_codec {
Kiran Kandi4041f7f2013-02-07 23:17:18 -0800667 qcom,cdc-micbias1-ext-cap;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700668 qcom,cdc-micbias2-ext-cap;
Kiran Kandi4041f7f2013-02-07 23:17:18 -0800669 qcom,cdc-micbias4-ext-cap;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700670 };
671};
Siddartha Mohanadosse9f24de2012-11-02 17:13:18 -0700672
673&spi_epm {
674 epm-adc@0 {
675 compatible = "cy,epm-adc-cy8c5568lti-114";
676 reg = <0>;
677 interrupt-parent = <&msmgpio>;
678 spi-max-frequency = <960000>;
679 qcom,channels = <31>;
680 qcom,gain = <100 100 100 50 100 100 1 100 1 50
681 1 100 1 100 50 50 50 50 50 50
682 100 50 100 50 50 50 50 50 50 50
683 50>;
684 qcom,rsense = <2 2 2 200 20 2 1 2 1 30
685 1 10 1 30 50 30 500 30 100 30
686 100 500 20 200 1000 20 1000 1000 70 200
687 50>;
688 qcom,channel-type = <0x1540>;
689 };
690};