Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003  * Devicetree for the Samsung Galaxy Beam GT-I8530 also known as Gavini.
0004  */
0005 
0006 /dts-v1/;
0007 #include "ste-db8500.dtsi"
0008 #include "ste-ab8500.dtsi"
0009 #include "ste-dbx5x0-pinctrl.dtsi"
0010 #include <dt-bindings/gpio/gpio.h>
0011 #include <dt-bindings/leds/common.h>
0012 #include <dt-bindings/input/input.h>
0013 #include <dt-bindings/interrupt-controller/irq.h>
0014 
0015 / {
0016         model = "Samsung Galaxy Beam (GT-I8530)";
0017         compatible = "samsung,gavini", "st-ericsson,u8500";
0018 
0019         chosen {
0020                 stdout-path = &serial2;
0021         };
0022 
0023         battery: battery {
0024                 compatible = "samsung,eb585157lu";
0025         };
0026 
0027         thermal-zones {
0028                 battery-thermal {
0029                         /* This zone will be polled by the battery temperature code */
0030                         polling-delay = <0>;
0031                         polling-delay-passive = <0>;
0032                         thermal-sensors = <&bat_therm>;
0033                 };
0034         };
0035 
0036         bat_therm: thermistor {
0037                 compatible = "samsung,1404-001221";
0038                 io-channels = <&gpadc 0x02>; /* BatTemp */
0039                 pullup-uv = <1800000>;
0040                 pullup-ohm = <230000>;
0041                 pulldown-ohm = <0>;
0042                 #thermal-sensor-cells = <0>;
0043         };
0044 
0045         /* TI TXS0206 level translator for 2.9 V */
0046         sd_level_translator: regulator-gpio {
0047                 compatible = "regulator-fixed";
0048 
0049                 /* GPIO193 EN */
0050                 gpios = <&gpio6 1 GPIO_ACTIVE_HIGH>;
0051                 enable-active-high;
0052 
0053                 regulator-name = "sd-level-translator";
0054                 regulator-min-microvolt = <2900000>;
0055                 regulator-max-microvolt = <2900000>;
0056                 regulator-type = "voltage";
0057 
0058                 startup-delay-us = <200>;
0059 
0060                 pinctrl-names = "default";
0061                 pinctrl-0 = <&sd_level_translator_default>;
0062         };
0063 
0064         /* External LDO for eMMC LDO VMEM_3V3 controlled by GPIO6 */
0065         ldo_3v3_reg: regulator-gpio-ldo-3v3 {
0066                 compatible = "regulator-fixed";
0067                 /* Supplied in turn by VBAT */
0068                 regulator-name = "VMEM_3V3";
0069                 regulator-min-microvolt = <3300000>;
0070                 regulator-max-microvolt = <3300000>;
0071                 gpio = <&gpio0 6 GPIO_ACTIVE_HIGH>;
0072                 startup-delay-us = <5000>; // FIXME
0073                 enable-active-high;
0074                 pinctrl-names = "default";
0075                 pinctrl-0 = <&emmc_ldo_en_default_mode>;
0076         };
0077 
0078         /*
0079          * External Ricoh "TSP" regulator for the touchscreen.
0080          * One GPIO line controls two voltages of 3.3V and 1.8V
0081          * this line is known as "TSP_LDO_ON1" in the schematics.
0082          */
0083         ldo_tsp_3v3_reg: regulator-gpio-tsp-ldo-3v3 {
0084                 compatible = "regulator-fixed";
0085                 /* Supplied in turn by VBAT */
0086                 regulator-name = "LDO_TSP_A3V3";
0087                 regulator-min-microvolt = <3300000>;
0088                 regulator-max-microvolt = <3300000>;
0089                 /* GPIO94 controls this regulator */
0090                 gpio = <&gpio2 30 GPIO_ACTIVE_HIGH>;
0091                 /* 70 ms power-on delay */
0092                 startup-delay-us = <70000>;
0093                 enable-active-high;
0094                 pinctrl-names = "default";
0095                 pinctrl-0 = <&tsp_ldo_en_default_mode>;
0096         };
0097         ldo_tsp_1v8_reg: regulator-gpio-tsp-ldo-1v8 {
0098                 compatible = "regulator-fixed";
0099                 /* Supplied in turn by VBAT */
0100                 regulator-name = "VREG_TSP_1V8";
0101                 regulator-min-microvolt = <1800000>;
0102                 regulator-max-microvolt = <1800000>;
0103                 /* GPIO94 controls this regulator */
0104                 gpio = <&gpio2 30 GPIO_ACTIVE_HIGH>;
0105                 /* 70 ms power-on delay */
0106                 startup-delay-us = <70000>;
0107                 enable-active-high;
0108                 pinctrl-names = "default";
0109                 pinctrl-0 = <&tsp_ldo_en_default_mode>;
0110         };
0111 
0112         /*
0113          * External Ricoh RP152L010B-TR LCD LDO regulator for the display.
0114          * LCD_PWR_EN controls both a 3.0V and 1.8V output.
0115          */
0116         lcd_3v0_reg: regulator-gpio-lcd-3v0 {
0117                 compatible = "regulator-fixed";
0118                 /* Supplied in turn by VBAT */
0119                 regulator-name = "VREG_LCD_3V0";
0120                 regulator-min-microvolt = <3000000>;
0121                 regulator-max-microvolt = <3000000>;
0122                 /* GPIO219 controls this regulator */
0123                 gpio = <&gpio6 27 GPIO_ACTIVE_HIGH>;
0124                 enable-active-high;
0125                 pinctrl-names = "default";
0126                 pinctrl-0 = <&lcd_pwr_en_default_mode>;
0127         };
0128         lcd_1v8_reg: regulator-gpio-lcd-1v8 {
0129                 compatible = "regulator-fixed";
0130                 /* Supplied in turn by VBAT */
0131                 regulator-name = "VREG_LCD_1V8";
0132                 regulator-min-microvolt = <1800000>;
0133                 regulator-max-microvolt = <1800000>;
0134                 /* GPIO219 controls this regulator too */
0135                 gpio = <&gpio6 27 GPIO_ACTIVE_HIGH>;
0136                 enable-active-high;
0137                 pinctrl-names = "default";
0138                 pinctrl-0 = <&lcd_pwr_en_default_mode>;
0139         };
0140 
0141         /*
0142          * This regulator is a GPIO line that drives the Broadcom WLAN
0143          * line WL_REG_ON high and enables the internal regulators
0144          * inside the chip. Unfortunatley it is erroneously named
0145          * WLAN_RST_N on the schematic but it is not a reset line.
0146          *
0147          * The voltage specified here is only used to determine the OCR mask,
0148          * the for the SDIO connector, the chip is actually connected
0149          * directly to VBAT.
0150          */
0151         wl_reg: regulator-gpio-wlan {
0152                 compatible = "regulator-fixed";
0153                 regulator-name = "WL_REG_ON";
0154                 regulator-min-microvolt = <3000000>;
0155                 regulator-max-microvolt = <3000000>;
0156                 startup-delay-us = <100000>;
0157                 /* GPIO215 (WLAN_RST_N to WL_REG_ON) */
0158                 gpio = <&gpio6 23 GPIO_ACTIVE_HIGH>;
0159                 enable-active-high;
0160                 pinctrl-names = "default";
0161                 pinctrl-0 = <&wlan_ldo_en_default>;
0162         };
0163 
0164         gpio-keys {
0165                 compatible = "gpio-keys";
0166                 pinctrl-names = "default";
0167                 pinctrl-0 = <&gpio_keys_default_mode>;
0168 
0169                 button-projector {
0170                         linux,code = <KEY_SWITCHVIDEOMODE>;
0171                         label = "Projector";
0172                         /* GPIO32 "Projector On HotKey" */
0173                         gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
0174                 };
0175                 button-home {
0176                         linux,code = <KEY_HOME>;
0177                         label = "HOME";
0178                         /* GPIO91 */
0179                         gpios = <&gpio2 27 GPIO_ACTIVE_LOW>;
0180                 };
0181                 button-volup {
0182                         linux,code = <KEY_VOLUMEUP>;
0183                         label = "VOL+";
0184                         /* GPIO67 */
0185                         gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
0186                 };
0187                 button-voldown {
0188                         linux,code = <KEY_VOLUMEDOWN>;
0189                         label = "VOL-";
0190                         /* GPIO92 */
0191                         gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
0192                 };
0193         };
0194 
0195         /* Richtek RT8515GQW Flash LED Driver IC */
0196         flash {
0197                 compatible = "richtek,rt8515";
0198                 /* GPIO 140 */
0199                 enf-gpios = <&gpio4 12 GPIO_ACTIVE_HIGH>;
0200                 /* GPIO 141 */
0201                 ent-gpios = <&gpio4 13 GPIO_ACTIVE_HIGH>;
0202                 /*
0203                  * RFS is 16 kOhm and RTS is 100 kOhm giving
0204                  * the flash max current 343mA and torch max
0205                  * current 55 mA.
0206                  */
0207                 richtek,rfs-ohms = <16000>;
0208                 richtek,rts-ohms = <100000>;
0209                 pinctrl-names = "default";
0210                 pinctrl-0 = <&gpio_flash_default_mode>;
0211 
0212                 led {
0213                         function = LED_FUNCTION_FLASH;
0214                         color = <LED_COLOR_ID_WHITE>;
0215                         flash-max-timeout-us = <250000>;
0216                         flash-max-microamp = <343750>;
0217                         led-max-microamp = <55000>;
0218                 };
0219         };
0220 
0221         gpio-leds {
0222                 compatible = "gpio-leds";
0223                 pinctrl-names = "default";
0224                 pinctrl-0 = <&gpio_leds_default_mode>;
0225                 used-led {
0226                         label = "touchkeys";
0227                         /* GPIO68 */
0228                         gpios = <&gpio2 4 GPIO_ACTIVE_HIGH>;
0229                         default-state = "on";
0230                 };
0231         };
0232 
0233         ktd259: backlight {
0234                 compatible = "kinetic,ktd259";
0235                 /* GPIO20 */
0236                 enable-gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
0237                 /* Default to 13/32 brightness */
0238                 default-brightness = <13>;
0239                 pinctrl-names = "default";
0240                 pinctrl-0 = <&ktd259_backlight_default_mode>;
0241         };
0242 
0243         /* Bit-banged I2C on GPIO143 and GPIO144 also called "SUBPMU I2C" */
0244         i2c-gpio-0 {
0245                 compatible = "i2c-gpio";
0246                 sda-gpios = <&gpio4 16 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
0247                 scl-gpios = <&gpio4 15 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
0248                 pinctrl-names = "default";
0249                 pinctrl-0 = <&i2c_gpio_0_default>;
0250                 #address-cells = <1>;
0251                 #size-cells = <0>;
0252 
0253                 /* Yamaha YAS530 magnetometer */
0254                 magnetometer@2e {
0255                         compatible = "yamaha,yas530";
0256                         reg = <0x2e>;
0257                         /* VDD 3V */
0258                         vdd-supply = <&ab8500_ldo_aux1_reg>;
0259                         /* IOVDD 1.8V */
0260                         iovdd-supply = <&ab8500_ldo_aux2_reg>;
0261                         /* GPIO204 COMPASS_RST_N */
0262                         reset-gpios = <&gpio6 12 GPIO_ACTIVE_LOW>;
0263                         pinctrl-names = "default";
0264                         pinctrl-0 = <&yas530_default>;
0265                 };
0266                 /* TODO: this should also be used by the NCP6914 Camera power management unit */
0267         };
0268 
0269         /*
0270          * TODO: See if we can use the PL023 for this instead.
0271          */
0272         spi-gpio-0 {
0273                 compatible = "spi-gpio";
0274                 /* Clock on GPIO220, pin SCL */
0275                 sck-gpios = <&gpio6 28 GPIO_ACTIVE_HIGH>;
0276                 /* MOSI on GPIO224, pin SDI "slave data in" */
0277                 mosi-gpios = <&gpio7 0 GPIO_ACTIVE_HIGH>;
0278                 /* MISO on GPIO225, pin SDO "slave data out" */
0279                 miso-gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>;
0280                 /* Chip select on GPIO223 */
0281                 cs-gpios = <&gpio6 31 GPIO_ACTIVE_LOW>;
0282                 num-chipselects = <1>;
0283 
0284                 pinctrl-names = "default";
0285                 pinctrl-0 = <&spi_gpio_0_default>;
0286                 #address-cells = <1>;
0287                 #size-cells = <0>;
0288 
0289                 panel@0 {
0290                         compatible = "samsung,lms397kf04";
0291                         /* 300 ns at read cycle -> 3 MHz max speed */
0292                         //spi-max-frequency = <3000000>;
0293                         spi-max-frequency = <1200000>;
0294                         /* TYPE 3: inverse clock polarity and phase */
0295                         spi-cpha;
0296                         spi-cpol;
0297 
0298                         reg = <0>;
0299                         vci-supply = <&lcd_3v0_reg>;
0300                         vccio-supply = <&lcd_1v8_reg>;
0301                         /* Reset on GPIO139 */
0302                         reset-gpios = <&gpio4 11 GPIO_ACTIVE_LOW>;
0303                         pinctrl-names = "default";
0304                         pinctrl-0 = <&panel_default_mode>;
0305                         backlight = <&ktd259>;
0306 
0307                         port {
0308                                 panel_in: endpoint {
0309                                         remote-endpoint = <&display_out>;
0310                                 };
0311                         };
0312                 };
0313         };
0314 
0315         /* Bit-banged I2C on GPIO201 and GPIO202 also called "MOT_I2C" */
0316         i2c-gpio-2 {
0317                 compatible = "i2c-gpio";
0318                 sda-gpios = <&gpio6 10 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
0319                 scl-gpios = <&gpio6 9 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
0320                 pinctrl-names = "default";
0321                 pinctrl-0 = <&i2c_gpio_2_default>;
0322                 #address-cells = <1>;
0323                 #size-cells = <0>;
0324                 /* TODO: add the Immersion ISA1200 I2C device here */
0325         };
0326 
0327         /* Bit-banged I2C on GPIO196 and GPIO197 also called "MPR_I2C" */
0328         i2c-gpio-3 {
0329                 compatible = "i2c-gpio";
0330                 sda-gpios = <&gpio6 5 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
0331                 scl-gpios = <&gpio6 4 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
0332                 pinctrl-names = "default";
0333                 pinctrl-0 = <&i2c_gpio_3_default>;
0334                 #address-cells = <1>;
0335                 #size-cells = <0>;
0336                 /* TODO: add the DPP2601 projector I2C device 0x1b here */
0337         };
0338 
0339         soc {
0340                 /* External Micro SD slot */
0341                 mmc@80126000 {
0342                         arm,primecell-periphid = <0x10480180>;
0343                         max-frequency = <50000000>;
0344                         bus-width = <4>;
0345                         cap-sd-highspeed;
0346                         cap-mmc-highspeed;
0347                         st,sig-pin-fbclk;
0348                         full-pwr-cycle;
0349                         /* MMC is powered by AUX3 1.2V .. 2.91V */
0350                         vmmc-supply = <&ab8500_ldo_aux3_reg>;
0351                         /* 2.9 V level translator */
0352                         vqmmc-supply = <&sd_level_translator>;
0353                         pinctrl-names = "default", "sleep";
0354                         pinctrl-0 = <&mc0_a_2_default>;
0355                         pinctrl-1 = <&mc0_a_2_sleep>;
0356                         /* "flash detect" actually card detect */
0357                         cd-gpios  = <&gpio6 25 GPIO_ACTIVE_LOW>;
0358                         status = "okay";
0359                 };
0360 
0361                 /* WLAN SDIO channel */
0362                 mmc@80118000 {
0363                         arm,primecell-periphid = <0x10480180>;
0364                         max-frequency = <50000000>;
0365                         bus-width = <4>;
0366                         non-removable;
0367                         cap-sd-highspeed;
0368                         pinctrl-names = "default", "sleep";
0369                         pinctrl-0 = <&mc1_a_2_default>;
0370                         pinctrl-1 = <&mc1_a_2_sleep>;
0371                         /*
0372                          * GPIO-controlled voltage enablement: this drives
0373                          * the WL_REG_ON line high when we use this device.
0374                          * Represented as regulator to fill OCR mask.
0375                          */
0376                         vmmc-supply = <&wl_reg>;
0377 
0378                         #address-cells = <1>;
0379                         #size-cells = <0>;
0380                         status = "okay";
0381 
0382                         wifi@1 {
0383                                 compatible = "brcm,bcm4330-fmac", "brcm,bcm4329-fmac";
0384                                 reg = <1>;
0385                                 /* GPIO216 WL_HOST_WAKE */
0386                                 interrupt-parent = <&gpio6>;
0387                                 interrupts = <24 IRQ_TYPE_EDGE_FALLING>;
0388                                 interrupt-names = "host-wake";
0389                                 pinctrl-names = "default";
0390                                 pinctrl-0 = <&wlan_default_mode>;
0391                         };
0392                 };
0393 
0394                 /* eMMC */
0395                 mmc@80005000 {
0396                         arm,primecell-periphid = <0x10480180>;
0397                         max-frequency = <50000000>;
0398                         bus-width = <8>;
0399                         non-removable;
0400                         cap-mmc-highspeed;
0401                         mmc-ddr-1_8v;
0402                         no-sdio;
0403                         no-sd;
0404                         vmmc-supply = <&ldo_3v3_reg>;
0405                         pinctrl-names = "default", "sleep";
0406                         pinctrl-0 = <&mc2_a_1_default>;
0407                         pinctrl-1 = <&mc2_a_1_sleep>;
0408                         status = "okay";
0409                 };
0410 
0411                 /* GBF (Bluetooth) UART */
0412                 uart@80120000 {
0413                         pinctrl-names = "default", "sleep";
0414                         pinctrl-0 = <&u0_a_1_default>;
0415                         pinctrl-1 = <&u0_a_1_sleep>;
0416                         status = "okay";
0417 
0418                         bluetooth {
0419                                 compatible = "brcm,bcm4330-bt";
0420                                 /* GPIO222 rail BT_VREG_EN to BT_REG_ON */
0421                                 shutdown-gpios = <&gpio6 30 GPIO_ACTIVE_HIGH>;
0422                                 /* BT_WAKE on GPIO199 */
0423                                 device-wakeup-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>;
0424                                 /* BT_HOST_WAKE on GPIO97 */
0425                                 host-wakeup-gpios = <&gpio3 1 GPIO_ACTIVE_HIGH>;
0426                                 /* BT_RST_N on GPIO209 */
0427                                 reset-gpios = <&gpio6 17 GPIO_ACTIVE_LOW>;
0428                                 pinctrl-names = "default";
0429                                 pinctrl-0 = <&bluetooth_default_mode>;
0430                         };
0431                 };
0432 
0433                 /* GPS UART */
0434                 uart@80121000 {
0435                         status = "okay";
0436                         pinctrl-names = "default", "sleep";
0437                         /* CTS/RTS is not used, CTS is repurposed as GPIO */
0438                         pinctrl-0 = <&u1rxtx_a_1_default>;
0439                         pinctrl-1 = <&u1rxtx_a_1_sleep>;
0440                         /* FIXME: add a device for the GPS here */
0441                 };
0442 
0443                 /* Debugging console UART connected to TSU6111RSVR (FSA880) */
0444                 uart@80007000 {
0445                         status = "okay";
0446                         pinctrl-names = "default", "sleep";
0447                         pinctrl-0 = <&u2rxtx_c_1_default>;
0448                         pinctrl-1 = <&u2rxtx_c_1_sleep>;
0449                 };
0450 
0451                 prcmu@80157000 {
0452                         ab8500 {
0453                                 phy {
0454                                         pinctrl-names = "default", "sleep";
0455                                         pinctrl-0 = <&usb_a_1_default>;
0456                                         pinctrl-1 = <&usb_a_1_sleep>;
0457                                 };
0458 
0459                                 ab8500_fg {
0460                                         line-impedance-micro-ohms = <43000>;
0461                                 };
0462 
0463                                 regulator {
0464                                         ab8500_ldo_aux1 {
0465                                                 /* Used for VDD for sensors */
0466                                                 regulator-name = "V-SENSORS-VDD";
0467                                                 regulator-min-microvolt = <3000000>;
0468                                                 regulator-max-microvolt = <3000000>;
0469                                         };
0470 
0471                                         ab8500_ldo_aux2 {
0472                                                 /* Used for VIO for sensors */
0473                                                 regulator-name = "V-SENSORS-VIO";
0474                                                 regulator-min-microvolt = <1800000>;
0475                                                 regulator-max-microvolt = <1800000>;
0476                                         };
0477 
0478                                         ab8500_ldo_aux3 {
0479                                                 /* Used for voltage for external MMC/SD card */
0480                                                 regulator-name = "V-MMC-SD";
0481                                                 regulator-min-microvolt = <1200000>;
0482                                                 regulator-max-microvolt = <2910000>;
0483                                         };
0484                                 };
0485                         };
0486                 };
0487 
0488                 /* I2C0 */
0489                 i2c@80004000 {
0490                         status = "okay";
0491                         pinctrl-names = "default", "sleep";
0492                         pinctrl-0 = <&i2c0_a_1_default>;
0493                         pinctrl-1 = <&i2c0_a_1_sleep>;
0494 
0495                         /* FIXME: fix the proximity sensor bindings and driver */
0496                         proximity@39 {
0497                                 /* Gavini has the GP2A030S00F proximity sensor */
0498                                 compatible = "sharp,gp2a030s00f";
0499                                 clock-frequency = <400000>;
0500                                 reg = <0x39>;
0501                                 /* FIXME: GPIO146 provides power on, IR LED? */
0502                         };
0503 
0504                         gyroscope@68 {
0505                                 compatible = "invensense,mpu3050";
0506                                 reg = <0x68>;
0507                                 /* GPIO226 interrupt */
0508                                 interrupt-parent = <&gpio7>;
0509                                 interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
0510                                 mount-matrix = "0", "1", "0",
0511                                                "1", "0", "0",
0512                                                "0", "0", "1";
0513                                 vlogic-supply = <&ab8500_ldo_aux2_reg>; // 1.8V
0514                                 vdd-supply = <&ab8500_ldo_aux1_reg>; // 3V
0515                                 pinctrl-names = "default";
0516                                 pinctrl-0 = <&mpu3050_default>;
0517 
0518                                 /*
0519                                  * The MPU-3050 acts as a hub for the
0520                                  * accelerometer.
0521                                  */
0522                                 i2c-gate {
0523                                         #address-cells = <1>;
0524                                         #size-cells = <0>;
0525 
0526                                         /* Bosch BMA222E accelerometer */
0527                                         accelerometer@18 {
0528                                                 compatible = "bosch,bma222e";
0529                                                 reg = <0x18>;
0530                                                 mount-matrix = "0", "-1", "0",
0531                                                                "1", "0", "0",
0532                                                                "0", "0", "1";
0533                                                 vddio-supply = <&ab8500_ldo_aux2_reg>; // 1.8V
0534                                                 vdd-supply = <&ab8500_ldo_aux1_reg>; // 3V
0535                                         };
0536                                 };
0537                         };
0538                 };
0539 
0540                 /* I2C2 "AGC I2C" */
0541                 i2c@80128000 {
0542                         status = "okay";
0543                         pinctrl-names = "default", "sleep";
0544                         pinctrl-0 = <&i2c2_b_1_default>;
0545                         pinctrl-1 = <&i2c2_b_1_sleep>;
0546 
0547                         /* Texas Instruments TSU6111 micro USB switch */
0548                         usb-switch@25 {
0549                                 compatible = "ti,tsu6111";
0550                                 reg = <0x25>;
0551                                 /* Interrupt JACK_INT_N on GPIO95 */
0552                                 interrupt-parent = <&gpio2>;
0553                                 interrupts = <31 IRQ_TYPE_EDGE_FALLING>;
0554                                 pinctrl-names = "default";
0555                                 pinctrl-0 = <&tsu6111_default>;
0556                         };
0557                 };
0558 
0559                 /* I2C3 */
0560                 i2c@80110000 {
0561                         status = "okay";
0562 
0563                         pinctrl-names = "default", "sleep";
0564                         pinctrl-0 = <&i2c3_c_2_default>;
0565                         pinctrl-1 = <&i2c3_c_2_sleep>;
0566 
0567                         /* Melfas MMS136 touchscreen */
0568                         touchscreen@48 {
0569                                 compatible = "melfas,mms136";
0570                                 reg = <0x48>;
0571                                 /* GPIO218 (TSP_INT_1V8) */
0572                                 interrupt-parent = <&gpio6>;
0573                                 interrupts = <26 IRQ_TYPE_EDGE_FALLING>;
0574                                 /* AVDD is "analog supply", 2.57-3.47 V */
0575                                 avdd-supply = <&ldo_tsp_3v3_reg>;
0576                                 /* VDD is "digital supply" 1.71-3.47V */
0577                                 vdd-supply = <&ldo_tsp_1v8_reg>;
0578                                 pinctrl-names = "default";
0579                                 pinctrl-0 = <&tsp_default>;
0580                                 touchscreen-size-x = <480>;
0581                                 touchscreen-size-y = <800>;
0582                         };
0583                 };
0584 
0585                 mcde@a0350000 {
0586                         status = "okay";
0587                         pinctrl-names = "default";
0588                         pinctrl-0 = <&dpi_default_mode>;
0589 
0590                         port {
0591                                 display_out: endpoint {
0592                                         remote-endpoint = <&panel_in>;
0593                                 };
0594                         };
0595                 };
0596         };
0597 };
0598 
0599 &pinctrl {
0600         /*
0601          * This extends the MC0_A_2 default config to include
0602          * the card detect GPIO217 line.
0603          */
0604         sdi0 {
0605                 mc0_a_2_default {
0606                         default_cfg4 {
0607                                 pins = "GPIO217_AH12"; /* card detect */
0608                                 ste,config = <&gpio_in_nopull>;
0609                         };
0610                 };
0611         };
0612         mcde {
0613                 dpi_default_mode: dpi_default {
0614                         default_mux1 {
0615                                 /* Mux in all the data lines */
0616                                 function = "lcd";
0617                                 groups =
0618                                         /* Data lines D0-D7 GPIO70..GPIO77 */
0619                                         "lcd_d0_d7_a_1",
0620                                         /* Data lines D8-D11 GPIO78..GPIO81 */
0621                                         "lcd_d8_d11_a_1",
0622                                         /* Data lines D12-D15 GPIO82..GPIO85 */
0623                                         "lcd_d12_d15_a_1",
0624                                         /* Data lines D16-D23 GPIO161..GPIO168 */
0625                                         "lcd_d16_d23_b_1";
0626                         };
0627                         default_mux2 {
0628                                 function = "lcda";
0629                                 /* Clock line on GPIO150, DE, VSO, HSO on GPIO169..GPIO171 */
0630                                 groups = "lcdaclk_b_1", "lcda_b_1";
0631                         };
0632                         /* Input, no pull-up is the default state for pins used for an alt function */
0633                         default_cfg1 {
0634                                 pins = "GPIO150_C14", "GPIO169_D22", "GPIO170_C23", "GPIO171_D23";
0635                                 ste,config = <&in_nopull>;
0636                         };
0637                 };
0638         };
0639         /* GPIO for panel reset control */
0640         panel {
0641                 panel_default_mode: panel_default {
0642                         gavini_cfg1 {
0643                                 /* Reset line */
0644                                 pins = "GPIO139_C9";
0645                                 ste,config = <&gpio_out_lo>;
0646                         };
0647                 };
0648         };
0649         /* GPIO that enables the LDO regulator for the eMMC */
0650         emmc-ldo {
0651                 emmc_ldo_en_default_mode: emmc_ldo_default {
0652                         /* LDO enable on GPIO6 */
0653                         gavini_cfg1 {
0654                                 pins = "GPIO6_AF6";
0655                                 ste,config = <&gpio_out_hi>;
0656                         };
0657                 };
0658         };
0659         /* GPIO that enables the LDO regulator for the touchscreen */
0660         tsp-ldo {
0661                 tsp_ldo_en_default_mode: tsp_ldo_default {
0662                         /* LDO enable on GPIO94 */
0663                         gavini_cfg1 {
0664                                 pins = "GPIO94_D7";
0665                                 ste,config = <&gpio_out_hi>;
0666                         };
0667                 };
0668         };
0669         /* Reset line for the Yamaha YAS530 magnetometer */
0670         yas530 {
0671                 yas530_default: yas530_janice {
0672                         janice_cfg1 {
0673                                 pins = "GPIO204_AF23";
0674                                 ste,config = <&gpio_out_hi>;
0675                         };
0676                 };
0677         };
0678         /* Flash and torch */
0679         flash {
0680                 gpio_flash_default_mode: flash_default {
0681                         janice_cfg1 {
0682                                 pins = "GPIO140_B11", "GPIO141_C12";
0683                                 ste,config = <&gpio_out_lo>;
0684                         };
0685                 };
0686         };
0687         /* GPIO that enables the LDO regulator for the key LED */
0688         gpio-leds {
0689                 gpio_leds_default_mode: gpio_leds_default {
0690                         /* EN_LED_LDO on GPIO68 */
0691                         gavini_cfg1 {
0692                                 pins = "GPIO68_E1";
0693                                 ste,config = <&gpio_out_hi>;
0694                         };
0695                 };
0696         };
0697         backlight {
0698                 ktd259_backlight_default_mode: backlight_default {
0699                         skomer_cfg1 {
0700                                 pins = "GPIO20_AB4"; /* LCD_BL_EN */
0701                                 ste,config = <&gpio_out_lo>;
0702                         };
0703                 };
0704         };
0705         /* GPIO that enables the LDO regulator for the touchkeys */
0706         touchkey-ldo {
0707                 tsp_ldo_on2_default_mode: tsp_ldo_on2_default {
0708                         /* TSP_LDO_ON2 on GPIO89 */
0709                         gavini_cfg1 {
0710                                 pins = "GPIO89_E6";
0711                                 ste,config = <&gpio_out_lo>;
0712                         };
0713                 };
0714         };
0715         touchkey {
0716                 touchkey_default_mode: touchkey_default {
0717                         gavini_cfg1 {
0718                                 /* Interrupt */
0719                                 pins = "GPIO198_AG25";
0720                                 ste,config = <&gpio_in_nopull>;
0721                         };
0722                         gavini_cfg2 {
0723                                 /* Reset, actually completely unused (not routed) */
0724                                 pins = "GPIO205_AG23";
0725                                 ste,config = <&gpio_in_pd>;
0726                         };
0727                 };
0728         };
0729         /* GPIO that enables the LDO regulator for the LCD display */
0730         lcd-ldo {
0731                 lcd_pwr_en_default_mode: lcd_pwr_en_default {
0732                         /* LCD_PWR_EN on GPIO219 */
0733                         gavini_cfg1 {
0734                                 pins = "GPIO219_AG10";
0735                                 ste,config = <&gpio_out_hi>;
0736                         };
0737                 };
0738         };
0739         /* GPIO that enables the WLAN internal LDO regulators */
0740         wlan-ldo {
0741                 wlan_ldo_en_default: wlan_ldo_default {
0742                         /* GPIO215 named WLAN_RST_N */
0743                         gavini_cfg1 {
0744                                 pins = "GPIO215_AH13";
0745                                 ste,config = <&gpio_out_lo>;
0746                         };
0747                 };
0748         };
0749         /* GPIO that enables the 2.9V SD card level translator */
0750         sd-level-translator {
0751                 sd_level_translator_default: sd_level_translator_default {
0752                         /* level shifter on GPIO193 */
0753                         skomer_cfg1 {
0754                                 pins = "GPIO193_AH27";
0755                                 ste,config = <&gpio_out_hi>;
0756                         };
0757                 };
0758         };
0759         /* GPIO keys */
0760         gpio-keys {
0761                 gpio_keys_default_mode: gpio_keys_default {
0762                         skomer_cfg1 {
0763                                 pins = "GPIO32_V2", /* Projector On HotKey */
0764                                        "GPIO67_G2", /* VOL UP */
0765                                        "GPIO91_B6", /* HOME */
0766                                        "GPIO92_D6"; /* VOL DOWN */
0767                                 ste,config = <&gpio_in_pu>;
0768                         };
0769                 };
0770         };
0771         /* Interrupt line for the Atmel MXT228 touchscreen */
0772         tsp {
0773                 tsp_default: tsp_default {
0774                         gavini_cfg1 {
0775                                 pins = "GPIO218_AH11";  /* TSP_INT_1V8 */
0776                                 ste,config = <&gpio_in_nopull>;
0777                         };
0778                 };
0779         };
0780         /* Interrupt line for Invensense MPU3050 gyroscope */
0781         mpu3050 {
0782                 mpu3050_default: mpu3050 {
0783                         gavini_cfg1 {
0784                                 /* GPIO226 used for IRQ */
0785                                 pins = "GPIO226_AF8";
0786                                 ste,config = <&gpio_in_nopull>;
0787                         };
0788                 };
0789         };
0790         /* GPIO-based I2C bus for magnetometer and NCP6914 */
0791         i2c-gpio-0 {
0792                 i2c_gpio_0_default: i2c_gpio_0 {
0793                         gavini_cfg1 {
0794                                 pins = "GPIO143_D12", "GPIO144_B13";
0795                                 ste,config = <&gpio_in_nopull>;
0796                         };
0797                 };
0798         };
0799         /* GPIO-based I2C bus for the Immersion ISA1200 */
0800         i2c-gpio-2 {
0801                 i2c_gpio_2_default: i2c_gpio_2 {
0802                         gavini_cfg1 {
0803                                 pins = "GPIO201_AF24", "GPIO202_AF25";
0804                                 ste,config = <&gpio_in_nopull>;
0805                         };
0806                 };
0807         };
0808         /* GPIO-based I2C bus for the TI DPP2601 */
0809         i2c-gpio-3 {
0810                 i2c_gpio_3_default: i2c_gpio_3 {
0811                         gavini_cfg1 {
0812                                 pins = "GPIO196_AG26", "GPIO197_AH24";
0813                                 ste,config = <&gpio_in_nopull>;
0814                         };
0815                 };
0816         };
0817         /* GPIO-based SPI bus for the display */
0818         spi-gpio-0 {
0819                 spi_gpio_0_default: spi_gpio_0_d {
0820                         gavini_cfg1 {
0821                                 pins = "GPIO220_AH10", "GPIO223_AH9", "GPIO224_AG9";
0822                                 ste,config = <&gpio_out_hi>;
0823                         };
0824                         gavini_cfg2 {
0825                                 pins = "GPIO225_AG8";
0826                                 ste,config = <&gpio_in_nopull>;
0827                         };
0828                 };
0829                 spi_gpio_0_sleep: spi_gpio_0_s {
0830                         gavini_cfg1 {
0831                                 pins = "GPIO220_AH10", "GPIO223_AH9",
0832                                      "GPIO224_AG9", "GPIO225_AG8";
0833                                 ste,config = <&gpio_out_hi>;
0834                         };
0835                         gavini_cfg2 {
0836                                 pins = "GPIO225_AG8";
0837                                 ste,config = <&gpio_out_lo>;
0838                         };
0839                 };
0840         };
0841         wlan {
0842                 wlan_default_mode: wlan_default {
0843                         /* GPIO216 for WL_HOST_WAKE */
0844                         gavini_cfg2 {
0845                                 pins = "GPIO216_AG12";
0846                                 ste,config = <&gpio_in_pd>;
0847                         };
0848                 };
0849         };
0850         bluetooth {
0851                 bluetooth_default_mode: bluetooth_default {
0852                         /* GPIO199 BT_WAKE and GPIO222 BT_VREG_ON */
0853                         gavini_cfg1 {
0854                                 pins = "GPIO199_AH23", "GPIO222_AJ9";
0855                                 ste,config = <&gpio_out_lo>;
0856                         };
0857                         /* GPIO97 BT_HOST_WAKE */
0858                         gavini_cfg2 {
0859                                 pins = "GPIO97_D9";
0860                                 ste,config = <&gpio_in_nopull>;
0861                         };
0862                         /* GPIO209 BT_RST_N */
0863                         gavini_cfg3 {
0864                                 pins = "GPIO209_AG15";
0865                                 ste,config = <&gpio_out_hi>;
0866                         };
0867                 };
0868         };
0869         /* Interrupt line for TI TSU6111 Micro USB switch */
0870         tsu6111 {
0871                 tsu6111_default: tsu6111 {
0872                         gavini_cfg1 {
0873                                 /* GPIO95 used for IRQ */
0874                                 pins = "GPIO95_E8";
0875                                 ste,config = <&gpio_in_nopull>;
0876                         };
0877                 };
0878         };
0879 };