blob: ad5f175abc139a0bd5f36632951b9f24d3388917 [file] [log] [blame]
David Keitelec74a332013-01-18 18:29:10 -08001/* 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 Ramkumar4c29a452013-02-11 17:20:39 -080014/include/ "msm8974-camera-sensor-fluid.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 = "ok";
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
Manoj Rao167072b2012-10-29 12:48:29 -0700110 i2c@f9967000 {
111 sii8334@72 {
112 compatible = "qcom,mhl-sii8334";
113 reg = <0x72>;
114 interrupt-parent = <&msmgpio>;
115 interrupts = <82 0x8>;
116 mhl-intr-gpio = <&msmgpio 82 0>;
117 mhl-pwr-gpio = <&msmgpio 12 0>;
118 mhl-rst-gpio = <&pm8941_mpps 8 0>;
119 avcc_18-supply = <&pm8941_l24>;
120 avcc_12-supply = <&pm8941_l2>;
121 smps3a-supply = <&pm8941_s3>;
122 vdda-supply = <&pm8941_l12>;
Manoj Raobabed622013-02-01 20:35:48 -0800123 qcom,hdmi-tx-map = <&mdss_hdmi_tx>;
Manoj Rao167072b2012-10-29 12:48:29 -0700124 };
Amy Maloche527acc42012-12-07 18:40:54 -0800125
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,need-pwm-clk;
134 imagis,ext-clk-en;
135 imagis,hap-en-gpio = <&msmgpio 86 0x00>;
136 imagis,max-timeout = <15000>;
137 imagis,pwm-div = <256>;
138 imagis,mode-ctrl = <2>;
139 imagis,regulator {
140 regulator-name = "vcc_i2c";
141 regulator-min-microvolt = <1800000>;
142 regulator-max-microvolt = <1800000>;
143 regulator-max-microamp = <9360>;
144 };
145 };
Manoj Rao167072b2012-10-29 12:48:29 -0700146 };
147
Amy Maloche932657e2012-11-26 11:31:55 -0800148 gen-vkeys {
149 compatible = "qcom,gen-vkeys";
150 label = "atmel_mxt_ts";
151 qcom,disp-maxx = <720>;
152 qcom,disp-maxy = <1280>;
153 qcom,panel-maxx = <760>;
154 qcom,panel-maxy = <1424>;
155 qcom,key-codes = <158 139 102 217>;
156 };
157
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700158 gpio_keys {
159 compatible = "gpio-keys";
160 input-name = "gpio-keys";
161
162 camera_snapshot {
163 label = "camera_snapshot";
164 gpios = <&pm8941_gpios 3 0x1>;
165 linux,input-type = <1>;
166 linux,code = <0x2fe>;
167 gpio-key,wakeup;
168 debounce-interval = <15>;
169 };
170
171 camera_focus {
172 label = "camera_focus";
173 gpios = <&pm8941_gpios 4 0x1>;
174 linux,input-type = <1>;
175 linux,code = <0x210>;
176 gpio-key,wakeup;
177 debounce-interval = <15>;
178 };
179
180 vol_up {
181 label = "volume_up";
182 gpios = <&pm8941_gpios 5 0x1>;
183 linux,input-type = <1>;
184 linux,code = <115>;
185 gpio-key,wakeup;
186 debounce-interval = <15>;
187 };
188 };
189
190 spi@f9923000 {
191 ethernet-switch@2 {
192 compatible = "micrel,ks8851";
193 reg = <2>;
194 interrupt-parent = <&msmgpio>;
195 interrupts = <94 0>;
196 spi-max-frequency = <4800000>;
197 rst-gpio = <&pm8941_mpps 6 0>;
198 vdd-io-supply = <&spi_eth_vreg>;
199 vdd-phy-supply = <&spi_eth_vreg>;
200 };
201 };
Phani Kumar Uppalapatia2129872012-11-08 20:36:45 -0800202
203 sound {
Phani Kumar Uppalapatia2129872012-11-08 20:36:45 -0800204 qcom,model = "msm8974-taiko-fluid-snd-card";
Joonwoo Park3a930f32013-04-10 18:57:45 -0700205 qcom,audio-routing =
206 "RX_BIAS", "MCLK",
207 "LDO_H", "MCLK",
208 "AMIC1", "MIC BIAS1 Internal1",
209 "MIC BIAS1 Internal1", "Handset Mic",
210 "AMIC2", "MIC BIAS2 External",
211 "MIC BIAS2 External", "Headset Mic",
212 "AMIC3", "MIC BIAS2 External",
213 "MIC BIAS2 External", "ANCRight Headset Mic",
214 "AMIC4", "MIC BIAS2 External",
215 "MIC BIAS2 External", "ANCLeft Headset Mic",
216 "DMIC1", "MIC BIAS1 External",
217 "MIC BIAS1 External", "Digital Mic1",
218 "DMIC2", "MIC BIAS1 External",
219 "MIC BIAS1 External", "Digital Mic2",
220 "DMIC3", "MIC BIAS3 External",
221 "MIC BIAS3 External", "Digital Mic3",
222 "DMIC4", "MIC BIAS3 External",
223 "MIC BIAS3 External", "Digital Mic4",
224 "DMIC5", "MIC BIAS4 External",
225 "MIC BIAS4 External", "Digital Mic5",
226 "DMIC6", "MIC BIAS4 External",
227 "MIC BIAS4 External", "Digital Mic6",
228 "Lineout_1 amp", "LINEOUT1",
229 "Lineout_3 amp", "LINEOUT3";
230
Kiran Kandi52650322012-12-11 15:49:39 -0800231 qcom,hdmi-audio-rx;
Joonwoo Park3a930f32013-04-10 18:57:45 -0700232 qcom,ext-ult-lo-amp-gpio = <&pm8941_gpios 6 0>;
Joonwoo Parkd581a762013-04-15 17:12:57 -0700233 qcom,cdc-micbias2-headset-only;
Phani Kumar Uppalapatia2129872012-11-08 20:36:45 -0800234 };
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700235};
236
Patrick Lai51f50be2013-01-14 23:04:46 -0800237&slim_msm {
238 taiko_codec {
Kiran Kandi4041f7f2013-02-07 23:17:18 -0800239 qcom,cdc-micbias1-ext-cap;
Patrick Lai51f50be2013-01-14 23:04:46 -0800240 qcom,cdc-micbias2-ext-cap;
Kiran Kandi4041f7f2013-02-07 23:17:18 -0800241 qcom,cdc-micbias3-ext-cap;
242 qcom,cdc-micbias4-ext-cap;
Joonwoo Parkdf0d5a92012-12-12 14:08:32 -0800243
244 /* If boot isn't available, vph_pwr_vreg can be used instead */
245 cdc-vdd-spkdrv-supply = <&pm8941_boost>;
246 qcom,cdc-vdd-spkdrv-voltage = <5000000 5000000>;
247 qcom,cdc-vdd-spkdrv-current = <1250000>;
248
249 qcom,cdc-on-demand-supplies = "cdc-vdd-spkdrv";
Patrick Lai51f50be2013-01-14 23:04:46 -0800250 };
251};
252
Amy Maloche24de28b2012-09-17 12:09:56 -0700253&spmi_bus {
254 qcom,pm8941@1 {
255 qcom,leds@d800 {
256 status = "okay";
257 qcom,wled_0 {
258 label = "wled";
259 linux,name = "wled:backlight";
260 linux,default-trigger = "bkl-trigger";
261 qcom,cs-out-en;
Amy Malochebd687672013-03-18 11:23:45 -0700262 qcom,op-fdbck = <1>;
Siddhartha Agrawal12315e62013-02-24 11:23:02 -0800263 qcom,default-state = "on";
Amy Maloche24de28b2012-09-17 12:09:56 -0700264 qcom,max-current = <25>;
265 qcom,ctrl-delay-us = <0>;
266 qcom,boost-curr-lim = <3>;
267 qcom,cp-sel = <0>;
268 qcom,switch-freq = <2>;
269 qcom,ovp-val = <2>;
270 qcom,num-strings = <1>;
271 qcom,id = <0>;
272 };
273 };
274
275 qcom,leds@d900 {
276 status = "disabled";
277 };
278
279 qcom,leds@da00 {
280 status = "disabled";
281 };
282
283 qcom,leds@db00 {
284 status = "disabled";
285 };
286
287 qcom,leds@dc00 {
288 status = "disabled";
289 };
290
291 qcom,leds@dd00 {
292 status = "disabled";
293 };
294
295 qcom,leds@de00 {
296 status = "disabled";
297 };
298
299 qcom,leds@df00 {
300 status = "disabled";
301 };
302
303 qcom,leds@e000 {
304 status = "disabled";
305 };
306
307 qcom,leds@e100 {
308 status = "disabled";
309 };
310 };
311};
312
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700313&sdcc1 {
Venkat Gopalakrishnand446a122012-11-05 14:10:44 -0800314 status = "disabled";
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700315};
316
317&sdcc2 {
318 #address-cells = <0>;
319 interrupt-parent = <&sdcc2>;
320 interrupts = <0 1 2>;
321 #interrupt-cells = <1>;
322 interrupt-map-mask = <0xffffffff>;
323 interrupt-map = <0 &intc 0 125 0
324 1 &intc 0 220 0
325 2 &msmgpio 62 0x3>;
326 interrupt-names = "core_irq", "bam_irq", "status_irq";
327 cd-gpios = <&msmgpio 62 0x1>;
Venkat Gopalakrishnand446a122012-11-05 14:10:44 -0800328 status = "disabled";
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700329};
330
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700331&sdhc_1 {
332 vdd-supply = <&pm8941_l20>;
333 vdd-io-supply = <&pm8941_s3>;
334
Sahitya Tummalad0fc2dd2013-03-27 10:34:35 +0530335 qcom,vdd-always-on;
336 qcom,vdd-lpm-sup;
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700337 qcom,vdd-voltage-level = <2950000 2950000>;
338 qcom,vdd-current-level = <800 500000>;
339
340 qcom,vdd-io-always-on;
341 qcom,vdd-io-voltage-level = <1800000 1800000>;
342 qcom,vdd-io-current-level = <250 154000>;
343
344 qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
345 qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
Krishna Konda6c5d0f42013-04-12 16:44:26 -0700346 qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700347 qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */
348
349 qcom,nonremovable;
Venkat Gopalakrishnand446a122012-11-05 14:10:44 -0800350 status = "ok";
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700351};
352
353&sdhc_2 {
Sahitya Tummala6b152f82013-03-12 15:02:12 +0530354 #address-cells = <0>;
355 interrupt-parent = <&sdhc_2>;
356 interrupts = <0 1 2>;
357 #interrupt-cells = <1>;
358 interrupt-map-mask = <0xffffffff>;
359 interrupt-map = <0 &intc 0 125 0
360 1 &intc 0 221 0
361 2 &msmgpio 62 0x3>;
362 interrupt-names = "hc_irq", "pwr_irq", "status_irq";
363 cd-gpios = <&msmgpio 62 0x1>;
364
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700365 vdd-supply = <&pm8941_l21>;
366 vdd-io-supply = <&pm8941_l13>;
367
368 qcom,vdd-voltage-level = <2950000 2950000>;
369 qcom,vdd-current-level = <9000 800000>;
370
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700371 qcom,vdd-io-voltage-level = <1800000 2950000>;
372 qcom,vdd-io-current-level = <6 22000>;
373
374 qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
375 qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
Krishna Konda6c5d0f42013-04-12 16:44:26 -0700376 qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700377 qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */
Venkat Gopalakrishnand446a122012-11-05 14:10:44 -0800378 status = "ok";
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700379};
380
Krishna Konda6c5d0f42013-04-12 16:44:26 -0700381/* Drive strength recommendations for clock line from hardware team is 10 mA.
382 * But since the driver has been been using the below values from the start
383 * without any problems, continue to use those.
384 */
385&sdcc1 {
386 qcom,pad-drv-on = <0x7 0x4 0x4>; /* 16mA, 10mA, 10mA */
387};
388
389&sdcc2 {
390 qcom,pad-drv-on = <0x7 0x4 0x4>; /* 16mA, 10mA, 10mA */
391};
392
393&sdhc_1 {
394 qcom,pad-drv-on = <0x7 0x4 0x4>; /* 16mA, 10mA, 10mA */
395};
396
397&sdhc_2 {
398 qcom,pad-drv-on = <0x7 0x4 0x4>; /* 16mA, 10mA, 10mA */
399};
400
Jack Pham43ac4272012-12-05 18:02:19 -0800401&usb3 {
402 qcom,otg-capability;
403};
404
Xiaozhe Shi7447fe72012-12-21 09:53:32 -0800405&pm8941_bms {
406 status = "ok";
407};
408
Jack Pham9f9faa92012-12-01 20:13:31 -0800409&pm8941_chg {
410 status = "ok";
David Keitela2a6ff82013-04-09 16:52:54 -0700411 qcom,charging-disabled;
Jack Pham9f9faa92012-12-01 20:13:31 -0800412
David Keitele89d4782013-03-27 11:29:59 -0700413 qcom,chgr@1000 {
Jack Pham9f9faa92012-12-01 20:13:31 -0800414 status = "ok";
415 };
416
David Keitele89d4782013-03-27 11:29:59 -0700417 qcom,buck@1100 {
Jack Pham9f9faa92012-12-01 20:13:31 -0800418 status = "ok";
419 };
420
David Keitele89d4782013-03-27 11:29:59 -0700421 qcom,bat-if@1200 {
Jack Pham9f9faa92012-12-01 20:13:31 -0800422 status = "ok";
423 };
424
David Keitele89d4782013-03-27 11:29:59 -0700425 qcom,usb-chgpth@1300 {
Jack Pham9f9faa92012-12-01 20:13:31 -0800426 status = "ok";
427 };
428
David Keitele89d4782013-03-27 11:29:59 -0700429 qcom,dc-chgpth@1400 {
Jack Pham9f9faa92012-12-01 20:13:31 -0800430 status = "ok";
431 };
432
David Keitele89d4782013-03-27 11:29:59 -0700433 qcom,boost@1500 {
Jack Pham9f9faa92012-12-01 20:13:31 -0800434 status = "ok";
435 };
436
437 qcom,chg-misc@1600 {
438 status = "ok";
439 };
440};
441
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700442&pm8941_gpios {
443 gpio@c000 { /* GPIO 1 */
444 };
445
446 gpio@c100 { /* GPIO 2 */
447 };
448
449 gpio@c200 { /* GPIO 3 */
450 qcom,mode = <0>;
451 qcom,pull = <0>;
452 qcom,vin-sel = <2>;
Michael Bohand734fb22012-10-30 14:19:22 -0700453 qcom,src-sel = <0>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700454 };
455
456 gpio@c300 { /* GPIO 4 */
457 qcom,mode = <0>;
458 qcom,pull = <0>;
459 qcom,vin-sel = <2>;
Michael Bohand734fb22012-10-30 14:19:22 -0700460 qcom,src-sel = <0>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700461 };
462
463 gpio@c400 { /* GPIO 5 */
464 qcom,mode = <0>;
465 qcom,pull = <0>;
466 qcom,vin-sel = <2>;
Michael Bohand734fb22012-10-30 14:19:22 -0700467 qcom,src-sel = <0>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700468 };
469
470 gpio@c500 { /* GPIO 6 */
471 };
472
473 gpio@c600 { /* GPIO 7 */
474 };
475
476 gpio@c700 { /* GPIO 8 */
477 };
478
479 gpio@c800 { /* GPIO 9 */
480 };
481
482 gpio@c900 { /* GPIO 10 */
483 };
484
485 gpio@ca00 { /* GPIO 11 */
486 };
487
488 gpio@cb00 { /* GPIO 12 */
Manoj Rao167072b2012-10-29 12:48:29 -0700489 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
490 qcom,output-type = <0>; /* QPNP_PIN_OUT_BUF_CMOS */
491 qcom,pull = <5>; /* QPNP_PIN_PULL_NO */
492 qcom,vin-sel = <2>; /* QPNP_PIN_VIN2 */
493 qcom,out-strength = <2>; /* QPNP_PIN_OUT_STRENGTH_MED */
Manoj Rao90067802013-01-18 14:57:25 -0800494 qcom,src-sel = <0>; /* QPNP_PIN_SEL_FUNC_CONSTANT */
Manoj Rao167072b2012-10-29 12:48:29 -0700495 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700496 };
497
498 gpio@cc00 { /* GPIO 13 */
499 };
500
501 gpio@cd00 { /* GPIO 14 */
502 };
503
504 gpio@ce00 { /* GPIO 15 */
505 qcom,mode = <1>;
506 qcom,output-type = <0>;
507 qcom,pull = <5>;
508 qcom,vin-sel = <2>;
Kiran Kandi1a35a222013-05-02 16:53:53 -0700509 qcom,out-strength = <1>;
Michael Bohand734fb22012-10-30 14:19:22 -0700510 qcom,src-sel = <2>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700511 qcom,master-en = <1>;
512 };
513
514 gpio@cf00 { /* GPIO 16 */
Amy Maloche527acc42012-12-07 18:40:54 -0800515 qcom,mode = <1>;
516 qcom,output-type = <0>;
517 qcom,pull = <5>;
518 qcom,vin-sel = <2>;
519 qcom,out-strength = <3>;
520 qcom,src-sel = <2>;
521 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700522 };
523
524 gpio@d000 { /* GPIO 17 */
525 };
526
527 gpio@d100 { /* GPIO 18 */
528 };
529
530 gpio@d200 { /* GPIO 19 */
531 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
532 qcom,output-type = <0>; /* QPNP_PIN_OUT_BUF_CMOS */
533 qcom,pull = <5>; /* QPNP_PIN_PULL_NO */
534 qcom,vin-sel = <2>; /* QPNP_PIN_VIN2 */
535 qcom,out-strength = <2>; /* QPNP_PIN_OUT_STRENGTH_MED */
Michael Bohand734fb22012-10-30 14:19:22 -0700536 qcom,src-sel = <0>; /* QPNP_PIN_SEL_FUNC_CONSTANT */
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700537 qcom,master-en = <1>;
538 };
539
540 gpio@d300 { /* GPIO 20 */
541 };
542
543 gpio@d400 { /* GPIO 21 */
544 };
545
546 gpio@d500 { /* GPIO 22 */
547 };
548
549 gpio@d600 { /* GPIO 23 */
550 };
551
552 gpio@d700 { /* GPIO 24 */
553 };
554
555 gpio@d800 { /* GPIO 25 */
556 };
557
558 gpio@d900 { /* GPIO 26 */
559 };
560
561 gpio@da00 { /* GPIO 27 */
562 };
563
564 gpio@db00 { /* GPIO 28 */
565 };
566
567 gpio@dc00 { /* GPIO 29 */
568 qcom,pull = <0>; /* set to default pull */
569 qcom,master-en = <1>;
570 qcom,vin-sel = <2>; /* select 1.8 V source */
571 };
572
573 gpio@dd00 { /* GPIO 30 */
574 };
575
576 gpio@de00 { /* GPIO 31 */
577 };
578
579 gpio@df00 { /* GPIO 32 */
580 };
581
582 gpio@e000 { /* GPIO 33 */
583 };
584
585 gpio@e100 { /* GPIO 34 */
586 };
587
588 gpio@e200 { /* GPIO 35 */
589 };
590
591 gpio@e300 { /* GPIO 36 */
592 };
593};
594
595&pm8941_mpps {
596
597 mpp@a000 { /* MPP 1 */
Michael Bohanbea1f582013-03-21 17:29:49 -0700598 status = "disabled";
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700599 };
600
601 mpp@a100 { /* MPP 2 */
602 };
603
604 mpp@a200 { /* MPP 3 */
605 };
606
607 mpp@a300 { /* MPP 4 */
608 };
609
610 mpp@a400 { /* MPP 5 */
611 /* SPI_ETH config */
612 qcom,mode = <1>; /* DIG_OUT */
613 qcom,output-type = <0>; /* CMOS */
614 qcom,vin-sel = <2>; /* PM8941_S3 1.8V > 1.6V */
Michael Bohand734fb22012-10-30 14:19:22 -0700615 qcom,src-sel = <0>; /* CONSTANT */
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700616 qcom,master-en = <1>; /* ENABLE MPP */
617 };
618
619 mpp@a500 { /* MPP 6 */
620 /* SPI_ETH_RST config */
621 qcom,mode = <1>; /* DIG_OUT */
622 qcom,output-type = <0>; /* CMOS */
623 qcom,vin-sel = <2>; /* PM8941_S3 1.8V > 1.6V */
Michael Bohand734fb22012-10-30 14:19:22 -0700624 qcom,src-sel = <0>; /* CONSTANT */
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700625 qcom,master-en = <1>; /* ENABLE MPP */
626 };
627
628 mpp@a600 { /* MPP 7 */
629 };
630
631 mpp@a700 { /* MPP 8 */
Manoj Rao167072b2012-10-29 12:48:29 -0700632 qcom,mode = <1>; /* DIG_OUT */
633 qcom,output-type = <0>; /* CMOS */
Manoj Rao90067802013-01-18 14:57:25 -0800634 qcom,pull = <0>;
Manoj Rao167072b2012-10-29 12:48:29 -0700635 qcom,vin-sel = <2>; /* PM8941_S3 1.8V > 1.6V */
Manoj Rao90067802013-01-18 14:57:25 -0800636 qcom,src-sel = <0>; /* CONSTANT */
Manoj Rao167072b2012-10-29 12:48:29 -0700637 qcom,master-en = <1>; /* ENABLE MPP */
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700638 };
639};
640
641&pm8841_mpps {
642
643 mpp@a000 { /* MPP 1 */
644 };
645
646 mpp@a100 { /* MPP 2 */
647 };
648
649 mpp@a200 { /* MPP 3 */
650 };
651
652 mpp@a300 { /* MPP 4 */
653 };
654};
Siddartha Mohanadosse9f24de2012-11-02 17:13:18 -0700655
656&spi_epm {
657 epm-adc@0 {
658 compatible = "cy,epm-adc-cy8c5568lti-114";
659 reg = <0>;
660 interrupt-parent = <&msmgpio>;
661 spi-max-frequency = <960000>;
662 qcom,channels = <31>;
663 qcom,gain = <100 100 100 50 100 100 1 100 1 50
664 1 100 1 100 50 50 50 50 50 50
665 100 50 100 50 50 50 50 50 50 50
666 50>;
667 qcom,rsense = <2 2 2 200 20 2 1 2 1 30
668 1 10 1 30 50 30 500 30 100 30
669 100 500 20 200 1000 20 1000 1000 70 200
670 50>;
671 qcom,channel-type = <0x1540>;
672 };
673};