blob: 1f8a7733249d8d12057c7a45d75a82da02ac2070 [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 Ramkumaraffd42f2013-04-01 23:38:23 -070016/include/ "msm8226-camera-sensor-mtp.dtsi"
Hanumant Singh2278ab32013-02-21 15:32:17 -080017
18/ {
19 model = "Qualcomm MSM 8226 MTP";
Stepan Moskovchenkoa971a752013-04-03 16:51:37 -070020 compatible = "qcom,msm8226-mtp", "qcom,msm8226", "qcom,mtp";
Syed Rameez Mustafa64a1c672013-03-02 18:32:27 -080021 qcom,msm-id = <145 8 0>;
Hanumant Singh2278ab32013-02-21 15:32:17 -080022
23 serial@f991f000 {
Syed Rameez Mustafa96d52592013-03-02 19:21:49 -080024 status = "ok";
Hanumant Singh2278ab32013-02-21 15:32:17 -080025 };
Amy Maloche41708ba2013-03-03 15:19:27 -080026
Ray Zhang764496b2013-02-27 09:11:06 +080027 qcom,mdss_dsi_nt35590_720p_video {
28 status = "ok";
29 };
30
Amy Maloche41708ba2013-03-03 15:19:27 -080031 i2c@f9927000 { /* BLSP1 QUP5 */
32 synaptics@20 {
33 compatible = "synaptics,rmi4";
34 reg = <0x20>;
35 interrupt-parent = <&msmgpio>;
Amy Malochefcaf14f2013-04-11 18:09:32 -070036 interrupts = <17 0x2008>;
Amy Maloche41708ba2013-03-03 15:19:27 -080037 vdd-supply = <&pm8226_l19>;
38 vcc_i2c-supply = <&pm8226_lvs1>;
39 synaptics,reset-gpio = <&msmgpio 16 0x00>;
Amy Maloche2278a972013-04-23 12:08:30 -070040 synaptics,irq-gpio = <&msmgpio 17 0x2008>;
Amy Maloche41708ba2013-03-03 15:19:27 -080041 synaptics,button-map = <139 102 158>;
42 synaptics,i2c-pull-up;
43 synaptics,reg-en;
44 };
45 };
Amy Maloche24c59dd2013-03-05 11:43:55 -080046
47 gpio_keys {
48 compatible = "gpio-keys";
49 input-name = "gpio-keys";
50
51 camera_focus {
52 label = "camera_focus";
53 gpios = <&msmgpio 108 0x1>;
54 linux,input-type = <1>;
55 linux,code = <0x210>;
56 gpio-key,wakeup;
57 debounce-interval = <15>;
58 };
59
60 camera_snapshot {
61 label = "camera_snapshot";
62 gpios = <&msmgpio 107 0x1>;
63 linux,input-type = <1>;
64 linux,code = <0x2fe>;
65 gpio-key,wakeup;
66 debounce-interval = <15>;
67 };
68
69 vol_up {
70 label = "volume_up";
71 gpios = <&msmgpio 106 0x1>;
72 linux,input-type = <1>;
73 linux,code = <115>;
74 gpio-key,wakeup;
75 debounce-interval = <15>;
76 };
77 };
aiqunyb1e82f32013-03-13 15:35:53 -070078
79 spi@f9923000 {
80 ethernet-switch@3 {
81 compatible = "micrel,ks8851";
82 reg = <3>;
83 interrupt-parent = <&msmgpio>;
84 interrupts = <0 115 0>;
85 spi-max-frequency = <4800000>;
86 rst-gpio = <&msmgpio 114 0>;
87 vdd-io-supply = <&pm8226_lvs1>;
88 vdd-phy-supply = <&pm8226_lvs1>;
89 };
90 };
Bhalchandra Gajarecb0508d2013-03-07 17:33:14 -080091
92 sound {
Bhalchandra Gajareba5e89a2013-03-18 18:29:03 -070093 qcom,audio-routing =
94 "RX_BIAS", "MCLK",
95 "LDO_H", "MCLK",
96 "SPK_OUT", "MCLK",
97 "SPK_OUT", "EXT_VDD_SPKR",
98 "AMIC1", "MIC BIAS1 External",
99 "MIC BIAS1 External", "Handset Mic",
100 "AMIC2", "MIC BIAS2 External",
101 "MIC BIAS2 External", "Headset Mic",
102 "AMIC3", "MIC BIAS1 External",
103 "MIC BIAS1 External", "ANCRight Headset Mic",
104 "AMIC4", "MIC BIAS2 External",
105 "MIC BIAS2 External", "ANCLeft Headset Mic";
106
Bhalchandra Gajarecb0508d2013-03-07 17:33:14 -0800107 qcom,cdc-mclk-gpios = <&pm8226_gpios 1 0>;
Bhalchandra Gajareb5120842013-03-14 17:50:39 -0700108 qcom,cdc-vdd-spkr-gpios = <&pm8226_gpios 2 0>;
Bhalchandra Gajarecb0508d2013-03-07 17:33:14 -0800109 };
Syed Rameez Mustafa64a1c672013-03-02 18:32:27 -0800110};
Krishna Konda0fb72092013-02-26 16:35:51 -0800111
112&sdcc1 {
113 vdd-supply = <&pm8226_l17>;
114 qcom,vdd-always-on;
115 qcom,vdd-lpm-sup;
116 qcom,vdd-voltage-level = <2950000 2950000>;
117 qcom,vdd-current-level = <800 500000>;
118
119 vdd-io-supply = <&pm8226_l6>;
120 qcom,vdd-io-always-on;
121 qcom,vdd-io-voltage-level = <1800000 1800000>;
122 qcom,vdd-io-current-level = <250 154000>;
123
124 qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
125 qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
Krishna Konda6c5d0f42013-04-12 16:44:26 -0700126 qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */
Krishna Konda0fb72092013-02-26 16:35:51 -0800127 qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */
128
129 qcom,clk-rates = <400000 25000000 50000000 100000000 200000000>;
130 qcom,sup-voltages = <2950 2950>;
131
132 qcom,bus-speed-mode = "HS200_1p8v", "DDR_1p8v";
133 qcom,nonremovable;
134
Sahitya Tummala8d8141c2013-03-28 11:08:26 +0530135 status = "disabled";
Krishna Konda0fb72092013-02-26 16:35:51 -0800136};
137
Sahitya Tummala9e001362013-03-28 11:00:55 +0530138&sdhc_1 {
139 vdd-supply = <&pm8226_l17>;
140 qcom,vdd-always-on;
141 qcom,vdd-lpm-sup;
142 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
Sahitya Tummala8d8141c2013-03-28 11:08:26 +0530159 status = "ok";
Sahitya Tummala9e001362013-03-28 11:00:55 +0530160};
161
Krishna Konda0fb72092013-02-26 16:35:51 -0800162&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>;
168 qcom,vdd-io-always-on;
169 qcom,vdd-io-lpm-sup;
170 qcom,vdd-io-voltage-level = <1800000 2950000>;
171 qcom,vdd-io-current-level = <6 22000>;
172
173 qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
174 qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
Krishna Konda6c5d0f42013-04-12 16:44:26 -0700175 qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */
Krishna Konda0fb72092013-02-26 16:35:51 -0800176 qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */
177
178 qcom,clk-rates = <400000 25000000 50000000 100000000 200000000>;
179 qcom,sup-voltages = <2950 2950>;
180
181 qcom,xpc;
182 qcom,bus-speed-mode = "SDR12", "SDR25", "SDR50", "DDR50", "SDR104";
183 qcom,current-limit = <600>; #address-cells = <0>; interrupt-parent = <&sdcc2>;
184 interrupts = <0 1 2>;
185 #interrupt-cells = <1>;
186 interrupt-map-mask = <0xffffffff>;
187 interrupt-map = <0 &intc 0 125 0
188 1 &intc 0 220 0
189 2 &msmgpio 38 0x3>;
190 interrupt-names = "core_irq", "bam_irq", "status_irq";
191 cd-gpios = <&msmgpio 38 0x1>;
192
Sahitya Tummala8d8141c2013-03-28 11:08:26 +0530193 status = "disabled";
Krishna Konda0fb72092013-02-26 16:35:51 -0800194};
Amy Maloched699b942013-03-03 15:47:52 -0800195
Sahitya Tummala9e001362013-03-28 11:00:55 +0530196&sdhc_2 {
197 vdd-supply = <&pm8226_l18>;
198 qcom,vdd-voltage-level = <2950000 2950000>;
199 qcom,vdd-current-level = <9000 800000>;
200
201 vdd-io-supply = <&pm8226_l21>;
202 qcom,vdd-io-always-on;
203 qcom,vdd-io-lpm-sup;
204 qcom,vdd-io-voltage-level = <1800000 2950000>;
205 qcom,vdd-io-current-level = <6 22000>;
206
207 qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
208 qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
209 qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */
210 qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */
211
212 qcom,clk-rates = <400000 25000000 50000000 100000000 200000000>;
213
214 #address-cells = <0>;
215 interrupt-parent = <&sdhc_2>;
216 interrupts = <0 1 2>;
217 #interrupt-cells = <1>;
218 interrupt-map-mask = <0xffffffff>;
219 interrupt-map = <0 &intc 0 125 0
220 1 &intc 0 221 0
221 2 &msmgpio 38 0x3>;
222 interrupt-names = "hc_irq", "pwr_irq", "status_irq";
223 cd-gpios = <&msmgpio 38 0x1>;
224
Sahitya Tummala8d8141c2013-03-28 11:08:26 +0530225 status = "ok";
Sahitya Tummala9e001362013-03-28 11:00:55 +0530226};
227
Amy Maloched699b942013-03-03 15:47:52 -0800228&spmi_bus {
229 qcom,pm8226@1 {
Fenglin Wu3a707802013-03-21 14:34:20 -0700230 qcom,leds@d300 {
231 status = "okay";
232 };
233
Amy Maloched699b942013-03-03 15:47:52 -0800234 qcom,leds@d800 {
235 status = "okay";
236 qcom,wled_0 {
237 label = "wled";
238 linux,name = "wled:backlight";
239 linux,default-trigger = "bkl-trigger";
240 qcom,cs-out-en;
Amy Malochebd687672013-03-18 11:23:45 -0700241 qcom,op-fdbck = <1>;
Amy Maloched699b942013-03-03 15:47:52 -0800242 qcom,default-state = "on";
243 qcom,max-current = <25>;
244 qcom,ctrl-delay-us = <0>;
245 qcom,boost-curr-lim = <3>;
246 qcom,cp-sel = <0>;
247 qcom,switch-freq = <2>;
Amy Malochef0789c52013-03-26 17:37:32 -0700248 qcom,ovp-val = <0>;
Amy Maloched699b942013-03-03 15:47:52 -0800249 qcom,num-strings = <1>;
250 qcom,id = <0>;
251 };
252 };
253 };
254};
David Keitel7f3f8252013-02-27 15:24:44 -0800255
256&pm8226_gpios {
257 gpio@c000 { /* GPIO 1 */
Bhalchandra Gajarecb0508d2013-03-07 17:33:14 -0800258 /* XO_PMIC_CDC_MCLK enable for tapan codec */
259 qcom,mode = <1>; /* Digital output */
260 qcom,output-type = <0>; /* CMOS logic */
261 qcom,pull = <5>; /* QPNP_PIN_PULL_NO*/
David Keitel75eabfb2013-04-15 19:28:56 -0700262 qcom,vin-sel = <3>; /* QPNP_PIN_VIN3 */
Bhalchandra Gajarecb0508d2013-03-07 17:33:14 -0800263 qcom,out-strength = <3>;/* QPNP_PIN_OUT_STRENGTH_HIGH */
264 qcom,src-sel = <2>; /* QPNP_PIN_SEL_FUNC_1 */
265 qcom,master-en = <1>; /* Enable GPIO */
David Keitel7f3f8252013-02-27 15:24:44 -0800266 };
267
268 gpio@c100 { /* GPIO 2 */
Bhalchandra Gajareb5120842013-03-14 17:50:39 -0700269 qcom,mode = <1>;
270 qcom,output-type = <0>;
271 qcom,pull = <5>;
David Keitel75eabfb2013-04-15 19:28:56 -0700272 qcom,vin-sel = <3>;
Bhalchandra Gajareb5120842013-03-14 17:50:39 -0700273 qcom,out-strength = <3>;
274 qcom,src-sel = <2>;
275 qcom,master-en = <1>;
David Keitel7f3f8252013-02-27 15:24:44 -0800276 };
277
278 gpio@c200 { /* GPIO 3 */
279 };
280
281 gpio@c300 { /* GPIO 4 */
282 };
283
284 gpio@c400 { /* GPIO 5 */
285 };
286
287 gpio@c500 { /* GPIO 6 */
288 };
289
290 gpio@c600 { /* GPIO 7 */
291 };
292
293 gpio@c700 { /* GPIO 8 */
294 };
295};
296
297&pm8226_mpps {
298 mpp@a000 { /* MPP 1 */
299 };
300
301 mpp@a100 { /* MPP 2 */
302 };
303
304 mpp@a200 { /* MPP 3 */
305 };
306
307 mpp@a300 { /* MPP 4 */
308 };
309
310 mpp@a400 { /* MPP 5 */
Siddartha Mohanadossa38803a2013-03-06 10:25:48 -0800311 /* PA_THERM0 config */
312 qcom,mode = <4>; /* AIN input */
313 qcom,invert = <1>; /* Enable MPP */
314 qcom,ain-route = <0>; /* AMUX 5 */
315 qcom,master-en = <1>;
316 qcom,src-sel = <0>; /* Function constant */
David Keitel7f3f8252013-02-27 15:24:44 -0800317 };
318
319 mpp@a500 { /* MPP 6 */
320 };
321
322 mpp@a600 { /* MPP 7 */
323 };
324
325 mpp@a700 { /* MPP 8 */
Siddartha Mohanadossa38803a2013-03-06 10:25:48 -0800326 /* PA_THERM1 config */
327 qcom,mode = <4>; /* AIN input */
328 qcom,invert = <1>; /* Enable MPP */
329 qcom,ain-route = <3>; /* AMUX 8 */
330 qcom,master-en = <1>;
331 qcom,src-sel = <0>; /* Function constant */
David Keitel7f3f8252013-02-27 15:24:44 -0800332 };
333};
Siddartha Mohanadoss175a6c32013-03-06 10:47:08 -0800334
335&pm8226_vadc {
336 chan@14 {
337 label = "pa_therm0";
338 reg = <0x14>;
339 qcom,decimation = <0>;
340 qcom,pre-div-channel-scaling = <0>;
341 qcom,calibration-type = "ratiometric";
342 qcom,scale-function = <2>;
343 qcom,hw-settle-time = <2>;
344 qcom,fast-avg-setup = <0>;
345 };
346
347 chan@17 {
348 label = "pa_therm1";
349 reg = <0x17>;
350 qcom,decimation = <0>;
351 qcom,pre-div-channel-scaling = <0>;
352 qcom,calibration-type = "ratiometric";
353 qcom,scale-function = <2>;
354 qcom,hw-settle-time = <2>;
355 qcom,fast-avg-setup = <0>;
356 };
357};
Xiaozhe Shi36fc6eb2013-04-02 10:45:53 -0700358
359&pm8226_bms {
360 status = "ok";
361};
David Keitela2a6ff82013-04-09 16:52:54 -0700362
363&pm8226_chg {
364 qcom,charging-disabled;
365};