blob: 800cd8f539421fda21bafebdf46e45a333a50b23 [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"
Hanumant Singh2278ab32013-02-21 15:32:17 -080016
17/ {
18 model = "Qualcomm MSM 8226 CDP";
19 compatible = "qcom,msm8226-cdp", "qcom,msm8226";
20 qcom,msm-id = <145 1 0>;
21
22 serial@f991f000 {
Syed Rameez Mustafaf0434412013-03-01 10:06:09 -080023 status = "ok";
Hanumant Singh2278ab32013-02-21 15:32:17 -080024 };
Amy Maloche41708ba2013-03-03 15:19:27 -080025
Ray Zhang764496b2013-02-27 09:11:06 +080026 qcom,mdss_dsi_nt35590_720p_video {
27 status = "ok";
28 };
29
Amy Maloche41708ba2013-03-03 15:19:27 -080030 i2c@f9927000 { /* BLSP1 QUP5 */
31 synaptics@20 {
32 compatible = "synaptics,rmi4";
33 reg = <0x20>;
34 interrupt-parent = <&msmgpio>;
35 interrupts = <17 0x2>;
36 vdd-supply = <&pm8226_l19>;
37 vcc_i2c-supply = <&pm8226_lvs1>;
38 synaptics,reset-gpio = <&msmgpio 16 0x00>;
39 synaptics,irq-gpio = <&msmgpio 17 0x00>;
40 synaptics,button-map = <139 102 158>;
41 synaptics,i2c-pull-up;
42 synaptics,reg-en;
43 };
44 };
Amy Maloche24c59dd2013-03-05 11:43:55 -080045
46 gpio_keys {
47 compatible = "gpio-keys";
48 input-name = "gpio-keys";
49
50 camera_focus {
51 label = "camera_focus";
52 gpios = <&msmgpio 108 0x1>;
53 linux,input-type = <1>;
54 linux,code = <0x210>;
55 gpio-key,wakeup;
56 debounce-interval = <15>;
57 };
58
59 camera_snapshot {
60 label = "camera_snapshot";
61 gpios = <&msmgpio 107 0x1>;
62 linux,input-type = <1>;
63 linux,code = <0x2fe>;
64 gpio-key,wakeup;
65 debounce-interval = <15>;
66 };
67
68 vol_up {
69 label = "volume_up";
70 gpios = <&msmgpio 106 0x1>;
71 linux,input-type = <1>;
72 linux,code = <115>;
73 gpio-key,wakeup;
74 debounce-interval = <15>;
75 };
76 };
aiqunyb1e82f32013-03-13 15:35:53 -070077
78 spi@f9923000 {
79 ethernet-switch@3 {
80 compatible = "micrel,ks8851";
81 reg = <3>;
82 interrupt-parent = <&msmgpio>;
83 interrupts = <0 115 0>;
84 spi-max-frequency = <4800000>;
85 rst-gpio = <&msmgpio 114 0>;
86 vdd-io-supply = <&pm8226_lvs1>;
87 vdd-phy-supply = <&pm8226_lvs1>;
88 };
89 };
Bhalchandra Gajarecb0508d2013-03-07 17:33:14 -080090
91 sound {
92 qcom,cdc-mclk-gpios = <&pm8226_gpios 1 0>;
Bhalchandra Gajareb5120842013-03-14 17:50:39 -070093 qcom,cdc-vdd-spkr-gpios = <&pm8226_gpios 2 0>;
Bhalchandra Gajarecb0508d2013-03-07 17:33:14 -080094 };
Hanumant Singh2278ab32013-02-21 15:32:17 -080095};
Krishna Konda0fb72092013-02-26 16:35:51 -080096
97&sdcc1 {
98 vdd-supply = <&pm8226_l17>;
99 qcom,vdd-always-on;
100 qcom,vdd-lpm-sup;
101 qcom,vdd-voltage-level = <2950000 2950000>;
102 qcom,vdd-current-level = <800 500000>;
103
104 vdd-io-supply = <&pm8226_l6>;
105 qcom,vdd-io-always-on;
106 qcom,vdd-io-voltage-level = <1800000 1800000>;
107 qcom,vdd-io-current-level = <250 154000>;
108
109 qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
110 qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
111 qcom,pad-drv-on = <0x4 0x4 0x4>; /* 16mA, 10mA, 10mA */
112 qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */
113
114 qcom,clk-rates = <400000 25000000 50000000 100000000 200000000>;
115 qcom,sup-voltages = <2950 2950>;
116
117 qcom,bus-speed-mode = "HS200_1p8v", "DDR_1p8v";
118 qcom,nonremovable;
119
120 status = "ok";
121};
122
123&sdcc2 {
124 vdd-supply = <&pm8226_l18>;
125 qcom,vdd-voltage-level = <2950000 2950000>;
126 qcom,vdd-current-level = <9000 800000>;
127
128 vdd-io-supply = <&pm8226_l21>;
129 qcom,vdd-io-always-on;
130 qcom,vdd-io-lpm-sup;
131 qcom,vdd-io-voltage-level = <1800000 2950000>;
132 qcom,vdd-io-current-level = <6 22000>;
133
134 qcom,pad-pull-on = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
135 qcom,pad-pull-off = <0x0 0x3 0x3>; /* no-pull, pull-up, pull-up */
136 qcom,pad-drv-on = <0x4 0x4 0x4>; /* 16mA, 10mA, 10mA */
137 qcom,pad-drv-off = <0x0 0x0 0x0>; /* 2mA, 2mA, 2mA */
138
139 qcom,clk-rates = <400000 25000000 50000000 100000000 200000000>;
140 qcom,sup-voltages = <2950 2950>;
141
142 qcom,xpc;
143 qcom,bus-speed-mode = "SDR12", "SDR25", "SDR50", "DDR50", "SDR104";
144 qcom,current-limit = <600>;
145
146 #address-cells = <0>;
147 interrupt-parent = <&sdcc2>;
148 interrupts = <0 1 2>;
149 #interrupt-cells = <1>;
150 interrupt-map-mask = <0xffffffff>;
151 interrupt-map = <0 &intc 0 125 0
152 1 &intc 0 220 0
153 2 &msmgpio 38 0x3>;
154 interrupt-names = "core_irq", "bam_irq", "status_irq";
155 cd-gpios = <&msmgpio 38 0x1>;
156
157 status = "ok";
158};
Amy Maloched699b942013-03-03 15:47:52 -0800159
160&spmi_bus {
161 qcom,pm8226@1 {
162 qcom,leds@d800 {
163 status = "okay";
164 qcom,wled_0 {
165 label = "wled";
166 linux,name = "wled:backlight";
167 linux,default-trigger = "bkl-trigger";
168 qcom,cs-out-en;
169 qcom,op-fdbck;
170 qcom,default-state = "on";
171 qcom,max-current = <25>;
172 qcom,ctrl-delay-us = <0>;
173 qcom,boost-curr-lim = <3>;
174 qcom,cp-sel = <0>;
175 qcom,switch-freq = <2>;
176 qcom,ovp-val = <2>;
177 qcom,num-strings = <1>;
178 qcom,id = <0>;
179 };
180 };
181 };
182};
David Keitel7f3f8252013-02-27 15:24:44 -0800183
184&pm8226_gpios {
185 gpio@c000 { /* GPIO 1 */
Bhalchandra Gajarecb0508d2013-03-07 17:33:14 -0800186 /* XO_PMIC_CDC_MCLK enable for tapan codec */
187 qcom,mode = <1>; /* Digital output */
188 qcom,output-type = <0>; /* CMOS logic */
189 qcom,pull = <5>; /* QPNP_PIN_PULL_NO*/
190 qcom,vin-sel = <2>; /* QPNP_PIN_VIN2 */
191 qcom,out-strength = <3>;/* QPNP_PIN_OUT_STRENGTH_HIGH */
192 qcom,src-sel = <2>; /* QPNP_PIN_SEL_FUNC_1 */
193 qcom,master-en = <1>; /* Enable GPIO */
David Keitel7f3f8252013-02-27 15:24:44 -0800194 };
195
196 gpio@c100 { /* GPIO 2 */
Bhalchandra Gajareb5120842013-03-14 17:50:39 -0700197 qcom,mode = <1>;
198 qcom,output-type = <0>;
199 qcom,pull = <5>;
200 qcom,vin-sel = <2>;
201 qcom,out-strength = <3>;
202 qcom,src-sel = <2>;
203 qcom,master-en = <1>;
David Keitel7f3f8252013-02-27 15:24:44 -0800204 };
205
206 gpio@c200 { /* GPIO 3 */
207 };
208
209 gpio@c300 { /* GPIO 4 */
210 };
211
212 gpio@c400 { /* GPIO 5 */
213 };
214
215 gpio@c500 { /* GPIO 6 */
216 };
217
218 gpio@c600 { /* GPIO 7 */
219 };
220
221 gpio@c700 { /* GPIO 8 */
222 };
223};
224
225&pm8226_mpps {
226 mpp@a000 { /* MPP 1 */
227 };
228
229 mpp@a100 { /* MPP 2 */
230 };
231
232 mpp@a200 { /* MPP 3 */
233 };
234
235 mpp@a300 { /* MPP 4 */
236 };
237
238 mpp@a400 { /* MPP 5 */
239 };
240
241 mpp@a500 { /* MPP 6 */
242 };
243
244 mpp@a600 { /* MPP 7 */
245 };
246
247 mpp@a700 { /* MPP 8 */
248 };
249};
Fenglin Wu009098a2013-03-08 15:50:51 -0800250
251&pm8226_chg {
252 qcom,chg-charging-disabled;
253 qcom,chg-use-default-batt-values;
254};