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>;
144 compatible = "alps,hscdtd008a";
146 avdd-supply = <&ab8500_ldo_aux1_reg>;
147 dvdd-supply = <&ab8500_ldo_aux8_reg>;
152 // External Micro SD slot
154 arm,primecell-periphid = <0x10480180>;
155 max-frequency = <100000000>;
159 /* All direction control is used */
166 vmmc-supply = <&ab8500_ldo_aux3_reg>;
167 vqmmc-supply = <&sd_level_translator>;
168 pinctrl-names = "default", "sleep";
169 pinctrl-0 = <&mc0_a_1_default>;
170 pinctrl-1 = <&mc0_a_1_sleep>;
176 arm,primecell-periphid = <0x10480180>;
177 max-frequency = <50000000>;
181 vmmc-supply = <&wlan_en>;
182 pinctrl-names = "default", "sleep";
183 pinctrl-0 = <&mc1_a_2_default>;
184 pinctrl-1 = <&mc1_a_2_sleep>;
186 #address-cells = <1>;
190 compatible = "brcm,bcm4329-fmac";
192 /* GPIO216 WL_HOST_WAKE */
193 interrupt-parent = <&gpio6>;
194 interrupts = <24 IRQ_TYPE_EDGE_FALLING>;
195 interrupt-names = "host-wake";
196 pinctrl-names = "default";
197 pinctrl-0 = <&wlan_default_mode>;
203 arm,primecell-periphid = <0x10480180>;
204 max-frequency = <100000000>;
209 vmmc-supply = <&ldo_3v3_reg>;
210 pinctrl-names = "default", "sleep";
211 pinctrl-0 = <&mc2_a_1_default>;
212 pinctrl-1 = <&mc2_a_1_sleep>;
217 /* GBF (Bluetooth) UART */
219 pinctrl-names = "default", "sleep";
220 pinctrl-0 = <&u0_a_1_default>;
221 pinctrl-1 = <&u0_a_1_sleep>;
224 /* FIXME: not quite working yet, probably needs regulators */
226 compatible = "brcm,bcm4330-bt";
227 shutdown-gpios = <&gpio6 30 GPIO_ACTIVE_HIGH>;
228 device-wakeup-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
229 host-wakeup-gpios = <&gpio3 1 GPIO_ACTIVE_HIGH>;
230 pinctrl-names = "default";
231 pinctrl-0 = <&bluetooth_default_mode>;
238 pinctrl-names = "default", "sleep";
239 pinctrl-0 = <&u1rxtx_a_1_default &u1ctsrts_a_1_default>;
240 pinctrl-1 = <&u1rxtx_a_1_sleep &u1ctsrts_a_1_sleep>;
243 /* Debugging console UART connected to AB8505 USB */
246 pinctrl-names = "default", "sleep";
247 pinctrl-0 = <&u2rxtx_c_1_default>;
248 pinctrl-1 = <&u2rxtx_c_1_sleep>;
254 pinctrl-names = "default", "sleep";
255 pinctrl-0 = <&usb_a_1_default>;
256 pinctrl-1 = <&usb_a_1_sleep>;
261 /* Used for VDD for sensors */
262 regulator-name = "AUX1";
263 regulator-min-microvolt = <3000000>;
264 regulator-max-microvolt = <3300000>;
268 /* Supplies the Cypress TMA140 touchscreen only with 3.3V */
269 regulator-name = "AUX2";
270 regulator-min-microvolt = <3300000>;
271 regulator-max-microvolt = <3300000>;
275 /* Used for voltage for external MMC/SD card */
276 regulator-name = "AUX3";
277 regulator-min-microvolt = <1100000>;
278 regulator-max-microvolt = <3300000>;
282 regulator-name = "AUX4";
283 /* Hammer to 3.0V for the display */
284 regulator-min-microvolt = <3000000>;
285 regulator-max-microvolt = <3000000>;
289 regulator-name = "AUX5";
290 regulator-min-microvolt = <1050000>;
291 regulator-max-microvolt = <2790000>;
296 regulator-name = "AUX6";
297 /* Hammer to 1.8V for the display */
298 regulator-min-microvolt = <1800000>;
299 regulator-max-microvolt = <1800000>;
303 /* Mostly VIO for sensors */
304 regulator-name = "AUX8";
314 pinctrl-names = "default", "sleep";
315 pinctrl-0 = <&i2c0_a_1_default>;
316 pinctrl-1 = <&i2c0_a_1_sleep>;
319 compatible = "sharp,gp2ap002s00f";
320 clock-frequency = <400000>;
323 interrupt-parent = <&gpio4>;
324 interrupts = <18 IRQ_TYPE_EDGE_FALLING>;
325 vdd-supply = <&ab8500_ldo_aux1_reg>;
326 vio-supply = <&ab8500_ldo_aux8_reg>;
327 pinctrl-names = "default";
328 pinctrl-0 = <&gp2ap002_skomer_default>;
329 sharp,proximity-far-hysteresis = /bits/ 8 <0x2f>;
330 sharp,proximity-close-hysteresis = /bits/ 8 <0x0f>;
339 pinctrl-names = "default", "sleep";
340 pinctrl-0 = <&i2c2_b_2_default>;
341 pinctrl-1 = <&i2c2_b_2_sleep>;
344 compatible = "bosch,bma254";
345 clock-frequency = <400000>;
348 /* GPIO224 used as "smart alert" interrupt */
349 interrupt-parent = <&gpio7>;
350 interrupts = <0 IRQ_TYPE_EDGE_RISING>;
352 mount-matrix = "0", "1", "0",
355 vdd-supply = <&ab8500_ldo_aux1_reg>;
356 vddio-supply = <&ab8500_ldo_aux8_reg>;
357 pinctrl-names = "default";
358 pinctrl-0 = <&bma254_skomer_default>;
366 pinctrl-names = "default", "sleep";
367 pinctrl-0 = <&i2c3_c_2_default>;
368 pinctrl-1 = <&i2c3_c_2_sleep>;
370 /* Cypress CY8CTMA140 touchscreen */
372 compatible = "cypress,cy8ctma140";
373 clock-frequency = <400000>;
376 touchscreen-size-x = <480>;
377 touchscreen-size-y = <800>;
378 touchscreen-max-pressure = <255>;
380 /* GPIO218 for IRQ */
381 interrupt-parent = <&gpio6>;
382 interrupts = <26 IRQ_TYPE_EDGE_FALLING>;
384 /* VDD is "digital supply" nominally 1.71-3.6V */
385 vdd-supply = <&ab8500_ldo_aux2_reg>;
386 /* VCPIN is "analog supply", 2.7-3.6 V */
387 vcpin-supply = <&ab8500_ldo_aux2_reg>;
389 pinctrl-names = "default";
390 pinctrl-0 = <&tma140_skomer_default>;
396 pinctrl-names = "default";
397 pinctrl-0 = <&dsi_default_mode>;
399 dsi-controller@a0351000 {
401 /* NT35510-based Hydis HVA40WV1 */
402 compatible = "hydis,hva40wv1", "novatek,nt35510";
404 /* v_lcd_3v0 2.3-4.8V */
405 vdd-supply = <&ab8500_ldo_aux4_reg>;
406 /* v_lcd_1v8 1.65-3.3V */
407 vddi-supply = <&ab8500_ldo_aux6_reg>;
409 reset-gpios = <&gpio4 11 GPIO_ACTIVE_LOW>;
410 pinctrl-names = "default";
411 pinctrl-0 = <&display_default_mode>;
412 backlight = <&gpio_bl>;
421 * This extends the MC0 default config to include DAT32DIR
422 * which is used by this machine. If we don't do this the
423 * SD card does not work.
429 /* This machine uses the DAT31 pin */
430 groups = "mc0_a_1", "mc0dat31dir_a_1";
433 pins = "GPIO21_AB3"; /* DAT31DIR */
434 ste,config = <&out_hi>;
440 dsi_default_mode: dsi_default {
442 /* Mux in VSI0 used for DSI TE */
444 groups = "lcdvsi0_a_1"; /* VSI0 for LCD */
447 pins = "GPIO68_E1"; /* VSI0 */
448 ste,config = <&in_nopull>;
453 /* Two GPIO lines used by the display */
455 display_default_mode: display_default {
458 * OLED DETECT or check_pba, this appears to be high
459 * on "PBA" which I guess is "prototype board A".
462 ste,config = <&gpio_in_nopull>;
467 * MIPI_DSI0_RESET_N resets the display, leave high
468 * (de-asserted) so we only assert reset explicitly
469 * from the display driver.
471 ste,config = <&gpio_out_hi>;
476 gpio_backlight_default_mode: backlight_default {
478 pins = "GPIO69_E2"; /* LCD_BL_CTRL */
479 ste,config = <&gpio_out_lo>;
483 /* GPIO that enables the 2.9V SD card level translator */
484 sd-level-translator {
485 sd_level_translator_default: sd_level_translator_default {
486 /* level shifter on GPIO87 */
489 ste,config = <&gpio_out_hi>;
493 /* GPIO that enables the LDO regulator for the eMMC */
495 emmc_ldo_en_default_mode: emmc_ldo_default {
496 /* LDO enable on GPIO223 */
498 pins = "GPIO223_AH9";
499 ste,config = <&gpio_out_hi>;
505 gpio_keys_default_mode: gpio_keys_default {
507 pins = "GPIO67_G2", /* VOL UP */
508 "GPIO91_B6", /* HOME */
509 "GPIO92_D6", /* VOL DOWN */
510 "GPIO204_AF23", /* MENU */
511 "GPIO205_AG23"; /* BACK */
512 ste,config = <&gpio_in_pu>;
516 /* Interrupt line for BMA254 */
518 bma254_skomer_default: bma254_skomer {
520 pins = "GPIO224_AG9";
521 ste,config = <&gpio_in_pd>;
525 /* Interrupt line for light/proximity sensor GP2AP002 */
527 gp2ap002_skomer_default: gp2ap002_skomer {
529 pins = "GPIO146_D13";
530 ste,config = <&gpio_in_nopull>;
534 /* GPIO-based I2C bus for NCP6914 */
536 i2c_gpio_0_default: i2c_gpio_0 {
538 pins = "GPIO143_D12", "GPIO144_B13";
539 ste,config = <&gpio_in_nopull>;
543 /* GPIO-based I2C bus for ALPS HSCD compass */
545 i2c_gpio_1_default: i2c_gpio_1 {
547 pins = "GPIO151_B17", "GPIO152_D16";
548 ste,config = <&gpio_in_nopull>;
553 wlan_default_mode: wlan_default {
555 pins = "GPIO216_AG12";
556 ste,config = <&gpio_in_pd>;
559 wlan_en_default_mode: wlan_en_default {
561 pins = "GPIO215_AH13";
562 ste,config = <&gpio_out_lo>;
567 bluetooth_default_mode: bluetooth_default {
569 pins = "GPIO199_AH23", "GPIO222_AJ9";
570 ste,config = <&gpio_out_lo>;
574 ste,config = <&gpio_in_nopull>;
579 vibrator_default: vibrator_default {
581 pins = "GPIO195_AG28"; /* MOT_EN */
582 ste,config = <&gpio_out_lo>;
586 /* Interrupt line for the Cypress TMA140 touchscreen */
588 tma140_skomer_default: tma140_skomer {
590 pins = "GPIO218_AH11";
591 ste,config = <&gpio_in_nopull>;
598 /* Hog a few default settings */
599 pinctrl-names = "default";
600 pinctrl-0 = <&gpio_default>;
603 gpio_default: gpio_default {
605 /* Change unused pins to GPIO mode */
607 groups = "gpio3_a_1", /* default: SysClkReq4 */
608 "gpio14_a_1"; /* default: PWMOut1 */
611 pins = "GPIO11_B17", "GPIO13_D17", "GPIO50_L4";