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