1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only 2*f126890aSEmmanuel Vadot/* 3*f126890aSEmmanuel Vadot * Devicetree for the Samsung Galaxy S Advance GT-I9070 also known as Janice. 4*f126890aSEmmanuel Vadot */ 5*f126890aSEmmanuel Vadot 6*f126890aSEmmanuel Vadot/dts-v1/; 7*f126890aSEmmanuel Vadot#include "ste-db8500.dtsi" 8*f126890aSEmmanuel Vadot#include "ste-ab8500.dtsi" 9*f126890aSEmmanuel Vadot#include "ste-dbx5x0-pinctrl.dtsi" 10*f126890aSEmmanuel Vadot#include <dt-bindings/gpio/gpio.h> 11*f126890aSEmmanuel Vadot#include <dt-bindings/leds/common.h> 12*f126890aSEmmanuel Vadot#include <dt-bindings/input/input.h> 13*f126890aSEmmanuel Vadot#include <dt-bindings/interrupt-controller/irq.h> 14*f126890aSEmmanuel Vadot 15*f126890aSEmmanuel Vadot/ { 16*f126890aSEmmanuel Vadot model = "Samsung Galaxy S Advance (GT-I9070)"; 17*f126890aSEmmanuel Vadot compatible = "samsung,janice", "st-ericsson,u8500"; 18*f126890aSEmmanuel Vadot 19*f126890aSEmmanuel Vadot chosen { 20*f126890aSEmmanuel Vadot stdout-path = &serial2; 21*f126890aSEmmanuel Vadot }; 22*f126890aSEmmanuel Vadot 23*f126890aSEmmanuel Vadot battery: battery { 24*f126890aSEmmanuel Vadot compatible = "samsung,eb535151vu"; 25*f126890aSEmmanuel Vadot }; 26*f126890aSEmmanuel Vadot 27*f126890aSEmmanuel Vadot thermal-zones { 28*f126890aSEmmanuel Vadot battery-thermal { 29*f126890aSEmmanuel Vadot /* This zone will be polled by the battery temperature code */ 30*f126890aSEmmanuel Vadot polling-delay = <0>; 31*f126890aSEmmanuel Vadot polling-delay-passive = <0>; 32*f126890aSEmmanuel Vadot thermal-sensors = <&bat_therm>; 33*f126890aSEmmanuel Vadot 34*f126890aSEmmanuel Vadot trips { 35*f126890aSEmmanuel Vadot battery-crit-hi { 36*f126890aSEmmanuel Vadot temperature = <70000>; 37*f126890aSEmmanuel Vadot hysteresis = <2000>; 38*f126890aSEmmanuel Vadot type = "critical"; 39*f126890aSEmmanuel Vadot }; 40*f126890aSEmmanuel Vadot }; 41*f126890aSEmmanuel Vadot }; 42*f126890aSEmmanuel Vadot }; 43*f126890aSEmmanuel Vadot 44*f126890aSEmmanuel Vadot bat_therm: thermistor { 45*f126890aSEmmanuel Vadot compatible = "samsung,1404-001221"; 46*f126890aSEmmanuel Vadot io-channels = <&gpadc 0x02>; /* BatTemp */ 47*f126890aSEmmanuel Vadot pullup-uv = <1800000>; 48*f126890aSEmmanuel Vadot pullup-ohm = <230000>; 49*f126890aSEmmanuel Vadot pulldown-ohm = <0>; 50*f126890aSEmmanuel Vadot #thermal-sensor-cells = <0>; 51*f126890aSEmmanuel Vadot }; 52*f126890aSEmmanuel Vadot 53*f126890aSEmmanuel Vadot /* External LDO for eMMC LDO VMEM_3V3 controlled by GPIO6 */ 54*f126890aSEmmanuel Vadot ldo_3v3_reg: regulator-gpio-ldo-3v3 { 55*f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 56*f126890aSEmmanuel Vadot /* Supplied in turn by VBAT */ 57*f126890aSEmmanuel Vadot regulator-name = "VMEM_3V3"; 58*f126890aSEmmanuel Vadot regulator-min-microvolt = <3300000>; 59*f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 60*f126890aSEmmanuel Vadot gpio = <&gpio0 6 GPIO_ACTIVE_HIGH>; 61*f126890aSEmmanuel Vadot startup-delay-us = <5000>; // FIXME 62*f126890aSEmmanuel Vadot enable-active-high; 63*f126890aSEmmanuel Vadot pinctrl-names = "default"; 64*f126890aSEmmanuel Vadot pinctrl-0 = <&emmc_ldo_en_default_mode>; 65*f126890aSEmmanuel Vadot }; 66*f126890aSEmmanuel Vadot 67*f126890aSEmmanuel Vadot /* 68*f126890aSEmmanuel Vadot * External Ricoh "TSP" regulator for the touchscreen. 69*f126890aSEmmanuel Vadot * One GPIO line controls two voltages of 3.3V and 1.8V 70*f126890aSEmmanuel Vadot * this line is known as "TSP_LDO_ON1" in the schematics. 71*f126890aSEmmanuel Vadot */ 72*f126890aSEmmanuel Vadot ldo_tsp_3v3_reg: regulator-gpio-tsp-ldo-3v3 { 73*f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 74*f126890aSEmmanuel Vadot /* Supplied in turn by VBAT */ 75*f126890aSEmmanuel Vadot regulator-name = "LDO_TSP_A3V3"; 76*f126890aSEmmanuel Vadot regulator-min-microvolt = <3300000>; 77*f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 78*f126890aSEmmanuel Vadot /* GPIO94 controls this regulator */ 79*f126890aSEmmanuel Vadot gpio = <&gpio2 30 GPIO_ACTIVE_HIGH>; 80*f126890aSEmmanuel Vadot /* 70 ms power-on delay */ 81*f126890aSEmmanuel Vadot startup-delay-us = <70000>; 82*f126890aSEmmanuel Vadot enable-active-high; 83*f126890aSEmmanuel Vadot pinctrl-names = "default"; 84*f126890aSEmmanuel Vadot pinctrl-0 = <&tsp_ldo_en_default_mode>; 85*f126890aSEmmanuel Vadot }; 86*f126890aSEmmanuel Vadot ldo_tsp_1v8_reg: regulator-gpio-tsp-ldo-1v8 { 87*f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 88*f126890aSEmmanuel Vadot /* Supplied in turn by VBAT */ 89*f126890aSEmmanuel Vadot regulator-name = "VREG_TSP_1V8"; 90*f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 91*f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 92*f126890aSEmmanuel Vadot /* GPIO94 controls this regulator */ 93*f126890aSEmmanuel Vadot gpio = <&gpio2 30 GPIO_ACTIVE_HIGH>; 94*f126890aSEmmanuel Vadot /* 70 ms power-on delay */ 95*f126890aSEmmanuel Vadot startup-delay-us = <70000>; 96*f126890aSEmmanuel Vadot enable-active-high; 97*f126890aSEmmanuel Vadot pinctrl-names = "default"; 98*f126890aSEmmanuel Vadot pinctrl-0 = <&tsp_ldo_en_default_mode>; 99*f126890aSEmmanuel Vadot }; 100*f126890aSEmmanuel Vadot 101*f126890aSEmmanuel Vadot /* 102*f126890aSEmmanuel Vadot * External Ricoh "TSP" regulator for the touchkeys. 103*f126890aSEmmanuel Vadot * Two GPIO lines controls two voltages of 3.3V and 1.8V 104*f126890aSEmmanuel Vadot * TSP_LDO_ON2 controls VREG_TOUCHKEY_1V8 105*f126890aSEmmanuel Vadot * EN_LED_LDO controls VREG_KLED_3V3 (key LED) 106*f126890aSEmmanuel Vadot */ 107*f126890aSEmmanuel Vadot ldo_kled_3v3_reg: regulator-gpio-vreg-kled-3v3 { 108*f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 109*f126890aSEmmanuel Vadot /* Supplied in turn by VBAT */ 110*f126890aSEmmanuel Vadot regulator-name = "VREG_KLED_3V3"; 111*f126890aSEmmanuel Vadot regulator-min-microvolt = <3300000>; 112*f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 113*f126890aSEmmanuel Vadot /* GPIO68 controls this regulator */ 114*f126890aSEmmanuel Vadot gpio = <&gpio2 4 GPIO_ACTIVE_HIGH>; 115*f126890aSEmmanuel Vadot /* 70 ms power-on delay */ 116*f126890aSEmmanuel Vadot startup-delay-us = <70000>; 117*f126890aSEmmanuel Vadot enable-active-high; 118*f126890aSEmmanuel Vadot pinctrl-names = "default"; 119*f126890aSEmmanuel Vadot pinctrl-0 = <&en_led_ldo_default_mode>; 120*f126890aSEmmanuel Vadot }; 121*f126890aSEmmanuel Vadot ldo_touchkey_1v8_reg: regulator-gpio-vreg-touchkey-1v8 { 122*f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 123*f126890aSEmmanuel Vadot /* Supplied in turn by VBAT */ 124*f126890aSEmmanuel Vadot regulator-name = "VREG_TOUCHKEY_1V8"; 125*f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 126*f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 127*f126890aSEmmanuel Vadot /* GPIO89 controls this regulator */ 128*f126890aSEmmanuel Vadot gpio = <&gpio2 25 GPIO_ACTIVE_HIGH>; 129*f126890aSEmmanuel Vadot /* 70 ms power-on delay */ 130*f126890aSEmmanuel Vadot startup-delay-us = <70000>; 131*f126890aSEmmanuel Vadot enable-active-high; 132*f126890aSEmmanuel Vadot pinctrl-names = "default"; 133*f126890aSEmmanuel Vadot pinctrl-0 = <&tsp_ldo_on2_default_mode>; 134*f126890aSEmmanuel Vadot }; 135*f126890aSEmmanuel Vadot 136*f126890aSEmmanuel Vadot 137*f126890aSEmmanuel Vadot /* 138*f126890aSEmmanuel Vadot * External Ricoh RP152L010B-TR LCD LDO regulator for the display. 139*f126890aSEmmanuel Vadot * LCD_PWR_EN controls a 3.0V and 1.8V output. 140*f126890aSEmmanuel Vadot */ 141*f126890aSEmmanuel Vadot lcd_3v0_reg: regulator-gpio-lcd-3v0 { 142*f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 143*f126890aSEmmanuel Vadot /* Supplied in turn by VBAT */ 144*f126890aSEmmanuel Vadot regulator-name = "VREG_LCD_3V0"; 145*f126890aSEmmanuel Vadot regulator-min-microvolt = <3000000>; 146*f126890aSEmmanuel Vadot regulator-max-microvolt = <3000000>; 147*f126890aSEmmanuel Vadot /* GPIO219 controls this regulator */ 148*f126890aSEmmanuel Vadot gpio = <&gpio6 27 GPIO_ACTIVE_HIGH>; 149*f126890aSEmmanuel Vadot enable-active-high; 150*f126890aSEmmanuel Vadot pinctrl-names = "default"; 151*f126890aSEmmanuel Vadot pinctrl-0 = <&lcd_pwr_en_default_mode>; 152*f126890aSEmmanuel Vadot }; 153*f126890aSEmmanuel Vadot lcd_1v8_reg: regulator-gpio-lcd-1v8 { 154*f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 155*f126890aSEmmanuel Vadot /* Supplied in turn by VBAT */ 156*f126890aSEmmanuel Vadot regulator-name = "VREG_LCD_1V8"; 157*f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 158*f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 159*f126890aSEmmanuel Vadot /* GPIO219 controls this regulator */ 160*f126890aSEmmanuel Vadot gpio = <&gpio6 27 GPIO_ACTIVE_HIGH>; 161*f126890aSEmmanuel Vadot enable-active-high; 162*f126890aSEmmanuel Vadot pinctrl-names = "default"; 163*f126890aSEmmanuel Vadot pinctrl-0 = <&lcd_pwr_en_default_mode>; 164*f126890aSEmmanuel Vadot }; 165*f126890aSEmmanuel Vadot 166*f126890aSEmmanuel Vadot /* 167*f126890aSEmmanuel Vadot * This regulator is a GPIO line that drives the Broadcom WLAN 168*f126890aSEmmanuel Vadot * line WL_REG_ON high and enables the internal regulators 169*f126890aSEmmanuel Vadot * inside the chip. Unfortunatley it is erroneously named 170*f126890aSEmmanuel Vadot * WLAN_RST_N on the schematic but it is not a reset line. 171*f126890aSEmmanuel Vadot * 172*f126890aSEmmanuel Vadot * The voltage specified here is only used to determine the OCR mask, 173*f126890aSEmmanuel Vadot * the for the SDIO connector, the chip is actually connected 174*f126890aSEmmanuel Vadot * directly to VBAT. 175*f126890aSEmmanuel Vadot */ 176*f126890aSEmmanuel Vadot wl_reg: regulator-gpio-wlan { 177*f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 178*f126890aSEmmanuel Vadot regulator-name = "WL_REG_ON"; 179*f126890aSEmmanuel Vadot regulator-min-microvolt = <3000000>; 180*f126890aSEmmanuel Vadot regulator-max-microvolt = <3000000>; 181*f126890aSEmmanuel Vadot startup-delay-us = <100000>; 182*f126890aSEmmanuel Vadot /* GPIO215 (WLAN_RST_N to WL_REG_ON) */ 183*f126890aSEmmanuel Vadot gpio = <&gpio6 23 GPIO_ACTIVE_HIGH>; 184*f126890aSEmmanuel Vadot enable-active-high; 185*f126890aSEmmanuel Vadot pinctrl-names = "default"; 186*f126890aSEmmanuel Vadot pinctrl-0 = <&wlan_ldo_en_default>; 187*f126890aSEmmanuel Vadot }; 188*f126890aSEmmanuel Vadot 189*f126890aSEmmanuel Vadot 190*f126890aSEmmanuel Vadot gpio-keys { 191*f126890aSEmmanuel Vadot compatible = "gpio-keys"; 192*f126890aSEmmanuel Vadot pinctrl-names = "default"; 193*f126890aSEmmanuel Vadot pinctrl-0 = <&gpio_keys_default_mode>; 194*f126890aSEmmanuel Vadot 195*f126890aSEmmanuel Vadot button-home { 196*f126890aSEmmanuel Vadot linux,code = <KEY_HOME>; 197*f126890aSEmmanuel Vadot label = "HOME"; 198*f126890aSEmmanuel Vadot /* GPIO91 */ 199*f126890aSEmmanuel Vadot gpios = <&gpio2 27 GPIO_ACTIVE_LOW>; 200*f126890aSEmmanuel Vadot }; 201*f126890aSEmmanuel Vadot button-volup { 202*f126890aSEmmanuel Vadot linux,code = <KEY_VOLUMEUP>; 203*f126890aSEmmanuel Vadot label = "VOL+"; 204*f126890aSEmmanuel Vadot /* GPIO67 */ 205*f126890aSEmmanuel Vadot gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; 206*f126890aSEmmanuel Vadot }; 207*f126890aSEmmanuel Vadot button-voldown { 208*f126890aSEmmanuel Vadot linux,code = <KEY_VOLUMEDOWN>; 209*f126890aSEmmanuel Vadot label = "VOL-"; 210*f126890aSEmmanuel Vadot /* GPIO92 */ 211*f126890aSEmmanuel Vadot gpios = <&gpio2 28 GPIO_ACTIVE_LOW>; 212*f126890aSEmmanuel Vadot }; 213*f126890aSEmmanuel Vadot }; 214*f126890aSEmmanuel Vadot 215*f126890aSEmmanuel Vadot /* Richtek RT8515GQW Flash LED Driver IC */ 216*f126890aSEmmanuel Vadot flash { 217*f126890aSEmmanuel Vadot compatible = "richtek,rt8515"; 218*f126890aSEmmanuel Vadot /* GPIO 140 */ 219*f126890aSEmmanuel Vadot enf-gpios = <&gpio4 12 GPIO_ACTIVE_HIGH>; 220*f126890aSEmmanuel Vadot /* GPIO 141 */ 221*f126890aSEmmanuel Vadot ent-gpios = <&gpio4 13 GPIO_ACTIVE_HIGH>; 222*f126890aSEmmanuel Vadot /* 223*f126890aSEmmanuel Vadot * RFS is 16 kOhm and RTS is 100 kOhm giving 224*f126890aSEmmanuel Vadot * the flash max current 343mA and torch max 225*f126890aSEmmanuel Vadot * current 55 mA. 226*f126890aSEmmanuel Vadot */ 227*f126890aSEmmanuel Vadot richtek,rfs-ohms = <16000>; 228*f126890aSEmmanuel Vadot richtek,rts-ohms = <100000>; 229*f126890aSEmmanuel Vadot pinctrl-names = "default"; 230*f126890aSEmmanuel Vadot pinctrl-0 = <&gpio_flash_default_mode>; 231*f126890aSEmmanuel Vadot 232*f126890aSEmmanuel Vadot led { 233*f126890aSEmmanuel Vadot function = LED_FUNCTION_FLASH; 234*f126890aSEmmanuel Vadot color = <LED_COLOR_ID_WHITE>; 235*f126890aSEmmanuel Vadot flash-max-timeout-us = <250000>; 236*f126890aSEmmanuel Vadot flash-max-microamp = <343750>; 237*f126890aSEmmanuel Vadot led-max-microamp = <55000>; 238*f126890aSEmmanuel Vadot }; 239*f126890aSEmmanuel Vadot }; 240*f126890aSEmmanuel Vadot 241*f126890aSEmmanuel Vadot /* Bit-banged I2C on GPIO143 and GPIO144 also called "SUBPMU I2C" */ 242*f126890aSEmmanuel Vadot i2c-gpio-0 { 243*f126890aSEmmanuel Vadot compatible = "i2c-gpio"; 244*f126890aSEmmanuel Vadot sda-gpios = <&gpio4 16 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; 245*f126890aSEmmanuel Vadot scl-gpios = <&gpio4 15 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; 246*f126890aSEmmanuel Vadot pinctrl-names = "default"; 247*f126890aSEmmanuel Vadot pinctrl-0 = <&i2c_gpio_0_default>; 248*f126890aSEmmanuel Vadot #address-cells = <1>; 249*f126890aSEmmanuel Vadot #size-cells = <0>; 250*f126890aSEmmanuel Vadot 251*f126890aSEmmanuel Vadot /* Yamaha YAS530 magnetometer */ 252*f126890aSEmmanuel Vadot magnetometer@2e { 253*f126890aSEmmanuel Vadot compatible = "yamaha,yas530"; 254*f126890aSEmmanuel Vadot reg = <0x2e>; 255*f126890aSEmmanuel Vadot /* VDD 3V */ 256*f126890aSEmmanuel Vadot vdd-supply = <&ab8500_ldo_aux1_reg>; 257*f126890aSEmmanuel Vadot /* IOVDD 1.8V */ 258*f126890aSEmmanuel Vadot iovdd-supply = <&ab8500_ldo_aux2_reg>; 259*f126890aSEmmanuel Vadot /* GPIO204 COMPASS_RST_N */ 260*f126890aSEmmanuel Vadot reset-gpios = <&gpio6 12 GPIO_ACTIVE_LOW>; 261*f126890aSEmmanuel Vadot pinctrl-names = "default"; 262*f126890aSEmmanuel Vadot pinctrl-0 = <&yas529_default>; 263*f126890aSEmmanuel Vadot }; 264*f126890aSEmmanuel Vadot /* TODO: this should also be used by the NCP6914 Camera power management unit */ 265*f126890aSEmmanuel Vadot }; 266*f126890aSEmmanuel Vadot 267*f126890aSEmmanuel Vadot /* 268*f126890aSEmmanuel Vadot * These pins do have an spi controller, however the controller on 269*f126890aSEmmanuel Vadot * these pins is not the fully featured PL022 SSP/SPI block but the 270*f126890aSEmmanuel Vadot * ST Micro diet "PL023" version. One of the lacking features in 271*f126890aSEmmanuel Vadot * this derivative is 3wire support, so it cannot be used to drive 272*f126890aSEmmanuel Vadot * this panel interface. We have to use GPIO bit-banging instead. 273*f126890aSEmmanuel Vadot */ 274*f126890aSEmmanuel Vadot spi { 275*f126890aSEmmanuel Vadot compatible = "spi-gpio"; 276*f126890aSEmmanuel Vadot /* Clock on GPIO220 */ 277*f126890aSEmmanuel Vadot sck-gpios = <&gpio6 28 GPIO_ACTIVE_HIGH>; 278*f126890aSEmmanuel Vadot /* MISO/MOSI on GPIO224 (no separate MISO pin) */ 279*f126890aSEmmanuel Vadot mosi-gpios = <&gpio7 0 GPIO_ACTIVE_HIGH>; 280*f126890aSEmmanuel Vadot /* Chip select on GPIO223 */ 281*f126890aSEmmanuel Vadot cs-gpios = <&gpio6 31 GPIO_ACTIVE_LOW>; 282*f126890aSEmmanuel Vadot num-chipselects = <1>; 283*f126890aSEmmanuel Vadot 284*f126890aSEmmanuel Vadot pinctrl-names = "default"; 285*f126890aSEmmanuel Vadot pinctrl-0 = <&spi_gpio_0_default>; 286*f126890aSEmmanuel Vadot #address-cells = <1>; 287*f126890aSEmmanuel Vadot #size-cells = <0>; 288*f126890aSEmmanuel Vadot 289*f126890aSEmmanuel Vadot panel@0 { 290*f126890aSEmmanuel Vadot compatible = "samsung,s6e63m0"; 291*f126890aSEmmanuel Vadot reg = <0>; 292*f126890aSEmmanuel Vadot vdd3-supply = <&lcd_3v0_reg>; 293*f126890aSEmmanuel Vadot vci-supply = <&lcd_1v8_reg>; 294*f126890aSEmmanuel Vadot /* Reset on GPIO139 */ 295*f126890aSEmmanuel Vadot reset-gpios = <&gpio4 11 GPIO_ACTIVE_LOW>; 296*f126890aSEmmanuel Vadot pinctrl-names = "default"; 297*f126890aSEmmanuel Vadot pinctrl-0 = <&panel_default_mode>; 298*f126890aSEmmanuel Vadot spi-3wire; 299*f126890aSEmmanuel Vadot /* TYPE 3: inverse clock polarity and phase */ 300*f126890aSEmmanuel Vadot spi-cpha; 301*f126890aSEmmanuel Vadot spi-cpol; 302*f126890aSEmmanuel Vadot 303*f126890aSEmmanuel Vadot port { 304*f126890aSEmmanuel Vadot panel_in: endpoint { 305*f126890aSEmmanuel Vadot remote-endpoint = <&display_out>; 306*f126890aSEmmanuel Vadot }; 307*f126890aSEmmanuel Vadot }; 308*f126890aSEmmanuel Vadot }; 309*f126890aSEmmanuel Vadot }; 310*f126890aSEmmanuel Vadot 311*f126890aSEmmanuel Vadot /* 312*f126890aSEmmanuel Vadot * Current sense amplifier on the light sensor to convert current to 313*f126890aSEmmanuel Vadot * voltage. We do not know if this is the actual configuration. The 314*f126890aSEmmanuel Vadot * sense resistor value was found by calibrating in a room ambient 315*f126890aSEmmanuel Vadot * light with a second mobile phone light sensor as reference. If you 316*f126890aSEmmanuel Vadot * pry a Janice phone apart and inspect it you may figure this out. 317*f126890aSEmmanuel Vadot */ 318*f126890aSEmmanuel Vadot gp2a_shunt: current-sense-shunt { 319*f126890aSEmmanuel Vadot compatible = "current-sense-shunt"; 320*f126890aSEmmanuel Vadot io-channels = <&gpadc 0x07>; 321*f126890aSEmmanuel Vadot shunt-resistor-micro-ohms = <15000000>; /* 15 ohms c:a */ 322*f126890aSEmmanuel Vadot #io-channel-cells = <0>; 323*f126890aSEmmanuel Vadot io-channel-ranges; 324*f126890aSEmmanuel Vadot }; 325*f126890aSEmmanuel Vadot 326*f126890aSEmmanuel Vadot /* Bit-banged I2C on GPIO196 and GPIO197 also called "TOUCHKEY_I2C" */ 327*f126890aSEmmanuel Vadot i2c-gpio-1 { 328*f126890aSEmmanuel Vadot compatible = "i2c-gpio"; 329*f126890aSEmmanuel Vadot sda-gpios = <&gpio6 5 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; 330*f126890aSEmmanuel Vadot scl-gpios = <&gpio6 4 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; 331*f126890aSEmmanuel Vadot clock-frequency = <400000>; 332*f126890aSEmmanuel Vadot pinctrl-names = "default"; 333*f126890aSEmmanuel Vadot pinctrl-0 = <&i2c_gpio_1_default>; 334*f126890aSEmmanuel Vadot #address-cells = <1>; 335*f126890aSEmmanuel Vadot #size-cells = <0>; 336*f126890aSEmmanuel Vadot 337*f126890aSEmmanuel Vadot touchkey@20 { 338*f126890aSEmmanuel Vadot compatible = "coreriver,tc360-touchkey"; 339*f126890aSEmmanuel Vadot reg = <0x20>; 340*f126890aSEmmanuel Vadot vdd-supply = <&ldo_kled_3v3_reg>; 341*f126890aSEmmanuel Vadot vcc-supply = <&ldo_touchkey_1v8_reg>; 342*f126890aSEmmanuel Vadot vddio-supply = <&ldo_touchkey_1v8_reg>; 343*f126890aSEmmanuel Vadot 344*f126890aSEmmanuel Vadot /* Interrupt on GPIO 198 */ 345*f126890aSEmmanuel Vadot interrupt-parent = <&gpio6>; 346*f126890aSEmmanuel Vadot interrupts = <6 IRQ_TYPE_EDGE_RISING>; 347*f126890aSEmmanuel Vadot 348*f126890aSEmmanuel Vadot pinctrl-names = "default"; 349*f126890aSEmmanuel Vadot pinctrl-0 = <&touchkey_default_mode>; 350*f126890aSEmmanuel Vadot linux,keycodes = <KEY_MENU KEY_BACK>; 351*f126890aSEmmanuel Vadot }; 352*f126890aSEmmanuel Vadot }; 353*f126890aSEmmanuel Vadot 354*f126890aSEmmanuel Vadot /* Bit-banged I2C on GPIO201 and GPIO202 also called "MOT_I2C" */ 355*f126890aSEmmanuel Vadot i2c-gpio-2 { 356*f126890aSEmmanuel Vadot compatible = "i2c-gpio"; 357*f126890aSEmmanuel Vadot sda-gpios = <&gpio6 10 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; 358*f126890aSEmmanuel Vadot scl-gpios = <&gpio6 9 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; 359*f126890aSEmmanuel Vadot pinctrl-names = "default"; 360*f126890aSEmmanuel Vadot pinctrl-0 = <&i2c_gpio_2_default>; 361*f126890aSEmmanuel Vadot #address-cells = <1>; 362*f126890aSEmmanuel Vadot #size-cells = <0>; 363*f126890aSEmmanuel Vadot /* TODO: add the Immersion ISA1200 I2C device here */ 364*f126890aSEmmanuel Vadot }; 365*f126890aSEmmanuel Vadot 366*f126890aSEmmanuel Vadot /* Bit-banged I2C on GPIO151 and GPIO152 also called "NFC_I2C" */ 367*f126890aSEmmanuel Vadot i2c-gpio-3 { 368*f126890aSEmmanuel Vadot compatible = "i2c-gpio"; 369*f126890aSEmmanuel Vadot sda-gpios = <&gpio4 24 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; 370*f126890aSEmmanuel Vadot scl-gpios = <&gpio4 23 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; 371*f126890aSEmmanuel Vadot pinctrl-names = "default"; 372*f126890aSEmmanuel Vadot pinctrl-0 = <&i2c_gpio_3_default>; 373*f126890aSEmmanuel Vadot #address-cells = <1>; 374*f126890aSEmmanuel Vadot #size-cells = <0>; 375*f126890aSEmmanuel Vadot 376*f126890aSEmmanuel Vadot /* This is only mounted on the GT-I9070P */ 377*f126890aSEmmanuel Vadot nfc@2b { /* 0x30? */ 378*f126890aSEmmanuel Vadot /* NXP NFC circuit PN544 C1 marked NXP 44501 */ 379*f126890aSEmmanuel Vadot compatible = "nxp,pn544-i2c"; 380*f126890aSEmmanuel Vadot /* IF0, IF1 high, gives I2C address 0x2B */ 381*f126890aSEmmanuel Vadot reg = <0x2b>; 382*f126890aSEmmanuel Vadot clock-frequency = <400000>; 383*f126890aSEmmanuel Vadot /* NFC IRQ on GPIO32 */ 384*f126890aSEmmanuel Vadot interrupt-parent = <&gpio1>; 385*f126890aSEmmanuel Vadot interrupts = <0 IRQ_TYPE_EDGE_FALLING>; 386*f126890aSEmmanuel Vadot /* GPIO 31 */ 387*f126890aSEmmanuel Vadot firmware-gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>; 388*f126890aSEmmanuel Vadot /* GPIO88 */ 389*f126890aSEmmanuel Vadot enable-gpios = <&gpio2 24 GPIO_ACTIVE_HIGH>; 390*f126890aSEmmanuel Vadot pinctrl-names = "default"; 391*f126890aSEmmanuel Vadot pinctrl-0 = <&pn544_janice_default>; 392*f126890aSEmmanuel Vadot }; 393*f126890aSEmmanuel Vadot }; 394*f126890aSEmmanuel Vadot 395*f126890aSEmmanuel Vadot soc { 396*f126890aSEmmanuel Vadot /* External Micro SD slot */ 397*f126890aSEmmanuel Vadot mmc@80126000 { 398*f126890aSEmmanuel Vadot arm,primecell-periphid = <0x10480180>; 399*f126890aSEmmanuel Vadot max-frequency = <50000000>; 400*f126890aSEmmanuel Vadot bus-width = <4>; 401*f126890aSEmmanuel Vadot cap-sd-highspeed; 402*f126890aSEmmanuel Vadot cap-mmc-highspeed; 403*f126890aSEmmanuel Vadot st,sig-dir-cmd; 404*f126890aSEmmanuel Vadot st,sig-dir-dat0; 405*f126890aSEmmanuel Vadot st,sig-dir-dat2; 406*f126890aSEmmanuel Vadot st,sig-pin-fbclk; 407*f126890aSEmmanuel Vadot full-pwr-cycle; 408*f126890aSEmmanuel Vadot /* MMC is powered by AUX3 1.2V .. 2.91V */ 409*f126890aSEmmanuel Vadot vmmc-supply = <&ab8500_ldo_aux3_reg>; 410*f126890aSEmmanuel Vadot /* 2.9 V level translator is using AUX3 at 2.9 V as well */ 411*f126890aSEmmanuel Vadot vqmmc-supply = <&ab8500_ldo_aux3_reg>; 412*f126890aSEmmanuel Vadot pinctrl-names = "default", "sleep"; 413*f126890aSEmmanuel Vadot pinctrl-0 = <&mc0_a_2_default>; 414*f126890aSEmmanuel Vadot pinctrl-1 = <&mc0_a_2_sleep>; 415*f126890aSEmmanuel Vadot cd-gpios = <&gpio6 25 GPIO_ACTIVE_LOW>; // GPIO217 416*f126890aSEmmanuel Vadot status = "okay"; 417*f126890aSEmmanuel Vadot }; 418*f126890aSEmmanuel Vadot 419*f126890aSEmmanuel Vadot /* WLAN SDIO channel */ 420*f126890aSEmmanuel Vadot mmc@80118000 { 421*f126890aSEmmanuel Vadot arm,primecell-periphid = <0x10480180>; 422*f126890aSEmmanuel Vadot max-frequency = <50000000>; 423*f126890aSEmmanuel Vadot bus-width = <4>; 424*f126890aSEmmanuel Vadot non-removable; 425*f126890aSEmmanuel Vadot cap-sd-highspeed; 426*f126890aSEmmanuel Vadot pinctrl-names = "default", "sleep"; 427*f126890aSEmmanuel Vadot pinctrl-0 = <&mc1_a_2_default>; 428*f126890aSEmmanuel Vadot pinctrl-1 = <&mc1_a_2_sleep>; 429*f126890aSEmmanuel Vadot /* 430*f126890aSEmmanuel Vadot * GPIO-controlled voltage enablement: this drives 431*f126890aSEmmanuel Vadot * the WL_REG_ON line high when we use this device. 432*f126890aSEmmanuel Vadot * Represented as regulator to fill OCR mask. 433*f126890aSEmmanuel Vadot */ 434*f126890aSEmmanuel Vadot vmmc-supply = <&wl_reg>; 435*f126890aSEmmanuel Vadot 436*f126890aSEmmanuel Vadot #address-cells = <1>; 437*f126890aSEmmanuel Vadot #size-cells = <0>; 438*f126890aSEmmanuel Vadot status = "okay"; 439*f126890aSEmmanuel Vadot 440*f126890aSEmmanuel Vadot wifi@1 { 441*f126890aSEmmanuel Vadot compatible = "brcm,bcm4330-fmac", "brcm,bcm4329-fmac"; 442*f126890aSEmmanuel Vadot reg = <1>; 443*f126890aSEmmanuel Vadot /* GPIO216 WL_HOST_WAKE */ 444*f126890aSEmmanuel Vadot interrupt-parent = <&gpio6>; 445*f126890aSEmmanuel Vadot interrupts = <24 IRQ_TYPE_EDGE_FALLING>; 446*f126890aSEmmanuel Vadot interrupt-names = "host-wake"; 447*f126890aSEmmanuel Vadot pinctrl-names = "default"; 448*f126890aSEmmanuel Vadot pinctrl-0 = <&wlan_default_mode>; 449*f126890aSEmmanuel Vadot }; 450*f126890aSEmmanuel Vadot }; 451*f126890aSEmmanuel Vadot 452*f126890aSEmmanuel Vadot /* eMMC */ 453*f126890aSEmmanuel Vadot mmc@80005000 { 454*f126890aSEmmanuel Vadot arm,primecell-periphid = <0x10480180>; 455*f126890aSEmmanuel Vadot max-frequency = <50000000>; 456*f126890aSEmmanuel Vadot bus-width = <8>; 457*f126890aSEmmanuel Vadot non-removable; 458*f126890aSEmmanuel Vadot cap-mmc-highspeed; 459*f126890aSEmmanuel Vadot mmc-ddr-1_8v; 460*f126890aSEmmanuel Vadot no-sdio; 461*f126890aSEmmanuel Vadot no-sd; 462*f126890aSEmmanuel Vadot vmmc-supply = <&ldo_3v3_reg>; 463*f126890aSEmmanuel Vadot pinctrl-names = "default", "sleep"; 464*f126890aSEmmanuel Vadot pinctrl-0 = <&mc2_a_1_default>; 465*f126890aSEmmanuel Vadot pinctrl-1 = <&mc2_a_1_sleep>; 466*f126890aSEmmanuel Vadot status = "okay"; 467*f126890aSEmmanuel Vadot }; 468*f126890aSEmmanuel Vadot 469*f126890aSEmmanuel Vadot /* GBF (Bluetooth) UART */ 470*f126890aSEmmanuel Vadot serial@80120000 { 471*f126890aSEmmanuel Vadot pinctrl-names = "default", "sleep"; 472*f126890aSEmmanuel Vadot pinctrl-0 = <&u0_a_1_default>; 473*f126890aSEmmanuel Vadot pinctrl-1 = <&u0_a_1_sleep>; 474*f126890aSEmmanuel Vadot status = "okay"; 475*f126890aSEmmanuel Vadot 476*f126890aSEmmanuel Vadot bluetooth { 477*f126890aSEmmanuel Vadot /* BCM4330B1 actually */ 478*f126890aSEmmanuel Vadot compatible = "brcm,bcm4330-bt"; 479*f126890aSEmmanuel Vadot /* GPIO222 rail BT_VREG_EN to BT_REG_ON */ 480*f126890aSEmmanuel Vadot shutdown-gpios = <&gpio6 30 GPIO_ACTIVE_HIGH>; 481*f126890aSEmmanuel Vadot /* BT_WAKE on GPIO199 */ 482*f126890aSEmmanuel Vadot device-wakeup-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>; 483*f126890aSEmmanuel Vadot /* BT_HOST_WAKE on GPIO97 */ 484*f126890aSEmmanuel Vadot /* FIXME: convert to interrupt */ 485*f126890aSEmmanuel Vadot host-wakeup-gpios = <&gpio3 1 GPIO_ACTIVE_HIGH>; 486*f126890aSEmmanuel Vadot /* BT_RST_N on GPIO209 */ 487*f126890aSEmmanuel Vadot reset-gpios = <&gpio6 17 GPIO_ACTIVE_LOW>; 488*f126890aSEmmanuel Vadot pinctrl-names = "default"; 489*f126890aSEmmanuel Vadot pinctrl-0 = <&bluetooth_default_mode>; 490*f126890aSEmmanuel Vadot }; 491*f126890aSEmmanuel Vadot }; 492*f126890aSEmmanuel Vadot 493*f126890aSEmmanuel Vadot /* GPS UART */ 494*f126890aSEmmanuel Vadot serial@80121000 { 495*f126890aSEmmanuel Vadot status = "okay"; 496*f126890aSEmmanuel Vadot pinctrl-names = "default", "sleep"; 497*f126890aSEmmanuel Vadot /* CTS/RTS is not used, CTS is repurposed as GPIO */ 498*f126890aSEmmanuel Vadot pinctrl-0 = <&u1rxtx_a_1_default>; 499*f126890aSEmmanuel Vadot pinctrl-1 = <&u1rxtx_a_1_sleep>; 500*f126890aSEmmanuel Vadot 501*f126890aSEmmanuel Vadot gnss { 502*f126890aSEmmanuel Vadot /* 503*f126890aSEmmanuel Vadot * The Low Noise Amplifier (LNA) power and enablement is controlled 504*f126890aSEmmanuel Vadot * autonomously by the GSD4t. 505*f126890aSEmmanuel Vadot * Janice has a SiRFstarIV-based GSD4t 506*f126890aSEmmanuel Vadot * Golden has a SiRFstarV 5t-based CSRG05TA03-ICJE-R. 507*f126890aSEmmanuel Vadot */ 508*f126890aSEmmanuel Vadot compatible = "csr,gsd4t"; 509*f126890aSEmmanuel Vadot /* GPS_RSTN on GPIO21 */ 510*f126890aSEmmanuel Vadot reset-gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; 511*f126890aSEmmanuel Vadot /* GPS_ON_OFF on GPIO96 */ 512*f126890aSEmmanuel Vadot sirf,onoff-gpios = <&gpio3 0 GPIO_ACTIVE_HIGH>; 513*f126890aSEmmanuel Vadot /* GPS_1V8 (VSMPS2) */ 514*f126890aSEmmanuel Vadot vcc-supply = <&db8500_vsmps2_reg>; 515*f126890aSEmmanuel Vadot pinctrl-names = "default"; 516*f126890aSEmmanuel Vadot pinctrl-0 = <&gsd4t_janice_default>; 517*f126890aSEmmanuel Vadot /* According to /etc/sirfgps.conf */ 518*f126890aSEmmanuel Vadot current-speed = <460800>; 519*f126890aSEmmanuel Vadot }; 520*f126890aSEmmanuel Vadot }; 521*f126890aSEmmanuel Vadot 522*f126890aSEmmanuel Vadot /* Debugging console UART connected to TSU6111RSVR (FSA880) */ 523*f126890aSEmmanuel Vadot serial@80007000 { 524*f126890aSEmmanuel Vadot status = "okay"; 525*f126890aSEmmanuel Vadot pinctrl-names = "default", "sleep"; 526*f126890aSEmmanuel Vadot pinctrl-0 = <&u2rxtx_c_1_default>; 527*f126890aSEmmanuel Vadot pinctrl-1 = <&u2rxtx_c_1_sleep>; 528*f126890aSEmmanuel Vadot }; 529*f126890aSEmmanuel Vadot 530*f126890aSEmmanuel Vadot prcmu@80157000 { 531*f126890aSEmmanuel Vadot ab8500 { 532*f126890aSEmmanuel Vadot phy { 533*f126890aSEmmanuel Vadot pinctrl-names = "default", "sleep"; 534*f126890aSEmmanuel Vadot pinctrl-0 = <&usb_a_1_default>; 535*f126890aSEmmanuel Vadot pinctrl-1 = <&usb_a_1_sleep>; 536*f126890aSEmmanuel Vadot }; 537*f126890aSEmmanuel Vadot 538*f126890aSEmmanuel Vadot ab8500_fg { 539*f126890aSEmmanuel Vadot line-impedance-micro-ohms = <15000>; 540*f126890aSEmmanuel Vadot }; 541*f126890aSEmmanuel Vadot 542*f126890aSEmmanuel Vadot regulator { 543*f126890aSEmmanuel Vadot ab8500_ldo_aux1 { 544*f126890aSEmmanuel Vadot /* Used for VDD for sensors */ 545*f126890aSEmmanuel Vadot regulator-name = "V-SENSORS-VDD"; 546*f126890aSEmmanuel Vadot regulator-min-microvolt = <3000000>; 547*f126890aSEmmanuel Vadot regulator-max-microvolt = <3000000>; 548*f126890aSEmmanuel Vadot }; 549*f126890aSEmmanuel Vadot 550*f126890aSEmmanuel Vadot ab8500_ldo_aux2 { 551*f126890aSEmmanuel Vadot /* Used for VIO for sensors */ 552*f126890aSEmmanuel Vadot regulator-name = "V-SENSORS-VIO"; 553*f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 554*f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 555*f126890aSEmmanuel Vadot }; 556*f126890aSEmmanuel Vadot 557*f126890aSEmmanuel Vadot ab8500_ldo_aux3 { 558*f126890aSEmmanuel Vadot /* Used for voltage for external MMC/SD card */ 559*f126890aSEmmanuel Vadot regulator-name = "V-MMC-SD"; 560*f126890aSEmmanuel Vadot regulator-min-microvolt = <1200000>; 561*f126890aSEmmanuel Vadot regulator-max-microvolt = <2910000>; 562*f126890aSEmmanuel Vadot }; 563*f126890aSEmmanuel Vadot }; 564*f126890aSEmmanuel Vadot }; 565*f126890aSEmmanuel Vadot }; 566*f126890aSEmmanuel Vadot 567*f126890aSEmmanuel Vadot /* I2C0 */ 568*f126890aSEmmanuel Vadot i2c@80004000 { 569*f126890aSEmmanuel Vadot status = "okay"; 570*f126890aSEmmanuel Vadot pinctrl-names = "default", "sleep"; 571*f126890aSEmmanuel Vadot pinctrl-0 = <&i2c0_a_1_default>; 572*f126890aSEmmanuel Vadot pinctrl-1 = <&i2c0_a_1_sleep>; 573*f126890aSEmmanuel Vadot 574*f126890aSEmmanuel Vadot proximity@44 { 575*f126890aSEmmanuel Vadot /* Janice has the GP2AP002A00F with light sensor */ 576*f126890aSEmmanuel Vadot compatible = "sharp,gp2ap002a00f"; 577*f126890aSEmmanuel Vadot clock-frequency = <400000>; 578*f126890aSEmmanuel Vadot reg = <0x44>; 579*f126890aSEmmanuel Vadot 580*f126890aSEmmanuel Vadot interrupt-parent = <&gpio4>; 581*f126890aSEmmanuel Vadot interrupts = <18 IRQ_TYPE_EDGE_FALLING>; 582*f126890aSEmmanuel Vadot vdd-supply = <&ab8500_ldo_aux1_reg>; 583*f126890aSEmmanuel Vadot vio-supply = <&ab8500_ldo_aux2_reg>; 584*f126890aSEmmanuel Vadot /* ADC channel AUX2 to read ALSOUT ambient light sensor out */ 585*f126890aSEmmanuel Vadot io-channels = <&gp2a_shunt>; 586*f126890aSEmmanuel Vadot io-channel-names = "alsout"; 587*f126890aSEmmanuel Vadot pinctrl-names = "default"; 588*f126890aSEmmanuel Vadot pinctrl-0 = <&gp2ap002_janice_default>; 589*f126890aSEmmanuel Vadot /* B1 mode (arch/arm/mach-ux500/include/mach/gp2a.h) */ 590*f126890aSEmmanuel Vadot sharp,proximity-far-hysteresis = /bits/ 8 <0x40>; 591*f126890aSEmmanuel Vadot sharp,proximity-close-hysteresis = /bits/ 8 <0x0f>; 592*f126890aSEmmanuel Vadot }; 593*f126890aSEmmanuel Vadot }; 594*f126890aSEmmanuel Vadot 595*f126890aSEmmanuel Vadot /* I2C1 on GPIO16 and GPIO17 also called "MUS I2C" */ 596*f126890aSEmmanuel Vadot i2c@80122000 { 597*f126890aSEmmanuel Vadot status = "okay"; 598*f126890aSEmmanuel Vadot pinctrl-names = "default","sleep"; 599*f126890aSEmmanuel Vadot pinctrl-0 = <&i2c1_b_2_default>; 600*f126890aSEmmanuel Vadot pinctrl-1 = <&i2c1_b_2_sleep>; 601*f126890aSEmmanuel Vadot 602*f126890aSEmmanuel Vadot /* Texas Instruments TSU6111 micro USB switch */ 603*f126890aSEmmanuel Vadot usb-switch@25 { 604*f126890aSEmmanuel Vadot compatible = "ti,tsu6111"; 605*f126890aSEmmanuel Vadot reg = <0x25>; 606*f126890aSEmmanuel Vadot /* Interrupt JACK_INT_N on GPIO95 */ 607*f126890aSEmmanuel Vadot interrupt-parent = <&gpio2>; 608*f126890aSEmmanuel Vadot interrupts = <31 IRQ_TYPE_EDGE_FALLING>; 609*f126890aSEmmanuel Vadot pinctrl-names = "default"; 610*f126890aSEmmanuel Vadot pinctrl-0 = <&tsu6111_janice_default>; 611*f126890aSEmmanuel Vadot }; 612*f126890aSEmmanuel Vadot }; 613*f126890aSEmmanuel Vadot 614*f126890aSEmmanuel Vadot /* I2C2 on GPIO10 and GPIO11 also called "SENSORS I2C" */ 615*f126890aSEmmanuel Vadot i2c@80128000 { 616*f126890aSEmmanuel Vadot status = "okay"; 617*f126890aSEmmanuel Vadot pinctrl-names = "default", "sleep"; 618*f126890aSEmmanuel Vadot pinctrl-0 = <&i2c2_b_2_default>; 619*f126890aSEmmanuel Vadot pinctrl-1 = <&i2c2_b_2_sleep>; 620*f126890aSEmmanuel Vadot 621*f126890aSEmmanuel Vadot gyroscope@68 { 622*f126890aSEmmanuel Vadot compatible = "invensense,mpu3050"; 623*f126890aSEmmanuel Vadot reg = <0x68>; 624*f126890aSEmmanuel Vadot /* GPIO226 interrupt */ 625*f126890aSEmmanuel Vadot interrupt-parent = <&gpio7>; 626*f126890aSEmmanuel Vadot interrupts = <2 IRQ_TYPE_EDGE_FALLING>; 627*f126890aSEmmanuel Vadot /* FIXME: no idea about this */ 628*f126890aSEmmanuel Vadot mount-matrix = "1", "0", "0", 629*f126890aSEmmanuel Vadot "0", "1", "0", 630*f126890aSEmmanuel Vadot "0", "0", "1"; 631*f126890aSEmmanuel Vadot vlogic-supply = <&ab8500_ldo_aux2_reg>; // 1.8V 632*f126890aSEmmanuel Vadot vdd-supply = <&ab8500_ldo_aux1_reg>; // 3V 633*f126890aSEmmanuel Vadot pinctrl-names = "default"; 634*f126890aSEmmanuel Vadot pinctrl-0 = <&mpu3050_janice_default>; 635*f126890aSEmmanuel Vadot 636*f126890aSEmmanuel Vadot /* 637*f126890aSEmmanuel Vadot * The MPU-3050 acts as a hub for the 638*f126890aSEmmanuel Vadot * accelerometer. 639*f126890aSEmmanuel Vadot */ 640*f126890aSEmmanuel Vadot i2c-gate { 641*f126890aSEmmanuel Vadot #address-cells = <1>; 642*f126890aSEmmanuel Vadot #size-cells = <0>; 643*f126890aSEmmanuel Vadot 644*f126890aSEmmanuel Vadot /* Bosch BMA222 accelerometer */ 645*f126890aSEmmanuel Vadot accelerometer@8 { 646*f126890aSEmmanuel Vadot compatible = "bosch,bma222"; 647*f126890aSEmmanuel Vadot reg = <0x08>; 648*f126890aSEmmanuel Vadot mount-matrix = "0", "-1", "0", 649*f126890aSEmmanuel Vadot "1", "0", "0", 650*f126890aSEmmanuel Vadot "0", "0", "1"; 651*f126890aSEmmanuel Vadot vddio-supply = <&ab8500_ldo_aux2_reg>; // 1.8V 652*f126890aSEmmanuel Vadot vdd-supply = <&ab8500_ldo_aux1_reg>; // 3V 653*f126890aSEmmanuel Vadot }; 654*f126890aSEmmanuel Vadot }; 655*f126890aSEmmanuel Vadot }; 656*f126890aSEmmanuel Vadot }; 657*f126890aSEmmanuel Vadot 658*f126890aSEmmanuel Vadot /* I2C3 */ 659*f126890aSEmmanuel Vadot i2c@80110000 { 660*f126890aSEmmanuel Vadot status = "okay"; 661*f126890aSEmmanuel Vadot 662*f126890aSEmmanuel Vadot pinctrl-names = "default", "sleep"; 663*f126890aSEmmanuel Vadot pinctrl-0 = <&i2c3_c_2_default>; 664*f126890aSEmmanuel Vadot pinctrl-1 = <&i2c3_c_2_sleep>; 665*f126890aSEmmanuel Vadot 666*f126890aSEmmanuel Vadot /* Atmel mXT224E touchscreen */ 667*f126890aSEmmanuel Vadot touchscreen@4a { 668*f126890aSEmmanuel Vadot compatible = "atmel,maxtouch"; 669*f126890aSEmmanuel Vadot reg = <0x4a>; 670*f126890aSEmmanuel Vadot /* GPIO218 (TSP_INT_1V8) */ 671*f126890aSEmmanuel Vadot interrupt-parent = <&gpio6>; 672*f126890aSEmmanuel Vadot interrupts = <26 IRQ_TYPE_EDGE_FALLING>; 673*f126890aSEmmanuel Vadot /* VDDA is "analog supply", 2.57-3.47 V */ 674*f126890aSEmmanuel Vadot vdda-supply = <&ldo_tsp_3v3_reg>; 675*f126890aSEmmanuel Vadot /* VDD is "digital supply" 1.71-3.47V */ 676*f126890aSEmmanuel Vadot vdd-supply = <&ldo_tsp_1v8_reg>; 677*f126890aSEmmanuel Vadot pinctrl-names = "default"; 678*f126890aSEmmanuel Vadot pinctrl-0 = <&tsp_default>; 679*f126890aSEmmanuel Vadot }; 680*f126890aSEmmanuel Vadot }; 681*f126890aSEmmanuel Vadot 682*f126890aSEmmanuel Vadot mcde@a0350000 { 683*f126890aSEmmanuel Vadot status = "okay"; 684*f126890aSEmmanuel Vadot pinctrl-names = "default"; 685*f126890aSEmmanuel Vadot pinctrl-0 = <&dpi_default_mode>; 686*f126890aSEmmanuel Vadot 687*f126890aSEmmanuel Vadot port { 688*f126890aSEmmanuel Vadot display_out: endpoint { 689*f126890aSEmmanuel Vadot remote-endpoint = <&panel_in>; 690*f126890aSEmmanuel Vadot }; 691*f126890aSEmmanuel Vadot }; 692*f126890aSEmmanuel Vadot }; 693*f126890aSEmmanuel Vadot }; 694*f126890aSEmmanuel Vadot}; 695*f126890aSEmmanuel Vadot 696*f126890aSEmmanuel Vadot&pinctrl { 697*f126890aSEmmanuel Vadot /* 698*f126890aSEmmanuel Vadot * This extends the MC0_A_2 default config to include 699*f126890aSEmmanuel Vadot * the card detect GPIO217 line. 700*f126890aSEmmanuel Vadot */ 701*f126890aSEmmanuel Vadot sdi0 { 702*f126890aSEmmanuel Vadot mc0_a_2_default { 703*f126890aSEmmanuel Vadot default_cfg4 { 704*f126890aSEmmanuel Vadot pins = "GPIO217_AH12"; /* card detect */ 705*f126890aSEmmanuel Vadot ste,config = <&gpio_in_pd>; 706*f126890aSEmmanuel Vadot }; 707*f126890aSEmmanuel Vadot }; 708*f126890aSEmmanuel Vadot }; 709*f126890aSEmmanuel Vadot mcde { 710*f126890aSEmmanuel Vadot dpi_default_mode: dpi_default { 711*f126890aSEmmanuel Vadot default_mux1 { 712*f126890aSEmmanuel Vadot /* Mux in all the data lines */ 713*f126890aSEmmanuel Vadot function = "lcd"; 714*f126890aSEmmanuel Vadot groups = 715*f126890aSEmmanuel Vadot /* Data lines D0-D7 GPIO70..GPIO77 */ 716*f126890aSEmmanuel Vadot "lcd_d0_d7_a_1", 717*f126890aSEmmanuel Vadot /* Data lines D8-D11 GPIO78..GPIO81 */ 718*f126890aSEmmanuel Vadot "lcd_d8_d11_a_1", 719*f126890aSEmmanuel Vadot /* Data lines D12-D15 GPIO82..GPIO85 */ 720*f126890aSEmmanuel Vadot "lcd_d12_d15_a_1", 721*f126890aSEmmanuel Vadot /* Data lines D16-D23 GPIO161..GPIO168 */ 722*f126890aSEmmanuel Vadot "lcd_d16_d23_b_1"; 723*f126890aSEmmanuel Vadot }; 724*f126890aSEmmanuel Vadot default_mux2 { 725*f126890aSEmmanuel Vadot function = "lcda"; 726*f126890aSEmmanuel Vadot /* Clock line on GPIO150, DE, VSO, HSO on GPIO169..GPIO171 */ 727*f126890aSEmmanuel Vadot groups = "lcdaclk_b_1", "lcda_b_1"; 728*f126890aSEmmanuel Vadot }; 729*f126890aSEmmanuel Vadot /* Input, no pull-up is the default state for pins used for an alt function */ 730*f126890aSEmmanuel Vadot default_cfg1 { 731*f126890aSEmmanuel Vadot pins = "GPIO150_C14", "GPIO169_D22", "GPIO170_C23", "GPIO171_D23"; 732*f126890aSEmmanuel Vadot ste,config = <&in_nopull>; 733*f126890aSEmmanuel Vadot }; 734*f126890aSEmmanuel Vadot }; 735*f126890aSEmmanuel Vadot }; 736*f126890aSEmmanuel Vadot /* GPIO for panel reset control */ 737*f126890aSEmmanuel Vadot panel { 738*f126890aSEmmanuel Vadot panel_default_mode: panel_default { 739*f126890aSEmmanuel Vadot janice_cfg1 { 740*f126890aSEmmanuel Vadot /* Reset line */ 741*f126890aSEmmanuel Vadot pins = "GPIO139_C9"; 742*f126890aSEmmanuel Vadot ste,config = <&gpio_out_lo>; 743*f126890aSEmmanuel Vadot }; 744*f126890aSEmmanuel Vadot }; 745*f126890aSEmmanuel Vadot }; 746*f126890aSEmmanuel Vadot /* GPIO that enables the LDO regulator for the eMMC */ 747*f126890aSEmmanuel Vadot emmc-ldo { 748*f126890aSEmmanuel Vadot emmc_ldo_en_default_mode: emmc_ldo_default { 749*f126890aSEmmanuel Vadot /* LDO enable on GPIO6 */ 750*f126890aSEmmanuel Vadot janice_cfg1 { 751*f126890aSEmmanuel Vadot pins = "GPIO6_AF6"; 752*f126890aSEmmanuel Vadot ste,config = <&gpio_out_hi>; 753*f126890aSEmmanuel Vadot }; 754*f126890aSEmmanuel Vadot }; 755*f126890aSEmmanuel Vadot }; 756*f126890aSEmmanuel Vadot /* GPIO that enables the LDO regulator for the touchscreen */ 757*f126890aSEmmanuel Vadot tsp-ldo { 758*f126890aSEmmanuel Vadot tsp_ldo_en_default_mode: tsp_ldo_default { 759*f126890aSEmmanuel Vadot /* LDO enable on GPIO94 */ 760*f126890aSEmmanuel Vadot janice_cfg1 { 761*f126890aSEmmanuel Vadot pins = "GPIO94_D7"; 762*f126890aSEmmanuel Vadot ste,config = <&gpio_out_hi>; 763*f126890aSEmmanuel Vadot }; 764*f126890aSEmmanuel Vadot }; 765*f126890aSEmmanuel Vadot }; 766*f126890aSEmmanuel Vadot /* GPIO that enables the LDO regulator for the key LED */ 767*f126890aSEmmanuel Vadot key-led { 768*f126890aSEmmanuel Vadot en_led_ldo_default_mode: en_led_ldo_default { 769*f126890aSEmmanuel Vadot /* EN_LED_LDO on GPIO68 */ 770*f126890aSEmmanuel Vadot janice_cfg1 { 771*f126890aSEmmanuel Vadot pins = "GPIO68_E1"; 772*f126890aSEmmanuel Vadot ste,config = <&gpio_out_hi>; 773*f126890aSEmmanuel Vadot }; 774*f126890aSEmmanuel Vadot }; 775*f126890aSEmmanuel Vadot }; 776*f126890aSEmmanuel Vadot /* GPIO that enables the LDO regulator for the touchkeys */ 777*f126890aSEmmanuel Vadot touchkey-ldo { 778*f126890aSEmmanuel Vadot tsp_ldo_on2_default_mode: tsp_ldo_on2_default { 779*f126890aSEmmanuel Vadot /* TSP_LDO_ON2 on GPIO89 */ 780*f126890aSEmmanuel Vadot janice_cfg1 { 781*f126890aSEmmanuel Vadot pins = "GPIO89_E6"; 782*f126890aSEmmanuel Vadot ste,config = <&gpio_out_lo>; 783*f126890aSEmmanuel Vadot }; 784*f126890aSEmmanuel Vadot }; 785*f126890aSEmmanuel Vadot }; 786*f126890aSEmmanuel Vadot touchkey { 787*f126890aSEmmanuel Vadot touchkey_default_mode: touchkey_default { 788*f126890aSEmmanuel Vadot janice_cfg1 { 789*f126890aSEmmanuel Vadot /* Interrupt */ 790*f126890aSEmmanuel Vadot pins = "GPIO198_AG25"; 791*f126890aSEmmanuel Vadot ste,config = <&gpio_in_nopull>; 792*f126890aSEmmanuel Vadot }; 793*f126890aSEmmanuel Vadot janice_cfg2 { 794*f126890aSEmmanuel Vadot /* Reset, actually completely unused (not routed) */ 795*f126890aSEmmanuel Vadot pins = "GPIO205_AG23"; 796*f126890aSEmmanuel Vadot ste,config = <&gpio_in_pd>; 797*f126890aSEmmanuel Vadot }; 798*f126890aSEmmanuel Vadot }; 799*f126890aSEmmanuel Vadot }; 800*f126890aSEmmanuel Vadot /* GPIO that enabled the LDO regulator for the LCD display */ 801*f126890aSEmmanuel Vadot lcd-ldo { 802*f126890aSEmmanuel Vadot lcd_pwr_en_default_mode: lcd_pwr_en_default { 803*f126890aSEmmanuel Vadot /* LCD_PWR_EN on GPIO219 */ 804*f126890aSEmmanuel Vadot janice_cfg1 { 805*f126890aSEmmanuel Vadot pins = "GPIO219_AG10"; 806*f126890aSEmmanuel Vadot ste,config = <&gpio_out_hi>; 807*f126890aSEmmanuel Vadot }; 808*f126890aSEmmanuel Vadot }; 809*f126890aSEmmanuel Vadot }; 810*f126890aSEmmanuel Vadot /* GPIO that enables the WLAN internal LDO regulators */ 811*f126890aSEmmanuel Vadot wlan-ldo { 812*f126890aSEmmanuel Vadot wlan_ldo_en_default: wlan_ldo_default { 813*f126890aSEmmanuel Vadot /* GPIO215 named WLAN_RST_N */ 814*f126890aSEmmanuel Vadot janice_cfg1 { 815*f126890aSEmmanuel Vadot pins = "GPIO215_AH13"; 816*f126890aSEmmanuel Vadot ste,config = <&gpio_out_lo>; 817*f126890aSEmmanuel Vadot }; 818*f126890aSEmmanuel Vadot }; 819*f126890aSEmmanuel Vadot }; 820*f126890aSEmmanuel Vadot /* Flash and torch */ 821*f126890aSEmmanuel Vadot flash { 822*f126890aSEmmanuel Vadot gpio_flash_default_mode: flash_default { 823*f126890aSEmmanuel Vadot janice_cfg1 { 824*f126890aSEmmanuel Vadot pins = "GPIO140_B11", "GPIO141_C12"; 825*f126890aSEmmanuel Vadot ste,config = <&gpio_out_lo>; 826*f126890aSEmmanuel Vadot }; 827*f126890aSEmmanuel Vadot }; 828*f126890aSEmmanuel Vadot }; 829*f126890aSEmmanuel Vadot /* GPIO keys */ 830*f126890aSEmmanuel Vadot gpio-keys { 831*f126890aSEmmanuel Vadot gpio_keys_default_mode: gpio_keys_default { 832*f126890aSEmmanuel Vadot skomer_cfg1 { 833*f126890aSEmmanuel Vadot pins = "GPIO67_G2", /* VOL UP */ 834*f126890aSEmmanuel Vadot "GPIO91_B6", /* HOME */ 835*f126890aSEmmanuel Vadot "GPIO92_D6"; /* VOL DOWN */ 836*f126890aSEmmanuel Vadot ste,config = <&gpio_in_pu>; 837*f126890aSEmmanuel Vadot }; 838*f126890aSEmmanuel Vadot }; 839*f126890aSEmmanuel Vadot }; 840*f126890aSEmmanuel Vadot /* Interrupt line for the Atmel MXT228 touchscreen */ 841*f126890aSEmmanuel Vadot tsp { 842*f126890aSEmmanuel Vadot tsp_default: tsp_default { 843*f126890aSEmmanuel Vadot janice_cfg1 { 844*f126890aSEmmanuel Vadot pins = "GPIO218_AH11"; /* TSP_INT_1V8 */ 845*f126890aSEmmanuel Vadot ste,config = <&gpio_in_nopull>; 846*f126890aSEmmanuel Vadot }; 847*f126890aSEmmanuel Vadot }; 848*f126890aSEmmanuel Vadot }; 849*f126890aSEmmanuel Vadot /* Reset line for the Yamaha YAS529 magnetometer */ 850*f126890aSEmmanuel Vadot yas529 { 851*f126890aSEmmanuel Vadot yas529_default: yas529_janice { 852*f126890aSEmmanuel Vadot janice_cfg1 { 853*f126890aSEmmanuel Vadot pins = "GPIO204_AF23"; 854*f126890aSEmmanuel Vadot ste,config = <&gpio_out_hi>; 855*f126890aSEmmanuel Vadot }; 856*f126890aSEmmanuel Vadot }; 857*f126890aSEmmanuel Vadot }; 858*f126890aSEmmanuel Vadot /* Interrupt line for light/proximity sensor GP2AP002 */ 859*f126890aSEmmanuel Vadot gp2ap002 { 860*f126890aSEmmanuel Vadot gp2ap002_janice_default: gp2ap002_janice { 861*f126890aSEmmanuel Vadot janice_cfg1 { 862*f126890aSEmmanuel Vadot pins = "GPIO146_D13"; 863*f126890aSEmmanuel Vadot ste,config = <&gpio_in_nopull>; 864*f126890aSEmmanuel Vadot }; 865*f126890aSEmmanuel Vadot }; 866*f126890aSEmmanuel Vadot }; 867*f126890aSEmmanuel Vadot /* Interrupt line for Invensense MPU3050 gyroscope */ 868*f126890aSEmmanuel Vadot mpu3050 { 869*f126890aSEmmanuel Vadot mpu3050_janice_default: mpu3050_janice { 870*f126890aSEmmanuel Vadot janice_cfg1 { 871*f126890aSEmmanuel Vadot /* GPIO226 used for IRQ */ 872*f126890aSEmmanuel Vadot pins = "GPIO226_AF8"; 873*f126890aSEmmanuel Vadot ste,config = <&gpio_in_nopull>; 874*f126890aSEmmanuel Vadot }; 875*f126890aSEmmanuel Vadot }; 876*f126890aSEmmanuel Vadot }; 877*f126890aSEmmanuel Vadot /* GPIO-based I2C bus for magnetometer and NCP6914 */ 878*f126890aSEmmanuel Vadot i2c-gpio-0 { 879*f126890aSEmmanuel Vadot i2c_gpio_0_default: i2c_gpio_0 { 880*f126890aSEmmanuel Vadot janice_cfg1 { 881*f126890aSEmmanuel Vadot pins = "GPIO143_D12", "GPIO144_B13"; 882*f126890aSEmmanuel Vadot ste,config = <&gpio_in_nopull>; 883*f126890aSEmmanuel Vadot }; 884*f126890aSEmmanuel Vadot }; 885*f126890aSEmmanuel Vadot }; 886*f126890aSEmmanuel Vadot /* GPIO-based I2C bus for the Cypress touchkeys */ 887*f126890aSEmmanuel Vadot i2c-gpio-1 { 888*f126890aSEmmanuel Vadot i2c_gpio_1_default: i2c_gpio_1 { 889*f126890aSEmmanuel Vadot janice_cfg1 { 890*f126890aSEmmanuel Vadot pins = "GPIO196_AG26", "GPIO197_AH24"; 891*f126890aSEmmanuel Vadot ste,config = <&gpio_in_nopull>; 892*f126890aSEmmanuel Vadot }; 893*f126890aSEmmanuel Vadot }; 894*f126890aSEmmanuel Vadot }; 895*f126890aSEmmanuel Vadot /* GPIO-based I2C bus for the Immersion ISA1200 */ 896*f126890aSEmmanuel Vadot i2c-gpio-2 { 897*f126890aSEmmanuel Vadot i2c_gpio_2_default: i2c_gpio_2 { 898*f126890aSEmmanuel Vadot janice_cfg1 { 899*f126890aSEmmanuel Vadot pins = "GPIO201_AF24", "GPIO202_AF25"; 900*f126890aSEmmanuel Vadot ste,config = <&gpio_in_nopull>; 901*f126890aSEmmanuel Vadot }; 902*f126890aSEmmanuel Vadot }; 903*f126890aSEmmanuel Vadot }; 904*f126890aSEmmanuel Vadot /* GPIO-based I2C bus for the NFC */ 905*f126890aSEmmanuel Vadot i2c-gpio-3 { 906*f126890aSEmmanuel Vadot i2c_gpio_3_default: i2c_gpio_3 { 907*f126890aSEmmanuel Vadot janice_cfg1 { 908*f126890aSEmmanuel Vadot pins = "GPIO151_D17", "GPIO152_D16"; 909*f126890aSEmmanuel Vadot ste,config = <&gpio_in_nopull>; 910*f126890aSEmmanuel Vadot }; 911*f126890aSEmmanuel Vadot }; 912*f126890aSEmmanuel Vadot }; 913*f126890aSEmmanuel Vadot /* GPIO-based SPI bus for the display */ 914*f126890aSEmmanuel Vadot spi-gpio-0 { 915*f126890aSEmmanuel Vadot spi_gpio_0_default: spi_gpio_0 { 916*f126890aSEmmanuel Vadot janice_cfg1 { 917*f126890aSEmmanuel Vadot pins = "GPIO220_AH10", "GPIO223_AH9", "GPIO224_AG9"; 918*f126890aSEmmanuel Vadot ste,config = <&gpio_out_hi>; 919*f126890aSEmmanuel Vadot }; 920*f126890aSEmmanuel Vadot /* This pin is unused but belongs with this SPI block */ 921*f126890aSEmmanuel Vadot janice_cfg2 { 922*f126890aSEmmanuel Vadot pins = "GPIO225_AG8"; 923*f126890aSEmmanuel Vadot ste,config = <&in_pd>; 924*f126890aSEmmanuel Vadot }; 925*f126890aSEmmanuel Vadot }; 926*f126890aSEmmanuel Vadot }; 927*f126890aSEmmanuel Vadot wlan { 928*f126890aSEmmanuel Vadot wlan_default_mode: wlan_default { 929*f126890aSEmmanuel Vadot /* GPIO216 for WL_HOST_WAKE */ 930*f126890aSEmmanuel Vadot janice_cfg2 { 931*f126890aSEmmanuel Vadot pins = "GPIO216_AG12"; 932*f126890aSEmmanuel Vadot ste,config = <&gpio_in_pd>; 933*f126890aSEmmanuel Vadot }; 934*f126890aSEmmanuel Vadot }; 935*f126890aSEmmanuel Vadot }; 936*f126890aSEmmanuel Vadot bluetooth { 937*f126890aSEmmanuel Vadot bluetooth_default_mode: bluetooth_default { 938*f126890aSEmmanuel Vadot /* GPIO199 BT_WAKE and GPIO222 BT_VREG_ON */ 939*f126890aSEmmanuel Vadot janice_cfg1 { 940*f126890aSEmmanuel Vadot pins = "GPIO199_AH23", "GPIO222_AJ9"; 941*f126890aSEmmanuel Vadot ste,config = <&gpio_out_lo>; 942*f126890aSEmmanuel Vadot }; 943*f126890aSEmmanuel Vadot /* GPIO97 BT_HOST_WAKE */ 944*f126890aSEmmanuel Vadot janice_cfg2 { 945*f126890aSEmmanuel Vadot pins = "GPIO97_D9"; 946*f126890aSEmmanuel Vadot ste,config = <&gpio_in_nopull>; 947*f126890aSEmmanuel Vadot }; 948*f126890aSEmmanuel Vadot /* GPIO209 BT_RST_N */ 949*f126890aSEmmanuel Vadot janice_cfg3 { 950*f126890aSEmmanuel Vadot pins = "GPIO209_AG15"; 951*f126890aSEmmanuel Vadot ste,config = <&gpio_out_hi>; 952*f126890aSEmmanuel Vadot }; 953*f126890aSEmmanuel Vadot }; 954*f126890aSEmmanuel Vadot }; 955*f126890aSEmmanuel Vadot /* Interrupt line for TI TSU6111 Micro USB switch */ 956*f126890aSEmmanuel Vadot tsu6111 { 957*f126890aSEmmanuel Vadot tsu6111_janice_default: tsu6111_janice { 958*f126890aSEmmanuel Vadot janice_cfg1 { 959*f126890aSEmmanuel Vadot /* GPIO95 used for IRQ */ 960*f126890aSEmmanuel Vadot pins = "GPIO95_E8"; 961*f126890aSEmmanuel Vadot ste,config = <&gpio_in_nopull>; 962*f126890aSEmmanuel Vadot }; 963*f126890aSEmmanuel Vadot }; 964*f126890aSEmmanuel Vadot }; 965*f126890aSEmmanuel Vadot nfc { 966*f126890aSEmmanuel Vadot pn544_janice_default: pn544_janice { 967*f126890aSEmmanuel Vadot /* Interrupt line */ 968*f126890aSEmmanuel Vadot janice_cfg1 { 969*f126890aSEmmanuel Vadot pins = "GPIO32_V2"; 970*f126890aSEmmanuel Vadot ste,config = <&gpio_in_nopull>; 971*f126890aSEmmanuel Vadot }; 972*f126890aSEmmanuel Vadot /* Enable and firmware GPIOs */ 973*f126890aSEmmanuel Vadot janice_cfg2 { 974*f126890aSEmmanuel Vadot pins = "GPIO31_V3", "GPIO88_C4"; 975*f126890aSEmmanuel Vadot ste,config = <&gpio_out_lo>; 976*f126890aSEmmanuel Vadot }; 977*f126890aSEmmanuel Vadot }; 978*f126890aSEmmanuel Vadot }; 979*f126890aSEmmanuel Vadot gsd4t { 980*f126890aSEmmanuel Vadot gsd4t_janice_default: gsd4t_janice { 981*f126890aSEmmanuel Vadot /* Reset line, start out asserted */ 982*f126890aSEmmanuel Vadot janice_cfg1 { 983*f126890aSEmmanuel Vadot pins = "GPIO21_AB3"; 984*f126890aSEmmanuel Vadot ste,config = <&gpio_out_lo>; 985*f126890aSEmmanuel Vadot }; 986*f126890aSEmmanuel Vadot /* GPS_ON_OFF, start out deasserted (off) */ 987*f126890aSEmmanuel Vadot janice_cfg2 { 988*f126890aSEmmanuel Vadot pins = "GPIO96_D8"; 989*f126890aSEmmanuel Vadot ste,config = <&gpio_out_lo>; 990*f126890aSEmmanuel Vadot }; 991*f126890aSEmmanuel Vadot /* Unused power enablement line, used in R0.0 and R0.1 boards */ 992*f126890aSEmmanuel Vadot janice_cfg3 { 993*f126890aSEmmanuel Vadot pins = "GPIO86_C6"; 994*f126890aSEmmanuel Vadot ste,config = <&gpio_in_pd>; 995*f126890aSEmmanuel Vadot }; 996*f126890aSEmmanuel Vadot }; 997*f126890aSEmmanuel Vadot }; 998*f126890aSEmmanuel Vadot}; 999