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/input/input.h>
9 #include <dt-bindings/interrupt-controller/irq.h>
12 * Note: This device tree cannot be booted directly with the Samsung bootloader.
13 * You need an intermediate, device-tree compatible bootloader
14 * that locks the L2 cache. Otherwise the kernel will crash after decompression.
16 * There is a port of (mainline) U-Boot, see
17 * https://wiki.postmarketos.org/wiki/ST-Ericsson_NovaThor_U8500#U-Boot
20 model = "Samsung Galaxy S III mini (GT-I8190)";
21 compatible = "samsung,golden", "st-ericsson,u8500";
24 stdout-path = &serial2;
28 /* External Micro SD card slot */
32 arm,primecell-periphid = <0x10480180>;
33 max-frequency = <100000000>;
38 * Unfortunately, there is no way to enable the UHS
39 * modes due to a limitation of the SD level translator:
40 * It will either translate to 2.9V or disconnect the
41 * DATA lines, so switching to 1.8V signal voltage fails.
48 vmmc-supply = <&ab8500_ldo_aux3_reg>;
49 vqmmc-supply = <&sd_level_translator>;
51 pinctrl-names = "default", "sleep";
52 pinctrl-0 = <&mc0_a_2_default>;
53 pinctrl-1 = <&mc0_a_2_sleep>;
60 arm,primecell-periphid = <0x10480180>;
61 max-frequency = <50000000>;
67 vmmc-supply = <&wl_reg_on>;
69 pinctrl-names = "default", "sleep";
70 pinctrl-0 = <&mc1_a_2_default>;
71 pinctrl-1 = <&mc1_a_2_sleep>;
77 compatible = "brcm,bcm4329-fmac";
80 /* GPIO216 (WLAN_HOST_WAKE) */
81 interrupt-parent = <&gpio6>;
82 interrupts = <24 IRQ_TYPE_EDGE_FALLING>;
83 interrupt-names = "host-wake";
85 pinctrl-names = "default";
86 pinctrl-0 = <&wlan_default>;
94 arm,primecell-periphid = <0x10480180>;
95 max-frequency = <100000000>;
102 vmmc-supply = <&vmem_3v3>;
104 pinctrl-names = "default", "sleep";
105 pinctrl-0 = <&mc2_a_1_default>;
106 pinctrl-1 = <&mc2_a_1_sleep>;
113 pinctrl-names = "default", "sleep";
114 pinctrl-0 = <&u0_a_1_default>;
115 pinctrl-1 = <&u0_a_1_sleep>;
118 compatible = "brcm,bcm4330-bt";
119 /* GPIO222 (BT_VREG_ON) */
120 shutdown-gpios = <&gpio6 30 GPIO_ACTIVE_HIGH>;
121 /* GPIO199 (BT_WAKE) */
122 device-wakeup-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
123 /* GPIO97 (BT_HOST_WAKE) */
124 host-wakeup-gpios = <&gpio3 1 GPIO_ACTIVE_HIGH>;
126 pinctrl-names = "default";
127 pinctrl-0 = <&bluetooth_default>;
135 pinctrl-names = "default", "sleep";
136 pinctrl-0 = <&u1rxtx_a_1_default &u1ctsrts_a_1_default>;
137 pinctrl-1 = <&u1rxtx_a_1_sleep &u1ctsrts_a_1_sleep>;
140 /* Debugging console UART */
144 pinctrl-names = "default", "sleep";
145 pinctrl-0 = <&u2rxtx_c_1_default>;
146 pinctrl-1 = <&u2rxtx_c_1_sleep>;
152 pinctrl-names = "default", "sleep";
153 pinctrl-0 = <&i2c2_b_2_default>;
154 pinctrl-1 = <&i2c2_b_2_sleep>;
157 compatible = "invensense,mpu6050";
160 /* GPIO206 (ACC_INT) */
161 interrupt-parent = <&gpio6>;
162 interrupts = <14 IRQ_TYPE_EDGE_RISING>;
164 mount-matrix = "0", "1", "0",
168 vdd-supply = <&ab8500_ldo_aux1_reg>;
169 vddio-supply = <&ab8500_ldo_aux8_reg>;
171 pinctrl-names = "default";
172 pinctrl-0 = <&imu_default>;
179 pinctrl-names = "default", "sleep";
180 pinctrl-0 = <&i2c3_c_2_default>;
181 pinctrl-1 = <&i2c3_c_2_sleep>;
184 compatible = "atmel,maxtouch";
187 /* GPIO218 (TSP_INT_1V8) */
188 interrupt-parent = <&gpio6>;
189 interrupts = <26 IRQ_TYPE_EDGE_FALLING>;
191 pinctrl-names = "default";
192 pinctrl-0 = <&tsp_default>;
199 pinctrl-names = "default", "sleep";
200 pinctrl-0 = <&usb_a_1_default>;
201 pinctrl-1 = <&usb_a_1_sleep>;
206 regulator-name = "sensor_3v";
207 regulator-min-microvolt = <3000000>;
208 regulator-max-microvolt = <3000000>;
212 regulator-name = "vreg_tsp_a3v3";
213 regulator-min-microvolt = <3300000>;
214 regulator-max-microvolt = <3300000>;
215 regulator-always-on; /* FIXME */
219 regulator-name = "vdd_tf_2v91";
223 regulator-name = "key_led_3.3v";
224 regulator-min-microvolt = <3300000>;
225 regulator-max-microvolt = <3300000>;
229 regulator-name = "vreg_tsp_1v8";
230 regulator-min-microvolt = <1800000>;
231 regulator-max-microvolt = <1800000>;
232 regulator-always-on; /* FIXME */
236 regulator-name = "touch_key_2.2v";
237 regulator-min-microvolt = <2200000>;
238 regulator-max-microvolt = <2200000>;
242 regulator-name = "sensor_1v8";
250 compatible = "gpio-keys";
252 pinctrl-names = "default";
253 pinctrl-0 = <&gpio_keys_default>;
255 label = "GPIO Buttons";
259 /* GPIO67 (VOL_UP) */
260 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
261 linux,code = <KEY_VOLUMEUP>;
265 label = "Volume Down";
266 /* GPIO92 (VOL_DOWN) */
267 gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
268 linux,code = <KEY_VOLUMEDOWN>;
273 /* GPIO91 (HOME_KEY) */
274 gpios = <&gpio2 27 GPIO_ACTIVE_LOW>;
275 linux,code = <KEY_HOMEPAGE>;
280 compatible = "gpio-vibrator";
281 /* GPIO195 (MOT_EN) */
282 enable-gpios = <&gpio6 3 GPIO_ACTIVE_HIGH>;
284 pinctrl-names = "default";
285 pinctrl-0 = <&vibrator_default>;
288 /* External LDO for eMMC */
289 vmem_3v3: regulator-vmem {
290 compatible = "regulator-fixed";
292 regulator-name = "vmem_3v3";
293 regulator-min-microvolt = <3300000>;
294 regulator-max-microvolt = <3300000>;
297 startup-delay-us = <200>;
299 /* GPIO223 (MEM_LDO_EN) */
300 gpio = <&gpio6 31 GPIO_ACTIVE_HIGH>;
303 pinctrl-names = "default";
304 pinctrl-0 = <&mem_ldo_default>;
307 /* TI TXS0206-29 level translator for 2.9 V */
308 sd_level_translator: regulator-sd-level-translator {
309 compatible = "regulator-fixed";
311 regulator-name = "sd-level-translator";
312 regulator-min-microvolt = <2900000>;
313 regulator-max-microvolt = <2900000>;
315 startup-delay-us = <200>;
317 /* GPIO87 (TXS0206-29_EN) */
318 gpios = <&gpio2 23 GPIO_ACTIVE_HIGH>;
321 pinctrl-names = "default";
322 pinctrl-0 = <&sd_level_translator_default>;
326 * WL_REG_ON takes WLAN out of reset and enables the internal regulators.
327 * The voltage specified here is only used to determine the OCR mask,
328 * the BCM chip is actually connected directly to VBAT.
330 wl_reg_on: regulator-wl-reg-on {
331 compatible = "regulator-fixed";
333 regulator-name = "wl-reg-on";
334 regulator-min-microvolt = <3000000>;
335 regulator-max-microvolt = <3000000>;
337 startup-delay-us = <100000>;
339 /* GPIO215 (WLAN_EN) */
340 gpio = <&gpio6 23 GPIO_ACTIVE_HIGH>;
343 pinctrl-names = "default";
344 pinctrl-0 = <&wlan_en_default>;
350 gpio_keys_default: gpio_keys_default {
352 pins = "GPIO67", /* VOL_UP */
353 "GPIO91", /* HOME_KEY */
354 "GPIO92"; /* VOL_DOWN */
355 ste,config = <&gpio_in_pu>;
361 sd_level_translator_default: sd_level_translator_default {
363 pins = "GPIO87_B3"; /* TXS0206-29_EN */
364 ste,config = <&gpio_out_lo>;
370 mem_ldo_default: mem_ldo_default {
372 pins = "GPIO223_AH9"; /* MEM_LDO_EN */
373 ste,config = <&gpio_out_hi>;
379 imu_default: imu_default {
381 pins = "GPIO206_AG24"; /* ACC_INT */
382 ste,config = <&gpio_in_pd>;
388 tsp_default: tsp_default {
390 pins = "GPIO218_AH11"; /* TSP_INT_1V8 */
391 ste,config = <&gpio_in_nopull>;
397 wlan_default: wlan_default {
399 pins = "GPIO216_AG12"; /* WLAN_HOST_WAKE */
400 ste,config = <&gpio_in_pd>;
404 wlan_en_default: wlan_en_default {
406 pins = "GPIO215_AH13"; /* WLAN_EN */
407 ste,config = <&gpio_out_lo>;
413 bluetooth_default: bluetooth_default {
415 pins = "GPIO199_AH23", /* BT_WAKE */
416 "GPIO222_AJ9"; /* BT_VREG_ON */
417 ste,config = <&gpio_out_lo>;
420 pins = "GPIO97_D9"; /* BT_HOST_WAKE */
421 ste,config = <&gpio_in_nopull>;
427 vibrator_default: vibrator_default {
429 pins = "GPIO195_AG28"; /* MOT_EN */
430 ste,config = <&gpio_out_lo>;
437 /* Hog a few default settings */
438 pinctrl-names = "default";
439 pinctrl-0 = <&gpio_default>;
442 gpio_default: gpio_default {
444 /* Change unused pins to GPIO mode */
446 groups = "gpio3_a_1", /* default: SysClkReq4 */
447 "gpio14_a_1"; /* default: PWMOut1 */
450 pins = "GPIO11_B17", "GPIO13_D17", "GPIO50_L4";