blob: 00e90f33ce580ac600a398102b4aadcdc51626dd [file] [log] [blame]
Simmi Pateriya48403aa2013-11-08 14:20:58 +05301/* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -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
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -070013/include/ "msm8226-camera-sensor-cdp.dtsi"
14
15&soc {
16 serial@f991f000 {
17 status = "ok";
18 };
19
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -070020 i2c@f9927000 { /* BLSP1 QUP5 */
21 synaptics@20 {
22 compatible = "synaptics,rmi4";
23 reg = <0x20>;
24 interrupt-parent = <&msmgpio>;
25 interrupts = <17 0x2008>;
26 vdd-supply = <&pm8226_l19>;
27 vcc_i2c-supply = <&pm8226_lvs1>;
28 synaptics,reset-gpio = <&msmgpio 16 0x00>;
29 synaptics,irq-gpio = <&msmgpio 17 0x2008>;
30 synaptics,button-map = <139 102 158>;
Sarada Prasanna Garnayak41e2ad82013-11-18 17:21:56 +053031 synaptics,fw-image-name = "PR1468813.img";
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -070032 synaptics,i2c-pull-up;
Amy Maloche80c15572013-09-19 15:15:23 -070033 synaptics,power-down;
34 synaptics,disable-gpios;
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -070035 };
36 };
37
38 gpio_keys {
39 compatible = "gpio-keys";
40 input-name = "gpio-keys";
41
42 camera_focus {
43 label = "camera_focus";
44 gpios = <&msmgpio 108 0x1>;
45 linux,input-type = <1>;
46 linux,code = <0x210>;
47 gpio-key,wakeup;
48 debounce-interval = <15>;
49 };
50
51 camera_snapshot {
52 label = "camera_snapshot";
53 gpios = <&msmgpio 107 0x1>;
54 linux,input-type = <1>;
55 linux,code = <0x2fe>;
56 gpio-key,wakeup;
57 debounce-interval = <15>;
58 };
59
60 vol_up {
61 label = "volume_up";
62 gpios = <&msmgpio 106 0x1>;
63 linux,input-type = <1>;
64 linux,code = <115>;
65 gpio-key,wakeup;
66 debounce-interval = <15>;
67 };
68 };
69
70 spi@f9923000 {
71 ethernet-switch@3 {
72 compatible = "micrel,ks8851";
73 reg = <3>;
74 interrupt-parent = <&msmgpio>;
fangpanf6f96072013-07-17 16:10:34 -070075 interrupts = <115 0x8>;
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -070076 spi-max-frequency = <4800000>;
77 rst-gpio = <&msmgpio 114 0>;
78 vdd-io-supply = <&pm8226_lvs1>;
79 vdd-phy-supply = <&pm8226_lvs1>;
80 };
81 };
82
83 sound {
84 qcom,audio-routing =
85 "RX_BIAS", "MCLK",
86 "LDO_H", "MCLK",
87 "SPK_OUT", "MCLK",
88 "SPK_OUT", "EXT_VDD_SPKR",
89 "AMIC1", "MIC BIAS1 Internal1",
90 "MIC BIAS1 Internal1", "Handset Mic",
91 "AMIC2", "MIC BIAS2 External",
92 "MIC BIAS2 External", "Headset Mic",
93 "AMIC4", "MIC BIAS2 External",
94 "MIC BIAS2 External", "ANCRight Headset Mic",
95 "AMIC5", "MIC BIAS2 External",
96 "MIC BIAS2 External", "ANCLeft Headset Mic",
97 "DMIC1", "MIC BIAS1 External",
98 "MIC BIAS1 External", "Digital Mic1",
99 "DMIC2", "MIC BIAS1 External",
100 "MIC BIAS1 External", "Digital Mic2",
101 "DMIC3", "MIC BIAS3 External",
102 "MIC BIAS3 External", "Digital Mic3",
103 "DMIC4", "MIC BIAS3 External",
104 "MIC BIAS3 External", "Digital Mic4";
105
106 qcom,cdc-mclk-gpios = <&pm8226_gpios 1 0>;
107 qcom,cdc-vdd-spkr-gpios = <&pm8226_gpios 2 0>;
Phani Kumar Uppalapatibcaa52f2013-09-23 20:27:59 -0700108 qcom,headset-jack-type-NC;
Simmi Pateriya48403aa2013-11-08 14:20:58 +0530109 qcom,mbhc-audio-jack-type = "6-pole-jack";
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -0700110 };
Phani Kumar Uppalapatic2f9c222013-05-09 19:17:58 -0700111
112 sound-9302 {
113 qcom,audio-routing =
114 "RX_BIAS", "MCLK",
115 "LDO_H", "MCLK",
116 "SPK_OUT", "MCLK",
117 "SPK_OUT", "EXT_VDD_SPKR",
118 "AMIC1", "MIC BIAS1 External",
119 "MIC BIAS1 External", "Handset Mic",
120 "AMIC2", "MIC BIAS2 External",
121 "MIC BIAS2 External", "Headset Mic",
122 "AMIC3", "MIC BIAS1 External",
123 "MIC BIAS1 External", "Handset Mic";
124
125 qcom,cdc-mclk-gpios = <&pm8226_gpios 1 0>;
126 qcom,cdc-vdd-spkr-gpios = <&pm8226_gpios 2 0>;
Phani Kumar Uppalapatibcaa52f2013-09-23 20:27:59 -0700127 qcom,headset-jack-type-NC;
Phani Kumar Uppalapatic2f9c222013-05-09 19:17:58 -0700128 };
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -0700129};
130
131&sdcc1 {
132 vdd-supply = <&pm8226_l17>;
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -0700133 qcom,vdd-voltage-level = <2950000 2950000>;
134 qcom,vdd-current-level = <800 500000>;
135
136 vdd-io-supply = <&pm8226_l6>;
137 qcom,vdd-io-always-on;
138 qcom,vdd-io-voltage-level = <1800000 1800000>;
139 qcom,vdd-io-current-level = <250 154000>;
140
141 qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
142 qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
143 qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */
144 qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */
145
146 qcom,clk-rates = <400000 25000000 50000000 100000000 200000000>;
147 qcom,sup-voltages = <2950 2950>;
148
149 qcom,bus-speed-mode = "HS200_1p8v", "DDR_1p8v";
150 qcom,nonremovable;
151
152 status = "disabled";
153};
154
155&sdhc_1 {
156 vdd-supply = <&pm8226_l17>;
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -0700157 qcom,vdd-voltage-level = <2950000 2950000>;
158 qcom,vdd-current-level = <800 500000>;
159
160 vdd-io-supply = <&pm8226_l6>;
161 qcom,vdd-io-always-on;
162 qcom,vdd-io-voltage-level = <1800000 1800000>;
163 qcom,vdd-io-current-level = <250 154000>;
164
165 qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
166 qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
167 qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */
168 qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */
169
170 qcom,clk-rates = <400000 25000000 50000000 100000000 200000000>;
171 qcom,bus-speed-mode = "HS200_1p8v", "DDR_1p8v";
172 qcom,nonremovable;
173
174 status = "ok";
175};
176
177&sdcc2 {
178 vdd-supply = <&pm8226_l18>;
179 qcom,vdd-voltage-level = <2950000 2950000>;
180 qcom,vdd-current-level = <9000 800000>;
181
182 vdd-io-supply = <&pm8226_l21>;
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -0700183 qcom,vdd-io-voltage-level = <1800000 2950000>;
184 qcom,vdd-io-current-level = <6 22000>;
185
186 qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
187 qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
188 qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */
189 qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */
190
191 qcom,clk-rates = <400000 25000000 50000000 100000000 200000000>;
192 qcom,sup-voltages = <2950 2950>;
193
194 qcom,xpc;
195 qcom,bus-speed-mode = "SDR12", "SDR25", "SDR50", "DDR50", "SDR104";
196 qcom,current-limit = <600>;
197
198 #address-cells = <0>;
199 interrupt-parent = <&sdcc2>;
200 interrupts = <0 1 2>;
201 #interrupt-cells = <1>;
202 interrupt-map-mask = <0xffffffff>;
203 interrupt-map = <0 &intc 0 125 0
204 1 &intc 0 220 0
205 2 &msmgpio 38 0x3>;
206 interrupt-names = "core_irq", "bam_irq", "status_irq";
207 cd-gpios = <&msmgpio 38 0x1>;
208
209 status = "disabled";
210};
211
212&sdhc_2 {
213 vdd-supply = <&pm8226_l18>;
214 qcom,vdd-voltage-level = <2950000 2950000>;
215 qcom,vdd-current-level = <9000 800000>;
216
217 vdd-io-supply = <&pm8226_l21>;
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -0700218 qcom,vdd-io-voltage-level = <1800000 2950000>;
219 qcom,vdd-io-current-level = <6 22000>;
220
221 qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
222 qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
223 qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */
224 qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */
225
226 qcom,clk-rates = <400000 25000000 50000000 100000000 200000000>;
227
228 #address-cells = <0>;
229 interrupt-parent = <&sdhc_2>;
230 interrupts = <0 1 2>;
231 #interrupt-cells = <1>;
232 interrupt-map-mask = <0xffffffff>;
233 interrupt-map = <0 &intc 0 125 0
234 1 &intc 0 221 0
235 2 &msmgpio 38 0x3>;
236 interrupt-names = "hc_irq", "pwr_irq", "status_irq";
237 cd-gpios = <&msmgpio 38 0x1>;
238
239 status = "ok";
240};
241
Krishna Kondaf92e4262013-07-08 16:21:57 -0700242&sdcc3 {
243 qcom,sup-voltages = <1800 1800>;
244 status = "disabled";
245};
246
247&sdhc_3 {
248 qcom,sup-voltages = <1800 1800>;
249 status = "disabled";
250};
251
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -0700252&spmi_bus {
253 qcom,pm8226@0 {
254 qcom,leds@a100 {
255 status = "okay";
256 qcom,led_mpp_2 {
257 label = "mpp";
258 linux,name = "button-backlight";
259 linux,default-trigger = "none";
260 qcom,default-state = "off";
261 qcom,max-current = <40>;
262 qcom,current-setting = <5>;
263 qcom,id = <6>;
264 qcom,mode = "manual";
265 qcom,source-sel = <1>;
266 qcom,mode-ctrl = <0x60>;
267 };
268 };
269
270 qcom,leds@a300 {
271 status = "okay";
272 qcom,led_mpp_4 {
273 label = "mpp";
274 linux,name = "green";
Shantanu Jain997a42a2013-08-22 16:55:59 +0530275 linux,default-trigger = "battery-full";
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -0700276 qcom,default-state = "off";
277 qcom,max-current = <40>;
278 qcom,current-setting = <5>;
279 qcom,id = <6>;
Amy Malocheba8aa742013-06-05 11:08:40 -0700280 qcom,mode = "pwm";
281 qcom,pwm-us = <1000>;
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -0700282 qcom,source-sel = <8>;
283 qcom,mode-ctrl = <0x60>;
284 qcom,pwm-channel = <0>;
285 qcom,start-idx = <1>;
Amy Maloched70ffba2013-06-25 14:04:29 -0700286 qcom,ramp-step-ms = <120>;
287 qcom,duty-pcts = [00 00 00 00 00
288 00 00 00 00 00
289 50 00 00 00 00
290 00 00 00 00 00
291 00];
Amy Malocheba8aa742013-06-05 11:08:40 -0700292 qcom,use-blink;
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -0700293 };
294 };
295
296 qcom,leds@a500 {
297 status = "okay";
298 qcom,led_mpp_6 {
299 label = "mpp";
300 linux,name = "red";
Shantanu Jain997a42a2013-08-22 16:55:59 +0530301 linux,default-trigger = "battery-charging";
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -0700302 qcom,default-state = "off";
303 qcom,max-current = <40>;
304 qcom,current-setting = <5>;
305 qcom,id = <6>;
Amy Malocheba8aa742013-06-05 11:08:40 -0700306 qcom,mode = "pwm";
307 qcom,pwm-us = <1000>;
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -0700308 qcom,mode-ctrl = <0x60>;
309 qcom,source-sel = <10>;
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -0700310 qcom,pwm-channel = <5>;
311 qcom,start-idx = <1>;
Amy Maloched70ffba2013-06-25 14:04:29 -0700312 qcom,ramp-step-ms = <120>;
313 qcom,duty-pcts = [00 00 00 00 00
314 00 00 00 00 00
315 50 00 00 00 00
316 00 00 00 00 00
317 00];
Amy Malocheba8aa742013-06-05 11:08:40 -0700318 qcom,use-blink;
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -0700319 };
320 };
321 };
322
323 qcom,pm8226@1 {
324 qcom,leds@d800 {
325 status = "okay";
326 qcom,wled_0 {
327 label = "wled";
328 linux,name = "wled:backlight";
329 linux,default-trigger = "bkl-trigger";
330 qcom,cs-out-en;
331 qcom,op-fdbck = <1>;
332 qcom,default-state = "on";
Wu Fenglin2e57afc2013-06-05 18:07:13 +0800333 qcom,max-current = <20>;
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -0700334 qcom,ctrl-delay-us = <0>;
335 qcom,boost-curr-lim = <3>;
336 qcom,cp-sel = <0>;
Amy Maloche9eccb4c2013-07-12 14:31:56 -0700337 qcom,switch-freq = <11>;
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -0700338 qcom,ovp-val = <0>;
339 qcom,num-strings = <1>;
340 qcom,id = <0>;
341 };
342 };
Shantanu Jainab582d82013-08-22 17:00:27 +0530343
344 qcom,vibrator@c000 {
345 status = "okay";
346 qcom,vib-timeout-ms = <15000>;
347 qcom,vib-vtg-level-mV = <3100>;
348 };
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -0700349 };
350};
351
352&pm8226_gpios {
353 gpio@c000 { /* GPIO 1 */
354 /* XO_PMIC_CDC_MCLK enable for tapan codec */
355 qcom,mode = <1>; /* Digital output */
356 qcom,output-type = <0>; /* CMOS logic */
357 qcom,pull = <5>; /* QPNP_PIN_PULL_NO*/
358 qcom,vin-sel = <3>; /* QPNP_PIN_VIN3 */
359 qcom,out-strength = <3>;/* QPNP_PIN_OUT_STRENGTH_HIGH */
360 qcom,src-sel = <2>; /* QPNP_PIN_SEL_FUNC_1 */
361 qcom,master-en = <1>; /* Enable GPIO */
362 };
363
364 gpio@c100 { /* GPIO 2 */
365 qcom,mode = <1>;
366 qcom,output-type = <0>;
367 qcom,pull = <5>;
368 qcom,vin-sel = <3>;
369 qcom,out-strength = <3>;
370 qcom,src-sel = <2>;
371 qcom,master-en = <1>;
372 };
373
374 gpio@c200 { /* GPIO 3 */
375 };
376
377 gpio@c300 { /* GPIO 4 */
378 };
379
380 gpio@c400 { /* GPIO 5 */
381 };
382
383 gpio@c500 { /* GPIO 6 */
384 };
385
386 gpio@c600 { /* GPIO 7 */
387 };
388
389 gpio@c700 { /* GPIO 8 */
390 };
391};
392
393&pm8226_mpps {
394 mpp@a000 { /* MPP 1 */
395 };
396
397 mpp@a100 { /* MPP 2 */
398 };
399
400 mpp@a200 { /* MPP 3 */
401 };
402
403 mpp@a300 { /* MPP 4 */
404 };
405
406 mpp@a400 { /* MPP 5 */
Siddartha Mohanadoss808ecdb2013-05-17 14:45:11 -0700407 /* PA_THERM0 config */
408 qcom,mode = <4>; /* AIN input */
409 qcom,invert = <1>; /* Enable MPP */
410 qcom,ain-route = <0>; /* AMUX 5 */
411 qcom,master-en = <1>;
412 qcom,src-sel = <0>; /* Function constant */
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -0700413 };
414
415 mpp@a500 { /* MPP 6 */
416 };
417
418 mpp@a600 { /* MPP 7 */
419 };
420
421 mpp@a700 { /* MPP 8 */
Siddartha Mohanadoss808ecdb2013-05-17 14:45:11 -0700422 /* PA_THERM1 config */
423 qcom,mode = <4>; /* AIN input */
424 qcom,invert = <1>; /* Enable MPP */
425 qcom,ain-route = <3>; /* AMUX 8 */
426 qcom,master-en = <1>;
427 qcom,src-sel = <0>; /* Function constant */
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -0700428 };
429};
430
431&pm8226_chg {
432 qcom,charging-disabled;
433 qcom,use-default-batt-values;
Fenglin Wu0ed3c472013-03-22 11:26:14 -0700434
435 qcom,bat-if@1200 {
436 status = "disabled";
437 };
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -0700438};
David Collins091bb242013-05-23 11:08:24 -0700439
Siddartha Mohanadoss808ecdb2013-05-17 14:45:11 -0700440&pm8226_vadc {
441 chan@14 {
442 label = "pa_therm0";
443 reg = <0x14>;
444 qcom,decimation = <0>;
445 qcom,pre-div-channel-scaling = <0>;
446 qcom,calibration-type = "ratiometric";
447 qcom,scale-function = <2>;
448 qcom,hw-settle-time = <2>;
449 qcom,fast-avg-setup = <0>;
450 };
451
452 chan@17 {
453 label = "pa_therm1";
454 reg = <0x17>;
455 qcom,decimation = <0>;
456 qcom,pre-div-channel-scaling = <0>;
457 qcom,calibration-type = "ratiometric";
458 qcom,scale-function = <2>;
459 qcom,hw-settle-time = <2>;
460 qcom,fast-avg-setup = <0>;
461 };
462};
Manoj Raoee91bed2013-06-19 18:49:47 -0700463
464&mdss_mdp {
465 qcom,mdss-pref-prim-intf = "dsi";
466};
467
468&mdss_dsi0 {
469 qcom,dsi-pref-prim-pan = <&dsi_nt35590_720_vid>;
470};
471
472&dsi_nt35590_720_vid {
473 qcom,cont-splash-enabled;
474};