blob: de1d41ba9aa5482df57aa31f7f9f839a291b0afd [file] [log] [blame]
Amir Samuelovf3f42582012-09-06 14:34:09 +03001/* Copyright (c) 2012, 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
15/include/ "msm8974.dtsi"
16
17/ {
18 model = "Qualcomm MSM 8974 LIQUID";
19 compatible = "qcom,msm8974-liquid", "qcom,msm8974";
20 qcom,msm-id = <126 9 0>;
21
22 serial@f991e000 {
23 status = "ok";
24 };
Amy Maloched96a26f2012-09-24 17:00:00 -070025
26 gpio_keys {
27 compatible = "gpio-keys";
28 input-name = "gpio-keys";
29
30 home {
31 label = "home";
32 gpios = <&pm8941_gpios 1 0x1>;
33 linux,input-type = <1>;
34 linux,code = <102>;
35 gpio-key,wakeup;
36 debounce-interval = <15>;
37 };
38
39 vol_down {
40 label = "volume_down";
41 gpios = <&pm8941_gpios 2 0x1>;
42 linux,input-type = <1>;
43 linux,code = <114>;
44 gpio-key,wakeup;
45 debounce-interval = <15>;
46 };
47
48 vol_up {
49 label = "volume_up";
50 gpios = <&pm8941_gpios 5 0x1>;
51 linux,input-type = <1>;
52 linux,code = <115>;
53 gpio-key,wakeup;
54 debounce-interval = <15>;
55 };
56 };
Amir Samuelovf3f42582012-09-06 14:34:09 +030057};
58
Michael Bohand5ea7242012-10-01 18:01:51 -070059&pm8941_gpios {
60 gpio@c000 { /* GPIO 1 */
Amy Maloched96a26f2012-09-24 17:00:00 -070061 qcom,mode = <0>;
62 qcom,pull = <0>;
63 qcom,vin-sel = <2>;
64 qcom,select = <0>;
Michael Bohand5ea7242012-10-01 18:01:51 -070065 };
Amir Samuelovf3f42582012-09-06 14:34:09 +030066
Michael Bohand5ea7242012-10-01 18:01:51 -070067 gpio@c100 { /* GPIO 2 */
Amy Maloched96a26f2012-09-24 17:00:00 -070068 qcom,mode = <0>;
69 qcom,pull = <0>;
70 qcom,vin-sel = <2>;
71 qcom,select = <0>;
Michael Bohand5ea7242012-10-01 18:01:51 -070072 };
73
74 gpio@c200 { /* GPIO 3 */
Michael Bohand5ea7242012-10-01 18:01:51 -070075 };
76
77 gpio@c300 { /* GPIO 4 */
Michael Bohand5ea7242012-10-01 18:01:51 -070078 };
79
80 gpio@c400 { /* GPIO 5 */
81 qcom,mode = <0>;
82 qcom,pull = <0>;
83 qcom,vin-sel = <2>;
84 qcom,select = <0>;
85 };
86
87 gpio@c500 { /* GPIO 6 */
88 };
89
90 gpio@c600 { /* GPIO 7 */
91 };
92
93 gpio@c700 { /* GPIO 8 */
94 };
95
96 gpio@c800 { /* GPIO 9 */
97 };
98
99 gpio@c900 { /* GPIO 10 */
100 };
101
102 gpio@ca00 { /* GPIO 11 */
103 };
104
105 gpio@cb00 { /* GPIO 12 */
106 };
107
108 gpio@cc00 { /* GPIO 13 */
109 };
110
111 gpio@cd00 { /* GPIO 14 */
112 };
113
114 gpio@ce00 { /* GPIO 15 */
115 qcom,mode = <1>;
116 qcom,output-type = <0>;
117 qcom,pull = <5>;
118 qcom,vin-sel = <2>;
119 qcom,out-strength = <3>;
120 qcom,src-select = <2>;
121 qcom,master-en = <1>;
122 };
123
124 gpio@cf00 { /* GPIO 16 */
125 };
126
127 gpio@d000 { /* GPIO 17 */
128 };
129
130 gpio@d100 { /* GPIO 18 */
131 };
132
133 gpio@d200 { /* GPIO 19 */
134 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
135 qcom,output-type = <0>; /* QPNP_PIN_OUT_BUF_CMOS */
136 qcom,pull = <5>; /* QPNP_PIN_PULL_NO */
137 qcom,vin-sel = <2>; /* QPNP_PIN_VIN2 */
138 qcom,out-strength = <2>; /* QPNP_PIN_OUT_STRENGTH_MED */
139 qcom,src-select = <0>; /* QPNP_PIN_SEL_FUNC_CONSTANT */
140 qcom,master-en = <1>;
141 };
142
143 gpio@d300 { /* GPIO 20 */
144 };
145
146 gpio@d400 { /* GPIO 21 */
147 };
148
149 gpio@d500 { /* GPIO 22 */
150 };
151
152 gpio@d600 { /* GPIO 23 */
153 };
154
155 gpio@d700 { /* GPIO 24 */
156 };
157
158 gpio@d800 { /* GPIO 25 */
159 };
160
161 gpio@d900 { /* GPIO 26 */
162 };
163
164 gpio@da00 { /* GPIO 27 */
165 };
166
167 gpio@db00 { /* GPIO 28 */
168 };
169
170 gpio@dc00 { /* GPIO 29 */
171 qcom,pull = <0>; /* set to default pull */
172 qcom,master-en = <1>;
173 qcom,vin-sel = <2>; /* select 1.8 V source */
174 };
175
176 gpio@dd00 { /* GPIO 30 */
177 };
178
179 gpio@de00 { /* GPIO 31 */
180 };
181
182 gpio@df00 { /* GPIO 32 */
183 };
184
185 gpio@e000 { /* GPIO 33 */
186 };
187
188 gpio@e100 { /* GPIO 34 */
189 };
190
191 gpio@e200 { /* GPIO 35 */
192 };
193
194 gpio@e300 { /* GPIO 36 */
195 };
196};
197
198&pm8941_mpps {
199
200 mpp@a000 { /* MPP 1 */
201 };
202
203 mpp@a100 { /* MPP 2 */
204 };
205
206 mpp@a200 { /* MPP 3 */
207 };
208
209 mpp@a300 { /* MPP 4 */
210 };
211
212 mpp@a400 { /* MPP 5 */
213 /* SPI_ETH config */
214 qcom,mode = <1>; /* DIG_OUT */
215 qcom,output-type = <0>; /* CMOS */
216 qcom,vin-sel = <2>; /* PM8941_S3 1.8V > 1.6V */
217 qcom,src-select = <0>; /* CONSTANT */
218 qcom,master-en = <1>; /* ENABLE MPP */
219 };
220
221 mpp@a500 { /* MPP 6 */
222 /* SPI_ETH_RST config */
223 qcom,mode = <1>; /* DIG_OUT */
224 qcom,output-type = <0>; /* CMOS */
225 qcom,vin-sel = <2>; /* PM8941_S3 1.8V > 1.6V */
226 qcom,src-select = <0>; /* CONSTANT */
227 qcom,master-en = <1>; /* ENABLE MPP */
228 };
229
230 mpp@a600 { /* MPP 7 */
231 };
232
233 mpp@a700 { /* MPP 8 */
234 };
235};
236
237&pm8841_mpps {
238
239 mpp@a000 { /* MPP 1 */
240 };
241
242 mpp@a100 { /* MPP 2 */
243 };
244
Asaf Penso94f13cb2012-10-16 22:31:47 +0200245 mpp@a200 { /* HDMI_MUX_SEL MPP 3*/
246 status = "ok";
247 qcom,mode = <1>; /* DIG_OUT */
248 qcom,output-type = <0>; /* CMOS */
249 qcom,vin-sel = <2>; /* PM8841_S3A 1.8V */
250 qcom,src-select = <0>; /* CONSTANT */
251 qcom,master-en = <1>; /* ENABLE MPP */
Michael Bohand5ea7242012-10-01 18:01:51 -0700252 };
253
Asaf Penso94f13cb2012-10-16 22:31:47 +0200254 mpp@a300 { /* HDMI_MUX_EN MPP 4*/
255 status = "ok";
256 qcom,mode = <1>; /* DIG_OUT */
257 qcom,output-type = <0>; /* CMOS */
258 qcom,vin-sel = <0>; /* PM8841_VPH 3.4V */
259 qcom,src-select = <0>; /* CONSTANT */
260 qcom,master-en = <1>; /* ENABLE MPP */
Michael Bohand5ea7242012-10-01 18:01:51 -0700261 };
262};