blob: e694cef1aacb3ac3fb95633fb614896bd8a78606 [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-qrd.dtsi"
Hanumant Singh2278ab32013-02-21 15:32:17 -080017
18/ {
19 model = "Qualcomm MSM 8226 QRD";
Stepan Moskovchenkoa971a752013-04-03 16:51:37 -070020 compatible = "qcom,msm8226-qrd", "qcom,msm8226", "qcom,qrd";
aiqunyb0bc09a2013-03-02 18:33:33 -080021 qcom,msm-id = <145 11 0>;
Hanumant Singh2278ab32013-02-21 15:32:17 -080022
23 serial@f991f000 {
aiquny14dd1ae2013-03-02 18:37:19 -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>;
40 synaptics,irq-gpio = <&msmgpio 17 0x00>;
41 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 };
David Ng5b225f12013-02-28 21:15:08 -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 */
Sahitya Tummala9e001362013-03-28 11:00:55 +0530175 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>;
184
185 #address-cells = <0>;
186 interrupt-parent = <&sdcc2>;
187 interrupts = <0 1 2>;
188 #interrupt-cells = <1>;
189 interrupt-map-mask = <0xffffffff>;
190 interrupt-map = <0 &intc 0 125 0
191 1 &intc 0 220 0
192 2 &msmgpio 38 0x3>;
193 interrupt-names = "core_irq", "bam_irq", "status_irq";
194 cd-gpios = <&msmgpio 38 0x1>;
195
Sahitya Tummala8d8141c2013-03-28 11:08:26 +0530196 status = "disabled";
Krishna Konda0fb72092013-02-26 16:35:51 -0800197};
Amy Maloched699b942013-03-03 15:47:52 -0800198
Sahitya Tummala9e001362013-03-28 11:00:55 +0530199&sdhc_2 {
200 vdd-supply = <&pm8226_l18>;
201 qcom,vdd-voltage-level = <2950000 2950000>;
202 qcom,vdd-current-level = <9000 800000>;
203
204 vdd-io-supply = <&pm8226_l21>;
205 qcom,vdd-io-always-on;
206 qcom,vdd-io-lpm-sup;
207 qcom,vdd-io-voltage-level = <1800000 2950000>;
208 qcom,vdd-io-current-level = <6 22000>;
209
210 qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
211 qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
212 qcom,pad-drv-on = <0x4 0x4 0x4>; /* 10mA, 10mA, 10mA */
213 qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */
214
215 qcom,clk-rates = <400000 25000000 50000000 100000000 200000000>;
216
217 #address-cells = <0>;
218 interrupt-parent = <&sdhc_2>;
219 interrupts = <0 1 2>;
220 #interrupt-cells = <1>;
221 interrupt-map-mask = <0xffffffff>;
222 interrupt-map = <0 &intc 0 125 0
223 1 &intc 0 221 0
224 2 &msmgpio 38 0x3>;
225 interrupt-names = "hc_irq", "pwr_irq", "status_irq";
226 cd-gpios = <&msmgpio 38 0x1>;
227
Sahitya Tummala8d8141c2013-03-28 11:08:26 +0530228 status = "ok";
Sahitya Tummala9e001362013-03-28 11:00:55 +0530229};
230
Amy Maloched699b942013-03-03 15:47:52 -0800231&spmi_bus {
232 qcom,pm8226@1 {
Fenglin Wu3a707802013-03-21 14:34:20 -0700233 qcom,leds@d300 {
234 status = "okay";
235 };
236
Amy Maloched699b942013-03-03 15:47:52 -0800237 qcom,leds@d800 {
238 status = "okay";
239 qcom,wled_0 {
240 label = "wled";
241 linux,name = "wled:backlight";
242 linux,default-trigger = "bkl-trigger";
243 qcom,cs-out-en;
Amy Malochebd687672013-03-18 11:23:45 -0700244 qcom,op-fdbck = <1>;
Amy Maloched699b942013-03-03 15:47:52 -0800245 qcom,default-state = "on";
246 qcom,max-current = <25>;
247 qcom,ctrl-delay-us = <0>;
248 qcom,boost-curr-lim = <3>;
249 qcom,cp-sel = <0>;
250 qcom,switch-freq = <2>;
Amy Malochef0789c52013-03-26 17:37:32 -0700251 qcom,ovp-val = <0>;
Amy Maloched699b942013-03-03 15:47:52 -0800252 qcom,num-strings = <1>;
253 qcom,id = <0>;
254 };
255 };
Fenglin Wu7f38bae2013-03-12 21:22:35 -0700256
257 qcom,vibrator@c000 {
258 status = "okay";
259 qcom,vib-timeout-ms = <15000>;
260 qcom,vib-vtg-level-mV = <3100>;
261 };
262
Amy Maloched699b942013-03-03 15:47:52 -0800263 };
264};
David Keitel7f3f8252013-02-27 15:24:44 -0800265
266&pm8226_gpios {
267 gpio@c000 { /* GPIO 1 */
Bhalchandra Gajarecb0508d2013-03-07 17:33:14 -0800268 /* XO_PMIC_CDC_MCLK enable for tapan codec */
269 qcom,mode = <1>; /* Digital output */
270 qcom,output-type = <0>; /* CMOS logic */
271 qcom,pull = <5>; /* QPNP_PIN_PULL_NO*/
David Keitel75eabfb2013-04-15 19:28:56 -0700272 qcom,vin-sel = <3>; /* QPNP_PIN_VIN3 */
Bhalchandra Gajarecb0508d2013-03-07 17:33:14 -0800273 qcom,out-strength = <3>;/* QPNP_PIN_OUT_STRENGTH_HIGH */
274 qcom,src-sel = <2>; /* QPNP_PIN_SEL_FUNC_1 */
275 qcom,master-en = <1>; /* Enable GPIO */
David Keitel7f3f8252013-02-27 15:24:44 -0800276 };
277
278 gpio@c100 { /* GPIO 2 */
Bhalchandra Gajareb5120842013-03-14 17:50:39 -0700279 qcom,mode = <1>;
280 qcom,output-type = <0>;
281 qcom,pull = <5>;
David Keitel75eabfb2013-04-15 19:28:56 -0700282 qcom,vin-sel = <3>;
Bhalchandra Gajareb5120842013-03-14 17:50:39 -0700283 qcom,out-strength = <3>;
284 qcom,src-sel = <2>;
285 qcom,master-en = <1>;
David Keitel7f3f8252013-02-27 15:24:44 -0800286 };
287
288 gpio@c200 { /* GPIO 3 */
289 };
290
291 gpio@c300 { /* GPIO 4 */
292 };
293
294 gpio@c400 { /* GPIO 5 */
295 };
296
297 gpio@c500 { /* GPIO 6 */
298 };
299
300 gpio@c600 { /* GPIO 7 */
301 };
302
303 gpio@c700 { /* GPIO 8 */
304 };
305};
306
307&pm8226_mpps {
308 mpp@a000 { /* MPP 1 */
309 };
310
311 mpp@a100 { /* MPP 2 */
312 };
313
314 mpp@a200 { /* MPP 3 */
315 };
316
317 mpp@a300 { /* MPP 4 */
318 };
319
320 mpp@a400 { /* MPP 5 */
321 };
322
323 mpp@a500 { /* MPP 6 */
324 };
325
326 mpp@a600 { /* MPP 7 */
327 };
328
329 mpp@a700 { /* MPP 8 */
330 };
331};