1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright 2012 ST-Ericsson AB
6 #include "ste-href-ab8500.dtsi"
7 #include "ste-href.dtsi"
10 model = "ST-Ericsson HREF (v60+) platform with Device Tree";
11 compatible = "st-ericsson,hrefv60+", "st-ericsson,u8500";
14 /* Name the GPIO muxed rails on the HREF boards */
18 /* GPIO0,1 used for UART0 BT RX/TX */
24 "FLASH_LED_SYNC (FLASH_CTRL_0)",
25 "XENON_READY (FLASH_CTRL_1)",
26 "", "", "", "", "", "", "", "",
29 "FLASH_LED_EN (FLASH_CTRL_3)",
32 /* Used by UART2 (console) */
41 "", "", "", "", "", "", "",
42 "", "", "", "", "", "", "", "",
43 "", "", "", "", "", "", "", "",
44 "", "", "", "", "", "", "", "";
49 gpio-line-names = "XENON_EN2 (FLASH_CTRL_4)",
55 /* GPIO 70-77 used for ETM */
56 "", "", "", "", "", "", "", "",
57 /* GPIO 78-81 used for YCBCR */
59 "ACCELEROMETER_INT1_RDY",
65 "FORCE_SENSING_RESET",
74 "", "", "", "", "", "",
75 "", "", "", "", "", "", "", "",
76 "", "", "", "", "", "", "", "",
77 "", "", "", "", "", "", "", "";
82 gpio-line-names = "", "", "", "", "", "", "", "",
84 "DIPRO_INT", /* GPIO139 */
85 "XSHUTDOWN_SECONDARY_SENSOR",
86 "XSHUTDOWN_PRIMARY_SENSOR",
89 "NFC_IRQ (NFC_CTRL_1)",
93 "VAUDIO_HF_EN", /* GPIO149 */
94 "", "", "", "", "", "", "", "", "", "";
99 gpio-line-names = "", "", "", "", "", "", "", "",
102 "XENON_CHARGE (FLASH_CONTROL_5)",
105 "", "", "", "", "", "", "", "",
106 "", "", "", "", "", "", "", "";
110 /* GPIOs 192 - 223 */
111 gpio-line-names = "HDTV_INTN",
116 "", "", "", "", "", "", "",
117 /* GPIO208-216 used for WGBF_MC1 */
118 "", "", "", "", "", "", "", "", "",
119 "SW_FRONT_PROXIMITY", /* GPIO217 */
120 "KPD_CTRL_INT", /* Keypad controller */
125 /* GPIOs 224 - 255 */
126 gpio-line-names = "", "",
129 "", "", "", "", "", "", "", "",
130 "", "", "", "", "", "", "", "",
131 "", "", "", "", "", "", "", "";
134 // External Micro SD slot
136 cd-gpios = <&gpio2 31 GPIO_ACTIVE_HIGH>; // 95
139 vmmci: regulator-gpio {
140 gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
141 enable-gpio = <&gpio5 9 GPIO_ACTIVE_HIGH>;
147 * Set this up using hogs, as time goes by and as seems fit, these
148 * can be moved over to being controlled by respective device.
150 pinctrl-names = "default";
151 pinctrl-0 = <&ipgpio_hrefv60_mode>,
153 <&nahj_hrefv60_mode>,
155 <&force_hrefv60_mode>,
156 <&dipro_hrefv60_mode>,
157 <&vaudio_hf_hrefv60_mode>,
159 <&hdtv_hrefv60_mode>,
160 <&gpios_hrefv60_mode>;
163 sdi0_default_mode: sdi0_default {
164 /* SD card detect GPIO pin, extend default state */
165 default_hrefv60_cfg1 {
167 ste,config = <&gpio_in_pu>;
169 /* VMMCI level-shifter enable */
170 default_hrefv60_cfg2 {
171 pins = "GPIO169_D22";
172 ste,config = <&gpio_out_hi>;
174 /* VMMCI level-shifter voltage select */
175 default_hrefv60_cfg3 {
177 ste,config = <&gpio_out_hi>;
183 * XENON Flashgun on image processor GPIO (controlled from image
184 * processor firmware), mux in these image processor GPIO lines 0
185 * (XENON_FLASH_ID), 1 (XENON_READY) and there is an assistant
186 * LED on IP GPIO 4 (XENON_EN2) on altfunction C, that need bias
187 * from GPIO21 so pull up 0, 1 and drive 4 and GPIO21 low as output.
189 ipgpio_hrefv60_mode: ipgpio_hrefv60 {
192 groups = "ipgpio0_c_1", "ipgpio1_c_1", "ipgpio4_c_1";
195 pins = "GPIO6_AF6", "GPIO7_AG5";
196 ste,config = <&in_pu>;
200 ste,config = <&gpio_out_lo>;
204 ste,config = <&out_lo>;
210 * Drive D19-D23 for the ETM PTM trace interface low,
211 * (presumably pins are unconnected therefore grounded here,
212 * the "other alt C1" setting enables these pins)
214 etm_hrefv60_mode: etm_hrefv60 {
222 ste,config = <&gpio_out_lo>;
227 nahj_hrefv60_mode: nahj_hrefv60 {
228 /* NAHJ CTRL on GPIO76 to low, CTRL_INV on GPIO216 to high */
231 ste,config = <&gpio_out_lo>;
234 pins = "GPIO216_AG12";
235 ste,config = <&gpio_out_hi>;
240 nfc_hrefv60_mode: nfc_hrefv60 {
241 /* NFC ENA and RESET to low, pulldown IRQ line */
244 "GPIO77_H1", /* NFC_ENA */
245 "GPIO142_C11"; /* NFC_RESET */
246 ste,config = <&gpio_out_lo>;
249 pins = "GPIO144_B13"; /* NFC_IRQ */
250 ste,config = <&gpio_in_pd>;
255 force_hrefv60_mode: force_hrefv60 {
257 pins = "GPIO91_B6"; /* FORCE_SENSING_INT */
258 ste,config = <&gpio_in_pu>;
262 "GPIO92_D6", /* FORCE_SENSING_RST */
263 "GPIO97_D9"; /* FORCE_SENSING_WU */
264 ste,config = <&gpio_out_lo>;
269 dipro_hrefv60_mode: dipro_hrefv60 {
271 pins = "GPIO139_C9"; /* DIPRO_INT */
272 ste,config = <&gpio_in_pu>;
277 vaudio_hf_hrefv60_mode: vaudio_hf_hrefv60 {
278 /* Audio Amplifier HF enable GPIO */
280 pins = "GPIO149_B14"; /* VAUDIO_HF_EN, enable MAX8968 */
281 ste,config = <&gpio_out_hi>;
286 gbf_hrefv60_mode: gbf_hrefv60 {
288 * GBF (GPS, Bluetooth, FM-radio) interface,
289 * pull low to reset state
292 pins = "GPIO171_D23"; /* GBF_ENA_RESET */
293 ste,config = <&gpio_out_lo>;
298 hdtv_hrefv60_mode: hdtv_hrefv60 {
299 /* MSP : HDTV INTERFACE GPIO line */
301 pins = "GPIO192_AJ27";
302 ste,config = <&gpio_in_pd>;
307 lcd_hrefv60_mode: lcd_hrefv60 {
309 * Display Interface 1 uses GPIO 65 for RST (reset).
310 * Display Interface 2 uses GPIO 66 for RST (reset).
311 * Drive DISP1 reset high (not reset), driver DISP2 reset low (reset)
315 ste,config = <&gpio_out_hi>;
319 ste,config = <&gpio_out_lo>;
324 /* Dangling GPIO pins */
325 gpios_hrefv60_mode: gpios_hrefv60 {
327 /* Normally UART1 RXD, now dangling */
329 ste,config = <&in_pu>;