Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /dts-v1/;
0003 
0004 #include "ste-db8500.dtsi"
0005 #include "ste-ab8505.dtsi"
0006 #include "ste-dbx5x0-pinctrl.dtsi"
0007 #include <dt-bindings/gpio/gpio.h>
0008 #include <dt-bindings/leds/common.h>
0009 #include <dt-bindings/input/input.h>
0010 #include <dt-bindings/interrupt-controller/irq.h>
0011 
0012 /*
0013  * Note: This device tree cannot be booted directly with the Samsung bootloader.
0014  * You need an intermediate, device-tree compatible bootloader
0015  * that locks the L2 cache. Otherwise the kernel will crash after decompression.
0016  *
0017  * There is a port of (mainline) U-Boot, see
0018  * https://wiki.postmarketos.org/wiki/ST-Ericsson_NovaThor_U8500#U-Boot
0019  */
0020 / {
0021         model = "Samsung Galaxy S III mini (GT-I8190)";
0022         compatible = "samsung,golden", "st-ericsson,u8500";
0023 
0024         chosen {
0025                 stdout-path = &serial2;
0026         };
0027 
0028         battery: battery {
0029                 compatible = "samsung,eb-l1m7flu";
0030         };
0031 
0032         thermal-zones {
0033                 battery-thermal {
0034                         /* This zone will be polled by the battery temperature code */
0035                         polling-delay = <0>;
0036                         polling-delay-passive = <0>;
0037                         thermal-sensors = <&bat_therm>;
0038                 };
0039         };
0040 
0041         bat_therm: thermistor {
0042                 compatible = "samsung,1404-001221";
0043                 io-channels = <&gpadc 0x02>; /* BatTemp */
0044                 pullup-uv = <1800000>;
0045                 pullup-ohm = <230000>;
0046                 pulldown-ohm = <0>;
0047                 #thermal-sensor-cells = <0>;
0048         };
0049 
0050         i2c-gpio-0 {
0051                 compatible = "i2c-gpio";
0052                 sda-gpios = <&gpio2 14 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
0053                 scl-gpios = <&gpio2 13 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
0054 
0055                 pinctrl-names = "default";
0056                 pinctrl-0 = <&i2c_gpio_0_default>;
0057 
0058                 #address-cells = <1>;
0059                 #size-cells = <0>;
0060 
0061                 touchkey@20 {
0062                         compatible = "coreriver,tc360-touchkey";
0063                         reg = <0x20>;
0064                         vdd-supply = <&ab8500_ldo_aux4_reg>;
0065                         vcc-supply = <&ab8500_ldo_aux6_reg>;
0066 
0067                         interrupt-parent = <&gpio2>;
0068                         interrupts = <15 IRQ_TYPE_EDGE_FALLING>;
0069 
0070                         pinctrl-names = "default";
0071                         pinctrl-0 = <&touchkey_default>;
0072                         linux,keycodes = <KEY_MENU KEY_BACK>;
0073                 };
0074         };
0075 
0076         i2c-gpio-1 {
0077                 compatible = "i2c-gpio";
0078                 sda-gpios = <&gpio4 24 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
0079                 scl-gpios = <&gpio4 23 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
0080 
0081                 pinctrl-names = "default";
0082                 pinctrl-0 = <&i2c_gpio_1_default>;
0083 
0084                 #address-cells = <1>;
0085                 #size-cells = <0>;
0086 
0087                 magnetometer@c {
0088                         compatible = "alps,hscdtd008a";
0089                         reg = <0x0c>;
0090 
0091                         avdd-supply = <&ab8500_ldo_aux1_reg>;
0092                         dvdd-supply = <&ab8500_ldo_aux8_reg>;
0093                 };
0094         };
0095 
0096         soc {
0097                 /* External Micro SD card slot */
0098                 mmc@80126000 {
0099                         status = "okay";
0100 
0101                         arm,primecell-periphid = <0x10480180>;
0102                         max-frequency = <100000000>;
0103                         bus-width = <4>;
0104 
0105                         non-removable;
0106                         /*
0107                          * Unfortunately, there is no way to enable the UHS
0108                          * modes due to a limitation of the SD level translator:
0109                          * It will either translate to 2.9V or disconnect the
0110                          * DATA lines, so switching to 1.8V signal voltage fails.
0111                          */
0112                         cap-sd-highspeed;
0113                         cap-mmc-highspeed;
0114                         st,sig-pin-fbclk;
0115                         full-pwr-cycle;
0116 
0117                         vmmc-supply = <&ab8500_ldo_aux3_reg>;
0118                         vqmmc-supply = <&sd_level_translator>;
0119 
0120                         pinctrl-names = "default", "sleep";
0121                         pinctrl-0 = <&mc0_a_2_default>;
0122                         pinctrl-1 = <&mc0_a_2_sleep>;
0123                 };
0124 
0125                 /* WLAN SDIO */
0126                 mmc@80118000 {
0127                         status = "okay";
0128 
0129                         arm,primecell-periphid = <0x10480180>;
0130                         max-frequency = <50000000>;
0131                         bus-width = <4>;
0132 
0133                         non-removable;
0134                         cap-sd-highspeed;
0135 
0136                         vmmc-supply = <&wl_reg_on>;
0137 
0138                         pinctrl-names = "default", "sleep";
0139                         pinctrl-0 = <&mc1_a_2_default>;
0140                         pinctrl-1 = <&mc1_a_2_sleep>;
0141 
0142                         #address-cells = <1>;
0143                         #size-cells = <0>;
0144 
0145                         wifi@1 {
0146                                 compatible = "brcm,bcm4334-fmac", "brcm,bcm4329-fmac";
0147                                 reg = <1>;
0148 
0149                                 /* GPIO216 (WLAN_HOST_WAKE) */
0150                                 interrupt-parent = <&gpio6>;
0151                                 interrupts = <24 IRQ_TYPE_EDGE_FALLING>;
0152                                 interrupt-names = "host-wake";
0153 
0154                                 pinctrl-names = "default";
0155                                 pinctrl-0 = <&wlan_default>;
0156                         };
0157                 };
0158 
0159                 /* eMMC */
0160                 mmc@80005000 {
0161                         status = "okay";
0162 
0163                         arm,primecell-periphid = <0x10480180>;
0164                         max-frequency = <100000000>;
0165                         bus-width = <8>;
0166 
0167                         non-removable;
0168                         cap-mmc-highspeed;
0169                         mmc-ddr-1_8v;
0170                         no-sdio;
0171                         no-sd;
0172 
0173                         vmmc-supply = <&vmem_3v3>;
0174 
0175                         pinctrl-names = "default", "sleep";
0176                         pinctrl-0 = <&mc2_a_1_default>;
0177                         pinctrl-1 = <&mc2_a_1_sleep>;
0178                 };
0179 
0180                 /* BT UART */
0181                 uart@80120000 {
0182                         status = "okay";
0183 
0184                         pinctrl-names = "default", "sleep";
0185                         pinctrl-0 = <&u0_a_1_default>;
0186                         pinctrl-1 = <&u0_a_1_sleep>;
0187 
0188                         bluetooth {
0189                                 /* BCM4334B0 actually */
0190                                 compatible = "brcm,bcm4330-bt";
0191                                 /* GPIO222 (BT_VREG_ON) */
0192                                 shutdown-gpios = <&gpio6 30 GPIO_ACTIVE_HIGH>;
0193                                 /* GPIO199 (BT_WAKE) */
0194                                 device-wakeup-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
0195                                 /* GPIO97 (BT_HOST_WAKE) */
0196                                 host-wakeup-gpios = <&gpio3 1 GPIO_ACTIVE_HIGH>;
0197 
0198                                 pinctrl-names = "default";
0199                                 pinctrl-0 = <&bluetooth_default>;
0200                         };
0201                 };
0202 
0203                 /* GPF UART */
0204                 uart@80121000 {
0205                         status = "okay";
0206 
0207                         pinctrl-names = "default", "sleep";
0208                         pinctrl-0 = <&u1rxtx_a_1_default &u1ctsrts_a_1_default>;
0209                         pinctrl-1 = <&u1rxtx_a_1_sleep &u1ctsrts_a_1_sleep>;
0210                 };
0211 
0212                 /* Debugging console UART */
0213                 uart@80007000 {
0214                         status = "okay";
0215 
0216                         pinctrl-names = "default", "sleep";
0217                         pinctrl-0 = <&u2rxtx_c_1_default>;
0218                         pinctrl-1 = <&u2rxtx_c_1_sleep>;
0219                 };
0220 
0221                 i2c@80004000 {
0222                         status = "okay";
0223 
0224                         pinctrl-names = "default", "sleep";
0225                         pinctrl-0 = <&i2c0_a_1_default>;
0226                         pinctrl-1 = <&i2c0_a_1_sleep>;
0227 
0228                         proximity@44 {
0229                                 compatible = "sharp,gp2ap002s00f";
0230                                 reg = <0x44>;
0231 
0232                                 /* GPIO146 (PS_INT) */
0233                                 interrupt-parent = <&gpio4>;
0234                                 interrupts = <18 IRQ_TYPE_EDGE_FALLING>;
0235 
0236                                 vdd-supply = <&ab8500_ldo_aux1_reg>;
0237                                 vio-supply = <&ab8500_ldo_aux8_reg>;
0238 
0239                                 pinctrl-names = "default";
0240                                 pinctrl-0 = <&proximity_default>;
0241 
0242                                 sharp,proximity-far-hysteresis = <0x40>;
0243                                 sharp,proximity-close-hysteresis = <0x0f>;
0244                         };
0245                 };
0246 
0247                 i2c@80128000 {
0248                         status = "okay";
0249 
0250                         pinctrl-names = "default", "sleep";
0251                         pinctrl-0 = <&i2c2_b_2_default>;
0252                         pinctrl-1 = <&i2c2_b_2_sleep>;
0253 
0254                         imu@68 {
0255                                 compatible = "invensense,mpu6050";
0256                                 reg = <0x68>;
0257 
0258                                 /* GPIO206 (ACC_INT) */
0259                                 interrupt-parent = <&gpio6>;
0260                                 interrupts = <14 IRQ_TYPE_EDGE_RISING>;
0261 
0262                                 mount-matrix = "0", "1", "0",
0263                                               "-1", "0", "0",
0264                                                "0", "0", "1";
0265 
0266                                 vdd-supply = <&ab8500_ldo_aux1_reg>;
0267                                 vddio-supply = <&ab8500_ldo_aux8_reg>;
0268 
0269                                 pinctrl-names = "default";
0270                                 pinctrl-0 = <&imu_default>;
0271                         };
0272                 };
0273 
0274                 i2c@80110000 {
0275                         status = "okay";
0276 
0277                         pinctrl-names = "default", "sleep";
0278                         pinctrl-0 = <&i2c3_c_2_default>;
0279                         pinctrl-1 = <&i2c3_c_2_sleep>;
0280 
0281                         touchscreen@4a {
0282                                 compatible = "atmel,maxtouch";
0283                                 reg = <0x4a>;
0284 
0285                                 /* GPIO218 (TSP_INT_1V8) */
0286                                 interrupt-parent = <&gpio6>;
0287                                 interrupts = <26 IRQ_TYPE_EDGE_FALLING>;
0288 
0289                                 /* VDDA is "analog supply", 2.57-3.47 V */
0290                                 vdda-supply = <&ab8500_ldo_aux2_reg>;
0291                                 /* VDD is "digital supply" 1.71-3.47V */
0292                                 vdd-supply = <&ab8500_ldo_aux5_reg>;
0293 
0294                                 pinctrl-names = "default";
0295                                 pinctrl-0 = <&tsp_default>;
0296                         };
0297                 };
0298 
0299                 prcmu@80157000 {
0300                         ab8505 {
0301                                 phy {
0302                                         pinctrl-names = "default", "sleep";
0303                                         pinctrl-0 = <&usb_a_1_default>;
0304                                         pinctrl-1 = <&usb_a_1_sleep>;
0305                                 };
0306 
0307                                 ab8500_fg {
0308                                         line-impedance-micro-ohms = <36000>;
0309                                 };
0310 
0311                                 regulator {
0312                                         ab8500_ldo_aux1 {
0313                                                 regulator-name = "sensor_3v";
0314                                                 regulator-min-microvolt = <3000000>;
0315                                                 regulator-max-microvolt = <3000000>;
0316                                         };
0317 
0318                                         ab8500_ldo_aux2 {
0319                                                 regulator-name = "vreg_tsp_a3v3";
0320                                                 regulator-min-microvolt = <3300000>;
0321                                                 regulator-max-microvolt = <3300000>;
0322                                         };
0323 
0324                                         ab8500_ldo_aux3 {
0325                                                 regulator-name = "vdd_tf_2v91";
0326                                         };
0327 
0328                                         ab8500_ldo_aux4 {
0329                                                 regulator-name = "key_led_3.3v";
0330                                                 regulator-min-microvolt = <3300000>;
0331                                                 regulator-max-microvolt = <3300000>;
0332                                         };
0333 
0334                                         ab8500_ldo_aux5 {
0335                                                 regulator-name = "vreg_tsp_1v8";
0336                                                 regulator-min-microvolt = <1800000>;
0337                                                 regulator-max-microvolt = <1800000>;
0338                                         };
0339 
0340                                         ab8500_ldo_aux6 {
0341                                                 regulator-name = "touch_key_2.2v";
0342                                                 regulator-min-microvolt = <2200000>;
0343                                                 regulator-max-microvolt = <2200000>;
0344                                         };
0345 
0346                                         ab8500_ldo_aux8 {
0347                                                 regulator-name = "sensor_1v8";
0348                                         };
0349                                 };
0350                         };
0351                 };
0352 
0353                 mcde@a0350000 {
0354                         status = "okay";
0355                         pinctrl-names = "default";
0356                         pinctrl-0 = <&dsi_default_mode>;
0357 
0358                         dsi@a0351000 {
0359                                 panel@0 {
0360                                         compatible = "samsung,s6e63m0";
0361                                         reg = <0>;
0362                                         max-brightness = <15>;
0363                                         vdd3-supply = <&panel_reg_3v0>;
0364                                         vci-supply = <&panel_reg_1v8>;
0365                                         reset-gpios = <&gpio4 11 GPIO_ACTIVE_LOW>;
0366                                         /* ESD (electrostatic discharge) detection interrupt */
0367                                         interrupt-parent = <&gpio2>;
0368                                         interrupts = <18 IRQ_TYPE_EDGE_RISING>;
0369                                         interrupt-names = "esd";
0370                                         pinctrl-names = "default";
0371                                         pinctrl-0 = <&display_default_mode>;
0372                                 };
0373                         };
0374                 };
0375         };
0376 
0377         gpio-keys {
0378                 compatible = "gpio-keys";
0379 
0380                 pinctrl-names = "default";
0381                 pinctrl-0 = <&gpio_keys_default>;
0382 
0383                 label = "GPIO Buttons";
0384 
0385                 volume-up {
0386                         label = "Volume Up";
0387                         /* GPIO67 (VOL_UP) */
0388                         gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
0389                         linux,code = <KEY_VOLUMEUP>;
0390                 };
0391 
0392                 volume-down {
0393                         label = "Volume Down";
0394                         /* GPIO92 (VOL_DOWN) */
0395                         gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
0396                         linux,code = <KEY_VOLUMEDOWN>;
0397                 };
0398 
0399                 home {
0400                         label = "Home";
0401                         /* GPIO91 (HOME_KEY) */
0402                         gpios = <&gpio2 27 GPIO_ACTIVE_LOW>;
0403                         linux,code = <KEY_HOMEPAGE>;
0404                 };
0405         };
0406 
0407         /* Richtek RT8515GQW Flash LED Driver IC */
0408         flash {
0409                 compatible = "richtek,rt8515";
0410                 /* GPIO 140 */
0411                 enf-gpios = <&gpio4 12 GPIO_ACTIVE_HIGH>;
0412                 /* GPIO 141 */
0413                 ent-gpios = <&gpio4 13 GPIO_ACTIVE_HIGH>;
0414                 /*
0415                  * RFS is 16 kOhm and RTS is 100 kOhm giving
0416                  * the flash max current 343mA and torch max
0417                  * current 55 mA.
0418                  */
0419                 richtek,rfs-ohms = <16000>;
0420                 richtek,rts-ohms = <100000>;
0421                 pinctrl-names = "default";
0422                 pinctrl-0 = <&gpio_flash_default_mode>;
0423 
0424                 led {
0425                         function = LED_FUNCTION_FLASH;
0426                         color = <LED_COLOR_ID_WHITE>;
0427                         flash-max-timeout-us = <250000>;
0428                         flash-max-microamp = <343750>;
0429                         led-max-microamp = <55000>;
0430                 };
0431         };
0432 
0433         vibrator {
0434                 compatible = "gpio-vibrator";
0435                 /* GPIO195 (MOT_EN) */
0436                 enable-gpios = <&gpio6 3 GPIO_ACTIVE_HIGH>;
0437 
0438                 pinctrl-names = "default";
0439                 pinctrl-0 = <&vibrator_default>;
0440         };
0441 
0442         /* External LDO for eMMC */
0443         vmem_3v3: regulator-vmem {
0444                 compatible = "regulator-fixed";
0445 
0446                 regulator-name = "vmem_3v3";
0447                 regulator-min-microvolt = <3300000>;
0448                 regulator-max-microvolt = <3300000>;
0449                 regulator-boot-on;
0450 
0451                 startup-delay-us = <200>;
0452 
0453                 /* GPIO223 (MEM_LDO_EN) */
0454                 gpio = <&gpio6 31 GPIO_ACTIVE_HIGH>;
0455                 enable-active-high;
0456 
0457                 pinctrl-names = "default";
0458                 pinctrl-0 = <&mem_ldo_default>;
0459         };
0460 
0461         /* TI TXS0206-29 level translator for 2.9 V */
0462         sd_level_translator: regulator-sd-level-translator {
0463                 compatible = "regulator-fixed";
0464 
0465                 regulator-name = "sd-level-translator";
0466                 regulator-min-microvolt = <2900000>;
0467                 regulator-max-microvolt = <2900000>;
0468 
0469                 startup-delay-us = <200>;
0470 
0471                 /* GPIO87 (TXS0206-29_EN) */
0472                 gpios = <&gpio2 23 GPIO_ACTIVE_HIGH>;
0473                 enable-active-high;
0474 
0475                 pinctrl-names = "default";
0476                 pinctrl-0 = <&sd_level_translator_default>;
0477         };
0478 
0479         /*
0480          * WL_REG_ON takes WLAN out of reset and enables the internal regulators.
0481          * The voltage specified here is only used to determine the OCR mask,
0482          * the BCM chip is actually connected directly to VBAT.
0483          */
0484         wl_reg_on: regulator-wl-reg-on {
0485                 compatible = "regulator-fixed";
0486 
0487                 regulator-name = "wl-reg-on";
0488                 regulator-min-microvolt = <3000000>;
0489                 regulator-max-microvolt = <3000000>;
0490 
0491                 startup-delay-us = <100000>;
0492 
0493                 /* GPIO215 (WLAN_EN) */
0494                 gpio = <&gpio6 23 GPIO_ACTIVE_HIGH>;
0495                 enable-active-high;
0496 
0497                 pinctrl-names = "default";
0498                 pinctrl-0 = <&wlan_en_default>;
0499         };
0500 
0501         /* MIC5366 GPIO-controlled regulator */
0502         panel_reg_1v8: regulator-panel-1v8 {
0503                 compatible = "regulator-fixed";
0504 
0505                 regulator-name = "panel-fixed-supply";
0506                 regulator-min-microvolt = <1800000>;
0507                 regulator-max-microvolt = <1800000>;
0508                 /* GPIO219 */
0509                 gpio = <&gpio6 27 GPIO_ACTIVE_HIGH>;
0510 
0511                 startup-delay-us = <200>;
0512                 enable-active-high;
0513 
0514                 pinctrl-names = "default";
0515                 pinctrl-0 = <&panel_reg_default_mode>;
0516         };
0517 
0518         /* MIC5366 GPIO-controlled regulator */
0519         panel_reg_3v0: regulator-panel-3v0 {
0520                 compatible = "regulator-fixed";
0521 
0522                 regulator-name = "panel-fixed-supply";
0523                 regulator-min-microvolt = <3000000>;
0524                 regulator-max-microvolt = <3000000>;
0525                 /* GPIO219 */
0526                 gpio = <&gpio6 27 GPIO_ACTIVE_HIGH>;
0527 
0528                 startup-delay-us = <200>;
0529                 enable-active-high;
0530 
0531                 pinctrl-names = "default";
0532                 pinctrl-0 = <&panel_reg_default_mode>;
0533         };
0534 };
0535 
0536 &pinctrl {
0537         gpio-keys {
0538                 gpio_keys_default: gpio_keys_default {
0539                         golden_cfg1 {
0540                                 pins = "GPIO67",        /* VOL_UP */
0541                                        "GPIO91",        /* HOME_KEY */
0542                                        "GPIO92";        /* VOL_DOWN */
0543                                 ste,config = <&gpio_in_pu>;
0544                         };
0545                 };
0546         };
0547 
0548         i2c-gpio-0 {
0549                 i2c_gpio_0_default: i2c_gpio_0 {
0550                         golden_cfg1 {
0551                                 pins = "GPIO77",        /* TOUCHKEY_SCL */
0552                                        "GPIO78";        /* TOUCHKEY_SDA */
0553                                 ste,config = <&gpio_in_nopull>;
0554                         };
0555                 };
0556         };
0557 
0558         flash {
0559                 gpio_flash_default_mode: flash_default {
0560                         golden_cfg1 {
0561                                 pins = "GPIO140_B11", "GPIO141_C12";
0562                                 ste,config = <&gpio_out_lo>;
0563                         };
0564                 };
0565         };
0566 
0567         i2c-gpio-1 {
0568                 i2c_gpio_1_default: i2c_gpio_1 {
0569                         golden_cfg1 {
0570                                 pins = "GPIO151",       /* COMP_SCL */
0571                                        "GPIO152";       /* COMP_SDA */
0572                                 ste,config = <&gpio_in_nopull>;
0573                         };
0574                 };
0575         };
0576 
0577         touchkey {
0578                 touchkey_default: touchkey_default {
0579                         golden_cfg1 {
0580                                 pins = "GPIO79";        /* TOUCHKEY_INT */
0581                                 ste,config = <&gpio_in_nopull>;
0582                         };
0583                 };
0584         };
0585 
0586         sdi0 {
0587                 sd_level_translator_default: sd_level_translator_default {
0588                         golden_cfg1 {
0589                                 pins = "GPIO87_B3";     /* TXS0206-29_EN */
0590                                 ste,config = <&gpio_out_lo>;
0591                         };
0592                 };
0593         };
0594 
0595         sdi2 {
0596                 mem_ldo_default: mem_ldo_default {
0597                         golden_cfg1 {
0598                                 pins = "GPIO223_AH9";   /* MEM_LDO_EN */
0599                                 ste,config = <&gpio_out_hi>;
0600                         };
0601                 };
0602         };
0603 
0604         mcde {
0605                 dsi_default_mode: dsi_default {
0606                         default_mux1 {
0607                                 /* Mux in VSI0 used for DSI TE */
0608                                 function = "lcd";
0609                                 groups =
0610                                 "lcdvsi0_a_1"; /* VSI0 for LCD */
0611                         };
0612                         default_cfg1 {
0613                                 pins =
0614                                 "GPIO68_E1"; /* VSI0 */
0615                                 ste,config = <&in_nopull>;
0616                         };
0617                 };
0618         };
0619 
0620         display {
0621                 display_default_mode: display_default {
0622                         golden_cfg1 {
0623                                 pins = "GPIO139_C9"; /* MIPI_DSI0_RESET_N */
0624                                 ste,config = <&gpio_out_lo>;
0625                         };
0626                         golden_cfg2 {
0627                                 pins = "GPIO82_C1"; /* LDI_ESD_DET */
0628                                 ste,config = <&gpio_in_pu>;
0629                         };
0630                 };
0631                 panel_reg_default_mode: panel_reg_default {
0632                         golden_cfg1 {
0633                                 pins = "GPIO219_AG10"; /* LCD_PWR_EN */
0634                                 ste,config = <&gpio_out_lo>;
0635                         };
0636                 };
0637         };
0638 
0639         proximity {
0640                 proximity_default: proximity_default {
0641                         golden_cfg1 {
0642                                 pins = "GPIO146_D13";   /* PS_INT */
0643                                 ste,config = <&gpio_in_nopull>;
0644                         };
0645                 };
0646         };
0647 
0648         imu {
0649                 imu_default: imu_default {
0650                         golden_cfg1 {
0651                                 pins = "GPIO206_AG24";  /* ACC_INT */
0652                                 ste,config = <&gpio_in_pd>;
0653                         };
0654                 };
0655         };
0656 
0657         tsp {
0658                 tsp_default: tsp_default {
0659                         golden_cfg1 {
0660                                 pins = "GPIO218_AH11";  /* TSP_INT_1V8 */
0661                                 ste,config = <&gpio_in_nopull>;
0662                         };
0663                 };
0664         };
0665 
0666         wlan {
0667                 wlan_default: wlan_default {
0668                         golden_cfg1 {
0669                                 pins = "GPIO216_AG12";  /* WLAN_HOST_WAKE */
0670                                 ste,config = <&gpio_in_pd>;
0671                         };
0672                 };
0673 
0674                 wlan_en_default: wlan_en_default {
0675                         golden_cfg1 {
0676                                 pins = "GPIO215_AH13";  /* WLAN_EN */
0677                                 ste,config = <&gpio_out_lo>;
0678                         };
0679                 };
0680         };
0681 
0682         bluetooth {
0683                 bluetooth_default: bluetooth_default {
0684                         golden_cfg1 {
0685                                 pins = "GPIO199_AH23",  /* BT_WAKE */
0686                                        "GPIO222_AJ9";   /* BT_VREG_ON */
0687                                 ste,config = <&gpio_out_lo>;
0688                         };
0689                         golden_cfg2 {
0690                                 pins = "GPIO97_D9";     /* BT_HOST_WAKE */
0691                                 ste,config = <&gpio_in_nopull>;
0692                         };
0693                 };
0694         };
0695 
0696         vibrator {
0697                 vibrator_default: vibrator_default {
0698                         golden_cfg1 {
0699                                 pins = "GPIO195_AG28";  /* MOT_EN */
0700                                 ste,config = <&gpio_out_lo>;
0701                         };
0702                 };
0703         };
0704 };
0705 
0706 &ab8505_gpio {
0707         /* Hog a few default settings */
0708         pinctrl-names = "default";
0709         pinctrl-0 = <&gpio_default>;
0710 
0711         gpio {
0712                 gpio_default: gpio_default {
0713                         golden_mux {
0714                                 /* Change unused pins to GPIO mode */
0715                                 function = "gpio";
0716                                 groups = "gpio3_a_1",   /* default: SysClkReq4 */
0717                                          "gpio14_a_1";  /* default: PWMOut1 */
0718                         };
0719                         golden_cfg1 {
0720                                 pins = "GPIO11_B17", "GPIO13_D17", "GPIO50_L4";
0721                                 bias-disable;
0722                         };
0723                 };
0724         };
0725 };