Lines Matching +full:gpio +full:- +full:config
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;
27 thermal-zones {
28 battery-thermal {
30 polling-delay = <0>;
31 polling-delay-passive = <0>;
32 thermal-sensors = <&bat_therm>;
35 battery-crit-hi {
45 compatible = "samsung,1404-001221";
46 io-channels = <&gpadc 0x02>; /* BatTemp */
47 pullup-uv = <1800000>;
48 pullup-ohm = <230000>;
49 pulldown-ohm = <0>;
50 #thermal-sensor-cells = <0>;
54 sd_level_translator: regulator-gpio {
55 compatible = "regulator-fixed";
59 enable-active-high;
61 regulator-name = "sd-level-translator";
62 regulator-min-microvolt = <2900000>;
63 regulator-max-microvolt = <2900000>;
64 regulator-type = "voltage";
66 startup-delay-us = <200>;
68 pinctrl-names = "default";
69 pinctrl-0 = <&sd_level_translator_default>;
73 ldo_3v3_reg: regulator-gpio-ldo-3v3 {
74 compatible = "regulator-fixed";
76 regulator-name = "VMEM_3V3";
77 regulator-min-microvolt = <3300000>;
78 regulator-max-microvolt = <3300000>;
79 gpio = <&gpio0 6 GPIO_ACTIVE_HIGH>;
80 startup-delay-us = <5000>; // FIXME
81 enable-active-high;
82 pinctrl-names = "default";
83 pinctrl-0 = <&emmc_ldo_en_default_mode>;
88 * One GPIO line controls two voltages of 3.3V and 1.8V
91 ldo_tsp_3v3_reg: regulator-gpio-tsp-ldo-3v3 {
92 compatible = "regulator-fixed";
94 regulator-name = "LDO_TSP_A3V3";
95 regulator-min-microvolt = <3300000>;
96 regulator-max-microvolt = <3300000>;
98 gpio = <&gpio2 30 GPIO_ACTIVE_HIGH>;
99 /* 70 ms power-on delay */
100 startup-delay-us = <70000>;
101 enable-active-high;
102 pinctrl-names = "default";
103 pinctrl-0 = <&tsp_ldo_en_default_mode>;
105 ldo_tsp_1v8_reg: regulator-gpio-tsp-ldo-1v8 {
106 compatible = "regulator-fixed";
108 regulator-name = "VREG_TSP_1V8";
109 regulator-min-microvolt = <1800000>;
110 regulator-max-microvolt = <1800000>;
112 gpio = <&gpio2 30 GPIO_ACTIVE_HIGH>;
113 /* 70 ms power-on delay */
114 startup-delay-us = <70000>;
115 enable-active-high;
116 pinctrl-names = "default";
117 pinctrl-0 = <&tsp_ldo_en_default_mode>;
121 * External Ricoh RP152L010B-TR LCD LDO regulator for the display.
124 lcd_3v0_reg: regulator-gpio-lcd-3v0 {
125 compatible = "regulator-fixed";
127 regulator-name = "VREG_LCD_3V0";
128 regulator-min-microvolt = <3000000>;
129 regulator-max-microvolt = <3000000>;
131 gpio = <&gpio6 27 GPIO_ACTIVE_HIGH>;
132 enable-active-high;
133 pinctrl-names = "default";
134 pinctrl-0 = <&lcd_pwr_en_default_mode>;
136 lcd_1v8_reg: regulator-gpio-lcd-1v8 {
137 compatible = "regulator-fixed";
139 regulator-name = "VREG_LCD_1V8";
140 regulator-min-microvolt = <1800000>;
141 regulator-max-microvolt = <1800000>;
143 gpio = <&gpio6 27 GPIO_ACTIVE_HIGH>;
144 enable-active-high;
145 pinctrl-names = "default";
146 pinctrl-0 = <&lcd_pwr_en_default_mode>;
150 * This regulator is a GPIO line that drives the Broadcom WLAN
159 wl_reg: regulator-gpio-wlan {
160 compatible = "regulator-fixed";
161 regulator-name = "WL_REG_ON";
162 regulator-min-microvolt = <3000000>;
163 regulator-max-microvolt = <3000000>;
164 startup-delay-us = <100000>;
166 gpio = <&gpio6 23 GPIO_ACTIVE_HIGH>;
167 enable-active-high;
168 pinctrl-names = "default";
169 pinctrl-0 = <&wlan_ldo_en_default>;
172 gpio-keys {
173 compatible = "gpio-keys";
174 pinctrl-names = "default";
175 pinctrl-0 = <&gpio_keys_default_mode>;
177 button-projector {
183 button-home {
189 button-volup {
195 button-voldown {
197 label = "VOL-";
206 /* GPIO 140 */
207 enf-gpios = <&gpio4 12 GPIO_ACTIVE_HIGH>;
208 /* GPIO 141 */
209 ent-gpios = <&gpio4 13 GPIO_ACTIVE_HIGH>;
215 richtek,rfs-ohms = <16000>;
216 richtek,rts-ohms = <100000>;
217 pinctrl-names = "default";
218 pinctrl-0 = <&gpio_flash_default_mode>;
223 flash-max-timeout-us = <250000>;
224 flash-max-microamp = <343750>;
225 led-max-microamp = <55000>;
229 gpio-leds {
230 compatible = "gpio-leds";
231 pinctrl-names = "default";
232 pinctrl-0 = <&gpio_leds_default_mode>;
233 used-led {
237 default-state = "on";
244 enable-gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
246 default-brightness = <13>;
247 pinctrl-names = "default";
248 pinctrl-0 = <&ktd259_backlight_default_mode>;
251 /* Bit-banged I2C on GPIO143 and GPIO144 also called "SUBPMU I2C" */
252 i2c-gpio-0 {
253 compatible = "i2c-gpio";
254 sda-gpios = <&gpio4 16 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
255 scl-gpios = <&gpio4 15 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
256 pinctrl-names = "default";
257 pinctrl-0 = <&i2c_gpio_0_default>;
258 #address-cells = <1>;
259 #size-cells = <0>;
266 vdd-supply = <&ab8500_ldo_aux1_reg>;
268 iovdd-supply = <&ab8500_ldo_aux2_reg>;
270 reset-gpios = <&gpio6 12 GPIO_ACTIVE_LOW>;
271 pinctrl-names = "default";
272 pinctrl-0 = <&yas530_default>;
281 compatible = "spi-gpio";
283 sck-gpios = <&gpio6 28 GPIO_ACTIVE_HIGH>;
285 mosi-gpios = <&gpio7 0 GPIO_ACTIVE_HIGH>;
287 miso-gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>;
289 cs-gpios = <&gpio6 31 GPIO_ACTIVE_LOW>;
290 num-chipselects = <1>;
292 pinctrl-names = "default";
293 pinctrl-0 = <&spi_gpio_0_default>;
294 #address-cells = <1>;
295 #size-cells = <0>;
299 /* 300 ns at read cycle -> 3 MHz max speed */
300 //spi-max-frequency = <3000000>;
301 spi-max-frequency = <1200000>;
303 spi-cpha;
304 spi-cpol;
307 vci-supply = <&lcd_3v0_reg>;
308 vccio-supply = <&lcd_1v8_reg>;
310 reset-gpios = <&gpio4 11 GPIO_ACTIVE_LOW>;
311 pinctrl-names = "default";
312 pinctrl-0 = <&panel_default_mode>;
317 remote-endpoint = <&display_out>;
323 /* Bit-banged I2C on GPIO201 and GPIO202 also called "MOT_I2C" */
324 i2c-gpio-2 {
325 compatible = "i2c-gpio";
326 sda-gpios = <&gpio6 10 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
327 scl-gpios = <&gpio6 9 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
328 pinctrl-names = "default";
329 pinctrl-0 = <&i2c_gpio_2_default>;
330 #address-cells = <1>;
331 #size-cells = <0>;
335 /* Bit-banged I2C on GPIO196 and GPIO197 also called "MPR_I2C" */
336 i2c-gpio-3 {
337 compatible = "i2c-gpio";
338 sda-gpios = <&gpio6 5 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
339 scl-gpios = <&gpio6 4 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
340 pinctrl-names = "default";
341 pinctrl-0 = <&i2c_gpio_3_default>;
342 #address-cells = <1>;
343 #size-cells = <0>;
350 arm,primecell-periphid = <0x10480180>;
351 max-frequency = <50000000>;
352 bus-width = <4>;
353 cap-sd-highspeed;
354 cap-mmc-highspeed;
355 st,sig-pin-fbclk;
356 full-pwr-cycle;
358 vmmc-supply = <&ab8500_ldo_aux3_reg>;
360 vqmmc-supply = <&sd_level_translator>;
361 pinctrl-names = "default", "sleep";
362 pinctrl-0 = <&mc0_a_2_default>;
363 pinctrl-1 = <&mc0_a_2_sleep>;
365 cd-gpios = <&gpio6 25 GPIO_ACTIVE_LOW>;
371 arm,primecell-periphid = <0x10480180>;
372 max-frequency = <50000000>;
373 bus-width = <4>;
374 non-removable;
375 cap-sd-highspeed;
376 pinctrl-names = "default", "sleep";
377 pinctrl-0 = <&mc1_a_2_default>;
378 pinctrl-1 = <&mc1_a_2_sleep>;
380 * GPIO-controlled voltage enablement: this drives
384 vmmc-supply = <&wl_reg>;
386 #address-cells = <1>;
387 #size-cells = <0>;
391 compatible = "brcm,bcm4330-fmac", "brcm,bcm4329-fmac";
394 interrupt-parent = <&gpio6>;
396 interrupt-names = "host-wake";
397 pinctrl-names = "default";
398 pinctrl-0 = <&wlan_default_mode>;
404 arm,primecell-periphid = <0x10480180>;
405 max-frequency = <50000000>;
406 bus-width = <8>;
407 non-removable;
408 cap-mmc-highspeed;
409 mmc-ddr-1_8v;
410 no-sdio;
411 no-sd;
412 vmmc-supply = <&ldo_3v3_reg>;
413 pinctrl-names = "default", "sleep";
414 pinctrl-0 = <&mc2_a_1_default>;
415 pinctrl-1 = <&mc2_a_1_sleep>;
421 pinctrl-names = "default", "sleep";
422 pinctrl-0 = <&u0_a_1_default>;
423 pinctrl-1 = <&u0_a_1_sleep>;
427 compatible = "brcm,bcm4330-bt";
429 shutdown-gpios = <&gpio6 30 GPIO_ACTIVE_HIGH>;
431 device-wakeup-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
433 host-wakeup-gpios = <&gpio3 1 GPIO_ACTIVE_HIGH>;
435 reset-gpios = <&gpio6 17 GPIO_ACTIVE_LOW>;
436 pinctrl-names = "default";
437 pinctrl-0 = <&bluetooth_default_mode>;
444 pinctrl-names = "default", "sleep";
445 /* CTS/RTS is not used, CTS is repurposed as GPIO */
446 pinctrl-0 = <&u1rxtx_a_1_default>;
447 pinctrl-1 = <&u1rxtx_a_1_sleep>;
454 pinctrl-names = "default", "sleep";
455 pinctrl-0 = <&u2rxtx_c_1_default>;
456 pinctrl-1 = <&u2rxtx_c_1_sleep>;
462 pinctrl-names = "default", "sleep";
463 pinctrl-0 = <&usb_a_1_default>;
464 pinctrl-1 = <&usb_a_1_sleep>;
468 line-impedance-micro-ohms = <43000>;
474 regulator-name = "V-SENSORS-VDD";
475 regulator-min-microvolt = <3000000>;
476 regulator-max-microvolt = <3000000>;
481 regulator-name = "V-SENSORS-VIO";
482 regulator-min-microvolt = <1800000>;
483 regulator-max-microvolt = <1800000>;
488 regulator-name = "V-MMC-SD";
489 regulator-min-microvolt = <1200000>;
490 regulator-max-microvolt = <2910000>;
499 pinctrl-names = "default", "sleep";
500 pinctrl-0 = <&i2c0_a_1_default>;
501 pinctrl-1 = <&i2c0_a_1_sleep>;
507 clock-frequency = <400000>;
516 interrupt-parent = <&gpio7>;
518 mount-matrix = "0", "1", "0",
521 vlogic-supply = <&ab8500_ldo_aux2_reg>; // 1.8V
522 vdd-supply = <&ab8500_ldo_aux1_reg>; // 3V
523 pinctrl-names = "default";
524 pinctrl-0 = <&mpu3050_default>;
527 * The MPU-3050 acts as a hub for the
530 i2c-gate {
531 #address-cells = <1>;
532 #size-cells = <0>;
538 mount-matrix = "0", "-1", "0",
541 vddio-supply = <&ab8500_ldo_aux2_reg>; // 1.8V
542 vdd-supply = <&ab8500_ldo_aux1_reg>; // 3V
551 pinctrl-names = "default", "sleep";
552 pinctrl-0 = <&i2c2_b_1_default>;
553 pinctrl-1 = <&i2c2_b_1_sleep>;
556 usb-switch@25 {
560 interrupt-parent = <&gpio2>;
562 pinctrl-names = "default";
563 pinctrl-0 = <&tsu6111_default>;
571 pinctrl-names = "default", "sleep";
572 pinctrl-0 = <&i2c3_c_2_default>;
573 pinctrl-1 = <&i2c3_c_2_sleep>;
580 interrupt-parent = <&gpio6>;
582 /* AVDD is "analog supply", 2.57-3.47 V */
583 avdd-supply = <&ldo_tsp_3v3_reg>;
584 /* VDD is "digital supply" 1.71-3.47V */
585 vdd-supply = <&ldo_tsp_1v8_reg>;
586 pinctrl-names = "default";
587 pinctrl-0 = <&tsp_default>;
588 touchscreen-size-x = <480>;
589 touchscreen-size-y = <800>;
595 pinctrl-names = "default";
596 pinctrl-0 = <&dpi_default_mode>;
600 remote-endpoint = <&panel_in>;
609 * This extends the MC0_A_2 default config to include
616 ste,config = <&gpio_in_nopull>;
626 /* Data lines D0-D7 GPIO70..GPIO77 */
628 /* Data lines D8-D11 GPIO78..GPIO81 */
630 /* Data lines D12-D15 GPIO82..GPIO85 */
632 /* Data lines D16-D23 GPIO161..GPIO168 */
640 /* Input, no pull-up is the default state for pins used for an alt function */
643 ste,config = <&in_nopull>;
647 /* GPIO for panel reset control */
653 ste,config = <&gpio_out_lo>;
657 /* GPIO that enables the LDO regulator for the eMMC */
658 emmc-ldo {
663 ste,config = <&gpio_out_hi>;
667 /* GPIO that enables the LDO regulator for the touchscreen */
668 tsp-ldo {
673 ste,config = <&gpio_out_hi>;
682 ste,config = <&gpio_out_hi>;
691 ste,config = <&gpio_out_lo>;
695 /* GPIO that enables the LDO regulator for the key LED */
696 gpio-leds {
701 ste,config = <&gpio_out_hi>;
709 ste,config = <&gpio_out_lo>;
713 /* GPIO that enables the LDO regulator for the touchkeys */
714 touchkey-ldo {
719 ste,config = <&gpio_out_lo>;
728 ste,config = <&gpio_in_nopull>;
733 ste,config = <&gpio_in_pd>;
737 /* GPIO that enables the LDO regulator for the LCD display */
738 lcd-ldo {
743 ste,config = <&gpio_out_hi>;
747 /* GPIO that enables the WLAN internal LDO regulators */
748 wlan-ldo {
753 ste,config = <&gpio_out_lo>;
757 /* GPIO that enables the 2.9V SD card level translator */
758 sd-level-translator {
763 ste,config = <&gpio_out_hi>;
767 /* GPIO keys */
768 gpio-keys {
775 ste,config = <&gpio_in_pu>;
784 ste,config = <&gpio_in_nopull>;
794 ste,config = <&gpio_in_nopull>;
798 /* GPIO-based I2C bus for magnetometer and NCP6914 */
799 i2c-gpio-0 {
803 ste,config = <&gpio_in_nopull>;
807 /* GPIO-based I2C bus for the Immersion ISA1200 */
808 i2c-gpio-2 {
812 ste,config = <&gpio_in_nopull>;
816 /* GPIO-based I2C bus for the TI DPP2601 */
817 i2c-gpio-3 {
821 ste,config = <&gpio_in_nopull>;
825 /* GPIO-based SPI bus for the display */
826 spi-gpio-0 {
830 ste,config = <&gpio_out_hi>;
834 ste,config = <&gpio_in_nopull>;
841 ste,config = <&gpio_out_hi>;
845 ste,config = <&gpio_out_lo>;
854 ste,config = <&gpio_in_pd>;
863 ste,config = <&gpio_out_lo>;
868 ste,config = <&gpio_in_nopull>;
873 ste,config = <&gpio_out_hi>;
883 ste,config = <&gpio_in_nopull>;