1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright 2014 Linaro Ltd.
6 #include "ste-ab8500.dtsi"
13 /* Hog a few default settings */
14 pinctrl-names = "default";
15 pinctrl-0 = <&gpio2_default_mode>,
16 <&gpio4_default_mode>,
17 <&gpio10_default_mode>,
18 <&gpio11_default_mode>,
19 <&gpio12_default_mode>,
20 <&gpio13_default_mode>,
21 <&gpio16_default_mode>,
22 <&gpio24_default_mode>,
23 <&gpio25_default_mode>,
24 <&gpio36_default_mode>,
25 <&gpio37_default_mode>,
26 <&gpio38_default_mode>,
27 <&gpio39_default_mode>,
28 <&gpio42_default_mode>,
29 <&gpio26_default_mode>,
30 <&gpio35_default_mode>,
31 <&ycbcr_default_mode>,
34 <&usbuicc_default_mode>,
36 <&extcpena_default_mode>,
37 <&modsclsda_default_mode>;
40 * Pins 2, 4, 10, 11, 12, 13, 16, 24, 25, 36, 37, 38, 39 and 42
41 * are muxed in as GPIO, and configured as INPUT PULL DOWN
44 gpio2_default_mode: gpio2_default {
57 gpio4_default_mode: gpio4_default {
70 gpio10_default_mode: gpio10_default {
73 groups = "gpio10_d_1";
83 gpio11_default_mode: gpio11_default {
86 groups = "gpio11_d_1";
96 gpio12_default_mode: gpio12_default {
99 groups = "gpio12_d_1";
109 gpio13_default_mode: gpio13_default {
112 groups = "gpio13_d_1";
122 gpio16_default_mode: gpio16_default {
125 groups = "gpio16_a_1";
135 gpio24_default_mode: gpio24_default {
138 groups = "gpio24_a_1";
148 gpio25_default_mode: gpio25_default {
151 groups = "gpio25_a_1";
161 gpio36_default_mode: gpio36_default {
164 groups = "gpio36_a_1";
174 gpio37_default_mode: gpio37_default {
177 groups = "gpio37_a_1";
187 gpio38_default_mode: gpio38_default {
190 groups = "gpio38_a_1";
200 gpio39_default_mode: gpio39_default {
203 groups = "gpio39_a_1";
213 gpio42_default_mode: gpio42_default {
216 groups = "gpio42_a_1";
226 * Pins 26 and 35 muxed in as GPIO, and configured as OUTPUT LOW
229 gpio26_default_mode: gpio26_default {
232 groups = "gpio26_d_1";
241 gpio35_default_mode: gpio35_default {
244 groups = "gpio35_d_1";
253 * This sets up the YCBCR connector pins, i.e. analog video out.
254 * Set as input with no bias.
257 ycbcr_default_mode: ycbcr_default {
260 groups = "ycbcr0123_d_1";
272 /* This sets up the PWM pins 14 and 15 */
274 pwm_default_mode: pwm_default {
277 groups = "pwmout1_d_1", "pwmout2_d_1";
287 /* This sets up audio interface 1 */
289 adi1_default_mode: adi1_default {
304 /* This sets up the USB UICC pins */
306 usbuicc_default_mode: usbuicc_default {
308 function = "usbuicc";
309 groups = "usbuicc_d_1";
320 /* This sets up the microphone pins */
322 dmic_default_mode: dmic_default {
325 groups = "dmic12_d_1",
342 extcpena_default_mode: extcpena_default {
344 function = "extcpena";
345 groups = "extcpena_d_1";
354 /* Modem I2C setup (SCL and SDA pins) */
356 modsclsda_default_mode: modsclsda_default {
358 function = "modsclsda";
359 groups = "modsclsda_d_1";
370 * Clock output pins associated with regulators.
373 sysclkreq2_default_mode: sysclkreq2_default {
375 function = "sysclkreq";
376 groups = "sysclkreq2_d_1";
384 sysclkreq2_sleep_mode: sysclkreq2_sleep {
387 groups = "gpio1_a_1";
397 sysclkreq4_default_mode: sysclkreq4_default {
399 function = "sysclkreq";
400 groups = "sysclkreq4_d_1";
408 sysclkreq4_sleep_mode: sysclkreq4_sleep {
411 groups = "gpio3_a_1";