1 // SPDX-License-Identifier: GPL-2.0-only
4 #include "ste-db8500.dtsi"
5 #include "ste-ab8505.dtsi"
6 #include "ste-dbx5x0-pinctrl.dtsi"
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/leds/common.h>
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/interrupt-controller/irq.h>
13 * Note: This device tree cannot be booted directly with the Samsung bootloader.
14 * You need an intermediate, device-tree compatible bootloader
15 * that locks the L2 cache. Otherwise the kernel will crash after decompression.
17 * There is a port of (mainline) U-Boot, see
18 * https://wiki.postmarketos.org/wiki/ST-Ericsson_NovaThor_U8500#U-Boot
21 model = "Samsung Galaxy S III mini (GT-I8190)";
22 compatible = "samsung,golden", "st-ericsson,u8500";
25 stdout-path = &serial2;
29 compatible = "i2c-gpio";
30 sda-gpios = <&gpio2 14 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
31 scl-gpios = <&gpio2 13 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
33 pinctrl-names = "default";
34 pinctrl-0 = <&i2c_gpio_0_default>;
40 compatible = "coreriver,tc360-touchkey";
42 vdd-supply = <&ab8500_ldo_aux4_reg>;
43 vcc-supply = <&ab8500_ldo_aux6_reg>;
45 interrupt-parent = <&gpio2>;
46 interrupts = <15 IRQ_TYPE_EDGE_FALLING>;
48 pinctrl-names = "default";
49 pinctrl-0 = <&touchkey_default>;
50 linux,keycodes = <KEY_MENU KEY_BACK>;
55 compatible = "i2c-gpio";
56 sda-gpios = <&gpio4 24 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
57 scl-gpios = <&gpio4 23 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
59 pinctrl-names = "default";
60 pinctrl-0 = <&i2c_gpio_1_default>;
66 compatible = "alps,hscdtd008a";
69 avdd-supply = <&ab8500_ldo_aux1_reg>;
70 dvdd-supply = <&ab8500_ldo_aux8_reg>;
75 /* External Micro SD card slot */
79 arm,primecell-periphid = <0x10480180>;
80 max-frequency = <100000000>;
85 * Unfortunately, there is no way to enable the UHS
86 * modes due to a limitation of the SD level translator:
87 * It will either translate to 2.9V or disconnect the
88 * DATA lines, so switching to 1.8V signal voltage fails.
95 vmmc-supply = <&ab8500_ldo_aux3_reg>;
96 vqmmc-supply = <&sd_level_translator>;
98 pinctrl-names = "default", "sleep";
99 pinctrl-0 = <&mc0_a_2_default>;
100 pinctrl-1 = <&mc0_a_2_sleep>;
107 arm,primecell-periphid = <0x10480180>;
108 max-frequency = <50000000>;
114 vmmc-supply = <&wl_reg_on>;
116 pinctrl-names = "default", "sleep";
117 pinctrl-0 = <&mc1_a_2_default>;
118 pinctrl-1 = <&mc1_a_2_sleep>;
120 #address-cells = <1>;
124 compatible = "brcm,bcm4329-fmac";
127 /* GPIO216 (WLAN_HOST_WAKE) */
128 interrupt-parent = <&gpio6>;
129 interrupts = <24 IRQ_TYPE_EDGE_FALLING>;
130 interrupt-names = "host-wake";
132 pinctrl-names = "default";
133 pinctrl-0 = <&wlan_default>;
141 arm,primecell-periphid = <0x10480180>;
142 max-frequency = <100000000>;
149 vmmc-supply = <&vmem_3v3>;
151 pinctrl-names = "default", "sleep";
152 pinctrl-0 = <&mc2_a_1_default>;
153 pinctrl-1 = <&mc2_a_1_sleep>;
160 pinctrl-names = "default", "sleep";
161 pinctrl-0 = <&u0_a_1_default>;
162 pinctrl-1 = <&u0_a_1_sleep>;
165 compatible = "brcm,bcm4330-bt";
166 /* GPIO222 (BT_VREG_ON) */
167 shutdown-gpios = <&gpio6 30 GPIO_ACTIVE_HIGH>;
168 /* GPIO199 (BT_WAKE) */
169 device-wakeup-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
170 /* GPIO97 (BT_HOST_WAKE) */
171 host-wakeup-gpios = <&gpio3 1 GPIO_ACTIVE_HIGH>;
173 pinctrl-names = "default";
174 pinctrl-0 = <&bluetooth_default>;
182 pinctrl-names = "default", "sleep";
183 pinctrl-0 = <&u1rxtx_a_1_default &u1ctsrts_a_1_default>;
184 pinctrl-1 = <&u1rxtx_a_1_sleep &u1ctsrts_a_1_sleep>;
187 /* Debugging console UART */
191 pinctrl-names = "default", "sleep";
192 pinctrl-0 = <&u2rxtx_c_1_default>;
193 pinctrl-1 = <&u2rxtx_c_1_sleep>;
199 pinctrl-names = "default", "sleep";
200 pinctrl-0 = <&i2c0_a_1_default>;
201 pinctrl-1 = <&i2c0_a_1_sleep>;
204 compatible = "sharp,gp2ap002s00f";
207 /* GPIO146 (PS_INT) */
208 interrupt-parent = <&gpio4>;
209 interrupts = <18 IRQ_TYPE_EDGE_FALLING>;
211 vdd-supply = <&ab8500_ldo_aux1_reg>;
212 vio-supply = <&ab8500_ldo_aux8_reg>;
214 pinctrl-names = "default";
215 pinctrl-0 = <&proximity_default>;
217 sharp,proximity-far-hysteresis = <0x40>;
218 sharp,proximity-close-hysteresis = <0x0f>;
225 pinctrl-names = "default", "sleep";
226 pinctrl-0 = <&i2c2_b_2_default>;
227 pinctrl-1 = <&i2c2_b_2_sleep>;
230 compatible = "invensense,mpu6050";
233 /* GPIO206 (ACC_INT) */
234 interrupt-parent = <&gpio6>;
235 interrupts = <14 IRQ_TYPE_EDGE_RISING>;
237 mount-matrix = "0", "1", "0",
241 vdd-supply = <&ab8500_ldo_aux1_reg>;
242 vddio-supply = <&ab8500_ldo_aux8_reg>;
244 pinctrl-names = "default";
245 pinctrl-0 = <&imu_default>;
252 pinctrl-names = "default", "sleep";
253 pinctrl-0 = <&i2c3_c_2_default>;
254 pinctrl-1 = <&i2c3_c_2_sleep>;
257 compatible = "atmel,maxtouch";
260 /* GPIO218 (TSP_INT_1V8) */
261 interrupt-parent = <&gpio6>;
262 interrupts = <26 IRQ_TYPE_EDGE_FALLING>;
264 /* VDDA is "analog supply", 2.57-3.47 V */
265 vdda-supply = <&ab8500_ldo_aux2_reg>;
266 /* VDD is "digital supply" 1.71-3.47V */
267 vdd-supply = <&ab8500_ldo_aux5_reg>;
269 pinctrl-names = "default";
270 pinctrl-0 = <&tsp_default>;
277 pinctrl-names = "default", "sleep";
278 pinctrl-0 = <&usb_a_1_default>;
279 pinctrl-1 = <&usb_a_1_sleep>;
284 regulator-name = "sensor_3v";
285 regulator-min-microvolt = <3000000>;
286 regulator-max-microvolt = <3000000>;
290 regulator-name = "vreg_tsp_a3v3";
291 regulator-min-microvolt = <3300000>;
292 regulator-max-microvolt = <3300000>;
296 regulator-name = "vdd_tf_2v91";
300 regulator-name = "key_led_3.3v";
301 regulator-min-microvolt = <3300000>;
302 regulator-max-microvolt = <3300000>;
306 regulator-name = "vreg_tsp_1v8";
307 regulator-min-microvolt = <1800000>;
308 regulator-max-microvolt = <1800000>;
312 regulator-name = "touch_key_2.2v";
313 regulator-min-microvolt = <2200000>;
314 regulator-max-microvolt = <2200000>;
318 regulator-name = "sensor_1v8";
326 pinctrl-names = "default";
327 pinctrl-0 = <&dsi_default_mode>;
331 compatible = "samsung,s6e63m0";
333 max-brightness = <15>;
334 vdd3-supply = <&panel_reg_3v0>;
335 vci-supply = <&panel_reg_1v8>;
336 reset-gpios = <&gpio4 11 GPIO_ACTIVE_LOW>;
337 /* ESD (electrostatic discharge) detection interrupt */
338 interrupt-parent = <&gpio2>;
339 interrupts = <18 IRQ_TYPE_EDGE_RISING>;
340 interrupt-names = "esd";
341 pinctrl-names = "default";
342 pinctrl-0 = <&display_default_mode>;
349 compatible = "gpio-keys";
351 pinctrl-names = "default";
352 pinctrl-0 = <&gpio_keys_default>;
354 label = "GPIO Buttons";
358 /* GPIO67 (VOL_UP) */
359 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
360 linux,code = <KEY_VOLUMEUP>;
364 label = "Volume Down";
365 /* GPIO92 (VOL_DOWN) */
366 gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
367 linux,code = <KEY_VOLUMEDOWN>;
372 /* GPIO91 (HOME_KEY) */
373 gpios = <&gpio2 27 GPIO_ACTIVE_LOW>;
374 linux,code = <KEY_HOMEPAGE>;
378 /* Richtek RT8515GQW Flash LED Driver IC */
380 compatible = "richtek,rt8515";
382 enf-gpios = <&gpio4 12 GPIO_ACTIVE_HIGH>;
384 ent-gpios = <&gpio4 13 GPIO_ACTIVE_HIGH>;
386 * RFS is 16 kOhm and RTS is 100 kOhm giving
387 * the flash max current 343mA and torch max
390 richtek,rfs-ohms = <16000>;
391 richtek,rts-ohms = <100000>;
392 pinctrl-names = "default";
393 pinctrl-0 = <&gpio_flash_default_mode>;
396 function = LED_FUNCTION_FLASH;
397 color = <LED_COLOR_ID_WHITE>;
398 flash-max-timeout-us = <250000>;
399 flash-max-microamp = <343750>;
400 led-max-microamp = <55000>;
405 compatible = "gpio-vibrator";
406 /* GPIO195 (MOT_EN) */
407 enable-gpios = <&gpio6 3 GPIO_ACTIVE_HIGH>;
409 pinctrl-names = "default";
410 pinctrl-0 = <&vibrator_default>;
413 /* External LDO for eMMC */
414 vmem_3v3: regulator-vmem {
415 compatible = "regulator-fixed";
417 regulator-name = "vmem_3v3";
418 regulator-min-microvolt = <3300000>;
419 regulator-max-microvolt = <3300000>;
422 startup-delay-us = <200>;
424 /* GPIO223 (MEM_LDO_EN) */
425 gpio = <&gpio6 31 GPIO_ACTIVE_HIGH>;
428 pinctrl-names = "default";
429 pinctrl-0 = <&mem_ldo_default>;
432 /* TI TXS0206-29 level translator for 2.9 V */
433 sd_level_translator: regulator-sd-level-translator {
434 compatible = "regulator-fixed";
436 regulator-name = "sd-level-translator";
437 regulator-min-microvolt = <2900000>;
438 regulator-max-microvolt = <2900000>;
440 startup-delay-us = <200>;
442 /* GPIO87 (TXS0206-29_EN) */
443 gpios = <&gpio2 23 GPIO_ACTIVE_HIGH>;
446 pinctrl-names = "default";
447 pinctrl-0 = <&sd_level_translator_default>;
451 * WL_REG_ON takes WLAN out of reset and enables the internal regulators.
452 * The voltage specified here is only used to determine the OCR mask,
453 * the BCM chip is actually connected directly to VBAT.
455 wl_reg_on: regulator-wl-reg-on {
456 compatible = "regulator-fixed";
458 regulator-name = "wl-reg-on";
459 regulator-min-microvolt = <3000000>;
460 regulator-max-microvolt = <3000000>;
462 startup-delay-us = <100000>;
464 /* GPIO215 (WLAN_EN) */
465 gpio = <&gpio6 23 GPIO_ACTIVE_HIGH>;
468 pinctrl-names = "default";
469 pinctrl-0 = <&wlan_en_default>;
472 /* MIC5366 GPIO-controlled regulator */
473 panel_reg_1v8: regulator-panel-1v8 {
474 compatible = "regulator-fixed";
476 regulator-name = "panel-fixed-supply";
477 regulator-min-microvolt = <1800000>;
478 regulator-max-microvolt = <1800000>;
480 gpio = <&gpio6 27 GPIO_ACTIVE_HIGH>;
482 startup-delay-us = <200>;
485 pinctrl-names = "default";
486 pinctrl-0 = <&panel_reg_default_mode>;
489 /* MIC5366 GPIO-controlled regulator */
490 panel_reg_3v0: regulator-panel-3v0 {
491 compatible = "regulator-fixed";
493 regulator-name = "panel-fixed-supply";
494 regulator-min-microvolt = <3000000>;
495 regulator-max-microvolt = <3000000>;
497 gpio = <&gpio6 27 GPIO_ACTIVE_HIGH>;
499 startup-delay-us = <200>;
502 pinctrl-names = "default";
503 pinctrl-0 = <&panel_reg_default_mode>;
509 gpio_keys_default: gpio_keys_default {
511 pins = "GPIO67", /* VOL_UP */
512 "GPIO91", /* HOME_KEY */
513 "GPIO92"; /* VOL_DOWN */
514 ste,config = <&gpio_in_pu>;
520 i2c_gpio_0_default: i2c_gpio_0 {
522 pins = "GPIO77", /* TOUCHKEY_SCL */
523 "GPIO78"; /* TOUCHKEY_SDA */
524 ste,config = <&gpio_in_nopull>;
530 gpio_flash_default_mode: flash_default {
532 pins = "GPIO140_B11", "GPIO141_C12";
533 ste,config = <&gpio_out_lo>;
539 i2c_gpio_1_default: i2c_gpio_1 {
541 pins = "GPIO151", /* COMP_SCL */
542 "GPIO152"; /* COMP_SDA */
543 ste,config = <&gpio_in_nopull>;
549 touchkey_default: touchkey_default {
551 pins = "GPIO79"; /* TOUCHKEY_INT */
552 ste,config = <&gpio_in_nopull>;
558 sd_level_translator_default: sd_level_translator_default {
560 pins = "GPIO87_B3"; /* TXS0206-29_EN */
561 ste,config = <&gpio_out_lo>;
567 mem_ldo_default: mem_ldo_default {
569 pins = "GPIO223_AH9"; /* MEM_LDO_EN */
570 ste,config = <&gpio_out_hi>;
576 dsi_default_mode: dsi_default {
578 /* Mux in VSI0 used for DSI TE */
581 "lcdvsi0_a_1"; /* VSI0 for LCD */
585 "GPIO68_E1"; /* VSI0 */
586 ste,config = <&in_nopull>;
592 display_default_mode: display_default {
594 pins = "GPIO139_C9"; /* MIPI_DSI0_RESET_N */
595 ste,config = <&gpio_out_lo>;
598 pins = "GPIO82_C1"; /* LDI_ESD_DET */
599 ste,config = <&gpio_in_pu>;
602 panel_reg_default_mode: panel_reg_default {
604 pins = "GPIO219_AG10"; /* LCD_PWR_EN */
605 ste,config = <&gpio_out_lo>;
611 proximity_default: proximity_default {
613 pins = "GPIO146_D13"; /* PS_INT */
614 ste,config = <&gpio_in_nopull>;
620 imu_default: imu_default {
622 pins = "GPIO206_AG24"; /* ACC_INT */
623 ste,config = <&gpio_in_pd>;
629 tsp_default: tsp_default {
631 pins = "GPIO218_AH11"; /* TSP_INT_1V8 */
632 ste,config = <&gpio_in_nopull>;
638 wlan_default: wlan_default {
640 pins = "GPIO216_AG12"; /* WLAN_HOST_WAKE */
641 ste,config = <&gpio_in_pd>;
645 wlan_en_default: wlan_en_default {
647 pins = "GPIO215_AH13"; /* WLAN_EN */
648 ste,config = <&gpio_out_lo>;
654 bluetooth_default: bluetooth_default {
656 pins = "GPIO199_AH23", /* BT_WAKE */
657 "GPIO222_AJ9"; /* BT_VREG_ON */
658 ste,config = <&gpio_out_lo>;
661 pins = "GPIO97_D9"; /* BT_HOST_WAKE */
662 ste,config = <&gpio_in_nopull>;
668 vibrator_default: vibrator_default {
670 pins = "GPIO195_AG28"; /* MOT_EN */
671 ste,config = <&gpio_out_lo>;
678 /* Hog a few default settings */
679 pinctrl-names = "default";
680 pinctrl-0 = <&gpio_default>;
683 gpio_default: gpio_default {
685 /* Change unused pins to GPIO mode */
687 groups = "gpio3_a_1", /* default: SysClkReq4 */
688 "gpio14_a_1"; /* default: PWMOut1 */
691 pins = "GPIO11_B17", "GPIO13_D17", "GPIO50_L4";