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";
15 /* Poll every 20 seconds */
16 polling-delay = <20000>;
17 /* Poll every 2nd second when cooling */
18 polling-delay-passive = <2000>;
20 thermal-sensors = <&therm1>, <&therm2>;
22 /* Tripping points made from rough guess about operating conditions */
24 chassis_alert: chassis-alert {
25 /* At 50 degrees take down the CPU frequency */
26 temperature = <50000>;
30 chassis_crit: chassis-crit {
31 /* Just shut down at 70 degrees */
32 temperature = <70000>;
38 /* Push down the operating frequency of the SoC when it gets hot */
41 trip = <&chassis_alert>;
42 cooling-device = <&CPU0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
50 * Thermistors on the board, formally to monitor battery temperatures
51 * but what they measure is the board temperature.
53 therm1: thermistor@0 {
54 compatible = "murata,ncp18wb473";
55 io-channels = <&gpadc 0x06>; /* AUX1 */
56 pullup-uv = <1800000>;
57 pullup-ohm = <220000>;
59 #thermal-sensor-cells = <0>;
62 therm2: thermistor@1 {
63 compatible = "murata,ncp18wb473";
64 io-channels = <&gpadc 0x07>; /* AUX2 */
65 pullup-uv = <1800000>;
66 pullup-ohm = <220000>;
68 #thermal-sensor-cells = <0>;
72 /* Name the GPIO muxed rails on the HREF boards */
76 /* GPIO0,1 used for UART0 BT RX/TX */
82 "FLASH_LED_SYNC (FLASH_CTRL_0)",
83 "XENON_READY (FLASH_CTRL_1)",
84 "", "", "", "", "", "", "", "",
87 "FLASH_LED_EN (FLASH_CTRL_3)",
90 /* Used by UART2 (console) */
99 "", "", "", "", "", "", "",
100 "", "", "", "", "", "", "", "",
101 "", "", "", "", "", "", "", "",
102 "", "", "", "", "", "", "", "";
107 gpio-line-names = "XENON_EN2 (FLASH_CTRL_4)",
113 /* GPIO 70-77 used for ETM */
114 "", "", "", "", "", "", "", "",
115 /* GPIO 78-81 used for YCBCR */
117 "ACCELEROMETER_INT1_RDY",
118 "ACCELEROMETER_INT2",
123 "FORCE_SENSING_RESET",
130 gpio-line-names = "",
132 "", "", "", "", "", "",
133 "", "", "", "", "", "", "", "",
134 "", "", "", "", "", "", "", "",
135 "", "", "", "", "", "", "", "";
139 /* GPIOs 128 - 159 */
140 gpio-line-names = "", "", "", "", "", "", "", "",
142 "DIPRO_INT", /* GPIO139 */
143 "XSHUTDOWN_SECONDARY_SENSOR",
144 "XSHUTDOWN_PRIMARY_SENSOR",
145 "NFC_RST (NFC_CTRL_",
147 "NFC_IRQ (NFC_CTRL_1)",
151 "VAUDIO_HF_EN", /* GPIO149 */
152 "", "", "", "", "", "", "", "", "", "";
156 /* GPIOs 160 - 191 */
157 gpio-line-names = "", "", "", "", "", "", "", "",
160 "XENON_CHARGE (FLASH_CONTROL_5)",
163 "", "", "", "", "", "", "", "",
164 "", "", "", "", "", "", "", "";
168 /* GPIOs 192 - 223 */
169 gpio-line-names = "HDTV_INTN",
174 "", "", "", "", "", "", "",
175 /* GPIO208-216 used for WGBF_MC1 */
176 "", "", "", "", "", "", "", "", "",
177 "SW_FRONT_PROXIMITY", /* GPIO217 */
178 "KPD_CTRL_INT", /* Keypad controller */
183 /* GPIOs 224 - 255 */
184 gpio-line-names = "", "",
187 "", "", "", "", "", "", "", "",
188 "", "", "", "", "", "", "", "",
189 "", "", "", "", "", "", "", "";
192 // External Micro SD slot
194 cd-gpios = <&gpio2 31 GPIO_ACTIVE_HIGH>; // 95
199 * Set this up using hogs, as time goes by and as seems fit, these
200 * can be moved over to being controlled by respective device.
202 pinctrl-names = "default";
203 pinctrl-0 = <&ipgpio_hrefv60_mode>,
205 <&nahj_hrefv60_mode>,
207 <&force_hrefv60_mode>,
208 <&dipro_hrefv60_mode>,
209 <&vaudio_hf_hrefv60_mode>,
211 <&hdtv_hrefv60_mode>,
212 <&gpios_hrefv60_mode>;
215 sdi0_default_mode: sdi0_default {
216 /* SD card detect GPIO pin, extend default state */
217 default_hrefv60_cfg1 {
219 ste,config = <&gpio_in_pu>;
225 * XENON Flashgun on image processor GPIO (controlled from image
226 * processor firmware), mux in these image processor GPIO lines 0
227 * (XENON_FLASH_ID), 1 (XENON_READY) and there is an assistant
228 * LED on IP GPIO 4 (XENON_EN2) on altfunction C, that need bias
229 * from GPIO21 so pull up 0, 1 and drive 4 and GPIO21 low as output.
231 ipgpio_hrefv60_mode: ipgpio_hrefv60 {
234 groups = "ipgpio0_c_1", "ipgpio1_c_1", "ipgpio4_c_1";
237 pins = "GPIO6_AF6", "GPIO7_AG5";
238 ste,config = <&in_pu>;
242 ste,config = <&gpio_out_lo>;
246 ste,config = <&out_lo>;
252 * Drive D19-D23 for the ETM PTM trace interface low,
253 * (presumably pins are unconnected therefore grounded here,
254 * the "other alt C1" setting enables these pins)
256 etm_hrefv60_mode: etm_hrefv60 {
264 ste,config = <&gpio_out_lo>;
269 nahj_hrefv60_mode: nahj_hrefv60 {
270 /* NAHJ CTRL on GPIO76 to low, CTRL_INV on GPIO216 to high */
273 ste,config = <&gpio_out_lo>;
276 pins = "GPIO216_AG12";
277 ste,config = <&gpio_out_hi>;
282 nfc_hrefv60_mode: nfc_hrefv60 {
283 /* NFC ENA and RESET to low, pulldown IRQ line */
286 "GPIO77_H1", /* NFC_ENA */
287 "GPIO142_C11"; /* NFC_RESET */
288 ste,config = <&gpio_out_lo>;
291 pins = "GPIO144_B13"; /* NFC_IRQ */
292 ste,config = <&gpio_in_pd>;
297 force_hrefv60_mode: force_hrefv60 {
299 pins = "GPIO91_B6"; /* FORCE_SENSING_INT */
300 ste,config = <&gpio_in_pu>;
304 "GPIO92_D6", /* FORCE_SENSING_RST */
305 "GPIO97_D9"; /* FORCE_SENSING_WU */
306 ste,config = <&gpio_out_lo>;
311 dipro_hrefv60_mode: dipro_hrefv60 {
313 pins = "GPIO139_C9"; /* DIPRO_INT */
314 ste,config = <&gpio_in_pu>;
319 vaudio_hf_hrefv60_mode: vaudio_hf_hrefv60 {
320 /* Audio Amplifier HF enable GPIO */
322 pins = "GPIO149_B14"; /* VAUDIO_HF_EN, enable MAX8968 */
323 ste,config = <&gpio_out_hi>;
328 gbf_hrefv60_mode: gbf_hrefv60 {
330 * GBF (GPS, Bluetooth, FM-radio) interface,
331 * pull low to reset state
334 pins = "GPIO171_D23"; /* GBF_ENA_RESET */
335 ste,config = <&gpio_out_lo>;
340 hdtv_hrefv60_mode: hdtv_hrefv60 {
341 /* MSP : HDTV INTERFACE GPIO line */
343 pins = "GPIO192_AJ27";
344 ste,config = <&gpio_in_pd>;
349 lcd_hrefv60_mode: lcd_hrefv60 {
351 * Display Interface 1 uses GPIO 65 for RST (reset).
352 * Display Interface 2 uses GPIO 66 for RST (reset).
353 * Drive DISP1 reset high (not reset), driver DISP2 reset low (reset)
357 ste,config = <&gpio_out_hi>;
361 ste,config = <&gpio_out_lo>;
366 /* Dangling GPIO pins */
367 gpios_hrefv60_mode: gpios_hrefv60 {
369 /* Normally UART1 RXD, now dangling */
371 ste,config = <&in_pu>;