Lines Matching +full:full +full:- +full:pwr +full:- +full:cycle
1 // SPDX-License-Identifier: GPL-2.0-only
3 * Devicetree for the Samsung Galaxy Ace 2 GT-I8160 also known as Codina.
11 * The Samsung tree further talks about GT-I8160P and GT-I8160chn (China).
12 * The GT-I8160 plain is knonw as the "europe" variant.
13 * The GT-I8160P appears to not use the ST Microelectronics accelerometer.
14 * The GT-I8160chn appears to be the same as the europe variant.
17 /dts-v1/;
18 #include "ste-db8500.dtsi"
19 #include "ste-ab8500.dtsi"
20 #include "ste-dbx5x0-pinctrl.dtsi"
21 #include <dt-bindings/gpio/gpio.h>
22 #include <dt-bindings/leds/common.h>
23 #include <dt-bindings/input/input.h>
24 #include <dt-bindings/interrupt-controller/irq.h>
27 model = "Samsung Galaxy Ace 2 (GT-I8160)";
28 compatible = "samsung,codina", "st-ericsson,u8500";
36 operating-points = <798720 0
43 stdout-path = &serial2;
47 sd_level_translator: regulator-gpio {
48 compatible = "regulator-fixed";
52 enable-active-high;
54 regulator-name = "sd-level-translator";
55 regulator-min-microvolt = <2900000>;
56 regulator-max-microvolt = <2900000>;
57 regulator-type = "voltage";
59 startup-delay-us = <200>;
61 pinctrl-names = "default";
62 pinctrl-0 = <&sd_level_translator_default>;
65 /* External LDO MIC5366-3.3YMT for eMMC */
66 ldo_3v3_reg: regulator-gpio-ldo-3v3 {
67 compatible = "regulator-fixed";
69 regulator-name = "VMEM_3V3";
70 regulator-min-microvolt = <3300000>;
71 regulator-max-microvolt = <3300000>;
73 startup-delay-us = <5000>;
74 enable-active-high;
75 pinctrl-names = "default";
76 pinctrl-0 = <&emmc_ldo_en_default_mode>;
84 ldo_tsp_3v3_reg: regulator-gpio-tsp-ldo-3v3 {
85 compatible = "regulator-fixed";
87 regulator-name = "LDO_TSP_A3V3";
88 regulator-min-microvolt = <3300000>;
89 regulator-max-microvolt = <3300000>;
92 /* 70 ms power-on delay */
93 startup-delay-us = <70000>;
94 enable-active-high;
95 pinctrl-names = "default";
96 pinctrl-0 = <&tsp_ldo_en_default_mode>;
98 ldo_tsp_1v8_reg: regulator-gpio-tsp-ldo-1v8 {
99 compatible = "regulator-fixed";
101 regulator-name = "VREG_TSP_1V8";
102 regulator-min-microvolt = <1800000>;
103 regulator-max-microvolt = <1800000>;
106 /* 70 ms power-on delay */
107 startup-delay-us = <70000>;
108 enable-active-high;
109 pinctrl-names = "default";
110 pinctrl-0 = <&tsp_ldo_en_default_mode>;
114 * External Ricoh RP152L010B-TR LCD LDO regulator for the display.
117 lcd_3v0_reg: regulator-gpio-lcd-3v0 {
118 compatible = "regulator-fixed";
120 regulator-name = "VREG_LCD_3.0V";
121 regulator-min-microvolt = <3000000>;
122 regulator-max-microvolt = <3000000>;
125 enable-active-high;
126 pinctrl-names = "default";
127 pinctrl-0 = <&lcd_pwr_en_default_mode>;
129 lcd_1v8_reg: regulator-gpio-lcd-1v8 {
130 compatible = "regulator-fixed";
132 regulator-name = "VREG_LCD_1.8V";
133 regulator-min-microvolt = <1800000>;
134 regulator-max-microvolt = <1800000>;
137 enable-active-high;
138 pinctrl-names = "default";
139 pinctrl-0 = <&lcd_pwr_en_default_mode>;
152 wl_reg: regulator-gpio-wlan {
153 compatible = "regulator-fixed";
154 regulator-name = "WL_REG_ON";
155 regulator-min-microvolt = <3000000>;
156 regulator-max-microvolt = <3000000>;
157 startup-delay-us = <100000>;
160 enable-active-high;
161 pinctrl-names = "default";
162 pinctrl-0 = <&wlan_ldo_en_default>;
166 compatible = "gpio-vibrator";
168 enable-gpios = <&gpio6 3 GPIO_ACTIVE_HIGH>;
169 pinctrl-names = "default";
170 pinctrl-0 = <&vibrator_default>;
173 gpio-keys {
174 compatible = "gpio-keys";
175 pinctrl-names = "default";
176 pinctrl-0 = <&gpio_keys_default_mode>;
178 button-home {
184 button-volup {
190 button-voldown {
192 label = "VOL-";
198 gpio-leds {
199 compatible = "gpio-leds";
200 pinctrl-names = "default";
201 pinctrl-0 = <&gpio_leds_default_mode>;
202 touchkey-led {
210 default-state = "on";
220 enable-gpios = <&gpio2 4 GPIO_ACTIVE_HIGH>;
222 default-brightness = <13>;
223 pinctrl-names = "default";
224 pinctrl-0 = <&ktd253_backlight_default_mode>;
231 enf-gpios = <&gpio4 12 GPIO_ACTIVE_HIGH>;
233 ent-gpios = <&gpio4 13 GPIO_ACTIVE_HIGH>;
239 richtek,rfs-ohms = <16000>;
240 richtek,rts-ohms = <100000>;
241 pinctrl-names = "default";
242 pinctrl-0 = <&gpio_flash_default_mode>;
247 flash-max-timeout-us = <250000>;
248 flash-max-microamp = <343750>;
249 led-max-microamp = <55000>;
253 /* Bit-banged I2C on GPIO143 and GPIO144 also called "SUBPMU I2C" */
254 i2c-gpio-0 {
255 compatible = "i2c-gpio";
256 sda-gpios = <&gpio4 16 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
257 scl-gpios = <&gpio4 15 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
258 pinctrl-names = "default";
259 pinctrl-0 = <&i2c_gpio_0_default>;
260 #address-cells = <1>;
261 #size-cells = <0>;
266 clock-frequency = <400000>;
268 avdd-supply = <&ab8500_ldo_aux1_reg>; // 3V
269 dvdd-supply = <&ab8500_ldo_aux2_reg>; // 1.8V
274 /* Bit-banged I2C on GPIO151 and GPIO152 also called "NFC I2C" */
275 i2c-gpio-1 {
276 compatible = "i2c-gpio";
277 sda-gpios = <&gpio4 24 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
278 scl-gpios = <&gpio4 23 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
279 pinctrl-names = "default";
280 pinctrl-0 = <&i2c_gpio_1_default>;
281 #address-cells = <1>;
282 #size-cells = <0>;
287 spi-gpio-0 {
288 compatible = "spi-gpio";
290 sck-gpios = <&gpio6 28 GPIO_ACTIVE_HIGH>;
292 mosi-gpios = <&gpio7 0 GPIO_ACTIVE_HIGH>;
294 miso-gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>;
296 cs-gpios = <&gpio6 9 GPIO_ACTIVE_LOW>;
297 num-chipselects = <1>;
299 pinctrl-names = "default";
300 pinctrl-0 = <&spi_gpio_0_default>;
301 #address-cells = <1>;
302 #size-cells = <0>;
305 * Some Codinas (90%) have a WideChips WS2401-based LMS380KF01
312 spi-max-frequency = <1200000>;
314 spi-cpha;
315 spi-cpol;
318 vci-supply = <&lcd_3v0_reg>;
319 vccio-supply = <&lcd_1v8_reg>;
322 reset-gpios = <&gpio4 11 GPIO_ACTIVE_LOW>;
324 interrupt-parent = <&gpio2>;
327 pinctrl-names = "default";
328 pinctrl-0 = <&panel_default_mode>;
333 remote-endpoint = <&display_out>;
342 arm,primecell-periphid = <0x10480180>;
343 max-frequency = <100000000>;
344 bus-width = <4>;
345 cap-sd-highspeed;
346 cap-mmc-highspeed;
347 st,sig-pin-fbclk;
348 full-pwr-cycle;
350 vmmc-supply = <&ab8500_ldo_aux3_reg>;
352 vqmmc-supply = <&sd_level_translator>;
353 pinctrl-names = "default", "sleep";
354 pinctrl-0 = <&mc0_a_2_default>;
355 pinctrl-1 = <&mc0_a_2_sleep>;
356 cd-gpios = <&gpio6 25 GPIO_ACTIVE_LOW>; // GPIO217
362 arm,primecell-periphid = <0x10480180>;
363 max-frequency = <50000000>;
364 bus-width = <4>;
365 non-removable;
366 cap-sd-highspeed;
367 pinctrl-names = "default", "sleep";
368 pinctrl-0 = <&mc1_a_2_default>;
369 pinctrl-1 = <&mc1_a_2_sleep>;
371 * GPIO-controlled voltage enablement: this drives
375 vmmc-supply = <&wl_reg>;
377 #address-cells = <1>;
378 #size-cells = <0>;
383 compatible = "brcm,bcm4330-fmac", "brcm,bcm4329-fmac";
386 interrupt-parent = <&gpio6>;
388 interrupt-names = "host-wake";
389 pinctrl-names = "default";
390 pinctrl-0 = <&wlan_default_mode>;
396 arm,primecell-periphid = <0x10480180>;
397 max-frequency = <100000000>;
398 bus-width = <8>;
399 non-removable;
400 cap-mmc-highspeed;
401 mmc-ddr-1_8v;
402 no-sdio;
403 no-sd;
404 vmmc-supply = <&ldo_3v3_reg>;
405 pinctrl-names = "default", "sleep";
407 * GPIO130 will be set to input no pull-up resulting in a resistor
410 pinctrl-0 = <&mc2_a_1_default>;
411 pinctrl-1 = <&mc2_a_1_sleep>;
417 pinctrl-names = "default", "sleep";
418 pinctrl-0 = <&u0_a_1_default>;
419 pinctrl-1 = <&u0_a_1_sleep>;
423 compatible = "brcm,bcm4330-bt";
425 shutdown-gpios = <&gpio6 30 GPIO_ACTIVE_HIGH>;
427 device-wakeup-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
430 host-wakeup-gpios = <&gpio3 1 GPIO_ACTIVE_HIGH>;
432 reset-gpios = <&gpio6 17 GPIO_ACTIVE_LOW>;
433 pinctrl-names = "default";
434 pinctrl-0 = <&bluetooth_default_mode>;
441 pinctrl-names = "default", "sleep";
443 pinctrl-0 = <&u1rxtx_a_1_default>;
444 pinctrl-1 = <&u1rxtx_a_1_sleep>;
451 pinctrl-names = "default", "sleep";
452 pinctrl-0 = <&u2rxtx_c_1_default>;
453 pinctrl-1 = <&u2rxtx_c_1_sleep>;
459 pinctrl-names = "default", "sleep";
460 pinctrl-0 = <&usb_a_1_default>;
461 pinctrl-1 = <&usb_a_1_sleep>;
464 ab8500-regulators {
467 regulator-name = "V-SENSORS-VDD";
468 regulator-min-microvolt = <3000000>;
469 regulator-max-microvolt = <3000000>;
474 regulator-name = "V-SENSORS-VIO";
475 regulator-min-microvolt = <1800000>;
476 regulator-max-microvolt = <1800000>;
481 regulator-name = "V-MMC-SD";
482 regulator-min-microvolt = <1200000>;
483 regulator-max-microvolt = <2910000>;
492 pinctrl-names = "default", "sleep";
493 pinctrl-0 = <&i2c0_a_1_default>;
494 pinctrl-1 = <&i2c0_a_1_sleep>;
500 clock-frequency = <400000>;
504 interrupt-parent = <&gpio4>;
506 /* FIXME: needs a VDDIO supply that is connected to a pull-up resistor */
507 vdd-supply = <&ab8500_ldo_aux1_reg>;
508 pinctrl-names = "default";
509 pinctrl-0 = <&tms2672_codina_default>;
516 pinctrl-names = "default","sleep";
518 pinctrl-0 = <&i2c1_b_2_default>;
519 pinctrl-1 = <&i2c1_b_2_sleep>;
522 usb-switch@25 {
526 interrupt-parent = <&gpio2>;
528 pinctrl-names = "default";
529 pinctrl-0 = <&tsu6111_codina_default>;
536 pinctrl-names = "default", "sleep";
537 pinctrl-0 = <&i2c2_b_2_default>;
538 pinctrl-1 = <&i2c2_b_2_sleep>;
542 compatible = "st,lis3dh-accel";
543 st,drdy-int-pin = <1>;
545 vdd-supply = <&ab8500_ldo_aux1_reg>; // 3V
546 vddio-supply = <&ab8500_ldo_aux2_reg>; // 1.8V
547 mount-matrix = "0", "-1", "0",
557 pinctrl-names = "default", "sleep";
558 pinctrl-0 = <&i2c3_c_2_default>;
559 pinctrl-1 = <&i2c3_c_2_sleep>;
565 compatible = "zinitix,bt404-isp";
567 pinctrl-names = "default";
568 pinctrl-0 = <&tsp_default>;
576 interrupt-parent = <&gpio6>;
578 vcca-supply = <&ldo_tsp_3v3_reg>;
579 vdd-supply = <&ldo_tsp_1v8_reg>;
581 touchscreen-size-x = <480>;
582 touchscreen-size-y = <800>;
583 pinctrl-names = "default";
584 pinctrl-0 = <&tsp_default>;
590 pinctrl-names = "default";
591 pinctrl-0 = <&dpi_default_mode>;
595 remote-endpoint = <&panel_in>;
630 sd-level-translator {
640 emmc-ldo {
665 tsp-ldo {
675 lcd-ldo {
685 key-led {
695 wlan-ldo {
723 gpio-keys {
751 /* GPIO-based I2C bus for subpmu */
752 i2c-gpio-0 {
760 /* GPIO-based I2C bus for the NFC */
761 i2c-gpio-1 {
769 /* GPIO-based SPI bus for the display */
770 spi-gpio-0 {
842 /* Data lines D0-D7 GPIO70..GPIO77 */
844 /* Data lines D8-D11 GPIO78..GPIO81 */
846 /* Data lines D12-D15 GPIO82..GPIO85 */
848 /* Data lines D16-D23 GPIO161..GPIO168 */
856 /* Input, no pull-up is the default state for pins used for an alt function */