blob: bc682ea7e6bf96a83513f0ac1e02ca6ebae634a1 [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 };
Ujwal Patelc8433752012-10-10 13:46:01 -070057
58 qcom,hdmi_tx@fd922100 {
59 status = "ok";
60 };
Amir Samuelovf3f42582012-09-06 14:34:09 +030061};
62
Michael Bohand5ea7242012-10-01 18:01:51 -070063&pm8941_gpios {
64 gpio@c000 { /* GPIO 1 */
Amy Maloched96a26f2012-09-24 17:00:00 -070065 qcom,mode = <0>;
66 qcom,pull = <0>;
67 qcom,vin-sel = <2>;
68 qcom,select = <0>;
Michael Bohand5ea7242012-10-01 18:01:51 -070069 };
Amir Samuelovf3f42582012-09-06 14:34:09 +030070
Michael Bohand5ea7242012-10-01 18:01:51 -070071 gpio@c100 { /* GPIO 2 */
Amy Maloched96a26f2012-09-24 17:00:00 -070072 qcom,mode = <0>;
73 qcom,pull = <0>;
74 qcom,vin-sel = <2>;
75 qcom,select = <0>;
Michael Bohand5ea7242012-10-01 18:01:51 -070076 };
77
78 gpio@c200 { /* GPIO 3 */
Michael Bohand5ea7242012-10-01 18:01:51 -070079 };
80
81 gpio@c300 { /* GPIO 4 */
Michael Bohand5ea7242012-10-01 18:01:51 -070082 };
83
84 gpio@c400 { /* GPIO 5 */
85 qcom,mode = <0>;
86 qcom,pull = <0>;
87 qcom,vin-sel = <2>;
88 qcom,select = <0>;
89 };
90
91 gpio@c500 { /* GPIO 6 */
92 };
93
94 gpio@c600 { /* GPIO 7 */
95 };
96
97 gpio@c700 { /* GPIO 8 */
98 };
99
100 gpio@c800 { /* GPIO 9 */
101 };
102
103 gpio@c900 { /* GPIO 10 */
104 };
105
106 gpio@ca00 { /* GPIO 11 */
107 };
108
109 gpio@cb00 { /* GPIO 12 */
110 };
111
112 gpio@cc00 { /* GPIO 13 */
113 };
114
115 gpio@cd00 { /* GPIO 14 */
116 };
117
118 gpio@ce00 { /* GPIO 15 */
119 qcom,mode = <1>;
120 qcom,output-type = <0>;
121 qcom,pull = <5>;
122 qcom,vin-sel = <2>;
123 qcom,out-strength = <3>;
124 qcom,src-select = <2>;
125 qcom,master-en = <1>;
126 };
127
128 gpio@cf00 { /* GPIO 16 */
129 };
130
131 gpio@d000 { /* GPIO 17 */
132 };
133
134 gpio@d100 { /* GPIO 18 */
135 };
136
137 gpio@d200 { /* GPIO 19 */
138 qcom,mode = <1>; /* QPNP_PIN_MODE_DIG_OUT */
139 qcom,output-type = <0>; /* QPNP_PIN_OUT_BUF_CMOS */
140 qcom,pull = <5>; /* QPNP_PIN_PULL_NO */
141 qcom,vin-sel = <2>; /* QPNP_PIN_VIN2 */
142 qcom,out-strength = <2>; /* QPNP_PIN_OUT_STRENGTH_MED */
143 qcom,src-select = <0>; /* QPNP_PIN_SEL_FUNC_CONSTANT */
144 qcom,master-en = <1>;
145 };
146
147 gpio@d300 { /* GPIO 20 */
148 };
149
150 gpio@d400 { /* GPIO 21 */
151 };
152
153 gpio@d500 { /* GPIO 22 */
154 };
155
156 gpio@d600 { /* GPIO 23 */
157 };
158
159 gpio@d700 { /* GPIO 24 */
160 };
161
162 gpio@d800 { /* GPIO 25 */
163 };
164
165 gpio@d900 { /* GPIO 26 */
166 };
167
168 gpio@da00 { /* GPIO 27 */
169 };
170
171 gpio@db00 { /* GPIO 28 */
172 };
173
174 gpio@dc00 { /* GPIO 29 */
175 qcom,pull = <0>; /* set to default pull */
176 qcom,master-en = <1>;
177 qcom,vin-sel = <2>; /* select 1.8 V source */
178 };
179
180 gpio@dd00 { /* GPIO 30 */
181 };
182
183 gpio@de00 { /* GPIO 31 */
184 };
185
186 gpio@df00 { /* GPIO 32 */
187 };
188
189 gpio@e000 { /* GPIO 33 */
190 };
191
192 gpio@e100 { /* GPIO 34 */
193 };
194
195 gpio@e200 { /* GPIO 35 */
196 };
197
198 gpio@e300 { /* GPIO 36 */
199 };
200};
201
202&pm8941_mpps {
203
204 mpp@a000 { /* MPP 1 */
205 };
206
207 mpp@a100 { /* MPP 2 */
208 };
209
210 mpp@a200 { /* MPP 3 */
211 };
212
213 mpp@a300 { /* MPP 4 */
214 };
215
216 mpp@a400 { /* MPP 5 */
217 /* SPI_ETH config */
218 qcom,mode = <1>; /* DIG_OUT */
219 qcom,output-type = <0>; /* CMOS */
220 qcom,vin-sel = <2>; /* PM8941_S3 1.8V > 1.6V */
221 qcom,src-select = <0>; /* CONSTANT */
222 qcom,master-en = <1>; /* ENABLE MPP */
223 };
224
225 mpp@a500 { /* MPP 6 */
226 /* SPI_ETH_RST config */
227 qcom,mode = <1>; /* DIG_OUT */
228 qcom,output-type = <0>; /* CMOS */
229 qcom,vin-sel = <2>; /* PM8941_S3 1.8V > 1.6V */
230 qcom,src-select = <0>; /* CONSTANT */
231 qcom,master-en = <1>; /* ENABLE MPP */
232 };
233
234 mpp@a600 { /* MPP 7 */
235 };
236
237 mpp@a700 { /* MPP 8 */
238 };
239};
240
241&pm8841_mpps {
242
243 mpp@a000 { /* MPP 1 */
244 };
245
246 mpp@a100 { /* MPP 2 */
247 };
248
249 mpp@a200 { /* MPP 3 */
250 };
251
252 mpp@a300 { /* MPP 4 */
253 };
254};