Lines Matching +full:nfc +full:- +full:spi
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 known as the "europe" variant.
13 * The GT-I8160P is the CDMA version and it appears to not use the ST
14 * Microelectronics accelerometer and reportedly has NFC mounted.
15 * The GT-I8160chn appears to be the same as the europe variant.
17 * There is also the Codina-TMO, Samsung SGH-T599, which has its own device
21 /dts-v1/;
22 #include "ste-db8500.dtsi"
23 #include "ste-ab8500.dtsi"
24 #include "ste-dbx5x0-pinctrl.dtsi"
25 #include <dt-bindings/gpio/gpio.h>
26 #include <dt-bindings/leds/common.h>
27 #include <dt-bindings/input/input.h>
28 #include <dt-bindings/interrupt-controller/irq.h>
31 model = "Samsung Galaxy Ace 2 (GT-I8160)";
32 compatible = "samsung,codina", "st-ericsson,u8500";
40 operating-points = <798720 0
47 stdout-path = &serial2;
54 thermal-zones {
55 battery-thermal {
57 polling-delay = <0>;
58 polling-delay-passive = <0>;
59 thermal-sensors = <&bat_therm>;
62 battery-crit-hi {
72 compatible = "samsung,1404-001221";
73 io-channels = <&gpadc 0x02>; /* BatTemp */
74 pullup-uv = <1800000>;
75 pullup-ohm = <230000>;
76 pulldown-ohm = <0>;
77 #thermal-sensor-cells = <0>;
81 sd_level_translator: regulator-gpio {
82 compatible = "regulator-fixed";
86 enable-active-high;
88 regulator-name = "sd-level-translator";
89 regulator-min-microvolt = <2900000>;
90 regulator-max-microvolt = <2900000>;
91 regulator-type = "voltage";
93 startup-delay-us = <200>;
95 pinctrl-names = "default";
96 pinctrl-0 = <&sd_level_translator_default>;
99 /* External LDO MIC5366-3.3YMT for eMMC */
100 ldo_3v3_reg: regulator-gpio-ldo-3v3 {
101 compatible = "regulator-fixed";
103 regulator-name = "VMEM_3V3";
104 regulator-min-microvolt = <3300000>;
105 regulator-max-microvolt = <3300000>;
107 startup-delay-us = <5000>;
108 enable-active-high;
109 pinctrl-names = "default";
110 pinctrl-0 = <&emmc_ldo_en_default_mode>;
118 ldo_tsp_3v3_reg: regulator-gpio-tsp-ldo-3v3 {
119 compatible = "regulator-fixed";
121 regulator-name = "LDO_TSP_A3V3";
122 regulator-min-microvolt = <3300000>;
123 regulator-max-microvolt = <3300000>;
126 /* 70 ms power-on delay */
127 startup-delay-us = <70000>;
128 enable-active-high;
129 pinctrl-names = "default";
130 pinctrl-0 = <&tsp_ldo_en_default_mode>;
132 ldo_tsp_1v8_reg: regulator-gpio-tsp-ldo-1v8 {
133 compatible = "regulator-fixed";
135 regulator-name = "VREG_TSP_1V8";
136 regulator-min-microvolt = <1800000>;
137 regulator-max-microvolt = <1800000>;
140 /* 70 ms power-on delay */
141 startup-delay-us = <70000>;
142 enable-active-high;
143 pinctrl-names = "default";
144 pinctrl-0 = <&tsp_ldo_en_default_mode>;
148 * External Ricoh RP152L010B-TR LCD LDO regulator for the display.
151 lcd_3v0_reg: regulator-gpio-lcd-3v0 {
152 compatible = "regulator-fixed";
154 regulator-name = "VREG_LCD_3.0V";
155 regulator-min-microvolt = <3000000>;
156 regulator-max-microvolt = <3000000>;
159 enable-active-high;
160 pinctrl-names = "default";
161 pinctrl-0 = <&lcd_pwr_en_default_mode>;
163 lcd_1v8_reg: regulator-gpio-lcd-1v8 {
164 compatible = "regulator-fixed";
166 regulator-name = "VREG_LCD_1.8V";
167 regulator-min-microvolt = <1800000>;
168 regulator-max-microvolt = <1800000>;
171 enable-active-high;
172 pinctrl-names = "default";
173 pinctrl-0 = <&lcd_pwr_en_default_mode>;
186 wl_reg: regulator-gpio-wlan {
187 compatible = "regulator-fixed";
188 regulator-name = "WL_REG_ON";
189 regulator-min-microvolt = <3000000>;
190 regulator-max-microvolt = <3000000>;
191 startup-delay-us = <100000>;
194 enable-active-high;
195 pinctrl-names = "default";
196 pinctrl-0 = <&wlan_ldo_en_default>;
200 compatible = "gpio-vibrator";
202 enable-gpios = <&gpio6 3 GPIO_ACTIVE_HIGH>;
203 pinctrl-names = "default";
204 pinctrl-0 = <&vibrator_default>;
207 gpio-keys {
208 compatible = "gpio-keys";
209 pinctrl-names = "default";
210 pinctrl-0 = <&gpio_keys_default_mode>;
212 button-home {
218 button-volup {
224 button-voldown {
226 label = "VOL-";
232 gpio-leds {
233 compatible = "gpio-leds";
234 pinctrl-names = "default";
235 pinctrl-0 = <&gpio_leds_default_mode>;
236 touchkey-led {
244 default-state = "on";
254 enable-gpios = <&gpio2 4 GPIO_ACTIVE_HIGH>;
256 default-brightness = <13>;
257 pinctrl-names = "default";
258 pinctrl-0 = <&ktd253_backlight_default_mode>;
265 enf-gpios = <&gpio4 12 GPIO_ACTIVE_HIGH>;
267 ent-gpios = <&gpio4 13 GPIO_ACTIVE_HIGH>;
273 richtek,rfs-ohms = <16000>;
274 richtek,rts-ohms = <100000>;
275 pinctrl-names = "default";
276 pinctrl-0 = <&gpio_flash_default_mode>;
281 flash-max-timeout-us = <250000>;
282 flash-max-microamp = <343750>;
283 led-max-microamp = <55000>;
287 /* Bit-banged I2C on GPIO143 and GPIO144 also called "SUBPMU I2C" */
288 i2c-gpio-0 {
289 compatible = "i2c-gpio";
290 sda-gpios = <&gpio4 16 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
291 scl-gpios = <&gpio4 15 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
292 pinctrl-names = "default";
293 pinctrl-0 = <&i2c_gpio_0_default>;
294 #address-cells = <1>;
295 #size-cells = <0>;
300 clock-frequency = <400000>;
302 avdd-supply = <&ab8500_ldo_aux1_reg>; // 3V
303 dvdd-supply = <&ab8500_ldo_aux2_reg>; // 1.8V
308 /* Bit-banged I2C on GPIO151 and GPIO152 also called "NFC I2C" */
309 i2c-gpio-1 {
310 compatible = "i2c-gpio";
311 sda-gpios = <&gpio4 24 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
312 scl-gpios = <&gpio4 23 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
313 pinctrl-names = "default";
314 pinctrl-0 = <&i2c_gpio_1_default>;
315 #address-cells = <1>;
316 #size-cells = <0>;
318 nfc@2b {
319 /* NXP NFC circuit PN544 C1 marked NXP 44501 */
320 compatible = "nxp,pn544-i2c";
323 clock-frequency = <400000>;
324 /* NFC IRQ on GPIO32 */
325 interrupt-parent = <&gpio1>;
328 firmware-gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;
330 enable-gpios = <&gpio2 24 GPIO_ACTIVE_HIGH>;
331 pinctrl-names = "default";
332 pinctrl-0 = <&pn544_codina_default>;
336 spi {
337 compatible = "spi-gpio";
339 sck-gpios = <&gpio6 28 GPIO_ACTIVE_HIGH>;
341 mosi-gpios = <&gpio7 0 GPIO_ACTIVE_HIGH>;
343 miso-gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>;
345 cs-gpios = <&gpio6 9 GPIO_ACTIVE_LOW>;
346 num-chipselects = <1>;
348 pinctrl-names = "default";
349 pinctrl-0 = <&spi_gpio_0_default>;
350 #address-cells = <1>;
351 #size-cells = <0>;
354 * Some Codinas (90%) have a WideChips WS2401-based LMS380KF01
361 spi-max-frequency = <1200000>;
363 spi-cpha;
364 spi-cpol;
367 vci-supply = <&lcd_3v0_reg>;
368 vccio-supply = <&lcd_1v8_reg>;
371 reset-gpios = <&gpio4 11 GPIO_ACTIVE_LOW>;
373 interrupt-parent = <&gpio2>;
376 pinctrl-names = "default";
377 pinctrl-0 = <&panel_default_mode>;
382 remote-endpoint = <&display_out>;
391 arm,primecell-periphid = <0x10480180>;
392 max-frequency = <100000000>;
393 bus-width = <4>;
394 cap-sd-highspeed;
395 cap-mmc-highspeed;
396 st,sig-pin-fbclk;
397 full-pwr-cycle;
399 vmmc-supply = <&ab8500_ldo_aux3_reg>;
401 vqmmc-supply = <&sd_level_translator>;
402 pinctrl-names = "default", "sleep";
403 pinctrl-0 = <&mc0_a_2_default>;
404 pinctrl-1 = <&mc0_a_2_sleep>;
405 cd-gpios = <&gpio6 25 GPIO_ACTIVE_LOW>; // GPIO217
411 arm,primecell-periphid = <0x10480180>;
412 max-frequency = <50000000>;
413 bus-width = <4>;
414 non-removable;
415 cap-sd-highspeed;
416 pinctrl-names = "default", "sleep";
417 pinctrl-0 = <&mc1_a_2_default>;
418 pinctrl-1 = <&mc1_a_2_sleep>;
420 * GPIO-controlled voltage enablement: this drives
424 vmmc-supply = <&wl_reg>;
426 #address-cells = <1>;
427 #size-cells = <0>;
432 compatible = "brcm,bcm4330-fmac", "brcm,bcm4329-fmac";
435 interrupt-parent = <&gpio6>;
437 interrupt-names = "host-wake";
438 pinctrl-names = "default";
439 pinctrl-0 = <&wlan_default_mode>;
445 arm,primecell-periphid = <0x10480180>;
446 max-frequency = <100000000>;
447 bus-width = <8>;
448 non-removable;
449 cap-mmc-highspeed;
450 mmc-ddr-1_8v;
451 no-sdio;
452 no-sd;
453 vmmc-supply = <&ldo_3v3_reg>;
454 pinctrl-names = "default", "sleep";
456 * GPIO130 will be set to input no pull-up resulting in a resistor
459 pinctrl-0 = <&mc2_a_1_default>;
460 pinctrl-1 = <&mc2_a_1_sleep>;
466 pinctrl-names = "default", "sleep";
467 pinctrl-0 = <&u0_a_1_default>;
468 pinctrl-1 = <&u0_a_1_sleep>;
472 compatible = "brcm,bcm4330-bt";
474 shutdown-gpios = <&gpio6 30 GPIO_ACTIVE_HIGH>;
476 device-wakeup-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
479 host-wakeup-gpios = <&gpio3 1 GPIO_ACTIVE_HIGH>;
481 reset-gpios = <&gpio6 17 GPIO_ACTIVE_LOW>;
482 pinctrl-names = "default";
483 pinctrl-0 = <&bluetooth_default_mode>;
490 pinctrl-names = "default", "sleep";
491 pinctrl-0 = <&u1rxtx_a_1_default &u1ctsrts_a_1_default>;
492 pinctrl-1 = <&u1rxtx_a_1_sleep &u1ctsrts_a_1_sleep>;
497 reset-gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
499 enable-gpios = <&gpio2 22 GPIO_ACTIVE_HIGH>;
501 vddio-supply = <&db8500_vsmps2_reg>;
502 pinctrl-names = "default";
503 pinctrl-0 = <&bcm4751_codina_default>;
510 pinctrl-names = "default", "sleep";
511 pinctrl-0 = <&u2rxtx_c_1_default>;
512 pinctrl-1 = <&u2rxtx_c_1_sleep>;
518 pinctrl-names = "default", "sleep";
519 pinctrl-0 = <&usb_a_1_default>;
520 pinctrl-1 = <&usb_a_1_sleep>;
524 line-impedance-micro-ohms = <36000>;
530 regulator-name = "V-SENSORS-VDD";
531 regulator-min-microvolt = <3000000>;
532 regulator-max-microvolt = <3000000>;
537 regulator-name = "V-SENSORS-VIO";
538 regulator-min-microvolt = <1800000>;
539 regulator-max-microvolt = <1800000>;
544 regulator-name = "V-MMC-SD";
545 regulator-min-microvolt = <1200000>;
546 regulator-max-microvolt = <2910000>;
555 pinctrl-names = "default", "sleep";
556 pinctrl-0 = <&i2c0_a_1_default>;
557 pinctrl-1 = <&i2c0_a_1_sleep>;
562 clock-frequency = <400000>;
566 interrupt-parent = <&gpio4>;
568 /* FIXME: needs a VDDIO supply that is connected to a pull-up resistor */
569 vdd-supply = <&ab8500_ldo_aux1_reg>;
570 pinctrl-names = "default";
571 pinctrl-0 = <&tms2672_codina_default>;
578 pinctrl-names = "default","sleep";
580 pinctrl-0 = <&i2c1_b_2_default>;
581 pinctrl-1 = <&i2c1_b_2_sleep>;
584 usb-switch@25 {
588 interrupt-parent = <&gpio2>;
590 pinctrl-names = "default";
591 pinctrl-0 = <&tsu6111_codina_default>;
598 pinctrl-names = "default", "sleep";
599 pinctrl-0 = <&i2c2_b_2_default>;
600 pinctrl-1 = <&i2c2_b_2_sleep>;
604 compatible = "st,lis3dh-accel";
605 st,drdy-int-pin = <1>;
607 vdd-supply = <&ab8500_ldo_aux1_reg>; // 3V
608 vddio-supply = <&ab8500_ldo_aux2_reg>; // 1.8V
609 mount-matrix = "0", "1", "0",
610 "-1", "0", "0",
619 pinctrl-names = "default", "sleep";
620 pinctrl-0 = <&i2c3_c_2_default>;
621 pinctrl-1 = <&i2c3_c_2_sleep>;
627 compatible = "zinitix,bt404-isp";
629 pinctrl-names = "default";
630 pinctrl-0 = <&tsp_default>;
638 interrupt-parent = <&gpio6>;
640 vcca-supply = <&ldo_tsp_3v3_reg>;
641 vdd-supply = <&ldo_tsp_1v8_reg>;
643 touchscreen-size-x = <480>;
644 touchscreen-size-y = <800>;
645 pinctrl-names = "default";
646 pinctrl-0 = <&tsp_default>;
652 pinctrl-names = "default";
653 pinctrl-0 = <&dpi_default_mode>;
657 remote-endpoint = <&panel_in>;
692 sd-level-translator {
702 emmc-ldo {
727 tsp-ldo {
737 lcd-ldo {
747 key-led {
757 wlan-ldo {
785 gpio-keys {
813 /* GPIO-based I2C bus for subpmu */
814 i2c-gpio-0 {
822 /* GPIO-based I2C bus for the NFC */
823 i2c-gpio-1 {
831 /* GPIO-based SPI bus for the display */
832 spi-gpio-0 {
890 nfc {
932 /* Data lines D0-D7 GPIO70..GPIO77 */
934 /* Data lines D8-D11 GPIO78..GPIO81 */
936 /* Data lines D12-D15 GPIO82..GPIO85 */
938 /* Data lines D16-D23 GPIO161..GPIO168 */
946 /* Input, no pull-up is the default state for pins used for an alt function */