blob: 6bbdf9fd6a004a1346b93e55f90e4263cad357ae [file] [log] [blame]
Hanumant Singh2278ab32013-02-21 15:32:17 -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/dts-v1/;
14/include/ "msm8226.dtsi"
Ray Zhang764496b2013-02-27 09:11:06 +080015/include/ "dsi-panel-nt35590-720p-video.dtsi"
Sreesudhan Ramakrish Ramkumar554072f2013-04-04 21:51:33 -070016/include/ "msm8226-camera-sensor-cdp.dtsi"
Hanumant Singh2278ab32013-02-21 15:32:17 -080017
18/ {
19 model = "Qualcomm MSM 8226 CDP";
Stepan Moskovchenkoa971a752013-04-03 16:51:37 -070020 compatible = "qcom,msm8226-cdp", "qcom,msm8226", "qcom,cdp";
Stepan Moskovchenko9abe1502013-05-06 18:32:29 -070021 qcom,msm-id = <145 1 0>,
22 <158 1 0>,
23 <159 1 0>,
24 <198 1 0>;
Stepan Moskovchenko7d8cdcaa2013-04-25 17:10:55 -070025};
Hanumant Singh2278ab32013-02-21 15:32:17 -080026
Stepan Moskovchenko7d8cdcaa2013-04-25 17:10:55 -070027&soc {
Hanumant Singh2278ab32013-02-21 15:32:17 -080028 serial@f991f000 {
Syed Rameez Mustafaf0434412013-03-01 10:06:09 -080029 status = "ok";
Hanumant Singh2278ab32013-02-21 15:32:17 -080030 };
Amy Maloche41708ba2013-03-03 15:19:27 -080031
Ray Zhang764496b2013-02-27 09:11:06 +080032 qcom,mdss_dsi_nt35590_720p_video {
33 status = "ok";
34 };
35
Amy Maloche41708ba2013-03-03 15:19:27 -080036 i2c@f9927000 { /* BLSP1 QUP5 */
37 synaptics@20 {
38 compatible = "synaptics,rmi4";
39 reg = <0x20>;
40 interrupt-parent = <&msmgpio>;
Amy Malochefcaf14f2013-04-11 18:09:32 -070041 interrupts = <17 0x2008>;
Amy Maloche41708ba2013-03-03 15:19:27 -080042 vdd-supply = <&pm8226_l19>;
43 vcc_i2c-supply = <&pm8226_lvs1>;
44 synaptics,reset-gpio = <&msmgpio 16 0x00>;
Amy Maloche2278a972013-04-23 12:08:30 -070045 synaptics,irq-gpio = <&msmgpio 17 0x2008>;
Amy Maloche41708ba2013-03-03 15:19:27 -080046 synaptics,button-map = <139 102 158>;
47 synaptics,i2c-pull-up;
48 synaptics,reg-en;
49 };
50 };
Amy Maloche24c59dd2013-03-05 11:43:55 -080051
52 gpio_keys {
53 compatible = "gpio-keys";
54 input-name = "gpio-keys";
55
56 camera_focus {
57 label = "camera_focus";
58 gpios = <&msmgpio 108 0x1>;
59 linux,input-type = <1>;
60 linux,code = <0x210>;
61 gpio-key,wakeup;
62 debounce-interval = <15>;
63 };
64
65 camera_snapshot {
66 label = "camera_snapshot";
67 gpios = <&msmgpio 107 0x1>;
68 linux,input-type = <1>;
69 linux,code = <0x2fe>;
70 gpio-key,wakeup;
71 debounce-interval = <15>;
72 };
73
74 vol_up {
75 label = "volume_up";
76 gpios = <&msmgpio 106 0x1>;
77 linux,input-type = <1>;
78 linux,code = <115>;
79 gpio-key,wakeup;
80 debounce-interval = <15>;
81 };
82 };
aiqunyb1e82f32013-03-13 15:35:53 -070083
84 spi@f9923000 {
85 ethernet-switch@3 {
86 compatible = "micrel,ks8851";
87 reg = <3>;
88 interrupt-parent = <&msmgpio>;
89 interrupts = <0 115 0>;
90 spi-max-frequency = <4800000>;
91 rst-gpio = <&msmgpio 114 0>;
92 vdd-io-supply = <&pm8226_lvs1>;
93 vdd-phy-supply = <&pm8226_lvs1>;
94 };
95 };
Bhalchandra Gajarecb0508d2013-03-07 17:33:14 -080096
97 sound {
Bhalchandra Gajareba5e89a2013-03-18 18:29:03 -070098 qcom,audio-routing =
99 "RX_BIAS", "MCLK",
100 "LDO_H", "MCLK",
101 "SPK_OUT", "MCLK",
102 "SPK_OUT", "EXT_VDD_SPKR",
103 "AMIC1", "MIC BIAS1 Internal1",
104 "MIC BIAS1 Internal1", "Handset Mic",
105 "AMIC2", "MIC BIAS2 External",
106 "MIC BIAS2 External", "Headset Mic",
Bhalchandra Gajareba5e89a2013-03-18 18:29:03 -0700107 "AMIC4", "MIC BIAS2 External",
Phani Kumar Uppalapatie4897d62013-04-08 21:27:08 -0700108 "MIC BIAS2 External", "ANCRight Headset Mic",
109 "AMIC5", "MIC BIAS2 External",
Bhalchandra Gajareba5e89a2013-03-18 18:29:03 -0700110 "MIC BIAS2 External", "ANCLeft Headset Mic",
111 "DMIC1", "MIC BIAS1 External",
112 "MIC BIAS1 External", "Digital Mic1",
113 "DMIC2", "MIC BIAS1 External",
114 "MIC BIAS1 External", "Digital Mic2",
115 "DMIC3", "MIC BIAS3 External",
116 "MIC BIAS3 External", "Digital Mic3",
117 "DMIC4", "MIC BIAS3 External",
118 "MIC BIAS3 External", "Digital Mic4";
119
Bhalchandra Gajarecb0508d2013-03-07 17:33:14 -0800120 qcom,cdc-mclk-gpios = <&pm8226_gpios 1 0>;
Bhalchandra Gajareb5120842013-03-14 17:50:39 -0700121 qcom,cdc-vdd-spkr-gpios = <&pm8226_gpios 2 0>;
Phani Kumar Uppalapati351a81c2013-05-03 11:11:15 -0700122 qcom,headset-jack-type-NO;
Bhalchandra Gajarecb0508d2013-03-07 17:33:14 -0800123 };
Hanumant Singh2278ab32013-02-21 15:32:17 -0800124};
Krishna Konda0fb72092013-02-26 16:35:51 -0800125
126&sdcc1 {
127 vdd-supply = <&pm8226_l17>;
128 qcom,vdd-always-on;
129 qcom,vdd-lpm-sup;
130 qcom,vdd-voltage-level = <2950000 2950000>;
131 qcom,vdd-current-level = <800 500000>;
132
133 vdd-io-supply = <&pm8226_l6>;
134 qcom,vdd-io-always-on;
135 qcom,vdd-io-voltage-level = <1800000 1800000>;
136 qcom,vdd-io-current-level = <250 154000>;
137
138 qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
139 qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
Krishna Konda6c5d0f42013-04-12 16:44:26 -0700140 qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */
Krishna Konda0fb72092013-02-26 16:35:51 -0800141 qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */
142
143 qcom,clk-rates = <400000 25000000 50000000 100000000 200000000>;
144 qcom,sup-voltages = <2950 2950>;
145
146 qcom,bus-speed-mode = "HS200_1p8v", "DDR_1p8v";
147 qcom,nonremovable;
148
Sahitya Tummala8d8141c2013-03-28 11:08:26 +0530149 status = "disabled";
Krishna Konda0fb72092013-02-26 16:35:51 -0800150};
151
Sahitya Tummala9e001362013-03-28 11:00:55 +0530152&sdhc_1 {
153 vdd-supply = <&pm8226_l17>;
154 qcom,vdd-always-on;
155 qcom,vdd-lpm-sup;
156 qcom,vdd-voltage-level = <2950000 2950000>;
157 qcom,vdd-current-level = <800 500000>;
158
159 vdd-io-supply = <&pm8226_l6>;
160 qcom,vdd-io-always-on;
161 qcom,vdd-io-voltage-level = <1800000 1800000>;
162 qcom,vdd-io-current-level = <250 154000>;
163
164 qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
165 qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
166 qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */
167 qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */
168
169 qcom,clk-rates = <400000 25000000 50000000 100000000 200000000>;
170 qcom,bus-speed-mode = "HS200_1p8v", "DDR_1p8v";
171 qcom,nonremovable;
172
Sahitya Tummala8d8141c2013-03-28 11:08:26 +0530173 status = "ok";
Sahitya Tummala9e001362013-03-28 11:00:55 +0530174};
175
Krishna Konda0fb72092013-02-26 16:35:51 -0800176&sdcc2 {
177 vdd-supply = <&pm8226_l18>;
178 qcom,vdd-voltage-level = <2950000 2950000>;
179 qcom,vdd-current-level = <9000 800000>;
180
181 vdd-io-supply = <&pm8226_l21>;
182 qcom,vdd-io-always-on;
183 qcom,vdd-io-lpm-sup;
184 qcom,vdd-io-voltage-level = <1800000 2950000>;
185 qcom,vdd-io-current-level = <6 22000>;
186
187 qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
188 qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
Krishna Konda6c5d0f42013-04-12 16:44:26 -0700189 qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */
Krishna Konda0fb72092013-02-26 16:35:51 -0800190 qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */
191
192 qcom,clk-rates = <400000 25000000 50000000 100000000 200000000>;
193 qcom,sup-voltages = <2950 2950>;
194
195 qcom,xpc;
196 qcom,bus-speed-mode = "SDR12", "SDR25", "SDR50", "DDR50", "SDR104";
197 qcom,current-limit = <600>;
198
199 #address-cells = <0>;
200 interrupt-parent = <&sdcc2>;
201 interrupts = <0 1 2>;
202 #interrupt-cells = <1>;
203 interrupt-map-mask = <0xffffffff>;
204 interrupt-map = <0 &intc 0 125 0
205 1 &intc 0 220 0
206 2 &msmgpio 38 0x3>;
207 interrupt-names = "core_irq", "bam_irq", "status_irq";
208 cd-gpios = <&msmgpio 38 0x1>;
209
Sahitya Tummala8d8141c2013-03-28 11:08:26 +0530210 status = "disabled";
Krishna Konda0fb72092013-02-26 16:35:51 -0800211};
Amy Maloched699b942013-03-03 15:47:52 -0800212
Sahitya Tummala9e001362013-03-28 11:00:55 +0530213&sdhc_2 {
214 vdd-supply = <&pm8226_l18>;
215 qcom,vdd-voltage-level = <2950000 2950000>;
216 qcom,vdd-current-level = <9000 800000>;
217
218 vdd-io-supply = <&pm8226_l21>;
219 qcom,vdd-io-always-on;
220 qcom,vdd-io-lpm-sup;
221 qcom,vdd-io-voltage-level = <1800000 2950000>;
222 qcom,vdd-io-current-level = <6 22000>;
223
224 qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
225 qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
226 qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */
227 qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */
228
229 qcom,clk-rates = <400000 25000000 50000000 100000000 200000000>;
230
231 #address-cells = <0>;
232 interrupt-parent = <&sdhc_2>;
233 interrupts = <0 1 2>;
234 #interrupt-cells = <1>;
235 interrupt-map-mask = <0xffffffff>;
236 interrupt-map = <0 &intc 0 125 0
237 1 &intc 0 221 0
238 2 &msmgpio 38 0x3>;
239 interrupt-names = "hc_irq", "pwr_irq", "status_irq";
240 cd-gpios = <&msmgpio 38 0x1>;
241
Sahitya Tummala8d8141c2013-03-28 11:08:26 +0530242 status = "ok";
Sahitya Tummala9e001362013-03-28 11:00:55 +0530243};
244
Amy Maloched699b942013-03-03 15:47:52 -0800245&spmi_bus {
Amy Malochef92d79c2013-04-22 11:55:05 -0700246 qcom,pm8226@0 {
247 qcom,leds@a100 {
248 status = "okay";
249 qcom,led_mpp_2 {
250 label = "mpp";
251 linux,name = "button-backlight";
252 linux,default-trigger = "none";
253 qcom,default-state = "off";
254 qcom,max-current = <40>;
255 qcom,current-setting = <5>;
256 qcom,id = <6>;
Amy Maloche95ee2ab2013-04-22 11:50:26 -0700257 qcom,mode = "manual";
Amy Malochef92d79c2013-04-22 11:55:05 -0700258 qcom,source-sel = <1>;
259 qcom,mode-ctrl = <0x60>;
260 };
261 };
Amy Maloche95ee2ab2013-04-22 11:50:26 -0700262
263 qcom,leds@a300 {
264 status = "okay";
265 qcom,led_mpp_4 {
266 label = "mpp";
267 linux,name = "green";
268 linux,default-trigger = "none";
269 qcom,default-state = "off";
270 qcom,max-current = <40>;
271 qcom,current-setting = <5>;
272 qcom,id = <6>;
273 qcom,mode = "lpg";
274 qcom,source-sel = <8>;
275 qcom,mode-ctrl = <0x60>;
276 qcom,pwm-channel = <0>;
277 qcom,start-idx = <1>;
278 qcom,duty-pcts = [00 00 00 00 64
279 64 00 00 00 00];
280 };
281 };
282
283 qcom,leds@a500 {
284 status = "okay";
285 qcom,led_mpp_6 {
286 label = "mpp";
287 linux,name = "red";
288 linux,default-trigger = "none";
289 qcom,default-state = "off";
290 qcom,max-current = <40>;
291 qcom,current-setting = <5>;
292 qcom,id = <6>;
293 qcom,mode-ctrl = <0x60>;
294 qcom,source-sel = <10>;
295 qcom,mode = "lpg";
296 qcom,pwm-channel = <5>;
297 qcom,start-idx = <1>;
298 qcom,duty-pcts = [00 00 00 00 64
299 64 00 00 00 00];
300 };
301 };
Amy Malochef92d79c2013-04-22 11:55:05 -0700302 };
303
Amy Maloched699b942013-03-03 15:47:52 -0800304 qcom,pm8226@1 {
305 qcom,leds@d800 {
306 status = "okay";
307 qcom,wled_0 {
308 label = "wled";
309 linux,name = "wled:backlight";
310 linux,default-trigger = "bkl-trigger";
311 qcom,cs-out-en;
Amy Malochebd687672013-03-18 11:23:45 -0700312 qcom,op-fdbck = <1>;
Amy Maloched699b942013-03-03 15:47:52 -0800313 qcom,default-state = "on";
314 qcom,max-current = <25>;
315 qcom,ctrl-delay-us = <0>;
316 qcom,boost-curr-lim = <3>;
317 qcom,cp-sel = <0>;
318 qcom,switch-freq = <2>;
Amy Malochef0789c52013-03-26 17:37:32 -0700319 qcom,ovp-val = <0>;
Amy Maloched699b942013-03-03 15:47:52 -0800320 qcom,num-strings = <1>;
321 qcom,id = <0>;
322 };
323 };
324 };
325};
David Keitel7f3f8252013-02-27 15:24:44 -0800326
327&pm8226_gpios {
328 gpio@c000 { /* GPIO 1 */
Bhalchandra Gajarecb0508d2013-03-07 17:33:14 -0800329 /* XO_PMIC_CDC_MCLK enable for tapan codec */
330 qcom,mode = <1>; /* Digital output */
331 qcom,output-type = <0>; /* CMOS logic */
332 qcom,pull = <5>; /* QPNP_PIN_PULL_NO*/
David Keitel75eabfb2013-04-15 19:28:56 -0700333 qcom,vin-sel = <3>; /* QPNP_PIN_VIN3 */
Bhalchandra Gajarecb0508d2013-03-07 17:33:14 -0800334 qcom,out-strength = <3>;/* QPNP_PIN_OUT_STRENGTH_HIGH */
335 qcom,src-sel = <2>; /* QPNP_PIN_SEL_FUNC_1 */
336 qcom,master-en = <1>; /* Enable GPIO */
David Keitel7f3f8252013-02-27 15:24:44 -0800337 };
338
339 gpio@c100 { /* GPIO 2 */
Bhalchandra Gajareb5120842013-03-14 17:50:39 -0700340 qcom,mode = <1>;
341 qcom,output-type = <0>;
342 qcom,pull = <5>;
David Keitel75eabfb2013-04-15 19:28:56 -0700343 qcom,vin-sel = <3>;
Bhalchandra Gajareb5120842013-03-14 17:50:39 -0700344 qcom,out-strength = <3>;
345 qcom,src-sel = <2>;
346 qcom,master-en = <1>;
David Keitel7f3f8252013-02-27 15:24:44 -0800347 };
348
349 gpio@c200 { /* GPIO 3 */
350 };
351
352 gpio@c300 { /* GPIO 4 */
353 };
354
355 gpio@c400 { /* GPIO 5 */
356 };
357
358 gpio@c500 { /* GPIO 6 */
359 };
360
361 gpio@c600 { /* GPIO 7 */
362 };
363
364 gpio@c700 { /* GPIO 8 */
365 };
366};
367
368&pm8226_mpps {
369 mpp@a000 { /* MPP 1 */
370 };
371
372 mpp@a100 { /* MPP 2 */
373 };
374
375 mpp@a200 { /* MPP 3 */
376 };
377
378 mpp@a300 { /* MPP 4 */
379 };
380
381 mpp@a400 { /* MPP 5 */
382 };
383
384 mpp@a500 { /* MPP 6 */
385 };
386
387 mpp@a600 { /* MPP 7 */
388 };
389
390 mpp@a700 { /* MPP 8 */
391 };
392};
Fenglin Wu009098a2013-03-08 15:50:51 -0800393
394&pm8226_chg {
David Keitele89d4782013-03-27 11:29:59 -0700395 qcom,charging-disabled;
396 qcom,use-default-batt-values;
Fenglin Wu009098a2013-03-08 15:50:51 -0800397};