Lines Matching +full:card +full:- +full:detect +full:- +full:delay
1 // SPDX-License-Identifier: GPL-2.0-only
3 * Devicetree for the Samsung Galaxy Beam GT-I8530 also known as Gavini.
6 /dts-v1/;
7 #include "ste-db8500.dtsi"
8 #include "ste-ab8500.dtsi"
9 #include "ste-dbx5x0-pinctrl.dtsi"
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/leds/common.h>
12 #include <dt-bindings/input/input.h>
13 #include <dt-bindings/interrupt-controller/irq.h>
16 model = "Samsung Galaxy Beam (GT-I8530)";
17 compatible = "samsung,gavini", "st-ericsson,u8500";
20 stdout-path = &serial2;
24 sd_level_translator: regulator-gpio {
25 compatible = "regulator-fixed";
29 enable-active-high;
31 regulator-name = "sd-level-translator";
32 regulator-min-microvolt = <2900000>;
33 regulator-max-microvolt = <2900000>;
34 regulator-type = "voltage";
36 startup-delay-us = <200>;
38 pinctrl-names = "default";
39 pinctrl-0 = <&sd_level_translator_default>;
43 ldo_3v3_reg: regulator-gpio-ldo-3v3 {
44 compatible = "regulator-fixed";
46 regulator-name = "VMEM_3V3";
47 regulator-min-microvolt = <3300000>;
48 regulator-max-microvolt = <3300000>;
50 startup-delay-us = <5000>; // FIXME
51 enable-active-high;
52 pinctrl-names = "default";
53 pinctrl-0 = <&emmc_ldo_en_default_mode>;
61 ldo_tsp_3v3_reg: regulator-gpio-tsp-ldo-3v3 {
62 compatible = "regulator-fixed";
64 regulator-name = "LDO_TSP_A3V3";
65 regulator-min-microvolt = <3300000>;
66 regulator-max-microvolt = <3300000>;
69 /* 70 ms power-on delay */
70 startup-delay-us = <70000>;
71 enable-active-high;
72 pinctrl-names = "default";
73 pinctrl-0 = <&tsp_ldo_en_default_mode>;
75 ldo_tsp_1v8_reg: regulator-gpio-tsp-ldo-1v8 {
76 compatible = "regulator-fixed";
78 regulator-name = "VREG_TSP_1V8";
79 regulator-min-microvolt = <1800000>;
80 regulator-max-microvolt = <1800000>;
83 /* 70 ms power-on delay */
84 startup-delay-us = <70000>;
85 enable-active-high;
86 pinctrl-names = "default";
87 pinctrl-0 = <&tsp_ldo_en_default_mode>;
91 * External Ricoh RP152L010B-TR LCD LDO regulator for the display.
94 lcd_3v0_reg: regulator-gpio-lcd-3v0 {
95 compatible = "regulator-fixed";
97 regulator-name = "VREG_LCD_3V0";
98 regulator-min-microvolt = <3000000>;
99 regulator-max-microvolt = <3000000>;
102 enable-active-high;
103 pinctrl-names = "default";
104 pinctrl-0 = <&lcd_pwr_en_default_mode>;
106 lcd_1v8_reg: regulator-gpio-lcd-1v8 {
107 compatible = "regulator-fixed";
109 regulator-name = "VREG_LCD_1V8";
110 regulator-min-microvolt = <1800000>;
111 regulator-max-microvolt = <1800000>;
114 enable-active-high;
115 pinctrl-names = "default";
116 pinctrl-0 = <&lcd_pwr_en_default_mode>;
129 wl_reg: regulator-gpio-wlan {
130 compatible = "regulator-fixed";
131 regulator-name = "WL_REG_ON";
132 regulator-min-microvolt = <3000000>;
133 regulator-max-microvolt = <3000000>;
134 startup-delay-us = <100000>;
137 enable-active-high;
138 pinctrl-names = "default";
139 pinctrl-0 = <&wlan_ldo_en_default>;
142 gpio-keys {
143 compatible = "gpio-keys";
144 pinctrl-names = "default";
145 pinctrl-0 = <&gpio_keys_default_mode>;
147 button-projector {
153 button-home {
159 button-volup {
165 button-voldown {
167 label = "VOL-";
177 enf-gpios = <&gpio4 12 GPIO_ACTIVE_HIGH>;
179 ent-gpios = <&gpio4 13 GPIO_ACTIVE_HIGH>;
185 richtek,rfs-ohms = <16000>;
186 richtek,rts-ohms = <100000>;
187 pinctrl-names = "default";
188 pinctrl-0 = <&gpio_flash_default_mode>;
193 flash-max-timeout-us = <250000>;
194 flash-max-microamp = <343750>;
195 led-max-microamp = <55000>;
199 gpio-leds {
200 compatible = "gpio-leds";
201 pinctrl-names = "default";
202 pinctrl-0 = <&gpio_leds_default_mode>;
203 used-led {
207 default-state = "on";
214 enable-gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
216 default-brightness = <13>;
217 pinctrl-names = "default";
218 pinctrl-0 = <&ktd259_backlight_default_mode>;
221 /* Bit-banged I2C on GPIO143 and GPIO144 also called "SUBPMU I2C" */
222 i2c-gpio-0 {
223 compatible = "i2c-gpio";
224 sda-gpios = <&gpio4 16 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
225 scl-gpios = <&gpio4 15 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
226 pinctrl-names = "default";
227 pinctrl-0 = <&i2c_gpio_0_default>;
228 #address-cells = <1>;
229 #size-cells = <0>;
237 vda-supply = <&ab8500_ldo_aux2_reg>;
239 vdd-supply = <&ab8500_ldo_aux2_reg>;
241 reset-gpios = <&gpio6 12 GPIO_ACTIVE_LOW>;
242 pinctrl-names = "default";
243 pinctrl-0 = <&mmc328_default>;
251 spi-gpio-0 {
252 compatible = "spi-gpio";
254 sck-gpios = <&gpio6 28 GPIO_ACTIVE_HIGH>;
256 mosi-gpios = <&gpio7 0 GPIO_ACTIVE_HIGH>;
258 miso-gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>;
260 cs-gpios = <&gpio6 31 GPIO_ACTIVE_LOW>;
261 num-chipselects = <1>;
263 pinctrl-names = "default";
264 pinctrl-0 = <&spi_gpio_0_default>;
265 #address-cells = <1>;
266 #size-cells = <0>;
270 /* 300 ns at read cycle -> 3 MHz max speed */
271 //spi-max-frequency = <3000000>;
272 spi-max-frequency = <1200000>;
274 spi-cpha;
275 spi-cpol;
278 vci-supply = <&lcd_3v0_reg>;
279 vccio-supply = <&lcd_1v8_reg>;
281 reset-gpios = <&gpio4 11 GPIO_ACTIVE_LOW>;
282 pinctrl-names = "default";
283 pinctrl-0 = <&panel_default_mode>;
288 remote-endpoint = <&display_out>;
294 /* Bit-banged I2C on GPIO201 and GPIO202 also called "MOT_I2C" */
295 i2c-gpio-2 {
296 compatible = "i2c-gpio";
297 sda-gpios = <&gpio6 10 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
298 scl-gpios = <&gpio6 9 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
299 pinctrl-names = "default";
300 pinctrl-0 = <&i2c_gpio_2_default>;
301 #address-cells = <1>;
302 #size-cells = <0>;
306 /* Bit-banged I2C on GPIO196 and GPIO197 also called "MPR_I2C" */
307 i2c-gpio-3 {
308 compatible = "i2c-gpio";
309 sda-gpios = <&gpio6 5 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
310 scl-gpios = <&gpio6 4 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
311 pinctrl-names = "default";
312 pinctrl-0 = <&i2c_gpio_3_default>;
313 #address-cells = <1>;
314 #size-cells = <0>;
321 arm,primecell-periphid = <0x10480180>;
322 max-frequency = <50000000>;
323 bus-width = <4>;
324 cap-sd-highspeed;
325 cap-mmc-highspeed;
326 st,sig-pin-fbclk;
327 full-pwr-cycle;
329 vmmc-supply = <&ab8500_ldo_aux3_reg>;
331 vqmmc-supply = <&sd_level_translator>;
332 pinctrl-names = "default", "sleep";
333 pinctrl-0 = <&mc0_a_2_default>;
334 pinctrl-1 = <&mc0_a_2_sleep>;
335 /* "flash detect" actually card detect */
336 cd-gpios = <&gpio6 25 GPIO_ACTIVE_LOW>;
342 arm,primecell-periphid = <0x10480180>;
343 max-frequency = <50000000>;
344 bus-width = <4>;
345 non-removable;
346 cap-sd-highspeed;
347 pinctrl-names = "default", "sleep";
348 pinctrl-0 = <&mc1_a_2_default>;
349 pinctrl-1 = <&mc1_a_2_sleep>;
351 * GPIO-controlled voltage enablement: this drives
355 vmmc-supply = <&wl_reg>;
357 #address-cells = <1>;
358 #size-cells = <0>;
362 compatible = "brcm,bcm4330-fmac", "brcm,bcm4329-fmac";
365 interrupt-parent = <&gpio6>;
367 interrupt-names = "host-wake";
368 pinctrl-names = "default";
369 pinctrl-0 = <&wlan_default_mode>;
375 arm,primecell-periphid = <0x10480180>;
376 max-frequency = <50000000>;
377 bus-width = <8>;
378 non-removable;
379 cap-mmc-highspeed;
380 mmc-ddr-1_8v;
381 no-sdio;
382 no-sd;
383 vmmc-supply = <&ldo_3v3_reg>;
384 pinctrl-names = "default", "sleep";
385 pinctrl-0 = <&mc2_a_1_default>;
386 pinctrl-1 = <&mc2_a_1_sleep>;
392 pinctrl-names = "default", "sleep";
393 pinctrl-0 = <&u0_a_1_default>;
394 pinctrl-1 = <&u0_a_1_sleep>;
398 compatible = "brcm,bcm4330-bt";
400 shutdown-gpios = <&gpio6 30 GPIO_ACTIVE_HIGH>;
402 device-wakeup-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
404 host-wakeup-gpios = <&gpio3 1 GPIO_ACTIVE_HIGH>;
406 reset-gpios = <&gpio6 17 GPIO_ACTIVE_LOW>;
407 pinctrl-names = "default";
408 pinctrl-0 = <&bluetooth_default_mode>;
415 pinctrl-names = "default", "sleep";
417 pinctrl-0 = <&u1rxtx_a_1_default>;
418 pinctrl-1 = <&u1rxtx_a_1_sleep>;
425 pinctrl-names = "default", "sleep";
426 pinctrl-0 = <&u2rxtx_c_1_default>;
427 pinctrl-1 = <&u2rxtx_c_1_sleep>;
433 pinctrl-names = "default", "sleep";
434 pinctrl-0 = <&usb_a_1_default>;
435 pinctrl-1 = <&usb_a_1_sleep>;
438 ab8500-regulators {
441 regulator-name = "V-SENSORS-VDD";
442 regulator-min-microvolt = <3000000>;
443 regulator-max-microvolt = <3000000>;
448 regulator-name = "V-SENSORS-VIO";
449 regulator-min-microvolt = <1800000>;
450 regulator-max-microvolt = <1800000>;
454 /* Used for voltage for external MMC/SD card */
455 regulator-name = "V-MMC-SD";
456 regulator-min-microvolt = <1200000>;
457 regulator-max-microvolt = <2910000>;
466 pinctrl-names = "default", "sleep";
467 pinctrl-0 = <&i2c0_a_1_default>;
468 pinctrl-1 = <&i2c0_a_1_sleep>;
474 clock-frequency = <400000>;
483 interrupt-parent = <&gpio7>;
485 mount-matrix = "0", "1", "0",
488 vlogic-supply = <&ab8500_ldo_aux2_reg>; // 1.8V
489 vdd-supply = <&ab8500_ldo_aux1_reg>; // 3V
490 pinctrl-names = "default";
491 pinctrl-0 = <&mpu3050_default>;
494 * The MPU-3050 acts as a hub for the
497 i2c-gate {
498 #address-cells = <1>;
499 #size-cells = <0>;
505 mount-matrix = "0", "1", "0",
506 "-1", "0", "0",
508 vddio-supply = <&ab8500_ldo_aux2_reg>; // 1.8V
509 vdd-supply = <&ab8500_ldo_aux1_reg>; // 3V
518 pinctrl-names = "default", "sleep";
519 pinctrl-0 = <&i2c2_b_1_default>;
520 pinctrl-1 = <&i2c2_b_1_sleep>;
523 usb-switch@25 {
527 interrupt-parent = <&gpio2>;
529 pinctrl-names = "default";
530 pinctrl-0 = <&tsu6111_default>;
538 pinctrl-names = "default", "sleep";
539 pinctrl-0 = <&i2c3_c_2_default>;
540 pinctrl-1 = <&i2c3_c_2_sleep>;
547 interrupt-parent = <&gpio6>;
549 /* AVDD is "analog supply", 2.57-3.47 V */
550 avdd-supply = <&ldo_tsp_3v3_reg>;
551 /* VDD is "digital supply" 1.71-3.47V */
552 vdd-supply = <&ldo_tsp_1v8_reg>;
553 pinctrl-names = "default";
554 pinctrl-0 = <&tsp_default>;
555 touchscreen-size-x = <480>;
556 touchscreen-size-y = <800>;
562 pinctrl-names = "default";
563 pinctrl-0 = <&dpi_default_mode>;
567 remote-endpoint = <&panel_in>;
577 * the card detect GPIO217 line.
582 pins = "GPIO217_AH12"; /* card detect */
593 /* Data lines D0-D7 GPIO70..GPIO77 */
595 /* Data lines D8-D11 GPIO78..GPIO81 */
597 /* Data lines D12-D15 GPIO82..GPIO85 */
599 /* Data lines D16-D23 GPIO161..GPIO168 */
607 /* Input, no pull-up is the default state for pins used for an alt function */
625 emmc-ldo {
635 tsp-ldo {
654 gpio-leds {
672 touchkey-ldo {
696 lcd-ldo {
706 wlan-ldo {
715 /* GPIO that enables the 2.9V SD card level translator */
716 sd-level-translator {
726 gpio-keys {
765 /* GPIO-based I2C bus for magnetometer and NCP6914 */
766 i2c-gpio-0 {
774 /* GPIO-based I2C bus for the Immersion ISA1200 */
775 i2c-gpio-2 {
783 /* GPIO-based I2C bus for the TI DPP2601 */
784 i2c-gpio-3 {
792 /* GPIO-based SPI bus for the display */
793 spi-gpio-0 {