blob: 104cb4cfdc7fa5b9e4ceb424606fa95f86110f84 [file] [log] [blame]
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -07001/* Copyright (c) 2013, The Linux Foundation. All rights reserved.
2 *
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-nt35590-720p-video.dtsi"
14/include/ "msm8226-camera-sensor-cdp.dtsi"
15
16&soc {
17 serial@f991f000 {
18 status = "ok";
19 };
20
21 qcom,mdss_dsi_nt35590_720p_video {
22 status = "ok";
Ray Zhang026ffb82013-06-05 20:25:55 +080023 qcom,cont-splash-enabled;
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -070024 };
25
26 i2c@f9927000 { /* BLSP1 QUP5 */
27 synaptics@20 {
28 compatible = "synaptics,rmi4";
29 reg = <0x20>;
30 interrupt-parent = <&msmgpio>;
31 interrupts = <17 0x2008>;
32 vdd-supply = <&pm8226_l19>;
33 vcc_i2c-supply = <&pm8226_lvs1>;
34 synaptics,reset-gpio = <&msmgpio 16 0x00>;
35 synaptics,irq-gpio = <&msmgpio 17 0x2008>;
36 synaptics,button-map = <139 102 158>;
37 synaptics,i2c-pull-up;
Amy Maloche1f409312013-07-08 17:13:21 -070038 synaptics,power-down;
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -070039 };
40 };
41
42 gpio_keys {
43 compatible = "gpio-keys";
44 input-name = "gpio-keys";
45
46 camera_focus {
47 label = "camera_focus";
48 gpios = <&msmgpio 108 0x1>;
49 linux,input-type = <1>;
50 linux,code = <0x210>;
51 gpio-key,wakeup;
52 debounce-interval = <15>;
53 };
54
55 camera_snapshot {
56 label = "camera_snapshot";
57 gpios = <&msmgpio 107 0x1>;
58 linux,input-type = <1>;
59 linux,code = <0x2fe>;
60 gpio-key,wakeup;
61 debounce-interval = <15>;
62 };
63
64 vol_up {
65 label = "volume_up";
66 gpios = <&msmgpio 106 0x1>;
67 linux,input-type = <1>;
68 linux,code = <115>;
69 gpio-key,wakeup;
70 debounce-interval = <15>;
71 };
72 };
73
74 spi@f9923000 {
75 ethernet-switch@3 {
76 compatible = "micrel,ks8851";
77 reg = <3>;
78 interrupt-parent = <&msmgpio>;
fangpanf6f96072013-07-17 16:10:34 -070079 interrupts = <115 0x8>;
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -070080 spi-max-frequency = <4800000>;
81 rst-gpio = <&msmgpio 114 0>;
82 vdd-io-supply = <&pm8226_lvs1>;
83 vdd-phy-supply = <&pm8226_lvs1>;
84 };
85 };
86
87 sound {
88 qcom,audio-routing =
89 "RX_BIAS", "MCLK",
90 "LDO_H", "MCLK",
91 "SPK_OUT", "MCLK",
92 "SPK_OUT", "EXT_VDD_SPKR",
93 "AMIC1", "MIC BIAS1 Internal1",
94 "MIC BIAS1 Internal1", "Handset Mic",
95 "AMIC2", "MIC BIAS2 External",
96 "MIC BIAS2 External", "Headset Mic",
97 "AMIC4", "MIC BIAS2 External",
98 "MIC BIAS2 External", "ANCRight Headset Mic",
99 "AMIC5", "MIC BIAS2 External",
100 "MIC BIAS2 External", "ANCLeft Headset Mic",
101 "DMIC1", "MIC BIAS1 External",
102 "MIC BIAS1 External", "Digital Mic1",
103 "DMIC2", "MIC BIAS1 External",
104 "MIC BIAS1 External", "Digital Mic2",
105 "DMIC3", "MIC BIAS3 External",
106 "MIC BIAS3 External", "Digital Mic3",
107 "DMIC4", "MIC BIAS3 External",
108 "MIC BIAS3 External", "Digital Mic4";
109
110 qcom,cdc-mclk-gpios = <&pm8226_gpios 1 0>;
111 qcom,cdc-vdd-spkr-gpios = <&pm8226_gpios 2 0>;
112 qcom,headset-jack-type-NO;
113 };
114};
115
116&sdcc1 {
117 vdd-supply = <&pm8226_l17>;
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -0700118 qcom,vdd-voltage-level = <2950000 2950000>;
119 qcom,vdd-current-level = <800 500000>;
120
121 vdd-io-supply = <&pm8226_l6>;
122 qcom,vdd-io-always-on;
123 qcom,vdd-io-voltage-level = <1800000 1800000>;
124 qcom,vdd-io-current-level = <250 154000>;
125
126 qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
127 qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
128 qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */
129 qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */
130
131 qcom,clk-rates = <400000 25000000 50000000 100000000 200000000>;
132 qcom,sup-voltages = <2950 2950>;
133
134 qcom,bus-speed-mode = "HS200_1p8v", "DDR_1p8v";
135 qcom,nonremovable;
136
137 status = "disabled";
138};
139
140&sdhc_1 {
141 vdd-supply = <&pm8226_l17>;
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -0700142 qcom,vdd-voltage-level = <2950000 2950000>;
143 qcom,vdd-current-level = <800 500000>;
144
145 vdd-io-supply = <&pm8226_l6>;
146 qcom,vdd-io-always-on;
147 qcom,vdd-io-voltage-level = <1800000 1800000>;
148 qcom,vdd-io-current-level = <250 154000>;
149
150 qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
151 qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
152 qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */
153 qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */
154
155 qcom,clk-rates = <400000 25000000 50000000 100000000 200000000>;
156 qcom,bus-speed-mode = "HS200_1p8v", "DDR_1p8v";
157 qcom,nonremovable;
158
159 status = "ok";
160};
161
162&sdcc2 {
163 vdd-supply = <&pm8226_l18>;
164 qcom,vdd-voltage-level = <2950000 2950000>;
165 qcom,vdd-current-level = <9000 800000>;
166
167 vdd-io-supply = <&pm8226_l21>;
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -0700168 qcom,vdd-io-voltage-level = <1800000 2950000>;
169 qcom,vdd-io-current-level = <6 22000>;
170
171 qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
172 qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
173 qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */
174 qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */
175
176 qcom,clk-rates = <400000 25000000 50000000 100000000 200000000>;
177 qcom,sup-voltages = <2950 2950>;
178
179 qcom,xpc;
180 qcom,bus-speed-mode = "SDR12", "SDR25", "SDR50", "DDR50", "SDR104";
181 qcom,current-limit = <600>;
182
183 #address-cells = <0>;
184 interrupt-parent = <&sdcc2>;
185 interrupts = <0 1 2>;
186 #interrupt-cells = <1>;
187 interrupt-map-mask = <0xffffffff>;
188 interrupt-map = <0 &intc 0 125 0
189 1 &intc 0 220 0
190 2 &msmgpio 38 0x3>;
191 interrupt-names = "core_irq", "bam_irq", "status_irq";
192 cd-gpios = <&msmgpio 38 0x1>;
193
194 status = "disabled";
195};
196
197&sdhc_2 {
198 vdd-supply = <&pm8226_l18>;
199 qcom,vdd-voltage-level = <2950000 2950000>;
200 qcom,vdd-current-level = <9000 800000>;
201
202 vdd-io-supply = <&pm8226_l21>;
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -0700203 qcom,vdd-io-voltage-level = <1800000 2950000>;
204 qcom,vdd-io-current-level = <6 22000>;
205
206 qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
207 qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
208 qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */
209 qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */
210
211 qcom,clk-rates = <400000 25000000 50000000 100000000 200000000>;
212
213 #address-cells = <0>;
214 interrupt-parent = <&sdhc_2>;
215 interrupts = <0 1 2>;
216 #interrupt-cells = <1>;
217 interrupt-map-mask = <0xffffffff>;
218 interrupt-map = <0 &intc 0 125 0
219 1 &intc 0 221 0
220 2 &msmgpio 38 0x3>;
221 interrupt-names = "hc_irq", "pwr_irq", "status_irq";
222 cd-gpios = <&msmgpio 38 0x1>;
223
224 status = "ok";
225};
226
Krishna Kondaf92e4262013-07-08 16:21:57 -0700227&sdcc3 {
228 qcom,sup-voltages = <1800 1800>;
229 status = "disabled";
230};
231
232&sdhc_3 {
233 qcom,sup-voltages = <1800 1800>;
234 status = "disabled";
235};
236
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -0700237&spmi_bus {
238 qcom,pm8226@0 {
239 qcom,leds@a100 {
240 status = "okay";
241 qcom,led_mpp_2 {
242 label = "mpp";
243 linux,name = "button-backlight";
244 linux,default-trigger = "none";
245 qcom,default-state = "off";
246 qcom,max-current = <40>;
247 qcom,current-setting = <5>;
248 qcom,id = <6>;
249 qcom,mode = "manual";
250 qcom,source-sel = <1>;
251 qcom,mode-ctrl = <0x60>;
252 };
253 };
254
255 qcom,leds@a300 {
256 status = "okay";
257 qcom,led_mpp_4 {
258 label = "mpp";
259 linux,name = "green";
260 linux,default-trigger = "none";
261 qcom,default-state = "off";
262 qcom,max-current = <40>;
263 qcom,current-setting = <5>;
264 qcom,id = <6>;
Amy Malocheba8aa742013-06-05 11:08:40 -0700265 qcom,mode = "pwm";
266 qcom,pwm-us = <1000>;
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -0700267 qcom,source-sel = <8>;
268 qcom,mode-ctrl = <0x60>;
269 qcom,pwm-channel = <0>;
270 qcom,start-idx = <1>;
Amy Maloched70ffba2013-06-25 14:04:29 -0700271 qcom,ramp-step-ms = <120>;
272 qcom,duty-pcts = [00 00 00 00 00
273 00 00 00 00 00
274 50 00 00 00 00
275 00 00 00 00 00
276 00];
Amy Malocheba8aa742013-06-05 11:08:40 -0700277 qcom,use-blink;
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -0700278 };
279 };
280
281 qcom,leds@a500 {
282 status = "okay";
283 qcom,led_mpp_6 {
284 label = "mpp";
285 linux,name = "red";
286 linux,default-trigger = "none";
287 qcom,default-state = "off";
288 qcom,max-current = <40>;
289 qcom,current-setting = <5>;
290 qcom,id = <6>;
Amy Malocheba8aa742013-06-05 11:08:40 -0700291 qcom,mode = "pwm";
292 qcom,pwm-us = <1000>;
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -0700293 qcom,mode-ctrl = <0x60>;
294 qcom,source-sel = <10>;
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -0700295 qcom,pwm-channel = <5>;
296 qcom,start-idx = <1>;
Amy Maloched70ffba2013-06-25 14:04:29 -0700297 qcom,ramp-step-ms = <120>;
298 qcom,duty-pcts = [00 00 00 00 00
299 00 00 00 00 00
300 50 00 00 00 00
301 00 00 00 00 00
302 00];
Amy Malocheba8aa742013-06-05 11:08:40 -0700303 qcom,use-blink;
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -0700304 };
305 };
306 };
307
308 qcom,pm8226@1 {
309 qcom,leds@d800 {
310 status = "okay";
311 qcom,wled_0 {
312 label = "wled";
313 linux,name = "wled:backlight";
314 linux,default-trigger = "bkl-trigger";
315 qcom,cs-out-en;
316 qcom,op-fdbck = <1>;
317 qcom,default-state = "on";
Wu Fenglin2e57afc2013-06-05 18:07:13 +0800318 qcom,max-current = <20>;
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -0700319 qcom,ctrl-delay-us = <0>;
320 qcom,boost-curr-lim = <3>;
321 qcom,cp-sel = <0>;
Amy Maloche9eccb4c2013-07-12 14:31:56 -0700322 qcom,switch-freq = <11>;
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -0700323 qcom,ovp-val = <0>;
324 qcom,num-strings = <1>;
325 qcom,id = <0>;
326 };
327 };
328 };
329};
330
331&pm8226_gpios {
332 gpio@c000 { /* GPIO 1 */
333 /* XO_PMIC_CDC_MCLK enable for tapan codec */
334 qcom,mode = <1>; /* Digital output */
335 qcom,output-type = <0>; /* CMOS logic */
336 qcom,pull = <5>; /* QPNP_PIN_PULL_NO*/
337 qcom,vin-sel = <3>; /* QPNP_PIN_VIN3 */
338 qcom,out-strength = <3>;/* QPNP_PIN_OUT_STRENGTH_HIGH */
339 qcom,src-sel = <2>; /* QPNP_PIN_SEL_FUNC_1 */
340 qcom,master-en = <1>; /* Enable GPIO */
341 };
342
343 gpio@c100 { /* GPIO 2 */
344 qcom,mode = <1>;
345 qcom,output-type = <0>;
346 qcom,pull = <5>;
347 qcom,vin-sel = <3>;
348 qcom,out-strength = <3>;
349 qcom,src-sel = <2>;
350 qcom,master-en = <1>;
351 };
352
353 gpio@c200 { /* GPIO 3 */
354 };
355
356 gpio@c300 { /* GPIO 4 */
357 };
358
359 gpio@c400 { /* GPIO 5 */
360 };
361
362 gpio@c500 { /* GPIO 6 */
363 };
364
365 gpio@c600 { /* GPIO 7 */
366 };
367
368 gpio@c700 { /* GPIO 8 */
369 };
370};
371
372&pm8226_mpps {
373 mpp@a000 { /* MPP 1 */
374 };
375
376 mpp@a100 { /* MPP 2 */
377 };
378
379 mpp@a200 { /* MPP 3 */
380 };
381
382 mpp@a300 { /* MPP 4 */
383 };
384
385 mpp@a400 { /* MPP 5 */
Siddartha Mohanadoss808ecdb2013-05-17 14:45:11 -0700386 /* PA_THERM0 config */
387 qcom,mode = <4>; /* AIN input */
388 qcom,invert = <1>; /* Enable MPP */
389 qcom,ain-route = <0>; /* AMUX 5 */
390 qcom,master-en = <1>;
391 qcom,src-sel = <0>; /* Function constant */
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -0700392 };
393
394 mpp@a500 { /* MPP 6 */
395 };
396
397 mpp@a600 { /* MPP 7 */
398 };
399
400 mpp@a700 { /* MPP 8 */
Siddartha Mohanadoss808ecdb2013-05-17 14:45:11 -0700401 /* PA_THERM1 config */
402 qcom,mode = <4>; /* AIN input */
403 qcom,invert = <1>; /* Enable MPP */
404 qcom,ain-route = <3>; /* AMUX 8 */
405 qcom,master-en = <1>;
406 qcom,src-sel = <0>; /* Function constant */
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -0700407 };
408};
409
410&pm8226_chg {
411 qcom,charging-disabled;
412 qcom,use-default-batt-values;
Fenglin Wu0ed3c472013-03-22 11:26:14 -0700413
414 qcom,bat-if@1200 {
415 status = "disabled";
416 };
Syed Rameez Mustafa8f192fb2013-05-24 12:02:43 -0700417};
David Collins091bb242013-05-23 11:08:24 -0700418
Siddartha Mohanadoss808ecdb2013-05-17 14:45:11 -0700419&pm8226_vadc {
420 chan@14 {
421 label = "pa_therm0";
422 reg = <0x14>;
423 qcom,decimation = <0>;
424 qcom,pre-div-channel-scaling = <0>;
425 qcom,calibration-type = "ratiometric";
426 qcom,scale-function = <2>;
427 qcom,hw-settle-time = <2>;
428 qcom,fast-avg-setup = <0>;
429 };
430
431 chan@17 {
432 label = "pa_therm1";
433 reg = <0x17>;
434 qcom,decimation = <0>;
435 qcom,pre-div-channel-scaling = <0>;
436 qcom,calibration-type = "ratiometric";
437 qcom,scale-function = <2>;
438 qcom,hw-settle-time = <2>;
439 qcom,fast-avg-setup = <0>;
440 };
441};