2 * Copyright 2014 Linaro Ltd.
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:
8 * http://www.opensource.org/licenses/gpl-license.html
9 * http://www.gnu.org/copyleft/gpl.html
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>,
34 <&gpio35_default_mode>,
35 <&ycbcr_default_mode>,
38 <&usbuicc_default_mode>,
40 <&extcpena_default_mode>,
41 <&modsclsda_default_mode>;
44 * Pins 2, 4, 10, 11, 12, 13, 16, 24, 25, 36, 37, 38, 39 and 42
45 * are muxed in as GPIO, and configured as INPUT PULL DOWN
48 gpio2_default_mode: gpio2_default {
50 ste,function = "gpio";
51 ste,pins = "gpio2_a_1";
54 ste,pins = "GPIO2_T9";
61 gpio4_default_mode: gpio4_default {
63 ste,function = "gpio";
64 ste,pins = "gpio4_a_1";
67 ste,pins = "GPIO4_W2";
74 gpio10_default_mode: gpio10_default {
76 ste,function = "gpio";
77 ste,pins = "gpio10_d_1";
80 ste,pins = "GPIO10_U17";
87 gpio11_default_mode: gpio11_default {
89 ste,function = "gpio";
90 ste,pins = "gpio11_d_1";
93 ste,pins = "GPIO11_AA18";
100 gpio12_default_mode: gpio12_default {
102 ste,function = "gpio";
103 ste,pins = "gpio12_d_1";
106 ste,pins = "GPIO12_U16";
113 gpio13_default_mode: gpio13_default {
115 ste,function = "gpio";
116 ste,pins = "gpio13_d_1";
119 ste,pins = "GPIO13_W17";
126 gpio16_default_mode: gpio16_default {
128 ste,function = "gpio";
129 ste,pins = "gpio16_a_1";
132 ste,pins = "GPIO16_F15";
139 gpio24_default_mode: gpio24_default {
141 ste,function = "gpio";
142 ste,pins = "gpio24_a_1";
145 ste,pins = "GPIO24_T14";
152 gpio25_default_mode: gpio25_default {
154 ste,function = "gpio";
155 ste,pins = "gpio25_a_1";
158 ste,pins = "GPIO25_R16";
165 gpio36_default_mode: gpio36_default {
167 ste,function = "gpio";
168 ste,pins = "gpio36_a_1";
171 ste,pins = "GPIO36_A17";
178 gpio37_default_mode: gpio37_default {
180 ste,function = "gpio";
181 ste,pins = "gpio37_a_1";
184 ste,pins = "GPIO37_E15";
191 gpio38_default_mode: gpio38_default {
193 ste,function = "gpio";
194 ste,pins = "gpio38_a_1";
197 ste,pins = "GPIO38_C17";
204 gpio39_default_mode: gpio39_default {
206 ste,function = "gpio";
207 ste,pins = "gpio39_a_1";
210 ste,pins = "GPIO39_E16";
217 gpio42_default_mode: gpio42_default {
219 ste,function = "gpio";
220 ste,pins = "gpio42_a_1";
223 ste,pins = "GPIO42_U2";
230 * Pins 26 and 35 muxed in as GPIO, and configured as OUTPUT LOW
233 gpio26_default_mode: gpio26_default {
235 ste,function = "gpio";
236 ste,pins = "gpio26_d_1";
239 ste,pins = "GPIO26_M16";
245 gpio35_default_mode: gpio35_default {
247 ste,function = "gpio";
248 ste,pins = "gpio35_d_1";
251 ste,pins = "GPIO35_W15";
257 * This sets up the YCBCR connector pins, i.e. analog video out.
258 * Set as input with no bias.
261 ycbcr_default_mode: ycbcr_default {
263 ste,function = "ycbcr";
264 ste,pins = "ycbcr0123_d_1";
267 ste,pins = "GPIO6_Y18",
276 /* This sets up the PWM pins 14 and 15 */
278 pwm_default_mode: pwm_default {
280 ste,function = "pwmout";
281 ste,pins = "pwmout1_d_1", "pwmout2_d_1";
284 ste,pins = "GPIO14_F14",
291 /* This sets up audio interface 1 */
293 adi1_default_mode: adi1_default {
295 ste,function = "adi1";
296 ste,pins = "adi1_d_1";
299 ste,pins = "GPIO17_P5",
308 /* This sets up the USB UICC pins */
310 usbuicc_default_mode: usbuicc_default {
312 ste,function = "usbuicc";
313 ste,pins = "usbuicc_d_1";
316 ste,pins = "GPIO21_H19",
324 /* This sets up the microphone pins */
326 dmic_default_mode: dmic_default {
328 ste,function = "dmic";
329 ste,pins = "dmic12_d_1",
334 ste,pins = "GPIO27_J6",
346 extcpena_default_mode: extcpena_default {
348 ste,function = "extcpena";
349 ste,pins = "extcpena_d_1";
352 ste,pins = "GPIO34_R17";
358 /* Modem I2C setup (SCL and SDA pins) */
360 modsclsda_default_mode: modsclsda_default {
362 ste,function = "modsclsda";
363 ste,pins = "modsclsda_d_1";
366 ste,pins = "GPIO40_T19",
374 * Clock output pins associated with regulators.
377 sysclkreq2_default_mode: sysclkreq2_default {
379 ste,function = "sysclkreq";
380 ste,pins = "sysclkreq2_d_1";
383 ste,pins = "GPIO1_T10";
388 sysclkreq2_sleep_mode: sysclkreq2_sleep {
390 ste,function = "gpio";
391 ste,pins = "gpio1_a_1";
394 ste,pins = "GPIO1_T10";
401 sysclkreq4_default_mode: sysclkreq4_default {
403 ste,function = "sysclkreq";
404 ste,pins = "sysclkreq4_d_1";
407 ste,pins = "GPIO3_U9";
412 sysclkreq4_sleep_mode: sysclkreq4_sleep {
414 ste,function = "gpio";
415 ste,pins = "gpio3_a_1";
418 ste,pins = "GPIO3_U9";