blob: 1e3d1b3bc553c815bfbf897c1b10943dc4be101c [file] [log] [blame]
Stepan Moskovchenko7731cd12012-10-23 14:44:15 -07001/* Copyright (c) 2012, 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/ {
14 serial@f991e000 {
15 status = "ok";
16 };
17
18 qcom,mdss_edp@fd923400 {
19 status = "ok";
20 };
21
22 i2c@f9967000 {
23 battery@b {
24 compatible = "ti,bq28400-battery";
25 reg = <0xb>;
26 };
27 };
28
29 gpio_keys {
30 compatible = "gpio-keys";
31 input-name = "gpio-keys";
32
33 home {
34 label = "home";
35 gpios = <&pm8941_gpios 1 0x1>;
36 linux,input-type = <1>;
37 linux,code = <102>;
38 gpio-key,wakeup;
39 debounce-interval = <15>;
40 };
41
42 vol_down {
43 label = "volume_down";
44 gpios = <&pm8941_gpios 2 0x1>;
45 linux,input-type = <1>;
46 linux,code = <114>;
47 gpio-key,wakeup;
48 debounce-interval = <15>;
49 };
50
51 vol_up {
52 label = "volume_up";
53 gpios = <&pm8941_gpios 5 0x1>;
54 linux,input-type = <1>;
55 linux,code = <115>;
56 gpio-key,wakeup;
57 debounce-interval = <15>;
58 };
59 };
60
61 qcom,mdss_mdp@fd900000 {
62 qcom,memory-reservation-size = <0x1000000>; /* size 16MB */
63 };
64
65 qcom,hdmi_tx@fd922100 {
66 status = "ok";
67 };
68
69 i2c@f9924000 {
70 atmel_mxt_ts@4a {
71 compatible = "atmel,mxt-ts";
72 reg = <0x4a>;
73 interrupt-parent = <&msmgpio>;
74 interrupts = <61 0x2>;
75 vdd_ana-supply = <&pm8941_l22>;
76 vcc_i2c-supply = <&pm8941_s3>;
77 atmel,reset-gpio = <&msmgpio 60 0x00>;
78 atmel,irq-gpio = <&msmgpio 61 0x00>;
79 atmel,panel-coords = <0 0 1080 1920>;
80 atmel,display-coords = <0 0 1080 1920>;
81 atmel,i2c-pull-up = <1>;
82 atmel,cfg_1 {
83 atmel,family-id = <0xa2>;
84 atmel,variant-id = <0x00>;
85 atmel,version = <0x11>;
86 atmel,build = <0xaa>;
87 atmel,config = [
88 /* Object 6, Instance = 0 */
89 00 00 00 00 00 00
90 /* Object 38, Instance = 0 */
91 16 00 00 14 09 0C 00 00 00 00
92 00 00 00 00 00 00 00 00 00 00
93 00 00 00 00 00 00 00 00 00 00
94 00 00 00 00 00 00 00 00 00 00
95 00 00 00 00 00 00 00 00 00 00
96 00 00 00 00 00 00 00 00 00 00
97 00 00 00 00
98 /* Object 7, Instance = 0 */
99 FF FF 0A 03
100 /* Object 8, Instance = 0 */
101 5F 00 14 14 00 00 00 01 00 00
102 /* Object 9, Instance = 0 */
103 8F 00 00 20 34 00 87 3C 08 03
104 00 05 03 80 0A 14 14 0A 80 07
105 38 04 00 00 00 00 00 00 00 00
106 0F 0F 2E 33 02 00
107 /* Object 15, Instance = 0 */
108 00 00 00 00 00 00 00 00 00 00
109 00
110 /* Object 18, Instance = 0 */
111 04 00
112 /* Object 24, Instance = 0 */
113 00 00 00 00 00 00 00 00 00 00
114 00 00 00 00 00 00 00 00 00
115 /* Object 25, Instance = 0 */
116 00 00 54 6F F0 55 00 00 00 00
117 00 00 00 00 00
118 /* Object 27, Instance = 0 */
119 00 00 00 00 00 00 00
120 /* Object 40, Instance = 0 */
121 00 14 14 14 14
122 /* Object 42, Instance = 0 */
123 20 14 00 00 00 14 11 00 03 00
124 /* Object 43, Instance = 0 */
125 09 00 01 01 91 00 80 00 00 00
126 00 00
127 /* Object 46, Instance = 0 */
128 00 00 10 10 00 00 01 00 00 0F
129 0A
130 /* Object 47, Instance = 0 */
131 00 14 23 02 05 1E 01 78 03 10
132 00 00 0C 00 00 00 00 00 00 00
133 00 00
134 /* Object 55, Instance = 0 */
135 00 00 00 00 00 00 00
136 /* Object 56, Instance = 0 */
137 02 00 01 30 13 14 14 14 15 15
138 15 15 15 15 15 16 16 16 16 16
139 16 16 16 16 16 15 14 14 14 14
140 15 14 14 14 14 13 00 00 01 02
141 05 05 00 00 00 00 00 00 00 00
142 00
143 /* Object 57, Instance = 0 */
144 00 00 00
145 /* Object 61, Instance = 0 */
146 00 00 00 00 00
147 /* Object 62, Instance = 0 */
148 00 01 03 01 00 00 00 00 00 0A
149 0F 14 19 23 05 00 0A 05 05 69
150 23 23 34 11 64 06 06 04 40 00
151 00 00 00 00 69 4B 02 00 00 80
152 0A 14 14 18 18 10 10 80 00 80
153 00 00 0F 02 00 00 00 00 00 00
154 00 00 00 00 00 00 00 00 00 00
155 00 00 00 00
156 /* Object 63, Instance = 0 */
157 00 00 00 00 00 00 00 00 00 00
158 00 00
159 ];
160 };
161 };
162 };
163
164 ext_5v: regulator-smb210 {
165 compatible = "regulator-fixed";
166 regulator-name = "ext_5v";
167 gpio = <&pm8941_mpps 2 0>;
168 enable-active-high;
169 };
170};
171
172&pm8941_mvs1 {
173 parent-supply = <&ext_5v>;
174};
175
176&pm8941_mvs2 {
177 parent-supply = <&ext_5v>;
178};
179
180&pm8941_gpios {
181 gpio@c000 { /* GPIO 1 */
182 qcom,mode = <0>;
183 qcom,pull = <0>;
184 qcom,vin-sel = <2>;
185 qcom,select = <0>;
186 };
187
188 gpio@c100 { /* GPIO 2 */
189 qcom,mode = <0>;
190 qcom,pull = <0>;
191 qcom,vin-sel = <2>;
192 qcom,select = <0>;
193 };
194
195 gpio@c200 { /* GPIO 3 */
196 };
197
198 gpio@c300 { /* GPIO 4 */
199 };
200
201 gpio@c400 { /* GPIO 5 */
202 qcom,mode = <0>;
203 qcom,pull = <0>;
204 qcom,vin-sel = <2>;
205 qcom,select = <0>;
206 };
207
208 gpio@c500 { /* GPIO 6 */
209 };
210
211 gpio@c600 { /* GPIO 7 */
212 };
213
214 gpio@c700 { /* GPIO 8 */
215 };
216
217 gpio@c800 { /* GPIO 9 */
218 };
219
220 gpio@c900 { /* GPIO 10 */
221 };
222
223 gpio@ca00 { /* GPIO 11 */
224 };
225
226 gpio@cb00 { /* GPIO 12 */
227 };
228
229 gpio@cc00 { /* GPIO 13 */
230 };
231
232 gpio@cd00 { /* GPIO 14 */
233 };
234
235 gpio@ce00 { /* GPIO 15 */
236 qcom,mode = <1>;
237 qcom,output-type = <0>;
238 qcom,pull = <5>;
239 qcom,vin-sel = <2>;
240 qcom,out-strength = <3>;
241 qcom,src-select = <2>;
242 qcom,master-en = <1>;
243 };
244
245 gpio@cf00 { /* GPIO 16 */
246 };
247
248 gpio@d000 { /* GPIO 17 */
249 };
250
251 gpio@d100 { /* GPIO 18 */
252 };
253
254 gpio@d200 { /* GPIO 19 */
255 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
256 qcom,output-type = <0>; /* QPNP_PIN_OUT_BUF_CMOS */
257 qcom,pull = <5>; /* QPNP_PIN_PULL_NO */
258 qcom,vin-sel = <2>; /* QPNP_PIN_VIN2 */
259 qcom,out-strength = <2>; /* QPNP_PIN_OUT_STRENGTH_MED */
260 qcom,src-select = <0>; /* QPNP_PIN_SEL_FUNC_CONSTANT */
261 qcom,master-en = <1>;
262 };
263
264 gpio@d300 { /* GPIO 20 */
265 };
266
267 gpio@d400 { /* GPIO 21 */
268 };
269
270 gpio@d500 { /* GPIO 22 */
271 };
272
273 gpio@d600 { /* GPIO 23 */
274 };
275
276 gpio@d700 { /* GPIO 24 */
277 };
278
279 gpio@d800 { /* GPIO 25 */
280 };
281
282 gpio@d900 { /* GPIO 26 */
283 };
284
285 gpio@da00 { /* GPIO 27 */
286 };
287
288 gpio@db00 { /* GPIO 28 */
289 };
290
291 gpio@dc00 { /* GPIO 29 */
292 qcom,pull = <0>; /* set to default pull */
293 qcom,master-en = <1>;
294 qcom,vin-sel = <2>; /* select 1.8 V source */
295 };
296
297 gpio@dd00 { /* GPIO 30 */
298 };
299
300 gpio@de00 { /* GPIO 31 */
301 };
302
303 gpio@df00 { /* GPIO 32 */
304 };
305
306 gpio@e000 { /* GPIO 33 */
307 };
308
309 gpio@e100 { /* GPIO 34 */
310 };
311
312 gpio@e200 { /* GPIO 35 */
313 };
314
315 gpio@e300 { /* GPIO 36 */
316 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
317 qcom,output-type = <0>; /* QPNP_PIN_OUT_BUF_CMOS */
318 qcom,pull = <5>; /* QPNP_PIN_PULL_NO */
319 qcom,vin-sel = <2>; /* QPNP_PIN_VIN2 */
320 qcom,out-strength = <3>; /* QPNP_PIN_OUT_STRENGTH_HIGH */
321 qcom,src-select = <3>; /* QPNP_PIN_SEL_FUNC_2 */
322 qcom,master-en = <1>;
323 };
324};
325
326&pm8941_mpps {
327
328 mpp@a000 { /* MPP 1 */
329 };
330
331 mpp@a100 { /* MPP 2 */
332 /* ext_5v regulator enable */
333 qcom,mode = <1>; /* Digital output */
334 qcom,invert = <0>; /* Output low initially */
335 qcom,vin-sel = <2>; /* PM8941 S3 = 1.8 V */
336 qcom,src-select = <0>; /* Constant */
337 qcom,master-en = <1>; /* Enable MPP */
338 };
339
340 mpp@a200 { /* MPP 3 */
341 };
342
343 mpp@a300 { /* MPP 4 */
344 };
345
346 mpp@a400 { /* MPP 5 */
347 /* SPI_ETH config */
348 qcom,mode = <1>; /* DIG_OUT */
349 qcom,output-type = <0>; /* CMOS */
350 qcom,vin-sel = <2>; /* PM8941_S3 1.8V > 1.6V */
351 qcom,src-select = <0>; /* CONSTANT */
352 qcom,master-en = <1>; /* ENABLE MPP */
353 };
354
355 mpp@a500 { /* MPP 6 */
356 /* SPI_ETH_RST config */
357 qcom,mode = <1>; /* DIG_OUT */
358 qcom,output-type = <0>; /* CMOS */
359 qcom,vin-sel = <2>; /* PM8941_S3 1.8V > 1.6V */
360 qcom,src-select = <0>; /* CONSTANT */
361 qcom,master-en = <1>; /* ENABLE MPP */
362 };
363
364 mpp@a600 { /* MPP 7 */
365 };
366
367 mpp@a700 { /* MPP 8 */
368 };
369};
370
371&pm8841_mpps {
372
373 mpp@a000 { /* MPP 1 */
374 };
375
376 mpp@a100 { /* MPP 2 */
377 };
378
379 mpp@a200 { /* HDMI_MUX_SEL MPP 3*/
380 status = "ok";
381 qcom,mode = <1>; /* DIG_OUT */
382 qcom,output-type = <0>; /* CMOS */
383 qcom,vin-sel = <2>; /* PM8841_S3A 1.8V */
384 qcom,src-select = <0>; /* CONSTANT */
385 qcom,master-en = <1>; /* ENABLE MPP */
386 };
387
388 mpp@a300 { /* HDMI_MUX_EN MPP 4*/
389 status = "ok";
390 qcom,mode = <1>; /* DIG_OUT */
391 qcom,output-type = <0>; /* CMOS */
392 qcom,vin-sel = <0>; /* PM8841_VPH 3.4V */
393 qcom,src-select = <0>; /* CONSTANT */
394 qcom,master-en = <1>; /* ENABLE MPP */
395 };
396};