1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only 2*f126890aSEmmanuel Vadot/* 3*f126890aSEmmanuel Vadot * Devicetree for the Samsung XCover 2 GT-S7710 also known as Skomer. 4*f126890aSEmmanuel Vadot */ 5*f126890aSEmmanuel Vadot 6*f126890aSEmmanuel Vadot/dts-v1/; 7*f126890aSEmmanuel Vadot#include "ste-db8500.dtsi" 8*f126890aSEmmanuel Vadot#include "ste-ab8505.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 XCover 2 (GT-S7710)"; 17*f126890aSEmmanuel Vadot compatible = "samsung,skomer", "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,eb485159lu"; 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 /* TI TXS0206 level translator for 2.9 V */ 54*f126890aSEmmanuel Vadot sd_level_translator: regulator-gpio { 55*f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 56*f126890aSEmmanuel Vadot 57*f126890aSEmmanuel Vadot /* GPIO87 EN */ 58*f126890aSEmmanuel Vadot gpios = <&gpio2 23 GPIO_ACTIVE_HIGH>; 59*f126890aSEmmanuel Vadot enable-active-high; 60*f126890aSEmmanuel Vadot 61*f126890aSEmmanuel Vadot regulator-name = "sd-level-translator"; 62*f126890aSEmmanuel Vadot regulator-min-microvolt = <2900000>; 63*f126890aSEmmanuel Vadot regulator-max-microvolt = <2900000>; 64*f126890aSEmmanuel Vadot regulator-type = "voltage"; 65*f126890aSEmmanuel Vadot 66*f126890aSEmmanuel Vadot startup-delay-us = <200>; 67*f126890aSEmmanuel Vadot 68*f126890aSEmmanuel Vadot pinctrl-names = "default"; 69*f126890aSEmmanuel Vadot pinctrl-0 = <&sd_level_translator_default>; 70*f126890aSEmmanuel Vadot }; 71*f126890aSEmmanuel Vadot 72*f126890aSEmmanuel Vadot /* External LDO MIC5366-3.3YMT for eMMC */ 73*f126890aSEmmanuel Vadot ldo_3v3_reg: regulator-gpio-ldo-3v3 { 74*f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 75*f126890aSEmmanuel Vadot regulator-name = "en-3v3-fixed-supply"; 76*f126890aSEmmanuel Vadot regulator-min-microvolt = <3300000>; 77*f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 78*f126890aSEmmanuel Vadot gpio = <&gpio6 31 GPIO_ACTIVE_HIGH>; 79*f126890aSEmmanuel Vadot startup-delay-us = <5000>; 80*f126890aSEmmanuel Vadot enable-active-high; 81*f126890aSEmmanuel Vadot pinctrl-names = "default"; 82*f126890aSEmmanuel Vadot pinctrl-0 = <&emmc_ldo_en_default_mode>; 83*f126890aSEmmanuel Vadot }; 84*f126890aSEmmanuel Vadot 85*f126890aSEmmanuel Vadot wlan_en: regulator-gpio-wlan-en { 86*f126890aSEmmanuel Vadot compatible = "regulator-fixed"; 87*f126890aSEmmanuel Vadot regulator-name = "wl-reg-on"; 88*f126890aSEmmanuel Vadot regulator-min-microvolt = <3000000>; 89*f126890aSEmmanuel Vadot regulator-max-microvolt = <3000000>; 90*f126890aSEmmanuel Vadot startup-delay-us = <200000>; 91*f126890aSEmmanuel Vadot /* GPIO215 WLAN_EN */ 92*f126890aSEmmanuel Vadot gpio = <&gpio6 23 GPIO_ACTIVE_HIGH>; 93*f126890aSEmmanuel Vadot enable-active-high; 94*f126890aSEmmanuel Vadot pinctrl-names = "default"; 95*f126890aSEmmanuel Vadot pinctrl-0 = <&wlan_en_default_mode>; 96*f126890aSEmmanuel Vadot }; 97*f126890aSEmmanuel Vadot 98*f126890aSEmmanuel Vadot vibrator { 99*f126890aSEmmanuel Vadot compatible = "gpio-vibrator"; 100*f126890aSEmmanuel Vadot enable-gpios = <&gpio6 3 GPIO_ACTIVE_HIGH>; 101*f126890aSEmmanuel Vadot pinctrl-names = "default"; 102*f126890aSEmmanuel Vadot pinctrl-0 = <&vibrator_default>; 103*f126890aSEmmanuel Vadot }; 104*f126890aSEmmanuel Vadot 105*f126890aSEmmanuel Vadot gpio-keys { 106*f126890aSEmmanuel Vadot compatible = "gpio-keys"; 107*f126890aSEmmanuel Vadot pinctrl-names = "default"; 108*f126890aSEmmanuel Vadot pinctrl-0 = <&gpio_keys_default_mode>; 109*f126890aSEmmanuel Vadot 110*f126890aSEmmanuel Vadot button-home { 111*f126890aSEmmanuel Vadot linux,code = <KEY_HOME>; 112*f126890aSEmmanuel Vadot label = "HOME"; 113*f126890aSEmmanuel Vadot /* GPIO91 */ 114*f126890aSEmmanuel Vadot gpios = <&gpio2 27 GPIO_ACTIVE_LOW>; 115*f126890aSEmmanuel Vadot }; 116*f126890aSEmmanuel Vadot button-volup { 117*f126890aSEmmanuel Vadot linux,code = <KEY_VOLUMEUP>; 118*f126890aSEmmanuel Vadot label = "VOL+"; 119*f126890aSEmmanuel Vadot /* GPIO67 */ 120*f126890aSEmmanuel Vadot gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; 121*f126890aSEmmanuel Vadot }; 122*f126890aSEmmanuel Vadot button-voldown { 123*f126890aSEmmanuel Vadot linux,code = <KEY_VOLUMEDOWN>; 124*f126890aSEmmanuel Vadot label = "VOL-"; 125*f126890aSEmmanuel Vadot /* GPIO92 */ 126*f126890aSEmmanuel Vadot gpios = <&gpio2 28 GPIO_ACTIVE_LOW>; 127*f126890aSEmmanuel Vadot }; 128*f126890aSEmmanuel Vadot button-menu { 129*f126890aSEmmanuel Vadot linux,code = <KEY_MENU>; 130*f126890aSEmmanuel Vadot label = "MENU"; 131*f126890aSEmmanuel Vadot /* GPIO204 */ 132*f126890aSEmmanuel Vadot gpios = <&gpio6 12 GPIO_ACTIVE_LOW>; 133*f126890aSEmmanuel Vadot }; 134*f126890aSEmmanuel Vadot button-back { 135*f126890aSEmmanuel Vadot linux,code = <KEY_BACK>; 136*f126890aSEmmanuel Vadot label = "BACK"; 137*f126890aSEmmanuel Vadot /* GPIO205 */ 138*f126890aSEmmanuel Vadot gpios = <&gpio6 13 GPIO_ACTIVE_LOW>; 139*f126890aSEmmanuel Vadot }; 140*f126890aSEmmanuel Vadot }; 141*f126890aSEmmanuel Vadot 142*f126890aSEmmanuel Vadot ktd253: backlight { 143*f126890aSEmmanuel Vadot compatible = "kinetic,ktd253"; 144*f126890aSEmmanuel Vadot /* GPIO 69 */ 145*f126890aSEmmanuel Vadot enable-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; 146*f126890aSEmmanuel Vadot /* Default to 13/32 brightness */ 147*f126890aSEmmanuel Vadot default-brightness = <13>; 148*f126890aSEmmanuel Vadot pinctrl-names = "default"; 149*f126890aSEmmanuel Vadot pinctrl-0 = <&gpio_backlight_default_mode>; 150*f126890aSEmmanuel Vadot }; 151*f126890aSEmmanuel Vadot 152*f126890aSEmmanuel Vadot /* Richtek RT8515GQW Flash LED Driver IC */ 153*f126890aSEmmanuel Vadot flash { 154*f126890aSEmmanuel Vadot compatible = "richtek,rt8515"; 155*f126890aSEmmanuel Vadot /* GPIO 140 */ 156*f126890aSEmmanuel Vadot enf-gpios = <&gpio4 12 GPIO_ACTIVE_HIGH>; 157*f126890aSEmmanuel Vadot /* GPIO 141 */ 158*f126890aSEmmanuel Vadot ent-gpios = <&gpio4 13 GPIO_ACTIVE_HIGH>; 159*f126890aSEmmanuel Vadot /* 160*f126890aSEmmanuel Vadot * RFS is 16 kOhm and RTS is 100 kOhm giving 161*f126890aSEmmanuel Vadot * the flash max current 343mA and torch max 162*f126890aSEmmanuel Vadot * current 55 mA. 163*f126890aSEmmanuel Vadot */ 164*f126890aSEmmanuel Vadot richtek,rfs-ohms = <16000>; 165*f126890aSEmmanuel Vadot richtek,rts-ohms = <100000>; 166*f126890aSEmmanuel Vadot pinctrl-names = "default"; 167*f126890aSEmmanuel Vadot pinctrl-0 = <&gpio_flash_default_mode>; 168*f126890aSEmmanuel Vadot 169*f126890aSEmmanuel Vadot led { 170*f126890aSEmmanuel Vadot function = LED_FUNCTION_FLASH; 171*f126890aSEmmanuel Vadot color = <LED_COLOR_ID_WHITE>; 172*f126890aSEmmanuel Vadot flash-max-timeout-us = <250000>; 173*f126890aSEmmanuel Vadot flash-max-microamp = <343750>; 174*f126890aSEmmanuel Vadot led-max-microamp = <55000>; 175*f126890aSEmmanuel Vadot }; 176*f126890aSEmmanuel Vadot }; 177*f126890aSEmmanuel Vadot 178*f126890aSEmmanuel Vadot i2c-gpio-0 { 179*f126890aSEmmanuel Vadot compatible = "i2c-gpio"; 180*f126890aSEmmanuel Vadot sda-gpios = <&gpio4 16 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; 181*f126890aSEmmanuel Vadot scl-gpios = <&gpio4 15 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; 182*f126890aSEmmanuel Vadot pinctrl-names = "default"; 183*f126890aSEmmanuel Vadot pinctrl-0 = <&i2c_gpio_0_default>; 184*f126890aSEmmanuel Vadot #address-cells = <1>; 185*f126890aSEmmanuel Vadot #size-cells = <0>; 186*f126890aSEmmanuel Vadot /* TODO: this should be used by the NCP6914 Camera power management unit */ 187*f126890aSEmmanuel Vadot }; 188*f126890aSEmmanuel Vadot 189*f126890aSEmmanuel Vadot i2c-gpio-1 { 190*f126890aSEmmanuel Vadot compatible = "i2c-gpio"; 191*f126890aSEmmanuel Vadot sda-gpios = <&gpio4 24 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; 192*f126890aSEmmanuel Vadot scl-gpios = <&gpio4 23 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; 193*f126890aSEmmanuel Vadot pinctrl-names = "default"; 194*f126890aSEmmanuel Vadot pinctrl-0 = <&i2c_gpio_1_default>; 195*f126890aSEmmanuel Vadot #address-cells = <1>; 196*f126890aSEmmanuel Vadot #size-cells = <0>; 197*f126890aSEmmanuel Vadot magnetometer@c { 198*f126890aSEmmanuel Vadot compatible = "alps,hscdtd008a"; 199*f126890aSEmmanuel Vadot reg = <0x0c>; 200*f126890aSEmmanuel Vadot avdd-supply = <&ab8500_ldo_aux1_reg>; 201*f126890aSEmmanuel Vadot dvdd-supply = <&ab8500_ldo_aux8_reg>; 202*f126890aSEmmanuel Vadot }; 203*f126890aSEmmanuel Vadot }; 204*f126890aSEmmanuel Vadot 205*f126890aSEmmanuel Vadot soc { 206*f126890aSEmmanuel Vadot // External Micro SD slot 207*f126890aSEmmanuel Vadot mmc@80126000 { 208*f126890aSEmmanuel Vadot arm,primecell-periphid = <0x10480180>; 209*f126890aSEmmanuel Vadot max-frequency = <100000000>; 210*f126890aSEmmanuel Vadot bus-width = <4>; 211*f126890aSEmmanuel Vadot cap-sd-highspeed; 212*f126890aSEmmanuel Vadot cap-mmc-highspeed; 213*f126890aSEmmanuel Vadot /* All direction control is used */ 214*f126890aSEmmanuel Vadot st,sig-pin-fbclk; 215*f126890aSEmmanuel Vadot full-pwr-cycle; 216*f126890aSEmmanuel Vadot vmmc-supply = <&ab8500_ldo_aux3_reg>; 217*f126890aSEmmanuel Vadot vqmmc-supply = <&sd_level_translator>; 218*f126890aSEmmanuel Vadot pinctrl-names = "default", "sleep"; 219*f126890aSEmmanuel Vadot pinctrl-0 = <&mc0_a_1_default>; 220*f126890aSEmmanuel Vadot pinctrl-1 = <&mc0_a_1_sleep>; 221*f126890aSEmmanuel Vadot status = "okay"; 222*f126890aSEmmanuel Vadot }; 223*f126890aSEmmanuel Vadot 224*f126890aSEmmanuel Vadot // WLAN SDIO channel 225*f126890aSEmmanuel Vadot mmc@80118000 { 226*f126890aSEmmanuel Vadot arm,primecell-periphid = <0x10480180>; 227*f126890aSEmmanuel Vadot max-frequency = <50000000>; 228*f126890aSEmmanuel Vadot bus-width = <4>; 229*f126890aSEmmanuel Vadot non-removable; 230*f126890aSEmmanuel Vadot cap-sd-highspeed; 231*f126890aSEmmanuel Vadot vmmc-supply = <&wlan_en>; 232*f126890aSEmmanuel Vadot pinctrl-names = "default", "sleep"; 233*f126890aSEmmanuel Vadot pinctrl-0 = <&mc1_a_2_default>; 234*f126890aSEmmanuel Vadot pinctrl-1 = <&mc1_a_2_sleep>; 235*f126890aSEmmanuel Vadot status = "okay"; 236*f126890aSEmmanuel Vadot #address-cells = <1>; 237*f126890aSEmmanuel Vadot #size-cells = <0>; 238*f126890aSEmmanuel Vadot 239*f126890aSEmmanuel Vadot wifi@1 { 240*f126890aSEmmanuel Vadot compatible = "brcm,bcm4334-fmac", "brcm,bcm4329-fmac"; 241*f126890aSEmmanuel Vadot reg = <1>; 242*f126890aSEmmanuel Vadot /* GPIO216 WL_HOST_WAKE */ 243*f126890aSEmmanuel Vadot interrupt-parent = <&gpio6>; 244*f126890aSEmmanuel Vadot interrupts = <24 IRQ_TYPE_EDGE_FALLING>; 245*f126890aSEmmanuel Vadot interrupt-names = "host-wake"; 246*f126890aSEmmanuel Vadot pinctrl-names = "default"; 247*f126890aSEmmanuel Vadot pinctrl-0 = <&wlan_default_mode>; 248*f126890aSEmmanuel Vadot }; 249*f126890aSEmmanuel Vadot }; 250*f126890aSEmmanuel Vadot 251*f126890aSEmmanuel Vadot /* 252*f126890aSEmmanuel Vadot * eMMC seems to be mostly Samsung KLM4G1YE4C "4YMD1R" 253*f126890aSEmmanuel Vadot */ 254*f126890aSEmmanuel Vadot mmc@80005000 { 255*f126890aSEmmanuel Vadot arm,primecell-periphid = <0x10480180>; 256*f126890aSEmmanuel Vadot max-frequency = <100000000>; 257*f126890aSEmmanuel Vadot bus-width = <8>; 258*f126890aSEmmanuel Vadot non-removable; 259*f126890aSEmmanuel Vadot cap-mmc-highspeed; 260*f126890aSEmmanuel Vadot mmc-ddr-1_8v; 261*f126890aSEmmanuel Vadot no-sdio; 262*f126890aSEmmanuel Vadot no-sd; 263*f126890aSEmmanuel Vadot /* From datasheet page 26 figure 9: 300 ms set-up time for 4GB */ 264*f126890aSEmmanuel Vadot post-power-on-delay-ms = <300>; 265*f126890aSEmmanuel Vadot vmmc-supply = <&ldo_3v3_reg>; 266*f126890aSEmmanuel Vadot pinctrl-names = "default", "sleep"; 267*f126890aSEmmanuel Vadot pinctrl-0 = <&mc2_a_1_default>; 268*f126890aSEmmanuel Vadot pinctrl-1 = <&mc2_a_1_sleep>; 269*f126890aSEmmanuel Vadot 270*f126890aSEmmanuel Vadot status = "okay"; 271*f126890aSEmmanuel Vadot }; 272*f126890aSEmmanuel Vadot 273*f126890aSEmmanuel Vadot /* GBF (Bluetooth) UART */ 274*f126890aSEmmanuel Vadot serial@80120000 { 275*f126890aSEmmanuel Vadot pinctrl-names = "default", "sleep"; 276*f126890aSEmmanuel Vadot pinctrl-0 = <&u0_a_1_default>; 277*f126890aSEmmanuel Vadot pinctrl-1 = <&u0_a_1_sleep>; 278*f126890aSEmmanuel Vadot status = "okay"; 279*f126890aSEmmanuel Vadot 280*f126890aSEmmanuel Vadot /* FIXME: not quite working yet, probably needs regulators */ 281*f126890aSEmmanuel Vadot bluetooth { 282*f126890aSEmmanuel Vadot /* BCM4334B0 actually */ 283*f126890aSEmmanuel Vadot compatible = "brcm,bcm4330-bt"; 284*f126890aSEmmanuel Vadot shutdown-gpios = <&gpio6 30 GPIO_ACTIVE_HIGH>; 285*f126890aSEmmanuel Vadot device-wakeup-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>; 286*f126890aSEmmanuel Vadot host-wakeup-gpios = <&gpio3 1 GPIO_ACTIVE_HIGH>; 287*f126890aSEmmanuel Vadot pinctrl-names = "default"; 288*f126890aSEmmanuel Vadot pinctrl-0 = <&bluetooth_default_mode>; 289*f126890aSEmmanuel Vadot }; 290*f126890aSEmmanuel Vadot }; 291*f126890aSEmmanuel Vadot 292*f126890aSEmmanuel Vadot /* GPS UART */ 293*f126890aSEmmanuel Vadot serial@80121000 { 294*f126890aSEmmanuel Vadot status = "okay"; 295*f126890aSEmmanuel Vadot pinctrl-names = "default", "sleep"; 296*f126890aSEmmanuel Vadot pinctrl-0 = <&u1rxtx_a_1_default &u1ctsrts_a_1_default>; 297*f126890aSEmmanuel Vadot pinctrl-1 = <&u1rxtx_a_1_sleep &u1ctsrts_a_1_sleep>; 298*f126890aSEmmanuel Vadot 299*f126890aSEmmanuel Vadot gnss { 300*f126890aSEmmanuel Vadot /* The CSRG05TA03-ICJE-R is a SirfStarV 5t chip */ 301*f126890aSEmmanuel Vadot compatible = "csr,csrg05ta03-icje-r"; 302*f126890aSEmmanuel Vadot /* GPS_RSTN on GPIO209 */ 303*f126890aSEmmanuel Vadot reset-gpios = <&gpio6 17 GPIO_ACTIVE_LOW>; 304*f126890aSEmmanuel Vadot /* GPS_ON_OFF on GPIO86 */ 305*f126890aSEmmanuel Vadot sirf,onoff-gpios = <&gpio2 22 GPIO_ACTIVE_HIGH>; 306*f126890aSEmmanuel Vadot /* GPS_1V8 (VSMPS2) */ 307*f126890aSEmmanuel Vadot vcc-supply = <&db8500_vsmps2_reg>; 308*f126890aSEmmanuel Vadot pinctrl-names = "default"; 309*f126890aSEmmanuel Vadot pinctrl-0 = <&g05ta03_skomer_default>; 310*f126890aSEmmanuel Vadot /* According to /etc/sirfgps.conf */ 311*f126890aSEmmanuel Vadot current-speed = <460800>; 312*f126890aSEmmanuel Vadot }; 313*f126890aSEmmanuel Vadot }; 314*f126890aSEmmanuel Vadot 315*f126890aSEmmanuel Vadot /* Debugging console UART connected to AB8505 USB */ 316*f126890aSEmmanuel Vadot serial@80007000 { 317*f126890aSEmmanuel Vadot status = "okay"; 318*f126890aSEmmanuel Vadot pinctrl-names = "default", "sleep"; 319*f126890aSEmmanuel Vadot pinctrl-0 = <&u2rxtx_c_1_default>; 320*f126890aSEmmanuel Vadot pinctrl-1 = <&u2rxtx_c_1_sleep>; 321*f126890aSEmmanuel Vadot }; 322*f126890aSEmmanuel Vadot 323*f126890aSEmmanuel Vadot prcmu@80157000 { 324*f126890aSEmmanuel Vadot ab8505 { 325*f126890aSEmmanuel Vadot phy { 326*f126890aSEmmanuel Vadot pinctrl-names = "default", "sleep"; 327*f126890aSEmmanuel Vadot pinctrl-0 = <&usb_a_1_default>; 328*f126890aSEmmanuel Vadot pinctrl-1 = <&usb_a_1_sleep>; 329*f126890aSEmmanuel Vadot }; 330*f126890aSEmmanuel Vadot 331*f126890aSEmmanuel Vadot ab8500_fg { 332*f126890aSEmmanuel Vadot line-impedance-micro-ohms = <16000>; 333*f126890aSEmmanuel Vadot }; 334*f126890aSEmmanuel Vadot 335*f126890aSEmmanuel Vadot regulator { 336*f126890aSEmmanuel Vadot ab8500_ldo_aux1 { 337*f126890aSEmmanuel Vadot /* Used for VDD for sensors */ 338*f126890aSEmmanuel Vadot regulator-name = "AUX1"; 339*f126890aSEmmanuel Vadot regulator-min-microvolt = <3000000>; 340*f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 341*f126890aSEmmanuel Vadot }; 342*f126890aSEmmanuel Vadot 343*f126890aSEmmanuel Vadot ab8500_ldo_aux2 { 344*f126890aSEmmanuel Vadot /* Supplies the Cypress TMA140 touchscreen only with 3.0V */ 345*f126890aSEmmanuel Vadot regulator-name = "AUX2"; 346*f126890aSEmmanuel Vadot regulator-min-microvolt = <3000000>; 347*f126890aSEmmanuel Vadot regulator-max-microvolt = <3000000>; 348*f126890aSEmmanuel Vadot }; 349*f126890aSEmmanuel Vadot 350*f126890aSEmmanuel Vadot ab8500_ldo_aux3 { 351*f126890aSEmmanuel Vadot /* Used for voltage for external MMC/SD card */ 352*f126890aSEmmanuel Vadot regulator-name = "AUX3"; 353*f126890aSEmmanuel Vadot regulator-min-microvolt = <1100000>; 354*f126890aSEmmanuel Vadot regulator-max-microvolt = <3300000>; 355*f126890aSEmmanuel Vadot }; 356*f126890aSEmmanuel Vadot 357*f126890aSEmmanuel Vadot ab8500_ldo_aux4 { 358*f126890aSEmmanuel Vadot regulator-name = "AUX4"; 359*f126890aSEmmanuel Vadot /* Hammer to 3.0V for the display */ 360*f126890aSEmmanuel Vadot regulator-min-microvolt = <3000000>; 361*f126890aSEmmanuel Vadot regulator-max-microvolt = <3000000>; 362*f126890aSEmmanuel Vadot }; 363*f126890aSEmmanuel Vadot 364*f126890aSEmmanuel Vadot ab8500_ldo_aux5 { 365*f126890aSEmmanuel Vadot regulator-name = "AUX5"; 366*f126890aSEmmanuel Vadot /* Intended for 1V8 for touchscreen but actually left unused */ 367*f126890aSEmmanuel Vadot regulator-min-microvolt = <1050000>; 368*f126890aSEmmanuel Vadot regulator-max-microvolt = <2790000>; 369*f126890aSEmmanuel Vadot }; 370*f126890aSEmmanuel Vadot 371*f126890aSEmmanuel Vadot ab8500_ldo_aux6 { 372*f126890aSEmmanuel Vadot regulator-name = "AUX6"; 373*f126890aSEmmanuel Vadot /* Hammer to 1.8V for the display */ 374*f126890aSEmmanuel Vadot regulator-min-microvolt = <1800000>; 375*f126890aSEmmanuel Vadot regulator-max-microvolt = <1800000>; 376*f126890aSEmmanuel Vadot }; 377*f126890aSEmmanuel Vadot 378*f126890aSEmmanuel Vadot ab8500_ldo_aux8 { 379*f126890aSEmmanuel Vadot /* Mostly VIO for sensors */ 380*f126890aSEmmanuel Vadot regulator-name = "AUX8"; 381*f126890aSEmmanuel Vadot }; 382*f126890aSEmmanuel Vadot }; 383*f126890aSEmmanuel Vadot }; 384*f126890aSEmmanuel Vadot }; 385*f126890aSEmmanuel Vadot 386*f126890aSEmmanuel Vadot /* I2C0 */ 387*f126890aSEmmanuel Vadot i2c@80004000 { 388*f126890aSEmmanuel Vadot status = "okay"; 389*f126890aSEmmanuel Vadot 390*f126890aSEmmanuel Vadot pinctrl-names = "default", "sleep"; 391*f126890aSEmmanuel Vadot pinctrl-0 = <&i2c0_a_1_default>; 392*f126890aSEmmanuel Vadot pinctrl-1 = <&i2c0_a_1_sleep>; 393*f126890aSEmmanuel Vadot 394*f126890aSEmmanuel Vadot proximity@44 { 395*f126890aSEmmanuel Vadot compatible = "sharp,gp2ap002s00f"; 396*f126890aSEmmanuel Vadot clock-frequency = <400000>; 397*f126890aSEmmanuel Vadot reg = <0x44>; 398*f126890aSEmmanuel Vadot 399*f126890aSEmmanuel Vadot interrupt-parent = <&gpio4>; 400*f126890aSEmmanuel Vadot interrupts = <18 IRQ_TYPE_EDGE_FALLING>; 401*f126890aSEmmanuel Vadot vdd-supply = <&ab8500_ldo_aux1_reg>; 402*f126890aSEmmanuel Vadot vio-supply = <&ab8500_ldo_aux8_reg>; 403*f126890aSEmmanuel Vadot pinctrl-names = "default"; 404*f126890aSEmmanuel Vadot pinctrl-0 = <&gp2ap002_skomer_default>; 405*f126890aSEmmanuel Vadot sharp,proximity-far-hysteresis = /bits/ 8 <0x2f>; 406*f126890aSEmmanuel Vadot sharp,proximity-close-hysteresis = /bits/ 8 <0x0f>; 407*f126890aSEmmanuel Vadot }; 408*f126890aSEmmanuel Vadot }; 409*f126890aSEmmanuel Vadot 410*f126890aSEmmanuel Vadot 411*f126890aSEmmanuel Vadot /* I2C2 */ 412*f126890aSEmmanuel Vadot i2c@80128000 { 413*f126890aSEmmanuel Vadot status = "okay"; 414*f126890aSEmmanuel Vadot 415*f126890aSEmmanuel Vadot pinctrl-names = "default", "sleep"; 416*f126890aSEmmanuel Vadot pinctrl-0 = <&i2c2_b_2_default>; 417*f126890aSEmmanuel Vadot pinctrl-1 = <&i2c2_b_2_sleep>; 418*f126890aSEmmanuel Vadot 419*f126890aSEmmanuel Vadot accel@18 { 420*f126890aSEmmanuel Vadot compatible = "bosch,bma254"; 421*f126890aSEmmanuel Vadot clock-frequency = <400000>; 422*f126890aSEmmanuel Vadot reg = <0x18>; 423*f126890aSEmmanuel Vadot 424*f126890aSEmmanuel Vadot /* GPIO224 used as "smart alert" interrupt */ 425*f126890aSEmmanuel Vadot interrupt-parent = <&gpio7>; 426*f126890aSEmmanuel Vadot interrupts = <0 IRQ_TYPE_EDGE_RISING>; 427*f126890aSEmmanuel Vadot 428*f126890aSEmmanuel Vadot mount-matrix = "0", "-1", "0", 429*f126890aSEmmanuel Vadot "1", "0", "0", 430*f126890aSEmmanuel Vadot "0", "0", "1"; 431*f126890aSEmmanuel Vadot vdd-supply = <&ab8500_ldo_aux1_reg>; 432*f126890aSEmmanuel Vadot vddio-supply = <&ab8500_ldo_aux8_reg>; 433*f126890aSEmmanuel Vadot pinctrl-names = "default"; 434*f126890aSEmmanuel Vadot pinctrl-0 = <&bma254_skomer_default>; 435*f126890aSEmmanuel Vadot }; 436*f126890aSEmmanuel Vadot }; 437*f126890aSEmmanuel Vadot 438*f126890aSEmmanuel Vadot /* I2C3 */ 439*f126890aSEmmanuel Vadot i2c@80110000 { 440*f126890aSEmmanuel Vadot status = "okay"; 441*f126890aSEmmanuel Vadot 442*f126890aSEmmanuel Vadot pinctrl-names = "default", "sleep"; 443*f126890aSEmmanuel Vadot pinctrl-0 = <&i2c3_c_2_default>; 444*f126890aSEmmanuel Vadot pinctrl-1 = <&i2c3_c_2_sleep>; 445*f126890aSEmmanuel Vadot 446*f126890aSEmmanuel Vadot /* Cypress CY8CTMA140 touchscreen */ 447*f126890aSEmmanuel Vadot touchscreen@20 { 448*f126890aSEmmanuel Vadot compatible = "cypress,cy8ctma140"; 449*f126890aSEmmanuel Vadot clock-frequency = <400000>; 450*f126890aSEmmanuel Vadot reg = <0x20>; 451*f126890aSEmmanuel Vadot 452*f126890aSEmmanuel Vadot touchscreen-size-x = <480>; 453*f126890aSEmmanuel Vadot touchscreen-size-y = <800>; 454*f126890aSEmmanuel Vadot touchscreen-max-pressure = <255>; 455*f126890aSEmmanuel Vadot 456*f126890aSEmmanuel Vadot /* GPIO218 for IRQ */ 457*f126890aSEmmanuel Vadot interrupt-parent = <&gpio6>; 458*f126890aSEmmanuel Vadot interrupts = <26 IRQ_TYPE_EDGE_FALLING>; 459*f126890aSEmmanuel Vadot 460*f126890aSEmmanuel Vadot /* VDD is "digital supply" nominally 1.71-3.6V */ 461*f126890aSEmmanuel Vadot vdd-supply = <&ab8500_ldo_aux2_reg>; 462*f126890aSEmmanuel Vadot /* VCPIN is "analog supply", 2.7-3.6 V */ 463*f126890aSEmmanuel Vadot vcpin-supply = <&ab8500_ldo_aux2_reg>; 464*f126890aSEmmanuel Vadot 465*f126890aSEmmanuel Vadot pinctrl-names = "default"; 466*f126890aSEmmanuel Vadot pinctrl-0 = <&tma140_skomer_default>; 467*f126890aSEmmanuel Vadot }; 468*f126890aSEmmanuel Vadot }; 469*f126890aSEmmanuel Vadot 470*f126890aSEmmanuel Vadot mcde@a0350000 { 471*f126890aSEmmanuel Vadot status = "okay"; 472*f126890aSEmmanuel Vadot pinctrl-names = "default"; 473*f126890aSEmmanuel Vadot pinctrl-0 = <&dsi_default_mode>; 474*f126890aSEmmanuel Vadot 475*f126890aSEmmanuel Vadot dsi@a0351000 { 476*f126890aSEmmanuel Vadot panel { 477*f126890aSEmmanuel Vadot /* NT35510-based Hydis HVA40WV1 */ 478*f126890aSEmmanuel Vadot compatible = "hydis,hva40wv1", "novatek,nt35510"; 479*f126890aSEmmanuel Vadot reg = <0>; 480*f126890aSEmmanuel Vadot /* v_lcd_3v0 2.3-4.8V */ 481*f126890aSEmmanuel Vadot vdd-supply = <&ab8500_ldo_aux4_reg>; 482*f126890aSEmmanuel Vadot /* v_lcd_1v8 1.65-3.3V */ 483*f126890aSEmmanuel Vadot vddi-supply = <&ab8500_ldo_aux6_reg>; 484*f126890aSEmmanuel Vadot /* GPIO 139 */ 485*f126890aSEmmanuel Vadot reset-gpios = <&gpio4 11 GPIO_ACTIVE_LOW>; 486*f126890aSEmmanuel Vadot pinctrl-names = "default"; 487*f126890aSEmmanuel Vadot pinctrl-0 = <&display_default_mode>; 488*f126890aSEmmanuel Vadot backlight = <&ktd253>; 489*f126890aSEmmanuel Vadot }; 490*f126890aSEmmanuel Vadot }; 491*f126890aSEmmanuel Vadot }; 492*f126890aSEmmanuel Vadot }; 493*f126890aSEmmanuel Vadot}; 494*f126890aSEmmanuel Vadot 495*f126890aSEmmanuel Vadot&pinctrl { 496*f126890aSEmmanuel Vadot sdi0 { 497*f126890aSEmmanuel Vadot mc0_a_1_default { 498*f126890aSEmmanuel Vadot default_cfg1 { 499*f126890aSEmmanuel Vadot /* GPIO18, 19 & 20 unused so pull down */ 500*f126890aSEmmanuel Vadot ste,config = <&gpio_in_pd>; 501*f126890aSEmmanuel Vadot }; 502*f126890aSEmmanuel Vadot }; 503*f126890aSEmmanuel Vadot }; 504*f126890aSEmmanuel Vadot 505*f126890aSEmmanuel Vadot /* This is a reset line for the eMMC */ 506*f126890aSEmmanuel Vadot sdi2 { 507*f126890aSEmmanuel Vadot mc2_a_1_default { 508*f126890aSEmmanuel Vadot default_cfg2 { 509*f126890aSEmmanuel Vadot pins = "GPIO130_C8"; /* FBCLK */ 510*f126890aSEmmanuel Vadot ste,config = <&gpio_in_pd>; 511*f126890aSEmmanuel Vadot }; 512*f126890aSEmmanuel Vadot }; 513*f126890aSEmmanuel Vadot }; 514*f126890aSEmmanuel Vadot 515*f126890aSEmmanuel Vadot mcde { 516*f126890aSEmmanuel Vadot dsi_default_mode: dsi_default { 517*f126890aSEmmanuel Vadot default_mux1 { 518*f126890aSEmmanuel Vadot /* Mux in VSI0 used for DSI TE */ 519*f126890aSEmmanuel Vadot function = "lcd"; 520*f126890aSEmmanuel Vadot groups = "lcdvsi0_a_1"; /* VSI0 for LCD */ 521*f126890aSEmmanuel Vadot }; 522*f126890aSEmmanuel Vadot default_cfg1 { 523*f126890aSEmmanuel Vadot pins = "GPIO68_E1"; /* VSI0 */ 524*f126890aSEmmanuel Vadot ste,config = <&in_nopull>; 525*f126890aSEmmanuel Vadot }; 526*f126890aSEmmanuel Vadot }; 527*f126890aSEmmanuel Vadot }; 528*f126890aSEmmanuel Vadot 529*f126890aSEmmanuel Vadot /* Two GPIO lines used by the display */ 530*f126890aSEmmanuel Vadot display { 531*f126890aSEmmanuel Vadot display_default_mode: display_default { 532*f126890aSEmmanuel Vadot skomer_cfg1 { 533*f126890aSEmmanuel Vadot /* 534*f126890aSEmmanuel Vadot * OLED DETECT or check_pba, this appears to be high 535*f126890aSEmmanuel Vadot * on "PBA" which I guess is "prototype board A". 536*f126890aSEmmanuel Vadot */ 537*f126890aSEmmanuel Vadot pins = "GPIO93_B7"; 538*f126890aSEmmanuel Vadot ste,config = <&gpio_in_nopull>; 539*f126890aSEmmanuel Vadot }; 540*f126890aSEmmanuel Vadot skomer_cfg2 { 541*f126890aSEmmanuel Vadot pins = "GPIO139_C9"; 542*f126890aSEmmanuel Vadot /* 543*f126890aSEmmanuel Vadot * MIPI_DSI0_RESET_N resets the display, leave high 544*f126890aSEmmanuel Vadot * (de-asserted) so we only assert reset explicitly 545*f126890aSEmmanuel Vadot * from the display driver. 546*f126890aSEmmanuel Vadot */ 547*f126890aSEmmanuel Vadot ste,config = <&gpio_out_hi>; 548*f126890aSEmmanuel Vadot }; 549*f126890aSEmmanuel Vadot }; 550*f126890aSEmmanuel Vadot }; 551*f126890aSEmmanuel Vadot backlight { 552*f126890aSEmmanuel Vadot gpio_backlight_default_mode: backlight_default { 553*f126890aSEmmanuel Vadot skomer_cfg1 { 554*f126890aSEmmanuel Vadot pins = "GPIO69_E2"; /* LCD_BL_CTRL */ 555*f126890aSEmmanuel Vadot ste,config = <&gpio_out_lo>; 556*f126890aSEmmanuel Vadot }; 557*f126890aSEmmanuel Vadot }; 558*f126890aSEmmanuel Vadot }; 559*f126890aSEmmanuel Vadot flash { 560*f126890aSEmmanuel Vadot gpio_flash_default_mode: flash_default { 561*f126890aSEmmanuel Vadot skomer_cfg1 { 562*f126890aSEmmanuel Vadot pins = "GPIO140_B11", "GPIO141_C12"; 563*f126890aSEmmanuel Vadot ste,config = <&gpio_out_lo>; 564*f126890aSEmmanuel Vadot }; 565*f126890aSEmmanuel Vadot }; 566*f126890aSEmmanuel Vadot }; 567*f126890aSEmmanuel Vadot /* GPIO that enables the 2.9V SD card level translator */ 568*f126890aSEmmanuel Vadot sd-level-translator { 569*f126890aSEmmanuel Vadot sd_level_translator_default: sd_level_translator_default { 570*f126890aSEmmanuel Vadot /* level shifter on GPIO87 */ 571*f126890aSEmmanuel Vadot skomer_cfg1 { 572*f126890aSEmmanuel Vadot pins = "GPIO87_B3"; 573*f126890aSEmmanuel Vadot ste,config = <&gpio_out_hi>; 574*f126890aSEmmanuel Vadot }; 575*f126890aSEmmanuel Vadot }; 576*f126890aSEmmanuel Vadot }; 577*f126890aSEmmanuel Vadot /* GPIO that enables the LDO regulator for the eMMC */ 578*f126890aSEmmanuel Vadot emmc-ldo { 579*f126890aSEmmanuel Vadot emmc_ldo_en_default_mode: emmc_ldo_default { 580*f126890aSEmmanuel Vadot /* LDO enable on GPIO223 */ 581*f126890aSEmmanuel Vadot skomer_cfg1 { 582*f126890aSEmmanuel Vadot pins = "GPIO223_AH9"; 583*f126890aSEmmanuel Vadot ste,config = <&gpio_out_hi>; 584*f126890aSEmmanuel Vadot }; 585*f126890aSEmmanuel Vadot }; 586*f126890aSEmmanuel Vadot }; 587*f126890aSEmmanuel Vadot /* GPIO keys */ 588*f126890aSEmmanuel Vadot gpio-keys { 589*f126890aSEmmanuel Vadot gpio_keys_default_mode: gpio_keys_default { 590*f126890aSEmmanuel Vadot skomer_cfg1 { 591*f126890aSEmmanuel Vadot pins = "GPIO67_G2", /* VOL UP */ 592*f126890aSEmmanuel Vadot "GPIO91_B6", /* HOME */ 593*f126890aSEmmanuel Vadot "GPIO92_D6", /* VOL DOWN */ 594*f126890aSEmmanuel Vadot "GPIO204_AF23", /* MENU */ 595*f126890aSEmmanuel Vadot "GPIO205_AG23"; /* BACK */ 596*f126890aSEmmanuel Vadot ste,config = <&gpio_in_pu>; 597*f126890aSEmmanuel Vadot }; 598*f126890aSEmmanuel Vadot }; 599*f126890aSEmmanuel Vadot }; 600*f126890aSEmmanuel Vadot /* Interrupt line for BMA254 */ 601*f126890aSEmmanuel Vadot bma254 { 602*f126890aSEmmanuel Vadot bma254_skomer_default: bma254_skomer { 603*f126890aSEmmanuel Vadot skomer_cfg1 { 604*f126890aSEmmanuel Vadot pins = "GPIO224_AG9"; 605*f126890aSEmmanuel Vadot ste,config = <&gpio_in_pd>; 606*f126890aSEmmanuel Vadot }; 607*f126890aSEmmanuel Vadot }; 608*f126890aSEmmanuel Vadot }; 609*f126890aSEmmanuel Vadot /* Interrupt line for light/proximity sensor GP2AP002 */ 610*f126890aSEmmanuel Vadot gp2ap002 { 611*f126890aSEmmanuel Vadot gp2ap002_skomer_default: gp2ap002_skomer { 612*f126890aSEmmanuel Vadot skomer_cfg1 { 613*f126890aSEmmanuel Vadot pins = "GPIO146_D13"; 614*f126890aSEmmanuel Vadot ste,config = <&gpio_in_nopull>; 615*f126890aSEmmanuel Vadot }; 616*f126890aSEmmanuel Vadot }; 617*f126890aSEmmanuel Vadot }; 618*f126890aSEmmanuel Vadot /* GPIO-based I2C bus for NCP6914 */ 619*f126890aSEmmanuel Vadot i2c-gpio-0 { 620*f126890aSEmmanuel Vadot i2c_gpio_0_default: i2c_gpio_0 { 621*f126890aSEmmanuel Vadot skomer_cfg1 { 622*f126890aSEmmanuel Vadot pins = "GPIO143_D12", "GPIO144_B13"; 623*f126890aSEmmanuel Vadot ste,config = <&gpio_in_nopull>; 624*f126890aSEmmanuel Vadot }; 625*f126890aSEmmanuel Vadot }; 626*f126890aSEmmanuel Vadot }; 627*f126890aSEmmanuel Vadot /* GPIO-based I2C bus for ALPS HSCD compass */ 628*f126890aSEmmanuel Vadot i2c-gpio-1 { 629*f126890aSEmmanuel Vadot i2c_gpio_1_default: i2c_gpio_1 { 630*f126890aSEmmanuel Vadot skomer_cfg1 { 631*f126890aSEmmanuel Vadot pins = "GPIO151_B17", "GPIO152_D16"; 632*f126890aSEmmanuel Vadot ste,config = <&gpio_in_nopull>; 633*f126890aSEmmanuel Vadot }; 634*f126890aSEmmanuel Vadot }; 635*f126890aSEmmanuel Vadot }; 636*f126890aSEmmanuel Vadot wlan { 637*f126890aSEmmanuel Vadot wlan_default_mode: wlan_default { 638*f126890aSEmmanuel Vadot skomer_cfg1 { 639*f126890aSEmmanuel Vadot pins = "GPIO216_AG12"; 640*f126890aSEmmanuel Vadot ste,config = <&gpio_in_pd>; 641*f126890aSEmmanuel Vadot }; 642*f126890aSEmmanuel Vadot }; 643*f126890aSEmmanuel Vadot wlan_en_default_mode: wlan_en_default { 644*f126890aSEmmanuel Vadot skomer_cfg2 { 645*f126890aSEmmanuel Vadot pins = "GPIO215_AH13"; 646*f126890aSEmmanuel Vadot ste,config = <&gpio_out_lo>; 647*f126890aSEmmanuel Vadot }; 648*f126890aSEmmanuel Vadot }; 649*f126890aSEmmanuel Vadot }; 650*f126890aSEmmanuel Vadot bluetooth { 651*f126890aSEmmanuel Vadot bluetooth_default_mode: bluetooth_default { 652*f126890aSEmmanuel Vadot skomer_cfg1 { 653*f126890aSEmmanuel Vadot pins = "GPIO199_AH23", "GPIO222_AJ9"; 654*f126890aSEmmanuel Vadot ste,config = <&gpio_out_lo>; 655*f126890aSEmmanuel Vadot }; 656*f126890aSEmmanuel Vadot skomer_cfg2 { 657*f126890aSEmmanuel Vadot pins = "GPIO97_D9"; 658*f126890aSEmmanuel Vadot ste,config = <&gpio_in_nopull>; 659*f126890aSEmmanuel Vadot }; 660*f126890aSEmmanuel Vadot }; 661*f126890aSEmmanuel Vadot }; 662*f126890aSEmmanuel Vadot vibrator { 663*f126890aSEmmanuel Vadot vibrator_default: vibrator_default { 664*f126890aSEmmanuel Vadot skomer_cfg1 { 665*f126890aSEmmanuel Vadot pins = "GPIO195_AG28"; /* MOT_EN */ 666*f126890aSEmmanuel Vadot ste,config = <&gpio_out_lo>; 667*f126890aSEmmanuel Vadot }; 668*f126890aSEmmanuel Vadot }; 669*f126890aSEmmanuel Vadot }; 670*f126890aSEmmanuel Vadot /* Interrupt line for the Cypress TMA140 touchscreen */ 671*f126890aSEmmanuel Vadot touchscreen { 672*f126890aSEmmanuel Vadot tma140_skomer_default: tma140_skomer { 673*f126890aSEmmanuel Vadot skomer_cfg1 { 674*f126890aSEmmanuel Vadot pins = "GPIO218_AH11"; 675*f126890aSEmmanuel Vadot ste,config = <&gpio_in_nopull>; 676*f126890aSEmmanuel Vadot }; 677*f126890aSEmmanuel Vadot }; 678*f126890aSEmmanuel Vadot }; 679*f126890aSEmmanuel Vadot g05ta03 { 680*f126890aSEmmanuel Vadot g05ta03_skomer_default: g05ta03 { 681*f126890aSEmmanuel Vadot /* Reset line, start out de-asserted */ 682*f126890aSEmmanuel Vadot skomer_cfg1 { 683*f126890aSEmmanuel Vadot pins = "GPIO209_AG15"; 684*f126890aSEmmanuel Vadot ste,config = <&gpio_out_hi>; 685*f126890aSEmmanuel Vadot }; 686*f126890aSEmmanuel Vadot /* GPS_ON_OFF, start out deasserted (off) */ 687*f126890aSEmmanuel Vadot skomer_cfg2 { 688*f126890aSEmmanuel Vadot pins = "GPIO86_C6"; 689*f126890aSEmmanuel Vadot ste,config = <&gpio_out_lo>; 690*f126890aSEmmanuel Vadot }; 691*f126890aSEmmanuel Vadot }; 692*f126890aSEmmanuel Vadot }; 693*f126890aSEmmanuel Vadot}; 694*f126890aSEmmanuel Vadot 695*f126890aSEmmanuel Vadot&ab8505_gpio { 696*f126890aSEmmanuel Vadot /* Hog a few default settings */ 697*f126890aSEmmanuel Vadot pinctrl-names = "default"; 698*f126890aSEmmanuel Vadot pinctrl-0 = <&gpio_default>; 699*f126890aSEmmanuel Vadot 700*f126890aSEmmanuel Vadot gpio { 701*f126890aSEmmanuel Vadot gpio_default: gpio_default { 702*f126890aSEmmanuel Vadot skomer_mux { 703*f126890aSEmmanuel Vadot /* Change unused pins to GPIO mode */ 704*f126890aSEmmanuel Vadot function = "gpio"; 705*f126890aSEmmanuel Vadot groups = "gpio3_a_1", /* default: SysClkReq4 */ 706*f126890aSEmmanuel Vadot "gpio14_a_1"; /* default: PWMOut1 */ 707*f126890aSEmmanuel Vadot }; 708*f126890aSEmmanuel Vadot skomer_cfg1 { 709*f126890aSEmmanuel Vadot pins = "GPIO11_B17", "GPIO13_D17", "GPIO50_L4"; 710*f126890aSEmmanuel Vadot bias-disable; 711*f126890aSEmmanuel Vadot }; 712*f126890aSEmmanuel Vadot }; 713*f126890aSEmmanuel Vadot }; 714*f126890aSEmmanuel Vadot}; 715