Commit | Line | Data |
---|---|---|
83200629 LW |
1 | /* |
2 | * Copyright 2014 Linaro Ltd. | |
3 | * | |
4 | * The code contained herein is licensed under the GNU General Public | |
5 | * License. You may obtain a copy of the GNU General Public License | |
6 | * Version 2 or later at the following locations: | |
7 | * | |
8 | * http://www.opensource.org/licenses/gpl-license.html | |
9 | * http://www.gnu.org/copyleft/gpl.html | |
10 | */ | |
11 | ||
12 | / { | |
13 | soc { | |
14 | prcmu@80157000 { | |
15 | ab8500 { | |
16 | ab8500-gpio { | |
17 | /* Hog a few default settings */ | |
18 | pinctrl-names = "default"; | |
19 | pinctrl-0 = <&gpio2_default_mode>, | |
20 | <&gpio4_default_mode>, | |
21 | <&gpio10_default_mode>, | |
22 | <&gpio11_default_mode>, | |
23 | <&gpio12_default_mode>, | |
24 | <&gpio13_default_mode>, | |
25 | <&gpio16_default_mode>, | |
26 | <&gpio24_default_mode>, | |
27 | <&gpio25_default_mode>, | |
28 | <&gpio36_default_mode>, | |
29 | <&gpio37_default_mode>, | |
30 | <&gpio38_default_mode>, | |
31 | <&gpio39_default_mode>, | |
32 | <&gpio42_default_mode>, | |
33 | <&gpio26_default_mode>, | |
fd385b33 | 34 | <&gpio35_default_mode>, |
e2377c81 | 35 | <&ycbcr_default_mode>, |
b2985cf7 | 36 | <&pwm_default_mode>, |
c7bb47aa | 37 | <&adi1_default_mode>, |
1f04159e | 38 | <&usbuicc_default_mode>, |
81d78492 LW |
39 | <&dmic_default_mode>, |
40 | <&extcpena_default_mode>; | |
83200629 LW |
41 | |
42 | /* | |
43 | * Pins 2, 4, 10, 11, 12, 13, 16, 24, 25, 36, 37, 38, 39 and 42 | |
44 | * are muxed in as GPIO, and configured as INPUT PULL DOWN | |
45 | */ | |
46 | gpio2 { | |
47 | gpio2_default_mode: gpio2_default { | |
48 | default_mux { | |
49 | ste,function = "gpio"; | |
50 | ste,pins = "gpio2_a_1"; | |
51 | }; | |
52 | default_cfg { | |
53 | ste,pins = "GPIO2_T9"; | |
54 | input-enable; | |
55 | bias-pull-down; | |
56 | }; | |
57 | }; | |
58 | }; | |
59 | gpio4 { | |
60 | gpio4_default_mode: gpio4_default { | |
61 | default_mux { | |
62 | ste,function = "gpio"; | |
63 | ste,pins = "gpio4_a_1"; | |
64 | }; | |
65 | default_cfg { | |
66 | ste,pins = "GPIO4_W2"; | |
67 | input-enable; | |
68 | bias-pull-down; | |
69 | }; | |
70 | }; | |
71 | }; | |
72 | gpio10 { | |
73 | gpio10_default_mode: gpio10_default { | |
74 | default_mux { | |
75 | ste,function = "gpio"; | |
76 | ste,pins = "gpio10_d_1"; | |
77 | }; | |
78 | default_cfg { | |
79 | ste,pins = "GPIO10_U17"; | |
80 | input-enable; | |
81 | bias-pull-down; | |
82 | }; | |
83 | }; | |
84 | }; | |
85 | gpio11 { | |
86 | gpio11_default_mode: gpio11_default { | |
87 | default_mux { | |
88 | ste,function = "gpio"; | |
89 | ste,pins = "gpio11_d_1"; | |
90 | }; | |
91 | default_cfg { | |
92 | ste,pins = "GPIO11_AA18"; | |
93 | input-enable; | |
94 | bias-pull-down; | |
95 | }; | |
96 | }; | |
97 | }; | |
98 | gpio12 { | |
99 | gpio12_default_mode: gpio12_default { | |
100 | default_mux { | |
101 | ste,function = "gpio"; | |
102 | ste,pins = "gpio12_d_1"; | |
103 | }; | |
104 | default_cfg { | |
105 | ste,pins = "GPIO12_U16"; | |
106 | input-enable; | |
107 | bias-pull-down; | |
108 | }; | |
109 | }; | |
110 | }; | |
111 | gpio13 { | |
112 | gpio13_default_mode: gpio13_default { | |
113 | default_mux { | |
114 | ste,function = "gpio"; | |
115 | ste,pins = "gpio13_d_1"; | |
116 | }; | |
117 | default_cfg { | |
118 | ste,pins = "GPIO13_W17"; | |
119 | input-enable; | |
120 | bias-pull-down; | |
121 | }; | |
122 | }; | |
123 | }; | |
124 | gpio16 { | |
125 | gpio16_default_mode: gpio16_default { | |
126 | default_mux { | |
127 | ste,function = "gpio"; | |
128 | ste,pins = "gpio16_a_1"; | |
129 | }; | |
130 | default_cfg { | |
131 | ste,pins = "GPIO16_F15"; | |
132 | input-enable; | |
133 | bias-pull-down; | |
134 | }; | |
135 | }; | |
136 | }; | |
137 | gpio24 { | |
138 | gpio24_default_mode: gpio24_default { | |
139 | default_mux { | |
140 | ste,function = "gpio"; | |
141 | ste,pins = "gpio24_a_1"; | |
142 | }; | |
143 | default_cfg { | |
144 | ste,pins = "GPIO24_T14"; | |
145 | input-enable; | |
146 | bias-pull-down; | |
147 | }; | |
148 | }; | |
149 | }; | |
150 | gpio25 { | |
151 | gpio25_default_mode: gpio25_default { | |
152 | default_mux { | |
153 | ste,function = "gpio"; | |
154 | ste,pins = "gpio25_a_1"; | |
155 | }; | |
156 | default_cfg { | |
157 | ste,pins = "GPIO25_R16"; | |
158 | input-enable; | |
159 | bias-pull-down; | |
160 | }; | |
161 | }; | |
162 | }; | |
163 | gpio36 { | |
164 | gpio36_default_mode: gpio36_default { | |
165 | default_mux { | |
166 | ste,function = "gpio"; | |
167 | ste,pins = "gpio36_a_1"; | |
168 | }; | |
169 | default_cfg { | |
170 | ste,pins = "GPIO36_A17"; | |
171 | input-enable; | |
172 | bias-pull-down; | |
173 | }; | |
174 | }; | |
175 | }; | |
176 | gpio37 { | |
177 | gpio37_default_mode: gpio37_default { | |
178 | default_mux { | |
179 | ste,function = "gpio"; | |
180 | ste,pins = "gpio37_a_1"; | |
181 | }; | |
182 | default_cfg { | |
183 | ste,pins = "GPIO37_E15"; | |
184 | input-enable; | |
185 | bias-pull-down; | |
186 | }; | |
187 | }; | |
188 | }; | |
189 | gpio38 { | |
190 | gpio38_default_mode: gpio38_default { | |
191 | default_mux { | |
192 | ste,function = "gpio"; | |
193 | ste,pins = "gpio38_a_1"; | |
194 | }; | |
195 | default_cfg { | |
196 | ste,pins = "GPIO38_C17"; | |
197 | input-enable; | |
198 | bias-pull-down; | |
199 | }; | |
200 | }; | |
201 | }; | |
202 | gpio39 { | |
203 | gpio39_default_mode: gpio39_default { | |
204 | default_mux { | |
205 | ste,function = "gpio"; | |
206 | ste,pins = "gpio39_a_1"; | |
207 | }; | |
208 | default_cfg { | |
209 | ste,pins = "GPIO39_E16"; | |
210 | input-enable; | |
211 | bias-pull-down; | |
212 | }; | |
213 | }; | |
214 | }; | |
215 | gpio42 { | |
216 | gpio42_default_mode: gpio42_default { | |
217 | default_mux { | |
218 | ste,function = "gpio"; | |
219 | ste,pins = "gpio42_a_1"; | |
220 | }; | |
221 | default_cfg { | |
222 | ste,pins = "GPIO42_U2"; | |
223 | input-enable; | |
224 | bias-pull-down; | |
225 | }; | |
226 | }; | |
227 | }; | |
228 | /* | |
229 | * Pins 26 and 35 muxed in as GPIO, and configured as OUTPUT LOW | |
230 | */ | |
231 | gpio26 { | |
232 | gpio26_default_mode: gpio26_default { | |
233 | default_mux { | |
234 | ste,function = "gpio"; | |
235 | ste,pins = "gpio26_d_1"; | |
236 | }; | |
237 | default_cfg { | |
238 | ste,pins = "GPIO26_M16"; | |
239 | output-low; | |
240 | }; | |
241 | }; | |
242 | }; | |
243 | gpio35 { | |
244 | gpio35_default_mode: gpio35_default { | |
245 | default_mux { | |
246 | ste,function = "gpio"; | |
247 | ste,pins = "gpio35_d_1"; | |
248 | }; | |
249 | default_cfg { | |
250 | ste,pins = "GPIO35_W15"; | |
251 | output-low; | |
252 | }; | |
253 | }; | |
254 | }; | |
fd385b33 LW |
255 | /* |
256 | * This sets up the YCBCR connector pins, i.e. analog video out. | |
257 | * Set as input with no bias. | |
258 | */ | |
259 | ycbcr { | |
260 | ycbcr_default_mode: ycbcr_default { | |
261 | default_mux { | |
262 | ste,function = "ycbcr"; | |
263 | ste,pins = "ycbcr0123_d_1"; | |
264 | }; | |
265 | default_cfg { | |
266 | ste,pins = "GPIO6_Y18", | |
267 | "GPIO7_AA20", | |
268 | "GPIO8_W18", | |
269 | "GPIO9_AA19"; | |
270 | input-enable; | |
271 | bias-disable; | |
272 | }; | |
273 | }; | |
274 | }; | |
e2377c81 LW |
275 | /* This sets up the PWM pins 14 and 15 */ |
276 | pwm { | |
277 | pwm_default_mode: pwm_default { | |
278 | default_mux { | |
279 | ste,function = "pwmout"; | |
280 | ste,pins = "pwmout1_d_1", "pwmout2_d_1"; | |
281 | }; | |
282 | default_cfg { | |
283 | ste,pins = "GPIO14_F14", | |
284 | "GPIO15_B17"; | |
285 | input-enable; | |
286 | bias-pull-down; | |
287 | }; | |
288 | }; | |
289 | }; | |
b2985cf7 LW |
290 | /* This sets up audio interface 1 */ |
291 | adi1 { | |
292 | adi1_default_mode: adi1_default { | |
293 | default_mux { | |
294 | ste,function = "adi1"; | |
295 | ste,pins = "adi1_d_1"; | |
296 | }; | |
297 | default_cfg { | |
298 | ste,pins = "GPIO17_P5", | |
299 | "GPIO18_R5", | |
300 | "GPIO19_U5", | |
301 | "GPIO20_T5"; | |
302 | input-enable; | |
303 | bias-pull-down; | |
304 | }; | |
305 | }; | |
306 | }; | |
c7bb47aa LW |
307 | /* This sets up the USB UICC pins */ |
308 | usbuicc { | |
309 | usbuicc_default_mode: usbuicc_default { | |
310 | default_mux { | |
311 | ste,function = "usbuicc"; | |
312 | ste,pins = "usbuicc_d_1"; | |
313 | }; | |
314 | default_cfg { | |
315 | ste,pins = "GPIO21_H19", | |
316 | "GPIO22_G20", | |
317 | "GPIO23_G19"; | |
318 | input-enable; | |
319 | bias-pull-down; | |
320 | }; | |
321 | }; | |
322 | }; | |
1f04159e LW |
323 | /* This sets up the microphone pins */ |
324 | dmic { | |
325 | dmic_default_mode: dmic_default { | |
326 | default_mux { | |
327 | ste,function = "dmic"; | |
328 | ste,pins = "dmic12_d_1", | |
329 | "dmic34_d_1", | |
330 | "dmic56_d_1"; | |
331 | }; | |
332 | default_cfg { | |
333 | ste,pins = "GPIO27_J6", | |
334 | "GPIO28_K6", | |
335 | "GPIO29_G6", | |
336 | "GPIO30_H6", | |
337 | "GPIO31_F5", | |
338 | "GPIO32_G5"; | |
339 | input-enable; | |
340 | bias-pull-down; | |
341 | }; | |
342 | }; | |
343 | }; | |
81d78492 LW |
344 | extcpena { |
345 | extcpena_default_mode: extcpena_default { | |
346 | default_mux { | |
347 | ste,function = "extcpena"; | |
348 | ste,pins = "extcpena_d_1"; | |
349 | }; | |
350 | default_cfg { | |
351 | ste,pins = "GPIO34_R17"; | |
352 | input-enable; | |
353 | bias-pull-down; | |
354 | }; | |
355 | }; | |
356 | }; | |
83200629 LW |
357 | }; |
358 | }; | |
359 | }; | |
360 | }; | |
361 | }; |