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