blob: 9badf6dfa5bb24d605fe019f976b22d0b98282d8 [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 Moskovchenko4dd8bab2013-07-15 20:38:12 -070018/ {
19 aliases {
20 serial0 = &blsp1_uart1;
21 };
22};
23
Stepan Moskovchenko7d8cdcaa2013-04-25 17:10:55 -070024&soc {
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -070025 serial@f991e000 {
26 status = "ok";
27 };
28
Chandan Uddaraju0c33e772012-12-13 22:49:58 -080029 qcom,mdss_dsi_toshiba_720p_video {
30 status = "ok";
Siddhartha Agrawal1d0557b2013-03-06 14:53:11 -080031 qcom,cont-splash-enabled;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -070032 };
33
Chandan Uddaraju6d2c8922013-01-24 23:11:12 -080034 qcom,mdss_dsi_orise_720p_video {
35 status = "disable";
36 };
37
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -070038 qcom,hdmi_tx@fd922100 {
39 status = "ok";
40 };
41
42 i2c@f9924000 {
43 atmel_mxt_ts@4a {
44 compatible = "atmel,mxt-ts";
45 reg = <0x4a>;
46 interrupt-parent = <&msmgpio>;
47 interrupts = <61 0x2>;
48 vdd_ana-supply = <&pm8941_l18>;
49 vcc_i2c-supply = <&pm8941_lvs1>;
50 atmel,reset-gpio = <&msmgpio 60 0x00>;
51 atmel,irq-gpio = <&msmgpio 61 0x00>;
52 atmel,panel-coords = <0 0 760 1424>;
53 atmel,display-coords = <0 0 720 1280>;
Sreenivasulu Chalam Charlabf7f6212012-10-17 22:10:24 +053054 atmel,i2c-pull-up;
Amy Malochea90b0052013-02-13 11:57:10 -080055 atmel,no-force-update;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -070056 atmel,cfg_1 {
Amy Maloche77487462013-06-17 16:25:55 -070057 atmel,fw-name = "atmel_8974_fluid_v1_0_AA.hex";
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -070058 atmel,family-id = <0x82>;
59 atmel,variant-id = <0x19>;
60 atmel,version = <0x10>;
61 atmel,build = <0xaa>;
62 atmel,config = [
63 /* Object 6, Instance = 0 */
64 00 00 00 00 00 00
65 /* Object 38, Instance = 0 */
Amy Maloche84637212012-12-14 15:12:19 -080066 15 01 00 03 0A 0C 00 00
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -070067 /* Object 7, Instance = 0 */
Amy Maloche84637212012-12-14 15:12:19 -080068 20 08 32 03
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -070069 /* Object 8, Instance = 0 */
Amy Maloche84637212012-12-14 15:12:19 -080070 0F 00 0A 0A 00 00 0A 0A 00 00
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -070071 /* Object 9, Instance = 0 */
Amy Maloche84637212012-12-14 15:12:19 -080072 83 00 00 18 0E 00 70 46 02 01
73 00 0A 03 31 04 05 0A 0A 90 05
74 F8 02 05 F1 F1 0F 00 00 08 2D
75 12 06 00 00 00 01
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -070076 /* Object 15, Instance = 0 */
77 00 00 00 00 00 00 00 00 00 00
78 00
79 /* Object 18, Instance = 0 */
80 00 00
81 /* Object 19, Instance = 0 */
82 00 00 00 00 00 00
83 /* Object 23, Instance = 0 */
84 00 00 00 00 00 00 00 00 00 00
85 00 00 00 00 00
86 /* Object 25, Instance = 0 */
87 00 00 00 00 00 00 00 00 00 00
88 00 00 00 00 00
89 /* Object 40, Instance = 0 */
90 00 00 00 00 00
91 /* Object 42, Instance = 0 */
Amy Maloche84637212012-12-14 15:12:19 -080092 33 1E 19 10 80 00 00 00 FF 00
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -070093 /* Object 46, Instance = 0 */
94 00 00 10 10 00 00 03 00 00 01
95 /* Object 47, Instance = 0 */
96 08 0A 28 0A 02 0A 00 8C 00 20
97 00 00 00
98 /* Object 55, Instance = 0 */
99 00 00 00 00 00 00
100 /* Object 56, Instance = 0 */
Amy Maloche84637212012-12-14 15:12:19 -0800101 00 00 00 18 05 05 05 05 05 05
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700102 05 05 05 05 05 05 05 05 05 05
103 05 05 05 05 05 05 05 05 00 00
104 00 00 00 00 00 00 00 00 00 00
105 00 00
106 /* Object 57, Instance = 0 */
107 00 00 00
108 /* Object 61, Instance = 0 */
109 00 00 00 00 00
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700110 /* Object 62, Instance = 0 */
Amy Maloche84637212012-12-14 15:12:19 -0800111 01 2A 00 16 00 00 00 00 0B 01
112 02 03 04 08 00 00 08 10 18 05
113 00 0A 05 05 50 14 19 34 1A 7F
114 00 00 00 00 00 00 00 00 00 30
115 05 02 00 01 00 05 00 00 00 00
116 00 00 00 00
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700117 ];
118 };
119 };
120 };
121
Amy Maloche932657e2012-11-26 11:31:55 -0800122 gen-vkeys {
123 compatible = "qcom,gen-vkeys";
124 label = "atmel_mxt_ts";
125 qcom,disp-maxx = <720>;
126 qcom,disp-maxy = <1280>;
127 qcom,panel-maxx = <760>;
128 qcom,panel-maxy = <1424>;
129 qcom,key-codes = <158 139 102 217>;
130 };
131
Amy Maloche527acc42012-12-07 18:40:54 -0800132 i2c@f9967000 {
133 isa1200@48 {
134 status = "okay";
135 reg = <0x48>;
136 vcc_i2c-supply = <&pm8941_s3>;
137 compatible = "imagis,isa1200";
138 label = "vibrator";
139 imagis,chip-en;
140 imagis,smart-en;
141 imagis,need-pwm-clk;
142 imagis,ext-clk-en;
143 imagis,hap-en-gpio = <&msmgpio 86 0x00>;
144 imagis,max-timeout = <15000>;
145 imagis,pwm-div = <256>;
146 imagis,mode-ctrl = <2>;
147 imagis,regulator {
148 regulator-name = "vcc_i2c";
149 regulator-min-microvolt = <1800000>;
150 regulator-max-microvolt = <1800000>;
151 regulator-max-microamp = <9360>;
152 };
153 };
154 };
155
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700156 gpio_keys {
157 compatible = "gpio-keys";
158 input-name = "gpio-keys";
159
160 camera_snapshot {
161 label = "camera_snapshot";
162 gpios = <&pm8941_gpios 3 0x1>;
163 linux,input-type = <1>;
164 linux,code = <0x2fe>;
165 gpio-key,wakeup;
166 debounce-interval = <15>;
167 };
168
169 camera_focus {
170 label = "camera_focus";
171 gpios = <&pm8941_gpios 4 0x1>;
172 linux,input-type = <1>;
173 linux,code = <0x210>;
174 gpio-key,wakeup;
175 debounce-interval = <15>;
176 };
177
178 vol_up {
179 label = "volume_up";
180 gpios = <&pm8941_gpios 5 0x1>;
181 linux,input-type = <1>;
182 linux,code = <115>;
183 gpio-key,wakeup;
184 debounce-interval = <15>;
185 };
186 };
187
188 spi@f9923000 {
189 ethernet-switch@2 {
190 compatible = "micrel,ks8851";
191 reg = <2>;
192 interrupt-parent = <&msmgpio>;
193 interrupts = <94 0>;
194 spi-max-frequency = <4800000>;
195 rst-gpio = <&pm8941_mpps 6 0>;
196 vdd-io-supply = <&spi_eth_vreg>;
197 vdd-phy-supply = <&spi_eth_vreg>;
198 };
199 };
Phani Kumar Uppalapatia2129872012-11-08 20:36:45 -0800200
201 sound {
Phani Kumar Uppalapatia2129872012-11-08 20:36:45 -0800202 qcom,model = "msm8974-taiko-cdp-snd-card";
Kiran Kandi52650322012-12-11 15:49:39 -0800203 qcom,hdmi-audio-rx;
Fred Oh705c64f2013-03-07 14:25:40 -0800204 qcom,us-euro-gpios = <&pm8941_gpios 20 0>;
Joonwoo Parkd581a762013-04-15 17:12:57 -0700205 qcom,cdc-micbias2-headset-only;
Phani Kumar Uppalapatia2129872012-11-08 20:36:45 -0800206 };
David Collinsf3c0e562012-12-20 11:45:06 -0800207
208 usb2_otg_sw: regulator-tpd4s214 {
209 compatible = "regulator-fixed";
210 regulator-name = "usb2_otg_sw";
211 gpio = <&pm8941_gpios 18 0>;
212 parent-supply = <&pm8941_boost>;
213 startup-delay-us = <17000>;
214 enable-active-high;
215 };
Ming-yi Lin44c2afa2013-02-22 11:36:58 +0800216
Manu Gautamf014ff72013-03-19 16:35:27 +0530217 hsic_host: hsic@f9a00000 {
218 compatible = "qcom,hsic-host";
219 reg = <0xf9a00000 0x400>;
220 #address-cells = <0>;
221 interrupt-parent = <&hsic_host>;
222 interrupts = <0 1 2>;
223 #interrupt-cells = <1>;
224 interrupt-map-mask = <0xffffffff>;
225 interrupt-map = <0 &intc 0 136 0
226 1 &intc 0 148 0
227 2 &msmgpio 144 0x8>;
228 interrupt-names = "core_irq", "async_irq", "wakeup";
229 HSIC_VDDCX-supply = <&pm8841_s2>;
230 HSIC_GDSC-supply = <&gdsc_usb_hsic>;
231 hsic,strobe-gpio = <&msmgpio 144 0x00>;
232 hsic,data-gpio = <&msmgpio 145 0x00>;
233 hsic,resume-gpio = <&msmgpio 80 0x00>;
234 hsic,ignore-cal-pad-config;
235 hsic,strobe-pad-offset = <0x2050>;
236 hsic,data-pad-offset = <0x2054>;
Manu Gautam8efa9d12013-07-25 12:29:40 +0530237 qcom,phy-susp-sof-workaround;
Manu Gautamf014ff72013-03-19 16:35:27 +0530238
239 qcom,msm-bus,name = "hsic";
240 qcom,msm-bus,num-cases = <2>;
Manu Gautamf014ff72013-03-19 16:35:27 +0530241 qcom,msm-bus,num-paths = <1>;
242 qcom,msm-bus,vectors-KBps =
243 <85 512 0 0>,
244 <85 512 40000 160000>;
Ming-yi Lin44c2afa2013-02-22 11:36:58 +0800245 };
246
Ming-yi Linc1b0ba32013-04-13 20:36:34 +0800247 wlan0: qca,wlan {
248 compatible = "qca,ar6004-hsic";
249 qcom,msm-bus,name = "wlan";
250 qcom,msm-bus,num-cases = <5>;
251 qcom,msm-bus,active-only = <0>;
252 qcom,msm-bus,num-paths = <1>;
253 qcom,msm-bus,vectors-KBps =
254 <85 512 0 0>,
255 <85 512 40000 160000>,
256 <85 512 40000 320000>,
257 <85 512 40000 480000>,
Ming-yi Lin2faedc12013-05-15 10:30:00 +0800258 <85 512 40000 800000>;
Ming-yi Linc1b0ba32013-04-13 20:36:34 +0800259 };
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700260};
261
David Collins73cdb632013-06-17 17:24:45 -0700262&pm8941_lsid1 {
263 qcom,leds@d800 {
264 status = "okay";
265 qcom,wled_0 {
266 label = "wled";
267 linux,name = "wled:backlight";
268 linux,default-trigger = "bkl-trigger";
269 qcom,cs-out-en;
270 qcom,op-fdbck = <1>;
271 qcom,default-state = "on";
272 qcom,max-current = <25>;
273 qcom,ctrl-delay-us = <0>;
Chun Zhangc0ca2512013-07-26 19:32:15 -0700274 qcom,boost-curr-lim = <5>;
David Collins73cdb632013-06-17 17:24:45 -0700275 qcom,cp-sel = <0>;
Amy Maloche9eccb4c2013-07-12 14:31:56 -0700276 qcom,switch-freq = <11>;
David Collins73cdb632013-06-17 17:24:45 -0700277 qcom,ovp-val = <2>;
Chun Zhangc0ca2512013-07-26 19:32:15 -0700278 qcom,num-strings = <3>;
David Collins73cdb632013-06-17 17:24:45 -0700279 qcom,id = <0>;
Amy Maloche24de28b2012-09-17 12:09:56 -0700280 };
David Collins73cdb632013-06-17 17:24:45 -0700281 };
Amy Maloche24de28b2012-09-17 12:09:56 -0700282
David Collins73cdb632013-06-17 17:24:45 -0700283 qcom,leds@d900 {
284 status = "disabled";
285 };
Amy Maloche24de28b2012-09-17 12:09:56 -0700286
David Collins73cdb632013-06-17 17:24:45 -0700287 qcom,leds@da00 {
288 status = "disabled";
289 };
Amy Maloche24de28b2012-09-17 12:09:56 -0700290
David Collins73cdb632013-06-17 17:24:45 -0700291 qcom,leds@db00 {
292 status = "disabled";
293 };
Amy Maloche24de28b2012-09-17 12:09:56 -0700294
David Collins73cdb632013-06-17 17:24:45 -0700295 qcom,leds@dc00 {
296 status = "disabled";
297 };
Amy Maloche24de28b2012-09-17 12:09:56 -0700298
David Collins73cdb632013-06-17 17:24:45 -0700299 qcom,leds@dd00 {
300 status = "disabled";
301 };
Amy Maloche24de28b2012-09-17 12:09:56 -0700302
David Collins73cdb632013-06-17 17:24:45 -0700303 qcom,leds@de00 {
304 status = "disabled";
305 };
Amy Maloche24de28b2012-09-17 12:09:56 -0700306
David Collins73cdb632013-06-17 17:24:45 -0700307 qcom,leds@df00 {
308 status = "disabled";
309 };
Amy Maloche24de28b2012-09-17 12:09:56 -0700310
David Collins73cdb632013-06-17 17:24:45 -0700311 qcom,leds@e000 {
312 status = "disabled";
313 };
Amy Maloche24de28b2012-09-17 12:09:56 -0700314
David Collins73cdb632013-06-17 17:24:45 -0700315 qcom,leds@e100 {
316 status = "disabled";
Amy Maloche24de28b2012-09-17 12:09:56 -0700317 };
318};
319
Venkat Gopalakrishnand446a122012-11-05 14:10:44 -0800320&sdcc1 {
321 status = "disabled";
322};
323
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700324&sdcc2 {
325 #address-cells = <0>;
326 interrupt-parent = <&sdcc2>;
327 interrupts = <0 1 2>;
328 #interrupt-cells = <1>;
329 interrupt-map-mask = <0xffffffff>;
330 interrupt-map = <0 &intc 0 125 0
331 1 &intc 0 220 0
332 2 &msmgpio 62 0x3>;
333 interrupt-names = "core_irq", "bam_irq", "status_irq";
334 cd-gpios = <&msmgpio 62 0x1>;
335 wp-gpios = <&pm8941_gpios 29 0x1>;
Venkat Gopalakrishnand446a122012-11-05 14:10:44 -0800336 status = "disabled";
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700337};
338
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700339&sdhc_1 {
340 vdd-supply = <&pm8941_l20>;
341 vdd-io-supply = <&pm8941_s3>;
342
Sahitya Tummalad0fc2dd2013-03-27 10:34:35 +0530343 qcom,vdd-always-on;
344 qcom,vdd-lpm-sup;
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700345 qcom,vdd-voltage-level = <2950000 2950000>;
346 qcom,vdd-current-level = <800 500000>;
347
348 qcom,vdd-io-always-on;
349 qcom,vdd-io-voltage-level = <1800000 1800000>;
350 qcom,vdd-io-current-level = <250 154000>;
351
352 qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
353 qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
Krishna Konda6c5d0f42013-04-12 16:44:26 -0700354 qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700355 qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */
356
357 qcom,nonremovable;
Venkat Gopalakrishnand446a122012-11-05 14:10:44 -0800358 status = "ok";
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700359};
360
361&sdhc_2 {
Sahitya Tummala6b152f82013-03-12 15:02:12 +0530362 #address-cells = <0>;
363 interrupt-parent = <&sdhc_2>;
364 interrupts = <0 1 2>;
365 #interrupt-cells = <1>;
366 interrupt-map-mask = <0xffffffff>;
367 interrupt-map = <0 &intc 0 125 0
368 1 &intc 0 221 0
369 2 &msmgpio 62 0x3>;
370 interrupt-names = "hc_irq", "pwr_irq", "status_irq";
371 cd-gpios = <&msmgpio 62 0x1>;
372
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700373 vdd-supply = <&pm8941_l21>;
374 vdd-io-supply = <&pm8941_l13>;
375
376 qcom,vdd-voltage-level = <2950000 2950000>;
377 qcom,vdd-current-level = <9000 800000>;
378
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700379 qcom,vdd-io-voltage-level = <1800000 2950000>;
380 qcom,vdd-io-current-level = <6 22000>;
381
382 qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
383 qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
Krishna Konda6c5d0f42013-04-12 16:44:26 -0700384 qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700385 qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */
Venkat Gopalakrishnand446a122012-11-05 14:10:44 -0800386 status = "ok";
Venkat Gopalakrishnan9855edd2012-09-17 15:05:13 -0700387};
388
Krishna Konda6c5d0f42013-04-12 16:44:26 -0700389/* Drive strength recommendations for clock line from hardware team is 10 mA.
390 * But since the driver has been been using the below values from the start
391 * without any problems, continue to use those.
392 */
393&sdcc1 {
394 qcom,pad-drv-on = <0x7 0x4 0x4>; /* 16mA, 10mA, 10mA */
395};
396
397&sdcc2 {
398 qcom,pad-drv-on = <0x7 0x4 0x4>; /* 16mA, 10mA, 10mA */
399};
400
401&sdhc_1 {
402 qcom,pad-drv-on = <0x7 0x4 0x4>; /* 16mA, 10mA, 10mA */
403};
404
405&sdhc_2 {
406 qcom,pad-drv-on = <0x7 0x4 0x4>; /* 16mA, 10mA, 10mA */
407};
408
Mayank Rana3d073cf2012-12-18 10:23:27 +0530409&uart7 {
410 status = "ok";
Saket Saurabh63789cc2013-03-07 13:24:12 +0530411 qcom,tx-gpio = <&msmgpio 41 0x00>;
412 qcom,rx-gpio = <&msmgpio 42 0x00>;
413 qcom,cts-gpio = <&msmgpio 43 0x00>;
414 qcom,rfr-gpio = <&msmgpio 44 0x00>;
Saket Saurabh4e68fe92013-05-03 14:41:44 +0530415 qcom,inject-rx-on-wakeup = <1>;
416 qcom,rx-char-to-inject = <0xFD>;
Mayank Rana3d073cf2012-12-18 10:23:27 +0530417};
418
Jack Pham43ac4272012-12-05 18:02:19 -0800419&usb3 {
420 qcom,otg-capability;
421};
422
David Keiteldb2602d2012-11-27 15:59:54 -0800423&pm8941_chg {
424 status = "ok";
425
David Keitele89d4782013-03-27 11:29:59 -0700426 qcom,chgr@1000 {
David Keiteldb2602d2012-11-27 15:59:54 -0800427 status = "ok";
428 };
429
David Keitele89d4782013-03-27 11:29:59 -0700430 qcom,buck@1100 {
David Keiteldb2602d2012-11-27 15:59:54 -0800431 status = "ok";
432 };
433
David Keitele89d4782013-03-27 11:29:59 -0700434 qcom,usb-chgpth@1300 {
David Keiteldb2602d2012-11-27 15:59:54 -0800435 status = "ok";
436 };
437
David Keitele89d4782013-03-27 11:29:59 -0700438 qcom,dc-chgpth@1400 {
David Keiteldb2602d2012-11-27 15:59:54 -0800439 status = "ok";
440 };
441
David Keitele89d4782013-03-27 11:29:59 -0700442 qcom,boost@1500 {
David Keiteldb2602d2012-11-27 15:59:54 -0800443 status = "ok";
444 };
445
446 qcom,chg-misc@1600 {
447 status = "ok";
448 };
449};
450
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700451&pm8941_gpios {
452 gpio@c000 { /* GPIO 1 */
453 };
454
455 gpio@c100 { /* GPIO 2 */
456 };
457
458 gpio@c200 { /* GPIO 3 */
459 qcom,mode = <0>;
460 qcom,pull = <0>;
461 qcom,vin-sel = <2>;
Michael Bohand734fb22012-10-30 14:19:22 -0700462 qcom,src-sel = <0>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700463 };
464
465 gpio@c300 { /* GPIO 4 */
466 qcom,mode = <0>;
467 qcom,pull = <0>;
468 qcom,vin-sel = <2>;
Michael Bohand734fb22012-10-30 14:19:22 -0700469 qcom,src-sel = <0>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700470 };
471
472 gpio@c400 { /* GPIO 5 */
473 qcom,mode = <0>;
474 qcom,pull = <0>;
475 qcom,vin-sel = <2>;
Michael Bohand734fb22012-10-30 14:19:22 -0700476 qcom,src-sel = <0>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700477 };
478
479 gpio@c500 { /* GPIO 6 */
480 };
481
482 gpio@c600 { /* GPIO 7 */
483 };
484
485 gpio@c700 { /* GPIO 8 */
486 };
487
488 gpio@c800 { /* GPIO 9 */
489 };
490
491 gpio@c900 { /* GPIO 10 */
492 };
493
494 gpio@ca00 { /* GPIO 11 */
495 };
496
497 gpio@cb00 { /* GPIO 12 */
498 };
499
500 gpio@cc00 { /* GPIO 13 */
501 };
502
503 gpio@cd00 { /* GPIO 14 */
504 };
505
506 gpio@ce00 { /* GPIO 15 */
507 qcom,mode = <1>;
508 qcom,output-type = <0>;
509 qcom,pull = <5>;
510 qcom,vin-sel = <2>;
Kiran Kandi1a35a222013-05-02 16:53:53 -0700511 qcom,out-strength = <1>;
Michael Bohand734fb22012-10-30 14:19:22 -0700512 qcom,src-sel = <2>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700513 qcom,master-en = <1>;
514 };
515
516 gpio@cf00 { /* GPIO 16 */
Amy Maloche527acc42012-12-07 18:40:54 -0800517 qcom,mode = <1>;
518 qcom,output-type = <0>;
519 qcom,pull = <2>;
520 qcom,vin-sel = <2>;
521 qcom,out-strength = <2>;
522 qcom,src-sel = <2>;
523 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700524 };
525
526 gpio@d000 { /* GPIO 17 */
527 };
528
529 gpio@d100 { /* GPIO 18 */
David Collinsf3c0e562012-12-20 11:45:06 -0800530 /* usb2_otg_sw regulator enable */
531 qcom,mode = <1>; /* Digital output */
532 qcom,output-type = <0>; /* CMOS logic */
533 qcom,invert = <0>; /* Output low initially */
534 qcom,vin-sel = <2>; /* PM8941 S3 = 1.8 V */
535 qcom,src-sel = <0>; /* Constant */
536 qcom,out-strength = <2>; /* Medium drive strength */
537 qcom,master-en = <1>; /* Enable GPIO */
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700538 };
539
540 gpio@d200 { /* GPIO 19 */
541 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
542 qcom,output-type = <0>; /* QPNP_PIN_OUT_BUF_CMOS */
543 qcom,pull = <5>; /* QPNP_PIN_PULL_NO */
544 qcom,vin-sel = <2>; /* QPNP_PIN_VIN2 */
545 qcom,out-strength = <2>; /* QPNP_PIN_OUT_STRENGTH_MED */
Michael Bohand734fb22012-10-30 14:19:22 -0700546 qcom,src-sel = <0>; /* QPNP_PIN_SEL_FUNC_CONSTANT */
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700547 qcom,master-en = <1>;
548 };
549
550 gpio@d300 { /* GPIO 20 */
Fred Oh705c64f2013-03-07 14:25:40 -0800551 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
552 qcom,output-type = <0>; /* QPNP_PIN_OUT_BUF_CMOS */
553 qcom,invert = <0>; /* Output low initially */
554 qcom,pull = <5>; /* QPNP_PIN_PULL_NO */
555 qcom,vin-sel = <2>; /* QPNP_PIN_VIN2 */
556 qcom,out-strength = <2>; /* QPNP_PIN_OUT_STRENGTH_MED */
557 qcom,src-sel = <0>; /* QPNP_PIN_SEL_FUNC_CONSTANT */
558 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700559 };
560
561 gpio@d400 { /* GPIO 21 */
562 };
563
564 gpio@d500 { /* GPIO 22 */
565 };
566
567 gpio@d600 { /* GPIO 23 */
568 };
569
570 gpio@d700 { /* GPIO 24 */
571 };
572
573 gpio@d800 { /* GPIO 25 */
574 };
575
576 gpio@d900 { /* GPIO 26 */
577 };
578
579 gpio@da00 { /* GPIO 27 */
580 };
581
582 gpio@db00 { /* GPIO 28 */
583 };
584
585 gpio@dc00 { /* GPIO 29 */
586 qcom,pull = <0>; /* set to default pull */
587 qcom,master-en = <1>;
588 qcom,vin-sel = <2>; /* select 1.8 V source */
589 };
590
591 gpio@dd00 { /* GPIO 30 */
592 };
593
594 gpio@de00 { /* GPIO 31 */
595 };
596
597 gpio@df00 { /* GPIO 32 */
598 };
599
600 gpio@e000 { /* GPIO 33 */
601 };
602
603 gpio@e100 { /* GPIO 34 */
604 };
605
606 gpio@e200 { /* GPIO 35 */
607 };
608
609 gpio@e300 { /* GPIO 36 */
Kuogee Hsieh865d0da2013-04-30 09:11:43 -0700610 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
611 qcom,output-type = <0>; /* QPNP_PIN_OUT_BUF_CMOS */
612 qcom,pull = <5>; /* QPNP_PIN_PULL_NO */
613 qcom,vin-sel = <2>; /* QPNP_PIN_VIN2 */
614 qcom,out-strength = <3>; /* QPNP_PIN_OUT_STRENGTH_HIGH */
615 qcom,src-sel = <3>; /* QPNP_PIN_SEL_FUNC_2 */
616 qcom,master-en = <1>;
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700617 };
618};
619
620&pm8941_mpps {
621
622 mpp@a000 { /* MPP 1 */
Michael Bohanbea1f582013-03-21 17:29:49 -0700623 status = "disabled";
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700624 };
625
626 mpp@a100 { /* MPP 2 */
627 };
628
629 mpp@a200 { /* MPP 3 */
630 };
631
632 mpp@a300 { /* MPP 4 */
633 };
634
635 mpp@a400 { /* MPP 5 */
636 /* SPI_ETH config */
637 qcom,mode = <1>; /* DIG_OUT */
638 qcom,output-type = <0>; /* CMOS */
639 qcom,vin-sel = <2>; /* PM8941_S3 1.8V > 1.6V */
Michael Bohand734fb22012-10-30 14:19:22 -0700640 qcom,src-sel = <0>; /* CONSTANT */
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700641 qcom,master-en = <1>; /* ENABLE MPP */
642 };
643
644 mpp@a500 { /* MPP 6 */
645 /* SPI_ETH_RST config */
646 qcom,mode = <1>; /* DIG_OUT */
647 qcom,output-type = <0>; /* CMOS */
648 qcom,vin-sel = <2>; /* PM8941_S3 1.8V > 1.6V */
Michael Bohand734fb22012-10-30 14:19:22 -0700649 qcom,src-sel = <0>; /* CONSTANT */
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -0700650 qcom,master-en = <1>; /* ENABLE MPP */
651 };
652
653 mpp@a600 { /* MPP 7 */
654 };
655
656 mpp@a700 { /* MPP 8 */
657 };
658};
659
660&pm8841_mpps {
661
662 mpp@a000 { /* MPP 1 */
663 };
664
665 mpp@a100 { /* MPP 2 */
666 };
667
668 mpp@a200 { /* MPP 3 */
669 };
670
671 mpp@a300 { /* MPP 4 */
672 };
673};
Kiran Kandi4041f7f2013-02-07 23:17:18 -0800674
Pratik Patele69f8a92013-03-20 11:30:55 -0700675/* CoreSight */
676&tpiu {
677 qcom,seta-gpios = <&msmgpio 31 0>,
678 <&msmgpio 32 0>,
679 <&msmgpio 33 0>,
680 <&msmgpio 34 0>,
681 <&msmgpio 35 0>,
682 <&msmgpio 36 0>,
683 <&msmgpio 37 0>,
684 <&msmgpio 38 0>,
685 <&msmgpio 39 0>,
686 <&msmgpio 40 0>,
687 <&msmgpio 41 0>,
688 <&msmgpio 42 0>,
689 <&msmgpio 43 0>,
690 <&msmgpio 44 0>,
691 <&msmgpio 45 0>,
692 <&msmgpio 46 0>,
693 <&msmgpio 47 0>,
694 <&msmgpio 48 0>;
695 qcom,seta-gpios-func = <4 4 4 3 4 4 4 3 4 3 5 5 5 5 4 4 5 5>;
696 qcom,seta-gpios-drv = <7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7>;
697 qcom,seta-gpios-pull = <0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0>;
698 qcom,seta-gpios-dir = <2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2>;
699
700 qcom,setb-gpios = <&msmgpio 15 0>,
701 <&msmgpio 16 0>,
702 <&msmgpio 17 0>,
703 <&msmgpio 18 0>,
704 <&msmgpio 19 0>,
705 <&msmgpio 20 0>,
706 <&msmgpio 21 0>,
707 <&msmgpio 22 0>,
708 <&msmgpio 23 0>,
709 <&msmgpio 24 0>,
710 <&msmgpio 25 0>,
711 <&msmgpio 26 0>,
712 <&msmgpio 27 0>,
713 <&msmgpio 28 0>,
714 <&msmgpio 89 0>,
715 <&msmgpio 90 0>,
716 <&msmgpio 91 0>,
717 <&msmgpio 92 0>;
718 qcom,setb-gpios-func = <2 2 2 2 5 5 5 5 6 6 6 7 7 5 2 3 3 3>;
719 qcom,setb-gpios-drv = <7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7>;
720 qcom,setb-gpios-pull = <0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0>;
721 qcom,setb-gpios-dir = <2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2>;
722};
723
Kiran Kandi4041f7f2013-02-07 23:17:18 -0800724&slim_msm {
725 taiko_codec {
726 qcom,cdc-micbias1-ext-cap;
727 qcom,cdc-micbias3-ext-cap;
728 qcom,cdc-micbias4-ext-cap;
Joonwoo Parkdf0d5a92012-12-12 14:08:32 -0800729
730 /* If boot isn't available, vph_pwr_vreg can be used instead */
731 cdc-vdd-spkdrv-supply = <&pm8941_boost>;
732 qcom,cdc-vdd-spkdrv-voltage = <5000000 5000000>;
733 qcom,cdc-vdd-spkdrv-current = <1250000>;
734
735 qcom,cdc-on-demand-supplies = "cdc-vdd-spkdrv";
Kiran Kandi4041f7f2013-02-07 23:17:18 -0800736 };
737};