1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright 2014 Linaro Ltd.
6 #include "ste-ab8500.dtsi"
13 pinctrl-names = "default", "sleep";
14 pinctrl-0 = <&usb_a_1_default>;
15 pinctrl-1 = <&usb_a_1_sleep>;
19 ab8500_ldo_aux1_reg: ab8500_ldo_aux1 {
20 regulator-name = "V-DISPLAY";
23 ab8500_ldo_aux2_reg: ab8500_ldo_aux2 {
24 regulator-name = "V-eMMC1";
27 ab8500_ldo_aux3_reg: ab8500_ldo_aux3 {
28 regulator-name = "V-MMC-SD";
31 ab8500_ldo_intcore_reg: ab8500_ldo_intcore {
32 regulator-name = "V-INTCORE";
35 ab8500_ldo_tvout_reg: ab8500_ldo_tvout {
36 regulator-name = "V-TVOUT";
39 ab8500_ldo_audio_reg: ab8500_ldo_audio {
40 regulator-name = "V-AUD";
43 ab8500_ldo_anamic1_reg: ab8500_ldo_anamic1 {
44 regulator-name = "V-AMIC1";
47 ab8500_ldo_anamic2_reg: ab8500_ldo_anamic2 {
48 regulator-name = "V-AMIC2";
51 ab8500_ldo_dmic_reg: ab8500_ldo_dmic {
52 regulator-name = "V-DMIC";
55 ab8500_ldo_ana_reg: ab8500_ldo_ana {
56 regulator-name = "V-CSI/DSI";
61 /* Hog a few default settings */
62 pinctrl-names = "default";
63 pinctrl-0 = <&gpio2_default_mode>,
64 <&gpio4_default_mode>,
65 <&gpio10_default_mode>,
66 <&gpio11_default_mode>,
67 <&gpio12_default_mode>,
68 <&gpio13_default_mode>,
69 <&gpio16_default_mode>,
70 <&gpio24_default_mode>,
71 <&gpio25_default_mode>,
72 <&gpio36_default_mode>,
73 <&gpio37_default_mode>,
74 <&gpio38_default_mode>,
75 <&gpio39_default_mode>,
76 <&gpio42_default_mode>,
77 <&gpio26_default_mode>,
78 <&gpio35_default_mode>,
79 <&ycbcr_default_mode>,
82 <&usbuicc_default_mode>,
84 <&extcpena_default_mode>,
85 <&modsclsda_default_mode>;
88 * Pins 2, 4, 10, 11, 12, 13, 16, 24, 25, 36, 37, 38, 39 and 42
89 * are muxed in as GPIO, and configured as INPUT PULL DOWN
92 gpio2_default_mode: gpio2_default {
105 gpio4_default_mode: gpio4_default {
108 groups = "gpio4_a_1";
118 gpio10_default_mode: gpio10_default {
121 groups = "gpio10_d_1";
131 gpio11_default_mode: gpio11_default {
134 groups = "gpio11_d_1";
137 pins = "GPIO11_AA18";
144 gpio12_default_mode: gpio12_default {
147 groups = "gpio12_d_1";
157 gpio13_default_mode: gpio13_default {
160 groups = "gpio13_d_1";
170 gpio16_default_mode: gpio16_default {
173 groups = "gpio16_a_1";
183 gpio24_default_mode: gpio24_default {
186 groups = "gpio24_a_1";
196 gpio25_default_mode: gpio25_default {
199 groups = "gpio25_a_1";
209 gpio36_default_mode: gpio36_default {
212 groups = "gpio36_a_1";
222 gpio37_default_mode: gpio37_default {
225 groups = "gpio37_a_1";
235 gpio38_default_mode: gpio38_default {
238 groups = "gpio38_a_1";
248 gpio39_default_mode: gpio39_default {
251 groups = "gpio39_a_1";
261 gpio42_default_mode: gpio42_default {
264 groups = "gpio42_a_1";
274 * Pins 26 and 35 muxed in as GPIO, and configured as OUTPUT LOW
277 gpio26_default_mode: gpio26_default {
280 groups = "gpio26_d_1";
289 gpio35_default_mode: gpio35_default {
292 groups = "gpio35_d_1";
301 * This sets up the YCBCR connector pins, i.e. analog video out.
302 * Set as input with no bias.
305 ycbcr_default_mode: ycbcr_default {
308 groups = "ycbcr0123_d_1";
320 /* This sets up the PWM pins 14 and 15 */
322 pwm_default_mode: pwm_default {
325 groups = "pwmout1_d_1", "pwmout2_d_1";
335 /* This sets up audio interface 1 */
337 adi1_default_mode: adi1_default {
352 /* This sets up the USB UICC pins */
354 usbuicc_default_mode: usbuicc_default {
356 function = "usbuicc";
357 groups = "usbuicc_d_1";
368 /* This sets up the microphone pins */
370 dmic_default_mode: dmic_default {
373 groups = "dmic12_d_1",
390 extcpena_default_mode: extcpena_default {
392 function = "extcpena";
393 groups = "extcpena_d_1";
402 /* Modem I2C setup (SCL and SDA pins) */
404 modsclsda_default_mode: modsclsda_default {
406 function = "modsclsda";
407 groups = "modsclsda_d_1";
418 * Clock output pins associated with regulators.
421 sysclkreq2_default_mode: sysclkreq2_default {
423 function = "sysclkreq";
424 groups = "sysclkreq2_d_1";
432 sysclkreq2_sleep_mode: sysclkreq2_sleep {
435 groups = "gpio1_a_1";
445 sysclkreq4_default_mode: sysclkreq4_default {
447 function = "sysclkreq";
448 groups = "sysclkreq4_d_1";
456 sysclkreq4_sleep_mode: sysclkreq4_sleep {
459 groups = "gpio3_a_1";
470 * Charging is not working on the HREF unless an actual battery is
471 * mounted, most HREFs have a DC cable in to the "battery power"
472 * which means this will only be cofusing. So do not enable charging