1 // SPDX-License-Identifier: GPL-2.0-only
3 * Devicetree for the Samsung Galaxy S Advance GT-I9070 also known as Janice.
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 S Advance (GT-I9070)";
17 compatible = "samsung,janice", "st-ericsson,u8500";
20 stdout-path = &serial2;
23 /* External LDO for eMMC LDO VMEM_3V3 controlled by GPIO6 */
24 ldo_3v3_reg: regulator-gpio-ldo-3v3 {
25 compatible = "regulator-fixed";
26 /* Supplied in turn by VBAT */
27 regulator-name = "VMEM_3V3";
28 regulator-min-microvolt = <3300000>;
29 regulator-max-microvolt = <3300000>;
30 gpio = <&gpio0 6 GPIO_ACTIVE_HIGH>;
31 startup-delay-us = <5000>; // FIXME
33 pinctrl-names = "default";
34 pinctrl-0 = <&emmc_ldo_en_default_mode>;
38 * External Ricoh "TSP" regulator for the touchscreen.
39 * One GPIO line controls two voltages of 3.3V and 1.8V
40 * this line is known as "TSP_LDO_ON1" in the schematics.
42 ldo_tsp_3v3_reg: regulator-gpio-tsp-ldo-3v3 {
43 compatible = "regulator-fixed";
44 /* Supplied in turn by VBAT */
45 regulator-name = "LDO_TSP_A3V3";
46 regulator-min-microvolt = <3300000>;
47 regulator-max-microvolt = <3300000>;
48 /* GPIO94 controls this regulator */
49 gpio = <&gpio2 30 GPIO_ACTIVE_HIGH>;
50 /* 70 ms power-on delay */
51 startup-delay-us = <70000>;
53 pinctrl-names = "default";
54 pinctrl-0 = <&tsp_ldo_en_default_mode>;
56 ldo_tsp_1v8_reg: regulator-gpio-tsp-ldo-1v8 {
57 compatible = "regulator-fixed";
58 /* Supplied in turn by VBAT */
59 regulator-name = "VREG_TSP_1V8";
60 regulator-min-microvolt = <1800000>;
61 regulator-max-microvolt = <1800000>;
62 /* GPIO94 controls this regulator */
63 gpio = <&gpio2 30 GPIO_ACTIVE_HIGH>;
64 /* 70 ms power-on delay */
65 startup-delay-us = <70000>;
67 pinctrl-names = "default";
68 pinctrl-0 = <&tsp_ldo_en_default_mode>;
72 * External Ricoh "TSP" regulator for the touchkeys.
73 * Two GPIO lines controls two voltages of 3.3V and 1.8V
74 * TSP_LDO_ON2 controls VREG_TOUCHKEY_1V8
75 * EN_LED_LDO controls VREG_KLED_3V3 (key LED)
77 ldo_kled_3v3_reg: regulator-gpio-vreg-kled-3v3 {
78 compatible = "regulator-fixed";
79 /* Supplied in turn by VBAT */
80 regulator-name = "VREG_KLED_3V3";
81 regulator-min-microvolt = <3300000>;
82 regulator-max-microvolt = <3300000>;
83 /* GPIO68 controls this regulator */
84 gpio = <&gpio2 4 GPIO_ACTIVE_HIGH>;
85 /* 70 ms power-on delay */
86 startup-delay-us = <70000>;
88 pinctrl-names = "default";
89 pinctrl-0 = <&en_led_ldo_default_mode>;
91 ldo_touchkey_1v8_reg: regulator-gpio-vreg-touchkey-1v8 {
92 compatible = "regulator-fixed";
93 /* Supplied in turn by VBAT */
94 regulator-name = "VREG_TOUCHKEY_1V8";
95 regulator-min-microvolt = <1800000>;
96 regulator-max-microvolt = <1800000>;
97 /* GPIO89 controls this regulator */
98 gpio = <&gpio2 25 GPIO_ACTIVE_HIGH>;
99 /* 70 ms power-on delay */
100 startup-delay-us = <70000>;
102 pinctrl-names = "default";
103 pinctrl-0 = <&tsp_ldo_on2_default_mode>;
108 * External Ricoh RP152L010B-TR LCD LDO regulator for the display.
109 * LCD_PWR_EN controls a 3.0V and 1.8V output.
111 lcd_3v0_reg: regulator-gpio-lcd-3v0 {
112 compatible = "regulator-fixed";
113 /* Supplied in turn by VBAT */
114 regulator-name = "VREG_LCD_3V0";
115 regulator-min-microvolt = <3000000>;
116 regulator-max-microvolt = <3000000>;
117 /* GPIO219 controls this regulator */
118 gpio = <&gpio6 27 GPIO_ACTIVE_HIGH>;
120 pinctrl-names = "default";
121 pinctrl-0 = <&lcd_pwr_en_default_mode>;
123 lcd_1v8_reg: regulator-gpio-lcd-1v8 {
124 compatible = "regulator-fixed";
125 /* Supplied in turn by VBAT */
126 regulator-name = "VREG_LCD_1V8";
127 regulator-min-microvolt = <1800000>;
128 regulator-max-microvolt = <1800000>;
129 /* GPIO219 controls this regulator */
130 gpio = <&gpio6 27 GPIO_ACTIVE_HIGH>;
132 pinctrl-names = "default";
133 pinctrl-0 = <&lcd_pwr_en_default_mode>;
137 * This regulator is a GPIO line that drives the Broadcom WLAN
138 * line WL_REG_ON high and enables the internal regulators
139 * inside the chip. Unfortunatley it is erroneously named
140 * WLAN_RST_N on the schematic but it is not a reset line.
142 * The voltage specified here is only used to determine the OCR mask,
143 * the for the SDIO connector, the chip is actually connected
146 wl_reg: regulator-gpio-wlan {
147 compatible = "regulator-fixed";
148 regulator-name = "WL_REG_ON";
149 regulator-min-microvolt = <3000000>;
150 regulator-max-microvolt = <3000000>;
151 startup-delay-us = <100000>;
152 /* GPIO215 (WLAN_RST_N to WL_REG_ON) */
153 gpio = <&gpio6 23 GPIO_ACTIVE_HIGH>;
155 pinctrl-names = "default";
156 pinctrl-0 = <&wlan_ldo_en_default>;
161 compatible = "gpio-keys";
162 pinctrl-names = "default";
163 pinctrl-0 = <&gpio_keys_default_mode>;
166 linux,code = <KEY_HOME>;
169 gpios = <&gpio2 27 GPIO_ACTIVE_LOW>;
172 linux,code = <KEY_VOLUMEUP>;
175 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
178 linux,code = <KEY_VOLUMEDOWN>;
181 gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
185 /* Richtek RT8515GQW Flash LED Driver IC */
187 compatible = "richtek,rt8515";
189 enf-gpios = <&gpio4 12 GPIO_ACTIVE_HIGH>;
191 ent-gpios = <&gpio4 13 GPIO_ACTIVE_HIGH>;
193 * RFS is 16 kOhm and RTS is 100 kOhm giving
194 * the flash max current 343mA and torch max
197 richtek,rfs-ohms = <16000>;
198 richtek,rts-ohms = <100000>;
199 pinctrl-names = "default";
200 pinctrl-0 = <&gpio_flash_default_mode>;
203 function = LED_FUNCTION_FLASH;
204 color = <LED_COLOR_ID_WHITE>;
205 flash-max-timeout-us = <250000>;
206 flash-max-microamp = <343750>;
207 led-max-microamp = <55000>;
211 /* Bit-banged I2C on GPIO143 and GPIO144 also called "SUBPMU I2C" */
213 compatible = "i2c-gpio";
214 sda-gpios = <&gpio4 16 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
215 scl-gpios = <&gpio4 15 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
216 pinctrl-names = "default";
217 pinctrl-0 = <&i2c_gpio_0_default>;
218 #address-cells = <1>;
221 /* Yamaha YAS530 magnetometer */
223 compatible = "yamaha,yas530";
226 vdd-supply = <&ab8500_ldo_aux1_reg>;
228 iovdd-supply = <&ab8500_ldo_aux2_reg>;
229 /* GPIO204 COMPASS_RST_N */
230 reset-gpios = <&gpio6 12 GPIO_ACTIVE_LOW>;
231 pinctrl-names = "default";
232 pinctrl-0 = <&yas529_default>;
234 /* TODO: this should also be used by the NCP6914 Camera power management unit */
238 * These pins do have an spi controller, however the controller on
239 * these pins is not the fully featured PL022 SSP/SPI block but the
240 * ST Micro diet "PL023" version. One of the lacking features in
241 * this derivative is 3wire support, so it cannot be used to drive
242 * this panel interface. We have to use GPIO bit-banging instead.
245 compatible = "spi-gpio";
246 /* Clock on GPIO220 */
247 sck-gpios = <&gpio6 28 GPIO_ACTIVE_HIGH>;
248 /* MISO/MOSI on GPIO224 (no separate MISO pin) */
249 mosi-gpios = <&gpio7 0 GPIO_ACTIVE_HIGH>;
250 /* Chip select on GPIO223 */
251 cs-gpios = <&gpio6 31 GPIO_ACTIVE_LOW>;
252 num-chipselects = <1>;
254 pinctrl-names = "default";
255 pinctrl-0 = <&spi_gpio_0_default>;
256 #address-cells = <1>;
260 compatible = "samsung,s6e63m0";
262 vdd3-supply = <&lcd_3v0_reg>;
263 vci-supply = <&lcd_1v8_reg>;
264 /* Reset on GPIO139 */
265 reset-gpios = <&gpio4 11 GPIO_ACTIVE_LOW>;
266 pinctrl-names = "default";
267 pinctrl-0 = <&panel_default_mode>;
272 remote-endpoint = <&display_out>;
279 * Current sense amplifier on the light sensor to convert current to
280 * voltage. We do not know if this is the actual configuration. The
281 * sense resistor value was found by calibrating in a room ambient
282 * light with a second mobile phone light sensor as reference. If you
283 * pry a Janice phone apart and inspect it you may figure this out.
285 gp2a_shunt: current-sense-shunt {
286 compatible = "current-sense-shunt";
287 io-channels = <&gpadc 0x07>;
288 shunt-resistor-micro-ohms = <15000000>; /* 15 ohms c:a */
289 #io-channel-cells = <0>;
293 /* Bit-banged I2C on GPIO196 and GPIO197 also called "TOUCHKEY_I2C" */
295 compatible = "i2c-gpio";
296 sda-gpios = <&gpio6 5 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
297 scl-gpios = <&gpio6 4 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
298 clock-frequency = <400000>;
299 pinctrl-names = "default";
300 pinctrl-0 = <&i2c_gpio_1_default>;
301 #address-cells = <1>;
305 compatible = "coreriver,tc360-touchkey";
307 vdd-supply = <&ldo_kled_3v3_reg>;
308 vcc-supply = <&ldo_touchkey_1v8_reg>;
309 vddio-supply = <&ldo_touchkey_1v8_reg>;
311 /* Interrupt on GPIO 198 */
312 interrupt-parent = <&gpio6>;
313 interrupts = <6 IRQ_TYPE_EDGE_RISING>;
315 pinctrl-names = "default";
316 pinctrl-0 = <&touchkey_default_mode>;
317 linux,keycodes = <KEY_MENU KEY_BACK>;
321 /* Bit-banged I2C on GPIO201 and GPIO202 also called "MOT_I2C" */
323 compatible = "i2c-gpio";
324 sda-gpios = <&gpio6 10 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
325 scl-gpios = <&gpio6 9 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
326 pinctrl-names = "default";
327 pinctrl-0 = <&i2c_gpio_2_default>;
328 #address-cells = <1>;
330 /* TODO: add the Immersion ISA1200 I2C device here */
333 /* Bit-banged I2C on GPIO151 and GPIO152 also called "NFC_I2C" */
335 compatible = "i2c-gpio";
336 sda-gpios = <&gpio4 24 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
337 scl-gpios = <&gpio4 23 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
338 pinctrl-names = "default";
339 pinctrl-0 = <&i2c_gpio_3_default>;
340 #address-cells = <1>;
344 compatible = "nxp,pn547", "nxp,nxp-nci-i2c";
346 /* NFC IRQ on GPIO32 */
347 interrupt-parent = <&gpio1>;
348 interrupts = <0 IRQ_TYPE_EDGE_FALLING>;
350 firmware-gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;
352 enable-gpios = <&gpio2 24 GPIO_ACTIVE_HIGH>;
353 pinctrl-names = "default";
354 pinctrl-0 = <&pn547_janice_default>;
359 /* External Micro SD slot */
361 arm,primecell-periphid = <0x10480180>;
362 max-frequency = <50000000>;
371 /* MMC is powered by AUX3 1.2V .. 2.91V */
372 vmmc-supply = <&ab8500_ldo_aux3_reg>;
373 /* 2.9 V level translator is using AUX3 at 2.9 V as well */
374 vqmmc-supply = <&ab8500_ldo_aux3_reg>;
375 pinctrl-names = "default", "sleep";
376 pinctrl-0 = <&mc0_a_2_default>;
377 pinctrl-1 = <&mc0_a_2_sleep>;
378 cd-gpios = <&gpio6 25 GPIO_ACTIVE_LOW>; // GPIO217
382 /* WLAN SDIO channel */
384 arm,primecell-periphid = <0x10480180>;
385 max-frequency = <50000000>;
389 pinctrl-names = "default", "sleep";
390 pinctrl-0 = <&mc1_a_2_default>;
391 pinctrl-1 = <&mc1_a_2_sleep>;
393 * GPIO-controlled voltage enablement: this drives
394 * the WL_REG_ON line high when we use this device.
395 * Represented as regulator to fill OCR mask.
397 vmmc-supply = <&wl_reg>;
399 #address-cells = <1>;
404 compatible = "brcm,bcm4330-fmac", "brcm,bcm4329-fmac";
406 /* GPIO216 WL_HOST_WAKE */
407 interrupt-parent = <&gpio6>;
408 interrupts = <24 IRQ_TYPE_EDGE_FALLING>;
409 interrupt-names = "host-wake";
410 pinctrl-names = "default";
411 pinctrl-0 = <&wlan_default_mode>;
417 arm,primecell-periphid = <0x10480180>;
418 max-frequency = <50000000>;
425 vmmc-supply = <&ldo_3v3_reg>;
426 pinctrl-names = "default", "sleep";
427 pinctrl-0 = <&mc2_a_1_default>;
428 pinctrl-1 = <&mc2_a_1_sleep>;
432 /* GBF (Bluetooth) UART */
434 pinctrl-names = "default", "sleep";
435 pinctrl-0 = <&u0_a_1_default>;
436 pinctrl-1 = <&u0_a_1_sleep>;
440 /* BCM4330B1 actually */
441 compatible = "brcm,bcm4330-bt";
442 /* GPIO222 rail BT_VREG_EN to BT_REG_ON */
443 shutdown-gpios = <&gpio6 30 GPIO_ACTIVE_HIGH>;
444 /* BT_WAKE on GPIO199 */
445 device-wakeup-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
446 /* BT_HOST_WAKE on GPIO97 */
447 /* FIXME: convert to interrupt */
448 host-wakeup-gpios = <&gpio3 1 GPIO_ACTIVE_HIGH>;
449 /* BT_RST_N on GPIO209 */
450 reset-gpios = <&gpio6 17 GPIO_ACTIVE_LOW>;
451 pinctrl-names = "default";
452 pinctrl-0 = <&bluetooth_default_mode>;
459 pinctrl-names = "default", "sleep";
460 /* CTS/RTS is not used, CTS is repurposed as GPIO */
461 pinctrl-0 = <&u1rxtx_a_1_default>;
462 pinctrl-1 = <&u1rxtx_a_1_sleep>;
463 /* FIXME: add a device for the GPS here */
466 /* Debugging console UART connected to TSU6111RSVR (FSA880) */
469 pinctrl-names = "default", "sleep";
470 pinctrl-0 = <&u2rxtx_c_1_default>;
471 pinctrl-1 = <&u2rxtx_c_1_sleep>;
477 pinctrl-names = "default", "sleep";
478 pinctrl-0 = <&usb_a_1_default>;
479 pinctrl-1 = <&usb_a_1_sleep>;
484 /* Used for VDD for sensors */
485 regulator-name = "V-SENSORS-VDD";
486 regulator-min-microvolt = <3000000>;
487 regulator-max-microvolt = <3000000>;
491 /* Used for VIO for sensors */
492 regulator-name = "V-SENSORS-VIO";
493 regulator-min-microvolt = <1800000>;
494 regulator-max-microvolt = <1800000>;
498 /* Used for voltage for external MMC/SD card */
499 regulator-name = "V-MMC-SD";
500 regulator-min-microvolt = <1200000>;
501 regulator-max-microvolt = <2910000>;
510 pinctrl-names = "default", "sleep";
511 pinctrl-0 = <&i2c0_a_1_default>;
512 pinctrl-1 = <&i2c0_a_1_sleep>;
515 /* Janice has the GP2AP002A00F with light sensor */
516 compatible = "sharp,gp2ap002a00f";
517 clock-frequency = <400000>;
520 interrupt-parent = <&gpio4>;
521 interrupts = <18 IRQ_TYPE_EDGE_FALLING>;
522 vdd-supply = <&ab8500_ldo_aux1_reg>;
523 vio-supply = <&ab8500_ldo_aux2_reg>;
524 /* ADC channel AUX2 to read ALSOUT ambient light sensor out */
525 io-channels = <&gp2a_shunt>;
526 io-channel-names = "alsout";
527 pinctrl-names = "default";
528 pinctrl-0 = <&gp2ap002_janice_default>;
529 /* B1 mode (arch/arm/mach-ux500/include/mach/gp2a.h) */
530 sharp,proximity-far-hysteresis = /bits/ 8 <0x40>;
531 sharp,proximity-close-hysteresis = /bits/ 8 <0x0f>;
535 /* I2C1 on GPIO16 and GPIO17 also called "MUS I2C" */
538 pinctrl-names = "default","sleep";
539 pinctrl-0 = <&i2c1_b_2_default>;
540 pinctrl-1 = <&i2c1_b_2_sleep>;
542 /* Texas Instruments TSU6111 micro USB switch */
544 compatible = "ti,tsu6111";
546 /* Interrupt JACK_INT_N on GPIO95 */
547 interrupt-parent = <&gpio2>;
548 interrupts = <31 IRQ_TYPE_EDGE_FALLING>;
549 pinctrl-names = "default";
550 pinctrl-0 = <&tsu6111_janice_default>;
554 /* I2C2 on GPIO10 and GPIO11 also called "SENSORS I2C" */
557 pinctrl-names = "default", "sleep";
558 pinctrl-0 = <&i2c2_b_2_default>;
559 pinctrl-1 = <&i2c2_b_2_sleep>;
562 compatible = "invensense,mpu3050";
564 /* GPIO226 interrupt */
565 interrupt-parent = <&gpio7>;
566 interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
567 /* FIXME: no idea about this */
568 mount-matrix = "1", "0", "0",
571 vlogic-supply = <&ab8500_ldo_aux2_reg>; // 1.8V
572 vdd-supply = <&ab8500_ldo_aux1_reg>; // 3V
573 pinctrl-names = "default";
574 pinctrl-0 = <&mpu3050_janice_default>;
577 * The MPU-3050 acts as a hub for the
581 #address-cells = <1>;
584 /* Bosch BMA222 accelerometer */
586 compatible = "bosch,bma222";
588 mount-matrix = "0", "1", "0",
591 vddio-supply = <&ab8500_ldo_aux2_reg>; // 1.8V
592 vdd-supply = <&ab8500_ldo_aux1_reg>; // 3V
602 pinctrl-names = "default", "sleep";
603 pinctrl-0 = <&i2c3_c_2_default>;
604 pinctrl-1 = <&i2c3_c_2_sleep>;
606 /* Atmel mXT224E touchscreen */
608 compatible = "atmel,maxtouch";
610 /* GPIO218 (TSP_INT_1V8) */
611 interrupt-parent = <&gpio6>;
612 interrupts = <26 IRQ_TYPE_EDGE_FALLING>;
613 /* VDDA is "analog supply", 2.57-3.47 V */
614 vdda-supply = <&ldo_tsp_3v3_reg>;
615 /* VDD is "digital supply" 1.71-3.47V */
616 vdd-supply = <&ldo_tsp_1v8_reg>;
617 pinctrl-names = "default";
618 pinctrl-0 = <&tsp_default>;
624 pinctrl-names = "default";
625 pinctrl-0 = <&dpi_default_mode>;
628 display_out: endpoint {
629 remote-endpoint = <&panel_in>;
638 * This extends the MC0_A_2 default config to include
639 * the card detect GPIO217 line.
644 pins = "GPIO217_AH12"; /* card detect */
645 ste,config = <&gpio_in_pd>;
650 dpi_default_mode: dpi_default {
652 /* Mux in all the data lines */
655 /* Data lines D0-D7 GPIO70..GPIO77 */
657 /* Data lines D8-D11 GPIO78..GPIO81 */
659 /* Data lines D12-D15 GPIO82..GPIO85 */
661 /* Data lines D16-D23 GPIO161..GPIO168 */
666 /* Clock line on GPIO150, DE, VSO, HSO on GPIO169..GPIO171 */
667 groups = "lcdaclk_b_1", "lcda_b_1";
669 /* Input, no pull-up is the default state for pins used for an alt function */
671 pins = "GPIO150_C14", "GPIO169_D22", "GPIO170_C23", "GPIO171_D23";
672 ste,config = <&in_nopull>;
676 /* GPIO for panel reset control */
678 panel_default_mode: panel_default {
682 ste,config = <&gpio_out_lo>;
686 /* GPIO that enables the LDO regulator for the eMMC */
688 emmc_ldo_en_default_mode: emmc_ldo_default {
689 /* LDO enable on GPIO6 */
692 ste,config = <&gpio_out_hi>;
696 /* GPIO that enables the LDO regulator for the touchscreen */
698 tsp_ldo_en_default_mode: tsp_ldo_default {
699 /* LDO enable on GPIO94 */
702 ste,config = <&gpio_out_hi>;
706 /* GPIO that enables the LDO regulator for the key LED */
708 en_led_ldo_default_mode: en_led_ldo_default {
709 /* EN_LED_LDO on GPIO68 */
712 ste,config = <&gpio_out_hi>;
716 /* GPIO that enables the LDO regulator for the touchkeys */
718 tsp_ldo_on2_default_mode: tsp_ldo_on2_default {
719 /* TSP_LDO_ON2 on GPIO89 */
722 ste,config = <&gpio_out_lo>;
727 touchkey_default_mode: touchkey_default {
730 pins = "GPIO198_AG25";
731 ste,config = <&gpio_in_nopull>;
734 /* Reset, actually completely unused (not routed) */
735 pins = "GPIO205_AG23";
736 ste,config = <&gpio_in_pd>;
740 /* GPIO that enabled the LDO regulator for the LCD display */
742 lcd_pwr_en_default_mode: lcd_pwr_en_default {
743 /* LCD_PWR_EN on GPIO219 */
745 pins = "GPIO219_AG10";
746 ste,config = <&gpio_out_hi>;
750 /* GPIO that enables the WLAN internal LDO regulators */
752 wlan_ldo_en_default: wlan_ldo_default {
753 /* GPIO215 named WLAN_RST_N */
755 pins = "GPIO215_AH13";
756 ste,config = <&gpio_out_lo>;
760 /* Flash and torch */
762 gpio_flash_default_mode: flash_default {
764 pins = "GPIO140_B11", "GPIO141_C12";
765 ste,config = <&gpio_out_lo>;
771 gpio_keys_default_mode: gpio_keys_default {
773 pins = "GPIO67_G2", /* VOL UP */
774 "GPIO91_B6", /* HOME */
775 "GPIO92_D6"; /* VOL DOWN */
776 ste,config = <&gpio_in_pu>;
780 /* Interrupt line for the Atmel MXT228 touchscreen */
782 tsp_default: tsp_default {
784 pins = "GPIO218_AH11"; /* TSP_INT_1V8 */
785 ste,config = <&gpio_in_nopull>;
789 /* Reset line for the Yamaha YAS529 magnetometer */
791 yas529_default: yas529_janice {
793 pins = "GPIO204_AF23";
794 ste,config = <&gpio_out_hi>;
798 /* Interrupt line for light/proximity sensor GP2AP002 */
800 gp2ap002_janice_default: gp2ap002_janice {
802 pins = "GPIO146_D13";
803 ste,config = <&gpio_in_nopull>;
807 /* Interrupt line for Invensense MPU3050 gyroscope */
809 mpu3050_janice_default: mpu3050_janice {
811 /* GPIO226 used for IRQ */
812 pins = "GPIO226_AF8";
813 ste,config = <&gpio_in_nopull>;
817 /* GPIO-based I2C bus for magnetometer and NCP6914 */
819 i2c_gpio_0_default: i2c_gpio_0 {
821 pins = "GPIO143_D12", "GPIO144_B13";
822 ste,config = <&gpio_in_nopull>;
826 /* GPIO-based I2C bus for the Cypress touchkeys */
828 i2c_gpio_1_default: i2c_gpio_1 {
830 pins = "GPIO196_AG26", "GPIO197_AH24";
831 ste,config = <&gpio_in_nopull>;
835 /* GPIO-based I2C bus for the Immersion ISA1200 */
837 i2c_gpio_2_default: i2c_gpio_2 {
839 pins = "GPIO201_AF24", "GPIO202_AF25";
840 ste,config = <&gpio_in_nopull>;
844 /* GPIO-based I2C bus for the NFC */
846 i2c_gpio_3_default: i2c_gpio_3 {
848 pins = "GPIO151_D17", "GPIO152_D16";
849 ste,config = <&gpio_in_nopull>;
853 /* GPIO-based SPI bus for the display */
855 spi_gpio_0_default: spi_gpio_0 {
857 pins = "GPIO220_AH10", "GPIO223_AH9", "GPIO224_AG9";
858 ste,config = <&gpio_out_hi>;
860 /* This pin is unused but belongs with this SPI block */
862 pins = "GPIO225_AG8";
863 ste,config = <&in_pd>;
868 wlan_default_mode: wlan_default {
869 /* GPIO216 for WL_HOST_WAKE */
871 pins = "GPIO216_AG12";
872 ste,config = <&gpio_in_pd>;
877 bluetooth_default_mode: bluetooth_default {
878 /* GPIO199 BT_WAKE and GPIO222 BT_VREG_ON */
880 pins = "GPIO199_AH23", "GPIO222_AJ9";
881 ste,config = <&gpio_out_lo>;
883 /* GPIO97 BT_HOST_WAKE */
886 ste,config = <&gpio_in_nopull>;
888 /* GPIO209 BT_RST_N */
890 pins = "GPIO209_AG15";
891 ste,config = <&gpio_out_hi>;
895 /* Interrupt line for TI TSU6111 Micro USB switch */
897 tsu6111_janice_default: tsu6111_janice {
899 /* GPIO95 used for IRQ */
901 ste,config = <&gpio_in_nopull>;
906 pn547_janice_default: pn547_janice {
910 ste,config = <&gpio_in_nopull>;
912 /* Enable and firmware GPIOs */
914 pins = "GPIO31_V3", "GPIO88_C4";
915 ste,config = <&gpio_out_lo>;