1 // SPDX-License-Identifier: GPL-2.0-only
3 * Devicetree for the Samsung XCover 2 GT-S7710 also known as Skomer.
7 #include "ste-db8500.dtsi"
8 #include "ste-ab8505.dtsi"
9 #include "ste-dbx5x0-pinctrl.dtsi"
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/input/input.h>
12 #include <dt-bindings/interrupt-controller/irq.h>
15 model = "Samsung XCover 2 (GT-S7710)";
16 compatible = "samsung,skomer", "st-ericsson,u8500";
19 stdout-path = &serial2;
22 /* TI TXS0206 level translator for 2.9 V */
23 sd_level_translator: regulator-gpio {
24 compatible = "regulator-fixed";
27 gpios = <&gpio2 23 GPIO_ACTIVE_HIGH>;
30 regulator-name = "sd-level-translator";
31 regulator-min-microvolt = <2900000>;
32 regulator-max-microvolt = <2900000>;
33 regulator-type = "voltage";
35 startup-delay-us = <200>;
37 pinctrl-names = "default";
38 pinctrl-0 = <&sd_level_translator_default>;
41 /* External LDO MIC5366-3.3YMT for eMMC */
42 ldo_3v3_reg: regulator-gpio-ldo-3v3 {
43 compatible = "regulator-fixed";
44 regulator-name = "en-3v3-fixed-supply";
45 regulator-min-microvolt = <3300000>;
46 regulator-max-microvolt = <3300000>;
47 gpio = <&gpio6 31 GPIO_ACTIVE_HIGH>;
48 startup-delay-us = <5000>;
50 pinctrl-names = "default";
51 pinctrl-0 = <&emmc_ldo_en_default_mode>;
54 wlan_en: regulator-gpio-wlan-en {
55 compatible = "regulator-fixed";
56 regulator-name = "wl-reg-on";
57 regulator-min-microvolt = <3000000>;
58 regulator-max-microvolt = <3000000>;
59 startup-delay-us = <200000>;
61 gpio = <&gpio6 23 GPIO_ACTIVE_HIGH>;
63 pinctrl-names = "default";
64 pinctrl-0 = <&wlan_en_default_mode>;
68 compatible = "gpio-vibrator";
69 enable-gpios = <&gpio6 3 GPIO_ACTIVE_HIGH>;
70 pinctrl-names = "default";
71 pinctrl-0 = <&vibrator_default>;
75 compatible = "gpio-keys";
76 pinctrl-names = "default";
77 pinctrl-0 = <&gpio_keys_default_mode>;
80 linux,code = <KEY_HOME>;
83 gpios = <&gpio2 27 GPIO_ACTIVE_LOW>;
86 linux,code = <KEY_VOLUMEUP>;
89 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
92 linux,code = <KEY_VOLUMEDOWN>;
95 gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
98 linux,code = <KEY_MENU>;
101 gpios = <&gpio6 12 GPIO_ACTIVE_LOW>;
104 linux,code = <KEY_BACK>;
107 gpios = <&gpio6 13 GPIO_ACTIVE_LOW>;
112 * FIXME: this is not quite GPIO backlight. This is a
113 * KTD253 one-wire GPIO-controlled backlight. It can
114 * work as a GPIO backlight.
117 compatible = "gpio-backlight";
119 gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
120 pinctrl-names = "default";
121 pinctrl-0 = <&gpio_backlight_default_mode>;
125 compatible = "i2c-gpio";
126 sda-gpios = <&gpio4 16 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
127 scl-gpios = <&gpio4 15 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
128 pinctrl-names = "default";
129 pinctrl-0 = <&i2c_gpio_0_default>;
130 #address-cells = <1>;
132 /* TODO: this should be used by the NCP6914 Camera power management unit */
136 compatible = "i2c-gpio";
137 sda-gpios = <&gpio4 24 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
138 scl-gpios = <&gpio4 23 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
139 pinctrl-names = "default";
140 pinctrl-0 = <&i2c_gpio_1_default>;
141 #address-cells = <1>;
143 /* TODO: this should be used by the ALPS HSCDTD008A compass sensor */
147 // External Micro SD slot
149 arm,primecell-periphid = <0x10480180>;
150 max-frequency = <100000000>;
154 /* All direction control is used */
161 vmmc-supply = <&ab8500_ldo_aux3_reg>;
162 vqmmc-supply = <&sd_level_translator>;
163 pinctrl-names = "default", "sleep";
164 pinctrl-0 = <&mc0_a_1_default>;
165 pinctrl-1 = <&mc0_a_1_sleep>;
171 arm,primecell-periphid = <0x10480180>;
172 max-frequency = <50000000>;
176 vmmc-supply = <&wlan_en>;
177 pinctrl-names = "default", "sleep";
178 pinctrl-0 = <&mc1_a_2_default>;
179 pinctrl-1 = <&mc1_a_2_sleep>;
181 #address-cells = <1>;
185 compatible = "brcm,bcm4329-fmac";
187 /* GPIO216 WL_HOST_WAKE */
188 interrupt-parent = <&gpio6>;
189 interrupts = <24 IRQ_TYPE_EDGE_FALLING>;
190 interrupt-names = "host-wake";
191 pinctrl-names = "default";
192 pinctrl-0 = <&wlan_default_mode>;
198 arm,primecell-periphid = <0x10480180>;
199 max-frequency = <100000000>;
204 vmmc-supply = <&ldo_3v3_reg>;
205 pinctrl-names = "default", "sleep";
206 pinctrl-0 = <&mc2_a_1_default>;
207 pinctrl-1 = <&mc2_a_1_sleep>;
212 /* GBF (Bluetooth) UART */
214 pinctrl-names = "default", "sleep";
215 pinctrl-0 = <&u0_a_1_default>;
216 pinctrl-1 = <&u0_a_1_sleep>;
219 /* FIXME: not quite working yet, probably needs regulators */
221 compatible = "brcm,bcm4330-bt";
222 shutdown-gpios = <&gpio6 30 GPIO_ACTIVE_HIGH>;
223 device-wakeup-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
224 host-wakeup-gpios = <&gpio3 1 GPIO_ACTIVE_HIGH>;
225 pinctrl-names = "default";
226 pinctrl-0 = <&bluetooth_default_mode>;
233 pinctrl-names = "default", "sleep";
234 pinctrl-0 = <&u1rxtx_a_1_default &u1ctsrts_a_1_default>;
235 pinctrl-1 = <&u1rxtx_a_1_sleep &u1ctsrts_a_1_sleep>;
238 /* Debugging console UART connected to AB8505 USB */
241 pinctrl-names = "default", "sleep";
242 pinctrl-0 = <&u2rxtx_c_1_default>;
243 pinctrl-1 = <&u2rxtx_c_1_sleep>;
249 pinctrl-names = "default", "sleep";
250 pinctrl-0 = <&usb_a_1_default>;
251 pinctrl-1 = <&usb_a_1_sleep>;
256 /* Used for VDD for sensors */
257 regulator-name = "AUX1";
258 regulator-min-microvolt = <3000000>;
259 regulator-max-microvolt = <3300000>;
263 /* Supplies the Cypress TMA140 touchscreen only with 3.3V */
264 regulator-name = "AUX2";
265 regulator-min-microvolt = <3300000>;
266 regulator-max-microvolt = <3300000>;
270 /* Used for voltage for external MMC/SD card */
271 regulator-name = "AUX3";
272 regulator-min-microvolt = <1100000>;
273 regulator-max-microvolt = <3300000>;
277 regulator-name = "AUX4";
278 /* Hammer to 3.0V for the display */
279 regulator-min-microvolt = <3000000>;
280 regulator-max-microvolt = <3000000>;
284 regulator-name = "AUX5";
285 regulator-min-microvolt = <1050000>;
286 regulator-max-microvolt = <2790000>;
291 regulator-name = "AUX6";
292 /* Hammer to 1.8V for the display */
293 regulator-min-microvolt = <1800000>;
294 regulator-max-microvolt = <1800000>;
298 /* Mostly VIO for sensors */
299 regulator-name = "AUX8";
309 pinctrl-names = "default", "sleep";
310 pinctrl-0 = <&i2c0_a_1_default>;
311 pinctrl-1 = <&i2c0_a_1_sleep>;
314 compatible = "sharp,gp2ap002s00f";
315 clock-frequency = <400000>;
318 interrupt-parent = <&gpio4>;
319 interrupts = <18 IRQ_TYPE_EDGE_FALLING>;
320 vdd-supply = <&ab8500_ldo_aux1_reg>;
321 vio-supply = <&ab8500_ldo_aux8_reg>;
322 pinctrl-names = "default";
323 pinctrl-0 = <&gp2ap002_skomer_default>;
324 sharp,proximity-far-hysteresis = /bits/ 8 <0x2f>;
325 sharp,proximity-close-hysteresis = /bits/ 8 <0x0f>;
334 pinctrl-names = "default", "sleep";
335 pinctrl-0 = <&i2c2_b_2_default>;
336 pinctrl-1 = <&i2c2_b_2_sleep>;
339 compatible = "bosch,bma254";
340 clock-frequency = <400000>;
343 /* GPIO224 used as "smart alert" interrupt */
344 interrupt-parent = <&gpio7>;
345 interrupts = <0 IRQ_TYPE_EDGE_RISING>;
347 mount-matrix = "0", "1", "0",
350 vdd-supply = <&ab8500_ldo_aux1_reg>;
351 vddio-supply = <&ab8500_ldo_aux8_reg>;
352 pinctrl-names = "default";
353 pinctrl-0 = <&bma254_skomer_default>;
361 pinctrl-names = "default", "sleep";
362 pinctrl-0 = <&i2c3_c_2_default>;
363 pinctrl-1 = <&i2c3_c_2_sleep>;
365 /* TODO: this should be used by the Cypress TMA140 touchscreen */
370 pinctrl-names = "default";
371 pinctrl-0 = <&dsi_default_mode>;
373 dsi-controller@a0351000 {
375 /* NT35510-based Hydis HVA40WV1 */
376 compatible = "hydis,hva40wv1", "novatek,nt35510";
378 /* v_lcd_3v0 2.3-4.8V */
379 vdd-supply = <&ab8500_ldo_aux4_reg>;
380 /* v_lcd_1v8 1.65-3.3V */
381 vddi-supply = <&ab8500_ldo_aux6_reg>;
383 reset-gpios = <&gpio4 11 GPIO_ACTIVE_LOW>;
384 pinctrl-names = "default";
385 pinctrl-0 = <&display_default_mode>;
386 backlight = <&gpio_bl>;
395 * This extends the MC0 default config to include DAT32DIR
396 * which is used by this machine. If we don't do this the
397 * SD card does not work.
403 /* This machine uses the DAT31 pin */
404 groups = "mc0_a_1", "mc0dat31dir_a_1";
407 pins = "GPIO21_AB3"; /* DAT31DIR */
408 ste,config = <&out_hi>;
414 dsi_default_mode: dsi_default {
416 /* Mux in VSI0 used for DSI TE */
418 groups = "lcdvsi0_a_1"; /* VSI0 for LCD */
421 pins = "GPIO68_E1"; /* VSI0 */
422 ste,config = <&in_nopull>;
427 /* Two GPIO lines used by the display */
429 display_default_mode: display_default {
432 * OLED DETECT or check_pba, this appears to be high
433 * on "PBA" which I guess is "prototype board A".
436 ste,config = <&gpio_in_nopull>;
441 * MIPI_DSI0_RESET_N resets the display, leave high
442 * (de-asserted) so we only assert reset explicitly
443 * from the display driver.
445 ste,config = <&gpio_out_hi>;
450 gpio_backlight_default_mode: backlight_default {
452 pins = "GPIO69_E2"; /* LCD_BL_CTRL */
453 ste,config = <&gpio_out_lo>;
457 /* GPIO that enables the 2.9V SD card level translator */
458 sd-level-translator {
459 sd_level_translator_default: sd_level_translator_default {
460 /* level shifter on GPIO87 */
463 ste,config = <&gpio_out_hi>;
467 /* GPIO that enables the LDO regulator for the eMMC */
469 emmc_ldo_en_default_mode: emmc_ldo_default {
470 /* LDO enable on GPIO223 */
472 pins = "GPIO223_AH9";
473 ste,config = <&gpio_out_hi>;
479 gpio_keys_default_mode: gpio_keys_default {
481 pins = "GPIO67_G2", /* VOL UP */
482 "GPIO91_B6", /* HOME */
483 "GPIO92_D6", /* VOL DOWN */
484 "GPIO204_AF23", /* MENU */
485 "GPIO205_AG23"; /* BACK */
486 ste,config = <&gpio_in_pu>;
490 /* Interrupt line for BMA254 */
492 bma254_skomer_default: bma254_skomer {
494 pins = "GPIO224_AG9";
495 ste,config = <&gpio_in_pd>;
499 /* Interrupt line for light/proximity sensor GP2AP002 */
501 gp2ap002_skomer_default: gp2ap002_skomer {
503 pins = "GPIO146_D13";
504 ste,config = <&gpio_in_nopull>;
508 /* GPIO-based I2C bus for NCP6914 */
510 i2c_gpio_0_default: i2c_gpio_0 {
512 pins = "GPIO143_D12", "GPIO144_B13";
513 ste,config = <&gpio_in_nopull>;
517 /* GPIO-based I2C bus for ALPS HSCD compass */
519 i2c_gpio_1_default: i2c_gpio_1 {
521 pins = "GPIO151_B17", "GPIO152_D16";
522 ste,config = <&gpio_in_nopull>;
527 wlan_default_mode: wlan_default {
529 pins = "GPIO216_AG12";
530 ste,config = <&gpio_in_pd>;
533 wlan_en_default_mode: wlan_en_default {
535 pins = "GPIO215_AH13";
536 ste,config = <&gpio_out_lo>;
541 bluetooth_default_mode: bluetooth_default {
543 pins = "GPIO199_AH23", "GPIO222_AJ9";
544 ste,config = <&gpio_out_lo>;
548 ste,config = <&gpio_in_nopull>;
553 vibrator_default: vibrator_default {
555 pins = "GPIO195_AG28"; /* MOT_EN */
556 ste,config = <&gpio_out_lo>;
563 /* Hog a few default settings */
564 pinctrl-names = "default";
565 pinctrl-0 = <&gpio_default>;
568 gpio_default: gpio_default {
570 /* Change unused pins to GPIO mode */
572 groups = "gpio3_a_1", /* default: SysClkReq4 */
573 "gpio14_a_1"; /* default: PWMOut1 */
576 pins = "GPIO11_B17", "GPIO13_D17", "GPIO50_L4";