Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: ux500: Add device tree for Samsung Gavini

This adds a device tree for the Samsung Galaxy Beam GT-I8530
also known as Gavini.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

+871
+1
arch/arm/boot/dts/Makefile
··· 1300 1300 ste-href520-tvk.dtb \ 1301 1301 ste-ux500-samsung-golden.dtb \ 1302 1302 ste-ux500-samsung-janice.dtb \ 1303 + ste-ux500-samsung-gavini.dtb \ 1303 1304 ste-ux500-samsung-skomer.dtb 1304 1305 dtb-$(CONFIG_ARCH_UNIPHIER) += \ 1305 1306 uniphier-ld4-ref.dtb \
+18
arch/arm/boot/dts/ste-dbx5x0-pinctrl.dtsi
··· 163 163 }; 164 164 165 165 i2c2 { 166 + i2c2_b_1_default: i2c2_b_1_default { 167 + default_mux { 168 + function = "i2c2"; 169 + groups = "i2c2_b_1"; 170 + }; 171 + default_cfg1 { 172 + pins = "GPIO8_AD5", "GPIO9_AE4"; /* SDA/SCL */ 173 + ste,config = <&in_nopull>; 174 + }; 175 + }; 176 + 177 + i2c2_b_1_sleep: i2c2_b_1_sleep { 178 + sleep_cfg1 { 179 + pins = "GPIO8_AD5", "GPIO9_AE4"; /* SDA/SCL */ 180 + ste,config = <&slpm_in_wkup_pdis>; 181 + }; 182 + }; 183 + 166 184 i2c2_b_2_default: i2c2_b_2_default { 167 185 default_mux { 168 186 function = "i2c2";
+852
arch/arm/boot/dts/ste-ux500-samsung-gavini.dts
··· 1 + // SPDX-License-Identifier: GPL-2.0-only 2 + /* 3 + * Devicetree for the Samsung Galaxy Beam GT-I8530 also known as Gavini. 4 + */ 5 + 6 + /dts-v1/; 7 + #include "ste-db8500.dtsi" 8 + #include "ste-ab8500.dtsi" 9 + #include "ste-dbx5x0-pinctrl.dtsi" 10 + #include <dt-bindings/gpio/gpio.h> 11 + #include <dt-bindings/leds/common.h> 12 + #include <dt-bindings/input/input.h> 13 + #include <dt-bindings/interrupt-controller/irq.h> 14 + 15 + / { 16 + model = "Samsung Galaxy Beam (GT-I8530)"; 17 + compatible = "samsung,gavini", "st-ericsson,u8500"; 18 + 19 + chosen { 20 + stdout-path = &serial2; 21 + }; 22 + 23 + /* TI TXS0206 level translator for 2.9 V */ 24 + sd_level_translator: regulator-gpio { 25 + compatible = "regulator-fixed"; 26 + 27 + /* GPIO193 EN */ 28 + gpios = <&gpio6 1 GPIO_ACTIVE_HIGH>; 29 + enable-active-high; 30 + 31 + regulator-name = "sd-level-translator"; 32 + regulator-min-microvolt = <2900000>; 33 + regulator-max-microvolt = <2900000>; 34 + regulator-type = "voltage"; 35 + 36 + startup-delay-us = <200>; 37 + 38 + pinctrl-names = "default"; 39 + pinctrl-0 = <&sd_level_translator_default>; 40 + }; 41 + 42 + /* External LDO for eMMC LDO VMEM_3V3 controlled by GPIO6 */ 43 + ldo_3v3_reg: regulator-gpio-ldo-3v3 { 44 + compatible = "regulator-fixed"; 45 + /* Supplied in turn by VBAT */ 46 + regulator-name = "VMEM_3V3"; 47 + regulator-min-microvolt = <3300000>; 48 + regulator-max-microvolt = <3300000>; 49 + gpio = <&gpio0 6 GPIO_ACTIVE_HIGH>; 50 + startup-delay-us = <5000>; // FIXME 51 + enable-active-high; 52 + pinctrl-names = "default"; 53 + pinctrl-0 = <&emmc_ldo_en_default_mode>; 54 + }; 55 + 56 + /* 57 + * External Ricoh "TSP" regulator for the touchscreen. 58 + * One GPIO line controls two voltages of 3.3V and 1.8V 59 + * this line is known as "TSP_LDO_ON1" in the schematics. 60 + */ 61 + ldo_tsp_3v3_reg: regulator-gpio-tsp-ldo-3v3 { 62 + compatible = "regulator-fixed"; 63 + /* Supplied in turn by VBAT */ 64 + regulator-name = "LDO_TSP_A3V3"; 65 + regulator-min-microvolt = <3300000>; 66 + regulator-max-microvolt = <3300000>; 67 + /* GPIO94 controls this regulator */ 68 + gpio = <&gpio2 30 GPIO_ACTIVE_HIGH>; 69 + /* 70 ms power-on delay */ 70 + startup-delay-us = <70000>; 71 + enable-active-high; 72 + pinctrl-names = "default"; 73 + pinctrl-0 = <&tsp_ldo_en_default_mode>; 74 + }; 75 + ldo_tsp_1v8_reg: regulator-gpio-tsp-ldo-1v8 { 76 + compatible = "regulator-fixed"; 77 + /* Supplied in turn by VBAT */ 78 + regulator-name = "VREG_TSP_1V8"; 79 + regulator-min-microvolt = <1800000>; 80 + regulator-max-microvolt = <1800000>; 81 + /* GPIO94 controls this regulator */ 82 + gpio = <&gpio2 30 GPIO_ACTIVE_HIGH>; 83 + /* 70 ms power-on delay */ 84 + startup-delay-us = <70000>; 85 + enable-active-high; 86 + pinctrl-names = "default"; 87 + pinctrl-0 = <&tsp_ldo_en_default_mode>; 88 + }; 89 + 90 + /* 91 + * External Ricoh RP152L010B-TR LCD LDO regulator for the display. 92 + * LCD_PWR_EN controls both a 3.0V and 1.8V output. 93 + */ 94 + lcd_3v0_reg: regulator-gpio-lcd-3v0 { 95 + compatible = "regulator-fixed"; 96 + /* Supplied in turn by VBAT */ 97 + regulator-name = "VREG_LCD_3V0"; 98 + regulator-min-microvolt = <3000000>; 99 + regulator-max-microvolt = <3000000>; 100 + /* GPIO219 controls this regulator */ 101 + gpio = <&gpio6 27 GPIO_ACTIVE_HIGH>; 102 + enable-active-high; 103 + pinctrl-names = "default"; 104 + pinctrl-0 = <&lcd_pwr_en_default_mode>; 105 + }; 106 + lcd_1v8_reg: regulator-gpio-lcd-1v8 { 107 + compatible = "regulator-fixed"; 108 + /* Supplied in turn by VBAT */ 109 + regulator-name = "VREG_LCD_1V8"; 110 + regulator-min-microvolt = <1800000>; 111 + regulator-max-microvolt = <1800000>; 112 + /* GPIO219 controls this regulator too */ 113 + gpio = <&gpio6 27 GPIO_ACTIVE_HIGH>; 114 + enable-active-high; 115 + pinctrl-names = "default"; 116 + pinctrl-0 = <&lcd_pwr_en_default_mode>; 117 + }; 118 + 119 + /* 120 + * This regulator is a GPIO line that drives the Broadcom WLAN 121 + * line WL_REG_ON high and enables the internal regulators 122 + * inside the chip. Unfortunatley it is erroneously named 123 + * WLAN_RST_N on the schematic but it is not a reset line. 124 + * 125 + * The voltage specified here is only used to determine the OCR mask, 126 + * the for the SDIO connector, the chip is actually connected 127 + * directly to VBAT. 128 + */ 129 + wl_reg: regulator-gpio-wlan { 130 + compatible = "regulator-fixed"; 131 + regulator-name = "WL_REG_ON"; 132 + regulator-min-microvolt = <3000000>; 133 + regulator-max-microvolt = <3000000>; 134 + startup-delay-us = <100000>; 135 + /* GPIO215 (WLAN_RST_N to WL_REG_ON) */ 136 + gpio = <&gpio6 23 GPIO_ACTIVE_HIGH>; 137 + enable-active-high; 138 + pinctrl-names = "default"; 139 + pinctrl-0 = <&wlan_ldo_en_default>; 140 + }; 141 + 142 + gpio-keys { 143 + compatible = "gpio-keys"; 144 + pinctrl-names = "default"; 145 + pinctrl-0 = <&gpio_keys_default_mode>; 146 + 147 + button-projector { 148 + linux,code = <KEY_SWITCHVIDEOMODE>; 149 + label = "Projector"; 150 + /* GPIO32 "Projector On HotKey" */ 151 + gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; 152 + }; 153 + button-home { 154 + linux,code = <KEY_HOME>; 155 + label = "HOME"; 156 + /* GPIO91 */ 157 + gpios = <&gpio2 27 GPIO_ACTIVE_LOW>; 158 + }; 159 + button-volup { 160 + linux,code = <KEY_VOLUMEUP>; 161 + label = "VOL+"; 162 + /* GPIO67 */ 163 + gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; 164 + }; 165 + button-voldown { 166 + linux,code = <KEY_VOLUMEDOWN>; 167 + label = "VOL-"; 168 + /* GPIO92 */ 169 + gpios = <&gpio2 28 GPIO_ACTIVE_LOW>; 170 + }; 171 + }; 172 + 173 + /* Richtek RT8515GQW Flash LED Driver IC */ 174 + flash { 175 + compatible = "richtek,rt8515"; 176 + /* GPIO 140 */ 177 + enf-gpios = <&gpio4 12 GPIO_ACTIVE_HIGH>; 178 + /* GPIO 141 */ 179 + ent-gpios = <&gpio4 13 GPIO_ACTIVE_HIGH>; 180 + /* 181 + * RFS is 16 kOhm and RTS is 100 kOhm giving 182 + * the flash max current 343mA and torch max 183 + * current 55 mA. 184 + */ 185 + richtek,rfs-ohms = <16000>; 186 + richtek,rts-ohms = <100000>; 187 + pinctrl-names = "default"; 188 + pinctrl-0 = <&gpio_flash_default_mode>; 189 + 190 + led { 191 + function = LED_FUNCTION_FLASH; 192 + color = <LED_COLOR_ID_WHITE>; 193 + flash-max-timeout-us = <250000>; 194 + flash-max-microamp = <343750>; 195 + led-max-microamp = <55000>; 196 + }; 197 + }; 198 + 199 + gpio-leds { 200 + compatible = "gpio-leds"; 201 + pinctrl-names = "default"; 202 + pinctrl-0 = <&gpio_leds_default_mode>; 203 + used-led { 204 + label = "touchkeys"; 205 + /* GPIO68 */ 206 + gpios = <&gpio2 4 GPIO_ACTIVE_HIGH>; 207 + default-state = "on"; 208 + }; 209 + }; 210 + 211 + ktd259: backlight { 212 + compatible = "kinetic,ktd259"; 213 + /* GPIO20 */ 214 + enable-gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>; 215 + /* Default to 13/32 brightness */ 216 + default-brightness = <13>; 217 + pinctrl-names = "default"; 218 + pinctrl-0 = <&ktd259_backlight_default_mode>; 219 + }; 220 + 221 + /* Bit-banged I2C on GPIO143 and GPIO144 also called "SUBPMU I2C" */ 222 + i2c-gpio-0 { 223 + compatible = "i2c-gpio"; 224 + sda-gpios = <&gpio4 16 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; 225 + scl-gpios = <&gpio4 15 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; 226 + pinctrl-names = "default"; 227 + pinctrl-0 = <&i2c_gpio_0_default>; 228 + #address-cells = <1>; 229 + #size-cells = <0>; 230 + 231 + /* TODO: Memsic MMC328 magnetometer */ 232 + magnetometer@30 { 233 + compatible = "memsic,mmc328"; 234 + reg = <0x30>; 235 + /* TODO: if you have the schematic, check if both voltages come from AUX2 */ 236 + /* VDA 1.8 V */ 237 + vda-supply = <&ab8500_ldo_aux2_reg>; 238 + /* VDD 1.8V */ 239 + vdd-supply = <&ab8500_ldo_aux2_reg>; 240 + /* GPIO204 */ 241 + reset-gpios = <&gpio6 12 GPIO_ACTIVE_LOW>; 242 + pinctrl-names = "default"; 243 + pinctrl-0 = <&mmc328_default>; 244 + }; 245 + /* TODO: this should also be used by the NCP6914 Camera power management unit */ 246 + }; 247 + 248 + /* 249 + * TODO: See if we can use the PL023 for this instead. 250 + */ 251 + spi-gpio-0 { 252 + compatible = "spi-gpio"; 253 + /* Clock on GPIO220, pin SCL */ 254 + sck-gpios = <&gpio6 28 GPIO_ACTIVE_HIGH>; 255 + /* MOSI on GPIO224, pin SDI "slave data in" */ 256 + mosi-gpios = <&gpio7 0 GPIO_ACTIVE_HIGH>; 257 + /* MISO on GPIO225, pin SDO "slave data out" */ 258 + miso-gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>; 259 + /* Chip select on GPIO223 */ 260 + cs-gpios = <&gpio6 31 GPIO_ACTIVE_LOW>; 261 + num-chipselects = <1>; 262 + 263 + pinctrl-names = "default"; 264 + pinctrl-0 = <&spi_gpio_0_default>; 265 + #address-cells = <1>; 266 + #size-cells = <0>; 267 + 268 + panel@0 { 269 + compatible = "samsung,lms397kf04"; 270 + /* 300 ns at read cycle -> 3 MHz max speed */ 271 + //spi-max-frequency = <3000000>; 272 + spi-max-frequency = <1200000>; 273 + /* TYPE 3: inverse clock polarity and phase */ 274 + spi-cpha; 275 + spi-cpol; 276 + 277 + reg = <0>; 278 + vci-supply = <&lcd_3v0_reg>; 279 + vccio-supply = <&lcd_1v8_reg>; 280 + /* Reset on GPIO139 */ 281 + reset-gpios = <&gpio4 11 GPIO_ACTIVE_LOW>; 282 + pinctrl-names = "default"; 283 + pinctrl-0 = <&panel_default_mode>; 284 + backlight = <&ktd259>; 285 + 286 + port { 287 + panel_in: endpoint { 288 + remote-endpoint = <&display_out>; 289 + }; 290 + }; 291 + }; 292 + }; 293 + 294 + /* Bit-banged I2C on GPIO201 and GPIO202 also called "MOT_I2C" */ 295 + i2c-gpio-2 { 296 + compatible = "i2c-gpio"; 297 + sda-gpios = <&gpio6 10 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; 298 + scl-gpios = <&gpio6 9 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; 299 + pinctrl-names = "default"; 300 + pinctrl-0 = <&i2c_gpio_2_default>; 301 + #address-cells = <1>; 302 + #size-cells = <0>; 303 + /* TODO: add the Immersion ISA1200 I2C device here */ 304 + }; 305 + 306 + /* Bit-banged I2C on GPIO196 and GPIO197 also called "MPR_I2C" */ 307 + i2c-gpio-3 { 308 + compatible = "i2c-gpio"; 309 + sda-gpios = <&gpio6 5 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; 310 + scl-gpios = <&gpio6 4 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; 311 + pinctrl-names = "default"; 312 + pinctrl-0 = <&i2c_gpio_3_default>; 313 + #address-cells = <1>; 314 + #size-cells = <0>; 315 + /* TODO: add the DPP2601 projector I2C device 0x1b here */ 316 + }; 317 + 318 + soc { 319 + /* External Micro SD slot */ 320 + mmc@80126000 { 321 + arm,primecell-periphid = <0x10480180>; 322 + max-frequency = <50000000>; 323 + bus-width = <4>; 324 + cap-sd-highspeed; 325 + cap-mmc-highspeed; 326 + st,sig-pin-fbclk; 327 + full-pwr-cycle; 328 + /* MMC is powered by AUX3 1.2V .. 2.91V */ 329 + vmmc-supply = <&ab8500_ldo_aux3_reg>; 330 + /* 2.9 V level translator */ 331 + vqmmc-supply = <&sd_level_translator>; 332 + pinctrl-names = "default", "sleep"; 333 + pinctrl-0 = <&mc0_a_2_default>; 334 + pinctrl-1 = <&mc0_a_2_sleep>; 335 + /* "flash detect" actually card detect */ 336 + cd-gpios = <&gpio6 25 GPIO_ACTIVE_LOW>; 337 + status = "okay"; 338 + }; 339 + 340 + /* WLAN SDIO channel */ 341 + mmc@80118000 { 342 + arm,primecell-periphid = <0x10480180>; 343 + max-frequency = <50000000>; 344 + bus-width = <4>; 345 + non-removable; 346 + cap-sd-highspeed; 347 + pinctrl-names = "default", "sleep"; 348 + pinctrl-0 = <&mc1_a_2_default>; 349 + pinctrl-1 = <&mc1_a_2_sleep>; 350 + /* 351 + * GPIO-controlled voltage enablement: this drives 352 + * the WL_REG_ON line high when we use this device. 353 + * Represented as regulator to fill OCR mask. 354 + */ 355 + vmmc-supply = <&wl_reg>; 356 + 357 + #address-cells = <1>; 358 + #size-cells = <0>; 359 + status = "okay"; 360 + 361 + wifi@1 { 362 + compatible = "brcm,bcm4330-fmac", "brcm,bcm4329-fmac"; 363 + reg = <1>; 364 + /* GPIO216 WL_HOST_WAKE */ 365 + interrupt-parent = <&gpio6>; 366 + interrupts = <24 IRQ_TYPE_EDGE_FALLING>; 367 + interrupt-names = "host-wake"; 368 + pinctrl-names = "default"; 369 + pinctrl-0 = <&wlan_default_mode>; 370 + }; 371 + }; 372 + 373 + /* eMMC */ 374 + mmc@80005000 { 375 + arm,primecell-periphid = <0x10480180>; 376 + max-frequency = <50000000>; 377 + bus-width = <8>; 378 + non-removable; 379 + cap-mmc-highspeed; 380 + mmc-ddr-1_8v; 381 + vmmc-supply = <&ldo_3v3_reg>; 382 + pinctrl-names = "default", "sleep"; 383 + pinctrl-0 = <&mc2_a_1_default>; 384 + pinctrl-1 = <&mc2_a_1_sleep>; 385 + status = "okay"; 386 + }; 387 + 388 + /* GBF (Bluetooth) UART */ 389 + uart@80120000 { 390 + pinctrl-names = "default", "sleep"; 391 + pinctrl-0 = <&u0_a_1_default>; 392 + pinctrl-1 = <&u0_a_1_sleep>; 393 + status = "okay"; 394 + 395 + bluetooth { 396 + compatible = "brcm,bcm4330-bt"; 397 + /* GPIO222 rail BT_VREG_EN to BT_REG_ON */ 398 + shutdown-gpios = <&gpio6 30 GPIO_ACTIVE_HIGH>; 399 + /* BT_WAKE on GPIO199 */ 400 + device-wakeup-gpios = <&gpio6 7 GPIO_ACTIVE_HIGH>; 401 + /* BT_HOST_WAKE on GPIO97 */ 402 + host-wakeup-gpios = <&gpio3 1 GPIO_ACTIVE_HIGH>; 403 + /* BT_RST_N on GPIO209 */ 404 + reset-gpios = <&gpio6 17 GPIO_ACTIVE_LOW>; 405 + pinctrl-names = "default"; 406 + pinctrl-0 = <&bluetooth_default_mode>; 407 + }; 408 + }; 409 + 410 + /* GPS UART */ 411 + uart@80121000 { 412 + status = "okay"; 413 + pinctrl-names = "default", "sleep"; 414 + /* CTS/RTS is not used, CTS is repurposed as GPIO */ 415 + pinctrl-0 = <&u1rxtx_a_1_default>; 416 + pinctrl-1 = <&u1rxtx_a_1_sleep>; 417 + /* FIXME: add a device for the GPS here */ 418 + }; 419 + 420 + /* Debugging console UART connected to TSU6111RSVR (FSA880) */ 421 + uart@80007000 { 422 + status = "okay"; 423 + pinctrl-names = "default", "sleep"; 424 + pinctrl-0 = <&u2rxtx_c_1_default>; 425 + pinctrl-1 = <&u2rxtx_c_1_sleep>; 426 + }; 427 + 428 + prcmu@80157000 { 429 + ab8500 { 430 + ab8500_usb { 431 + pinctrl-names = "default", "sleep"; 432 + pinctrl-0 = <&usb_a_1_default>; 433 + pinctrl-1 = <&usb_a_1_sleep>; 434 + }; 435 + 436 + ab8500-regulators { 437 + ab8500_ldo_aux1 { 438 + /* Used for VDD for sensors */ 439 + regulator-name = "V-SENSORS-VDD"; 440 + regulator-min-microvolt = <3000000>; 441 + regulator-max-microvolt = <3000000>; 442 + }; 443 + 444 + ab8500_ldo_aux2 { 445 + /* Used for VIO for sensors */ 446 + regulator-name = "V-SENSORS-VIO"; 447 + regulator-min-microvolt = <1800000>; 448 + regulator-max-microvolt = <1800000>; 449 + }; 450 + 451 + ab8500_ldo_aux3 { 452 + /* Used for voltage for external MMC/SD card */ 453 + regulator-name = "V-MMC-SD"; 454 + regulator-min-microvolt = <1200000>; 455 + regulator-max-microvolt = <2910000>; 456 + }; 457 + }; 458 + }; 459 + }; 460 + 461 + /* I2C0 */ 462 + i2c@80004000 { 463 + status = "okay"; 464 + pinctrl-names = "default", "sleep"; 465 + pinctrl-0 = <&i2c0_a_1_default>; 466 + pinctrl-1 = <&i2c0_a_1_sleep>; 467 + 468 + /* FIXME: fix the proximity sensor bindings and driver */ 469 + proximity@39 { 470 + /* Gavini has the GP2A030S00F proximity sensor */ 471 + compatible = "sharp,gp2a030s00f"; 472 + clock-frequency = <400000>; 473 + reg = <0x39>; 474 + /* FIXME: GPIO146 provides power on, IR LED? */ 475 + }; 476 + 477 + gyroscope@68 { 478 + compatible = "invensense,mpu3050"; 479 + reg = <0x68>; 480 + /* GPIO226 interrupt */ 481 + interrupt-parent = <&gpio7>; 482 + interrupts = <2 IRQ_TYPE_EDGE_FALLING>; 483 + mount-matrix = "0", "1", "0", 484 + "1", "0", "0", 485 + "0", "0", "1"; 486 + vlogic-supply = <&ab8500_ldo_aux2_reg>; // 1.8V 487 + vdd-supply = <&ab8500_ldo_aux1_reg>; // 3V 488 + pinctrl-names = "default"; 489 + pinctrl-0 = <&mpu3050_default>; 490 + 491 + /* 492 + * The MPU-3050 acts as a hub for the 493 + * accelerometer. 494 + */ 495 + i2c-gate { 496 + #address-cells = <1>; 497 + #size-cells = <0>; 498 + 499 + /* Bosch BMA222E accelerometer */ 500 + accelerometer@18 { 501 + compatible = "bosch,bma222e"; 502 + reg = <0x18>; 503 + mount-matrix = "0", "1", "0", 504 + "-1", "0", "0", 505 + "0", "0", "1"; 506 + vddio-supply = <&ab8500_ldo_aux2_reg>; // 1.8V 507 + vdd-supply = <&ab8500_ldo_aux1_reg>; // 3V 508 + }; 509 + }; 510 + }; 511 + }; 512 + 513 + /* I2C2 "AGC I2C" */ 514 + i2c@80128000 { 515 + status = "okay"; 516 + pinctrl-names = "default", "sleep"; 517 + pinctrl-0 = <&i2c2_b_1_default>; 518 + pinctrl-1 = <&i2c2_b_1_sleep>; 519 + 520 + /* Texas Instruments TSU6111 micro USB switch */ 521 + usb-switch@25 { 522 + compatible = "ti,tsu6111"; 523 + reg = <0x25>; 524 + /* Interrupt JACK_INT_N on GPIO95 */ 525 + interrupt-parent = <&gpio2>; 526 + interrupts = <31 IRQ_TYPE_EDGE_FALLING>; 527 + pinctrl-names = "default"; 528 + pinctrl-0 = <&tsu6111_default>; 529 + }; 530 + }; 531 + 532 + /* I2C3 */ 533 + i2c@80110000 { 534 + status = "okay"; 535 + 536 + pinctrl-names = "default", "sleep"; 537 + pinctrl-0 = <&i2c3_c_2_default>; 538 + pinctrl-1 = <&i2c3_c_2_sleep>; 539 + 540 + /* Melfas MMS136 touchscreen */ 541 + touchscreen@48 { 542 + compatible = "melfas,mms136"; 543 + reg = <0x48>; 544 + /* GPIO218 (TSP_INT_1V8) */ 545 + interrupt-parent = <&gpio6>; 546 + interrupts = <26 IRQ_TYPE_EDGE_FALLING>; 547 + /* AVDD is "analog supply", 2.57-3.47 V */ 548 + avdd-supply = <&ldo_tsp_3v3_reg>; 549 + /* VDD is "digital supply" 1.71-3.47V */ 550 + vdd-supply = <&ldo_tsp_1v8_reg>; 551 + pinctrl-names = "default"; 552 + pinctrl-0 = <&tsp_default>; 553 + touchscreen-size-x = <480>; 554 + touchscreen-size-y = <800>; 555 + }; 556 + }; 557 + 558 + mcde@a0350000 { 559 + status = "okay"; 560 + pinctrl-names = "default"; 561 + pinctrl-0 = <&dpi_default_mode>; 562 + 563 + port { 564 + display_out: endpoint { 565 + remote-endpoint = <&panel_in>; 566 + }; 567 + }; 568 + }; 569 + }; 570 + }; 571 + 572 + &pinctrl { 573 + /* 574 + * This extends the MC0_A_2 default config to include 575 + * the card detect GPIO217 line. 576 + */ 577 + sdi0 { 578 + mc0_a_2_default { 579 + default_cfg4 { 580 + pins = "GPIO217_AH12"; /* card detect */ 581 + ste,config = <&gpio_in_nopull>; 582 + }; 583 + }; 584 + }; 585 + mcde { 586 + dpi_default_mode: dpi_default { 587 + default_mux1 { 588 + /* Mux in all the data lines */ 589 + function = "lcd"; 590 + groups = 591 + /* Data lines D0-D7 GPIO70..GPIO77 */ 592 + "lcd_d0_d7_a_1", 593 + /* Data lines D8-D11 GPIO78..GPIO81 */ 594 + "lcd_d8_d11_a_1", 595 + /* Data lines D12-D15 GPIO82..GPIO85 */ 596 + "lcd_d12_d15_a_1", 597 + /* Data lines D16-D23 GPIO161..GPIO168 */ 598 + "lcd_d16_d23_b_1"; 599 + }; 600 + default_mux2 { 601 + function = "lcda"; 602 + /* Clock line on GPIO150, DE, VSO, HSO on GPIO169..GPIO171 */ 603 + groups = "lcdaclk_b_1", "lcda_b_1"; 604 + }; 605 + /* Input, no pull-up is the default state for pins used for an alt function */ 606 + default_cfg1 { 607 + pins = "GPIO150_C14", "GPIO169_D22", "GPIO170_C23", "GPIO171_D23"; 608 + ste,config = <&in_nopull>; 609 + }; 610 + }; 611 + }; 612 + /* GPIO for panel reset control */ 613 + panel { 614 + panel_default_mode: panel_default { 615 + gavini_cfg1 { 616 + /* Reset line */ 617 + pins = "GPIO139_C9"; 618 + ste,config = <&gpio_out_lo>; 619 + }; 620 + }; 621 + }; 622 + /* GPIO that enables the LDO regulator for the eMMC */ 623 + emmc-ldo { 624 + emmc_ldo_en_default_mode: emmc_ldo_default { 625 + /* LDO enable on GPIO6 */ 626 + gavini_cfg1 { 627 + pins = "GPIO6_AF6"; 628 + ste,config = <&gpio_out_hi>; 629 + }; 630 + }; 631 + }; 632 + /* GPIO that enables the LDO regulator for the touchscreen */ 633 + tsp-ldo { 634 + tsp_ldo_en_default_mode: tsp_ldo_default { 635 + /* LDO enable on GPIO94 */ 636 + gavini_cfg1 { 637 + pins = "GPIO94_D7"; 638 + ste,config = <&gpio_out_hi>; 639 + }; 640 + }; 641 + }; 642 + /* Flash and torch */ 643 + flash { 644 + gpio_flash_default_mode: flash_default { 645 + janice_cfg1 { 646 + pins = "GPIO140_B11", "GPIO141_C12"; 647 + ste,config = <&gpio_out_lo>; 648 + }; 649 + }; 650 + }; 651 + /* GPIO that enables the LDO regulator for the key LED */ 652 + gpio-leds { 653 + gpio_leds_default_mode: gpio_leds_default { 654 + /* EN_LED_LDO on GPIO68 */ 655 + gavini_cfg1 { 656 + pins = "GPIO68_E1"; 657 + ste,config = <&gpio_out_hi>; 658 + }; 659 + }; 660 + }; 661 + backlight { 662 + ktd259_backlight_default_mode: backlight_default { 663 + skomer_cfg1 { 664 + pins = "GPIO20_AB4"; /* LCD_BL_EN */ 665 + ste,config = <&gpio_out_lo>; 666 + }; 667 + }; 668 + }; 669 + /* GPIO that enables the LDO regulator for the touchkeys */ 670 + touchkey-ldo { 671 + tsp_ldo_on2_default_mode: tsp_ldo_on2_default { 672 + /* TSP_LDO_ON2 on GPIO89 */ 673 + gavini_cfg1 { 674 + pins = "GPIO89_E6"; 675 + ste,config = <&gpio_out_lo>; 676 + }; 677 + }; 678 + }; 679 + touchkey { 680 + touchkey_default_mode: touchkey_default { 681 + gavini_cfg1 { 682 + /* Interrupt */ 683 + pins = "GPIO198_AG25"; 684 + ste,config = <&gpio_in_nopull>; 685 + }; 686 + gavini_cfg2 { 687 + /* Reset, actually completely unused (not routed) */ 688 + pins = "GPIO205_AG23"; 689 + ste,config = <&gpio_in_pd>; 690 + }; 691 + }; 692 + }; 693 + /* GPIO that enables the LDO regulator for the LCD display */ 694 + lcd-ldo { 695 + lcd_pwr_en_default_mode: lcd_pwr_en_default { 696 + /* LCD_PWR_EN on GPIO219 */ 697 + gavini_cfg1 { 698 + pins = "GPIO219_AG10"; 699 + ste,config = <&gpio_out_hi>; 700 + }; 701 + }; 702 + }; 703 + /* GPIO that enables the WLAN internal LDO regulators */ 704 + wlan-ldo { 705 + wlan_ldo_en_default: wlan_ldo_default { 706 + /* GPIO215 named WLAN_RST_N */ 707 + gavini_cfg1 { 708 + pins = "GPIO215_AH13"; 709 + ste,config = <&gpio_out_lo>; 710 + }; 711 + }; 712 + }; 713 + /* GPIO that enables the 2.9V SD card level translator */ 714 + sd-level-translator { 715 + sd_level_translator_default: sd_level_translator_default { 716 + /* level shifter on GPIO193 */ 717 + skomer_cfg1 { 718 + pins = "GPIO193_AH27"; 719 + ste,config = <&gpio_out_hi>; 720 + }; 721 + }; 722 + }; 723 + /* GPIO keys */ 724 + gpio-keys { 725 + gpio_keys_default_mode: gpio_keys_default { 726 + skomer_cfg1 { 727 + pins = "GPIO32_V2", /* Projector On HotKey */ 728 + "GPIO67_G2", /* VOL UP */ 729 + "GPIO91_B6", /* HOME */ 730 + "GPIO92_D6"; /* VOL DOWN */ 731 + ste,config = <&gpio_in_pu>; 732 + }; 733 + }; 734 + }; 735 + /* Interrupt line for the Atmel MXT228 touchscreen */ 736 + tsp { 737 + tsp_default: tsp_default { 738 + gavini_cfg1 { 739 + pins = "GPIO218_AH11"; /* TSP_INT_1V8 */ 740 + ste,config = <&gpio_in_nopull>; 741 + }; 742 + }; 743 + }; 744 + /* Reset line for the Memsic MMC328 magnetometer */ 745 + mmc328 { 746 + mmc328_default: mmc328_gavini { 747 + gavini_cfg1 { 748 + pins = "GPIO204_AF23"; 749 + ste,config = <&gpio_out_hi>; 750 + }; 751 + }; 752 + }; 753 + /* Interrupt line for Invensense MPU3050 gyroscope */ 754 + mpu3050 { 755 + mpu3050_default: mpu3050 { 756 + gavini_cfg1 { 757 + /* GPIO226 used for IRQ */ 758 + pins = "GPIO226_AF8"; 759 + ste,config = <&gpio_in_nopull>; 760 + }; 761 + }; 762 + }; 763 + /* GPIO-based I2C bus for magnetometer and NCP6914 */ 764 + i2c-gpio-0 { 765 + i2c_gpio_0_default: i2c_gpio_0 { 766 + gavini_cfg1 { 767 + pins = "GPIO143_D12", "GPIO144_B13"; 768 + ste,config = <&gpio_in_nopull>; 769 + }; 770 + }; 771 + }; 772 + /* GPIO-based I2C bus for the Immersion ISA1200 */ 773 + i2c-gpio-2 { 774 + i2c_gpio_2_default: i2c_gpio_2 { 775 + gavini_cfg1 { 776 + pins = "GPIO201_AF24", "GPIO202_AF25"; 777 + ste,config = <&gpio_in_nopull>; 778 + }; 779 + }; 780 + }; 781 + /* GPIO-based I2C bus for the TI DPP2601 */ 782 + i2c-gpio-3 { 783 + i2c_gpio_3_default: i2c_gpio_3 { 784 + gavini_cfg1 { 785 + pins = "GPIO196_AG26", "GPIO197_AH24"; 786 + ste,config = <&gpio_in_nopull>; 787 + }; 788 + }; 789 + }; 790 + /* GPIO-based SPI bus for the display */ 791 + spi-gpio-0 { 792 + spi_gpio_0_default: spi_gpio_0_d { 793 + gavini_cfg1 { 794 + pins = "GPIO220_AH10", "GPIO223_AH9", "GPIO224_AG9"; 795 + ste,config = <&gpio_out_hi>; 796 + }; 797 + gavini_cfg2 { 798 + pins = "GPIO225_AG8"; 799 + ste,config = <&gpio_in_nopull>; 800 + }; 801 + }; 802 + spi_gpio_0_sleep: spi_gpio_0_s { 803 + gavini_cfg1 { 804 + pins = "GPIO220_AH10", "GPIO223_AH9", 805 + "GPIO224_AG9", "GPIO225_AG8"; 806 + ste,config = <&gpio_out_hi>; 807 + }; 808 + gavini_cfg2 { 809 + pins = "GPIO225_AG8"; 810 + ste,config = <&gpio_out_lo>; 811 + }; 812 + }; 813 + }; 814 + wlan { 815 + wlan_default_mode: wlan_default { 816 + /* GPIO216 for WL_HOST_WAKE */ 817 + gavini_cfg2 { 818 + pins = "GPIO216_AG12"; 819 + ste,config = <&gpio_in_pd>; 820 + }; 821 + }; 822 + }; 823 + bluetooth { 824 + bluetooth_default_mode: bluetooth_default { 825 + /* GPIO199 BT_WAKE and GPIO222 BT_VREG_ON */ 826 + gavini_cfg1 { 827 + pins = "GPIO199_AH23", "GPIO222_AJ9"; 828 + ste,config = <&gpio_out_lo>; 829 + }; 830 + /* GPIO97 BT_HOST_WAKE */ 831 + gavini_cfg2 { 832 + pins = "GPIO97_D9"; 833 + ste,config = <&gpio_in_nopull>; 834 + }; 835 + /* GPIO209 BT_RST_N */ 836 + gavini_cfg3 { 837 + pins = "GPIO209_AG15"; 838 + ste,config = <&gpio_out_hi>; 839 + }; 840 + }; 841 + }; 842 + /* Interrupt line for TI TSU6111 Micro USB switch */ 843 + tsu6111 { 844 + tsu6111_default: tsu6111 { 845 + gavini_cfg1 { 846 + /* GPIO95 used for IRQ */ 847 + pins = "GPIO95_E8"; 848 + ste,config = <&gpio_in_nopull>; 849 + }; 850 + }; 851 + }; 852 + };