blob: 7e191e1a7f25f004cab276aaeb6d2e91a48aa171 [file] [log] [blame]
Maria Yudce95612013-06-19 12:25:47 +08001/* 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/* This is a QRD reference design common file. The common device
14 * tree approach would help OEM during development of their extended
15 * device tree. Each new QRD OEM target can select its own include
16 * files and provide board specific overrides in the top level DTS
17 * file.
18 *
19 * For example:
20 * msm8xxx-qrd.dtsi: QRD reference common node
21 * msm8xxx-qrd-skuxx.dts:
22 * /include/ "msm8610-qrd.dtsi"
23 * / {
24 * List skuxx specific node which is different with QRD
25 * reference design.
26 * };
27 */
28
Maria Yudce95612013-06-19 12:25:47 +080029&soc {
30 i2c@f9923000{
31 focaltech@38{
32 compatible = "focaltech,5x06";
33 reg = <0x38>;
34 interrupt-parent = <&msmgpio>;
35 interrupts = <1 0x2>;
36 vdd-supply = <&pm8110_l19>;
37 vcc_i2c-supply = <&pm8110_l14>;
Mohan Pallaka9eb064d2013-08-13 16:11:47 +053038 focaltech,name = "ft6x06";
Maria Yudce95612013-06-19 12:25:47 +080039 focaltech,family-id = <0x06>;
40 focaltech,reset-gpio = <&msmgpio 0 0x00>;
41 focaltech,irq-gpio = <&msmgpio 1 0x00>;
42 focaltech,display-coords = <0 0 480 800>;
43 focaltech,panel-coords = <0 0 480 800>;
44 focaltech,button-map= <139 102 158>;
45 focaltech,no-force-update;
46 focaltech,i2c-pull-up;
Mohan Pallaka9eb064d2013-08-13 16:11:47 +053047 focaltech,group-id = <1>;
48 focaltech,hard-reset-delay-ms = <20>;
49 focaltech,soft-reset-delay-ms = <150>;
50 focaltech,num-max-touches = <2>;
51 focaltech,fw-name = "ft_8610_qrd_fw.bin";
52 focaltech,fw-delay-aa-ms = <100>;
53 focaltech,fw-delay-55-ms = <30>;
54 focaltech,fw-upgrade-id1 = <0x79>;
55 focaltech,fw-upgrade-id2 = <0x08>;
56 focaltech,fw-delay-readid-ms = <10>;
57 focaltech,fw-delay-era-flsh-ms = <2000>;
Maria Yudce95612013-06-19 12:25:47 +080058 };
59 };
60
61 gen-vkeys {
62 compatible = "qcom,gen-vkeys";
63 label = "ft5x06_ts";
64 qcom,disp-maxx = <480>;
65 qcom,disp-maxy = <800>;
66 qcom,panel-maxx = <481>;
67 qcom,panel-maxy = <940>;
68 qcom,key-codes = <139 0 102 158 0 0 0>;
69 qcom,y-offset = <0>;
70 };
71 serial@f991e000 {
72 status = "ok";
73 };
74
75 i2c@f9925000 { /* BLSP-1 QUP-3 */
76 kionix@f {
77 compatible = "kionix,kxtj9";
78 reg = <0x0f>;
79 interrupt-parent = <&msmgpio>;
80 interrupts = <81 0x2>;
81 vdd-supply = <&pm8110_l19>;
82 vio-supply = <&pm8110_l14>;
83 kionix,min-interval = <5>;
84 kionix,init-interval = <200>;
85 kionix,axis-map-x = <1>;
86 kionix,axis-map-y = <0>;
87 kionix,axis-map-z = <2>;
88 kionix,g-range = <2>;
89 kionix,negate-x;
90 kionix,negate-y;
91 kionix,negate-z;
92 kionix,res-12bit;
93 };
94 };
95
96 flashlight {
97 compatible = "qcom,leds-gpio-flash";
98 status = "okay";
99 qcom,flash-en = <&msmgpio 18 0>;
100 qcom,flash-now = <&msmgpio 19 0>;
101 linux,name = "flashlight";
102 linux,default-trigger = "flashlight-trigger";
103 };
104
105 gpio_keys {
106 compatible = "gpio-keys";
107 input-name = "gpio-keys";
108
109 camera_snapshot {
110 label = "camera_snapshot";
111 gpios = <&msmgpio 73 0x1>;
112 linux,input-type = <1>;
113 linux,code = <0x2fe>;
114 gpio-key,wakeup;
115 debounce-interval = <15>;
116 };
117
118 camera_focus {
119 label = "camera_focus";
120 gpios = <&msmgpio 74 0x1>;
121 linux,input-type = <1>;
122 linux,code = <0x210>;
123 gpio-key,wakeup;
124 debounce-interval = <15>;
125 };
126
127 vol_up {
128 label = "volume_up";
129 gpios = <&msmgpio 72 0x1>;
130 linux,input-type = <1>;
131 linux,code = <115>;
132 gpio-key,wakeup;
133 debounce-interval = <15>;
134 };
135 };
136
Maria Yudce95612013-06-19 12:25:47 +0800137 sound {
Bhalchandra Gajarede11d712013-09-19 15:13:48 -0700138 qcom,audio-routing =
139 "RX_BIAS", "MCLK",
140 "INT_LDO_H", "MCLK",
141 "MIC BIAS Internal1", "Handset Mic",
142 "MIC BIAS Internal2", "Headset Mic",
143 "AMIC1", "MIC BIAS Internal1",
144 "AMIC2", "MIC BIAS Internal2";
145 qcom,mbhc-bias-internal;
Maria Yudce95612013-06-19 12:25:47 +0800146 };
147};
148
Walter Yang83b63872013-07-08 11:48:40 +0800149&i2c_cdc {
150 msm8x10_wcd_codec@0d{
151 compatible = "qcom,msm8x10-wcd-i2c";
152 reg = <0x0d>;
Bhalchandra Gajare8d1f1b82013-07-11 16:37:19 -0700153
154 interrupt-parent = <&wcd9xxx_intc>;
155 interrupts = <0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
156 17 18 19 20 21 22 23>;
157
Walter Yang83b63872013-07-08 11:48:40 +0800158 cdc-vdda-cp-supply = <&pm8110_s4>;
159 qcom,cdc-vdda-cp-voltage = <1800000 2150000>;
160 qcom,cdc-vdda-cp-current = <650000>;
161
162 cdc-vdda-h-supply = <&pm8110_l6>;
163 qcom,cdc-vdda-h-voltage = <1800000 1800000>;
164 qcom,cdc-vdda-h-current = <25000>;
165
166 cdc-vdd-px-supply = <&pm8110_l6>;
167 qcom,cdc-vdd-px-voltage = <1800000 1800000>;
168 qcom,cdc-vdd-px-current = <10000>;
169
170 cdc-vdd-1p2v-supply = <&pm8110_l4>;
171 qcom,cdc-vdd-1p2v-voltage = <1200000 1200000>;
172 qcom,cdc-vdd-1p2v-current = <5000>;
173
174 cdc-vdd-mic-bias-supply = <&pm8110_l20>;
175 qcom,cdc-vdd-mic-bias-voltage = <3075000 3075000>;
176 qcom,cdc-vdd-mic-bias-current = <25000>;
177
178 qcom,cdc-micbias-cfilt-sel = <0x0>;
179 qcom,cdc-micbias-cfilt-mv = <1800000>;
180 qcom,cdc-mclk-clk-rate = <12288000>;
181
182 qcom,cdc-static-supplies = "cdc-vdda-h",
183 "cdc-vdd-px",
184 "cdc-vdd-1p2v";
185
186 qcom,cdc-on-demand-supplies = "cdc-vdda-cp",
187 "cdc-vdd-mic-bias";
188 };
189
190 msm8x10_wcd_codec@77{
191 compatible = "qcom,msm8x10-wcd-i2c";
192 reg = <0x77>;
193 };
194
195 msm8x10_wcd_codec@66{
196 compatible = "qcom,msm8x10-wcd-i2c";
197 reg = <0x66>;
198 };
199
200 msm8x10_wcd_codec@55{
201 compatible = "qcom,msm8x10-wcd-i2c";
202 reg = <0x55>;
203 };
204};
205
Maria Yudce95612013-06-19 12:25:47 +0800206&spmi_bus {
207 qcom,pm8110@0 {
208 qcom,leds@a100 {
209 status = "okay";
210 qcom,led_mpp_2 {
211 label = "mpp";
212 linux,name = "wled-homerow";
213 linux-default-trigger = "hr-trigger";
214 qcom,default-state = "off";
215 qcom,max-current = <40>;
216 qcom,id = <6>;
217 qcom,source-sel = <1>;
218 qcom,mode-ctrl = <0x61>;
219 qcom,mode = "manual";
220 };
221 };
222
223 qcom,leds@a200 {
224 status = "okay";
225 qcom,led_mpp_3 {
226 label = "mpp";
227 linux,name = "wled-backlight";
228 linux,default-trigger = "bkl-trigger";
229 qcom,default-state = "on";
230 qcom,max-current = <40>;
231 qcom,id = <6>;
Chun Zhang578e4152013-07-08 17:19:15 -0700232 qcom,source-sel = <8>;
Maria Yudce95612013-06-19 12:25:47 +0800233 qcom,mode-ctrl = <0x10>;
Chun Zhang578e4152013-07-08 17:19:15 -0700234 qcom,pwm-channel = <0>;
Prasad Sodagudi1a6430c2013-08-15 21:09:52 +0530235 qcom,pwm-us = <27>;
Chun Zhang578e4152013-07-08 17:19:15 -0700236 qcom,vin-ctrl = <0x03>;
237 qcom,mode = "pwm";
Maria Yudce95612013-06-19 12:25:47 +0800238 };
239 };
240 };
241};
242
243&spmi_bus {
244 qcom,pm8110@1 {
245 qcom,vibrator@c000 {
246 status = "okay";
247 qcom,vib-timeout-ms = <15000>;
248 qcom,vib-vtg-level-mV = <3100>;
249 };
250 };
251};
252
253&sdhc_1 {
254 vdd-supply = <&pm8110_l17>;
Maria Yudce95612013-06-19 12:25:47 +0800255 qcom,vdd-voltage-level = <2900000 2900000>;
256 qcom,vdd-current-level = <200 400000>;
257
258 vdd-io-supply = <&pm8110_l6>;
259 qcom,vdd-io-always-on;
260 qcom,vdd-io-voltage-level = <1800000 1800000>;
261 qcom,vdd-io-current-level = <200 60000>;
262
263 qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
264 qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
265 qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */
266 qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */
267
268 qcom,clk-rates = <400000 25000000 50000000 100000000 200000000>;
269 qcom,bus-speed-mode = "HS200_1p8v", "DDR_1p8v";
270 qcom,nonremovable;
271
272 status = "ok";
273};
274
275&sdhc_2 {
276 vdd-supply = <&pm8110_l18>;
277 qcom,vdd-voltage-level = <2950000 2950000>;
278 qcom,vdd-current-level = <15000 400000>;
279
280 vdd-io-supply = <&pm8110_l21>;
Maria Yudce95612013-06-19 12:25:47 +0800281 qcom,vdd-io-voltage-level = <1800000 2950000>;
282 qcom,vdd-io-current-level = <200 50000>;
283
284 qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
285 qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
286 qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */
287 qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */
288
289 qcom,clk-rates = <400000 25000000 50000000 100000000 200000000>;
290
291 #address-cells = <0>;
292 interrupt-parent = <&sdhc_2>;
293 interrupts = <0 1 2>;
294 #interrupt-cells = <1>;
295 interrupt-map-mask = <0xffffffff>;
296 interrupt-map = <0 &intc 0 125 0
297 1 &intc 0 221 0
298 2 &msmgpio 42 0x3>;
299 interrupt-names = "hc_irq", "pwr_irq", "status_irq";
300 cd-gpios = <&msmgpio 42 0x1>;
301
302 status = "ok";
303};
304
305&pm8110_chg {
306 status = "ok";
307
308 qcom,chgr@1000 {
309 status = "ok";
310 };
311
312 qcom,buck@1100 {
313 status = "ok";
314 };
315
316 qcom,bat-if@1200 {
317 status = "ok";
318 };
319
320 qcom,usb-chgpth@1300 {
321 status = "ok";
322 };
323
324 qcom,chg-misc@1600 {
325 status = "ok";
326 };
327};
328
329&pm8110_gpios {
330 gpio@c000 { /* GPIO 1 */
331 };
332
333 gpio@c100 { /* GPIO 2 */
334 };
335
336 gpio@c200 { /* GPIO 3 */
337 };
338
339 gpio@c300 { /* GPIO 4 */
340 };
341};
342
343&pm8110_mpps {
344 mpp@a000 { /* MPP 1 */
345 };
346
347 mpp@a100 { /* MPP 2 */
348 status = "disabled";
349 };
350
351 mpp@a200 { /* MPP 3 */
352 status = "disabled";
353 };
354
355 mpp@a300 { /* MPP 4 */
356 };
357};
Xu Kaib1fc1b32013-08-02 13:11:24 +0800358
359&pm8110_vadc {
360 chan@30 {
361 label = "batt_therm";
362 qcom,scale-function = <6>;
363 };
364};
wujin3c6eaab2013-08-23 16:26:30 +0800365
366&android_usb {
367 qcom,android-usb-cdrom;
Xiaogang Cui79844632013-09-19 21:27:10 +0800368 qcom,android-usb-internal-ums;
wujin3c6eaab2013-08-23 16:26:30 +0800369};
Shalabh Jaincae621a2013-09-24 14:44:52 -0700370
371&mdss_mdp {
372 batfet-supply = <&pm8110_chg_batif>;
373};