1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (c) 2015, The Linux Foundation. All rights reserved. 4 */ 5 6/dts-v1/; 7 8#include "msm8916-pm8916.dtsi" 9#include <dt-bindings/gpio/gpio.h> 10#include <dt-bindings/input/input.h> 11#include <dt-bindings/leds/common.h> 12#include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 13#include <dt-bindings/pinctrl/qcom,pmic-mpp.h> 14#include <dt-bindings/sound/apq8016-lpass.h> 15 16/ { 17 model = "Qualcomm Technologies, Inc. APQ 8016 SBC"; 18 compatible = "qcom,apq8016-sbc", "qcom,apq8016"; 19 20 aliases { 21 serial0 = &blsp1_uart2; 22 serial1 = &blsp1_uart1; 23 usid0 = &pm8916_0; 24 i2c0 = &blsp_i2c2; 25 i2c1 = &blsp_i2c6; 26 i2c3 = &blsp_i2c4; 27 spi0 = &blsp_spi5; 28 spi1 = &blsp_spi3; 29 }; 30 31 chosen { 32 stdout-path = "serial0"; 33 }; 34 35 camera_vdddo_1v8: camera-vdddo-1v8 { 36 compatible = "regulator-fixed"; 37 regulator-name = "camera_vdddo"; 38 regulator-min-microvolt = <1800000>; 39 regulator-max-microvolt = <1800000>; 40 regulator-always-on; 41 }; 42 43 camera_vdda_2v8: camera-vdda-2v8 { 44 compatible = "regulator-fixed"; 45 regulator-name = "camera_vdda"; 46 regulator-min-microvolt = <2800000>; 47 regulator-max-microvolt = <2800000>; 48 regulator-always-on; 49 }; 50 51 camera_vddd_1v5: camera-vddd-1v5 { 52 compatible = "regulator-fixed"; 53 regulator-name = "camera_vddd"; 54 regulator-min-microvolt = <1500000>; 55 regulator-max-microvolt = <1500000>; 56 regulator-always-on; 57 }; 58 59 reserved-memory { 60 ramoops@bff00000 { 61 compatible = "ramoops"; 62 reg = <0x0 0xbff00000 0x0 0x100000>; 63 64 record-size = <0x20000>; 65 console-size = <0x20000>; 66 ftrace-size = <0x20000>; 67 }; 68 }; 69 70 usb2513 { 71 compatible = "smsc,usb3503"; 72 reset-gpios = <&pm8916_gpios 3 GPIO_ACTIVE_LOW>; 73 initial-mode = <1>; 74 }; 75 76 usb_id: usb-id { 77 compatible = "linux,extcon-usb-gpio"; 78 id-gpio = <&msmgpio 121 GPIO_ACTIVE_HIGH>; 79 pinctrl-names = "default"; 80 pinctrl-0 = <&usb_id_default>; 81 }; 82 83 hdmi-out { 84 compatible = "hdmi-connector"; 85 type = "a"; 86 87 port { 88 hdmi_con: endpoint { 89 remote-endpoint = <&adv7533_out>; 90 }; 91 }; 92 }; 93 94 gpio-keys { 95 compatible = "gpio-keys"; 96 autorepeat; 97 98 pinctrl-names = "default"; 99 pinctrl-0 = <&msm_key_volp_n_default>; 100 101 button { 102 label = "Volume Up"; 103 linux,code = <KEY_VOLUMEUP>; 104 gpios = <&msmgpio 107 GPIO_ACTIVE_LOW>; 105 }; 106 }; 107 108 leds { 109 pinctrl-names = "default"; 110 pinctrl-0 = <&msmgpio_leds>, 111 <&pm8916_gpios_leds>, 112 <&pm8916_mpps_leds>; 113 114 compatible = "gpio-leds"; 115 116 led@1 { 117 label = "apq8016-sbc:green:user1"; 118 function = LED_FUNCTION_HEARTBEAT; 119 color = <LED_COLOR_ID_GREEN>; 120 gpios = <&msmgpio 21 GPIO_ACTIVE_HIGH>; 121 linux,default-trigger = "heartbeat"; 122 default-state = "off"; 123 }; 124 125 led@2 { 126 label = "apq8016-sbc:green:user2"; 127 function = LED_FUNCTION_DISK_ACTIVITY; 128 color = <LED_COLOR_ID_GREEN>; 129 gpios = <&msmgpio 120 GPIO_ACTIVE_HIGH>; 130 linux,default-trigger = "mmc0"; 131 default-state = "off"; 132 }; 133 134 led@3 { 135 label = "apq8016-sbc:green:user3"; 136 function = LED_FUNCTION_DISK_ACTIVITY; 137 color = <LED_COLOR_ID_GREEN>; 138 gpios = <&pm8916_gpios 1 GPIO_ACTIVE_HIGH>; 139 linux,default-trigger = "mmc1"; 140 default-state = "off"; 141 }; 142 143 led@4 { 144 label = "apq8016-sbc:green:user4"; 145 color = <LED_COLOR_ID_GREEN>; 146 gpios = <&pm8916_gpios 2 GPIO_ACTIVE_HIGH>; 147 linux,default-trigger = "none"; 148 panic-indicator; 149 default-state = "off"; 150 }; 151 152 led@5 { 153 label = "apq8016-sbc:yellow:wlan"; 154 function = LED_FUNCTION_WLAN; 155 color = <LED_COLOR_ID_YELLOW>; 156 gpios = <&pm8916_mpps 2 GPIO_ACTIVE_HIGH>; 157 linux,default-trigger = "phy0tx"; 158 default-state = "off"; 159 }; 160 161 led@6 { 162 label = "apq8016-sbc:blue:bt"; 163 function = LED_FUNCTION_BLUETOOTH; 164 color = <LED_COLOR_ID_BLUE>; 165 gpios = <&pm8916_mpps 3 GPIO_ACTIVE_HIGH>; 166 linux,default-trigger = "bluetooth-power"; 167 default-state = "off"; 168 }; 169 }; 170}; 171 172&blsp_i2c2 { 173 /* On Low speed expansion */ 174 status = "okay"; 175 label = "LS-I2C0"; 176}; 177 178&blsp_i2c4 { 179 /* On High speed expansion */ 180 status = "okay"; 181 label = "HS-I2C2"; 182 183 adv_bridge: bridge@39 { 184 status = "okay"; 185 186 compatible = "adi,adv7533"; 187 reg = <0x39>; 188 189 interrupt-parent = <&msmgpio>; 190 interrupts = <31 IRQ_TYPE_EDGE_FALLING>; 191 192 adi,dsi-lanes = <4>; 193 clocks = <&rpmcc RPM_SMD_BB_CLK2>; 194 clock-names = "cec"; 195 196 pd-gpios = <&msmgpio 32 GPIO_ACTIVE_HIGH>; 197 198 avdd-supply = <&pm8916_l6>; 199 v1p2-supply = <&pm8916_l6>; 200 v3p3-supply = <&pm8916_l17>; 201 202 pinctrl-names = "default","sleep"; 203 pinctrl-0 = <&adv7533_int_active &adv7533_switch_active>; 204 pinctrl-1 = <&adv7533_int_suspend &adv7533_switch_suspend>; 205 #sound-dai-cells = <1>; 206 207 ports { 208 #address-cells = <1>; 209 #size-cells = <0>; 210 211 port@0 { 212 reg = <0>; 213 adv7533_in: endpoint { 214 remote-endpoint = <&dsi0_out>; 215 }; 216 }; 217 218 port@1 { 219 reg = <1>; 220 adv7533_out: endpoint { 221 remote-endpoint = <&hdmi_con>; 222 }; 223 }; 224 }; 225 }; 226}; 227 228&blsp_i2c6 { 229 /* On Low speed expansion */ 230 status = "okay"; 231 label = "LS-I2C1"; 232}; 233 234&blsp_spi3 { 235 /* On High speed expansion */ 236 status = "okay"; 237 label = "HS-SPI1"; 238}; 239 240&blsp_spi5 { 241 /* On Low speed expansion */ 242 status = "okay"; 243 label = "LS-SPI0"; 244}; 245 246&blsp1_uart1 { 247 status = "okay"; 248 label = "LS-UART0"; 249}; 250 251&blsp1_uart2 { 252 status = "okay"; 253 label = "LS-UART1"; 254}; 255 256&camss { 257 status = "okay"; 258 ports { 259 port@0 { 260 reg = <0>; 261 csiphy0_ep: endpoint { 262 data-lanes = <0 2>; 263 remote-endpoint = <&ov5640_ep>; 264 status = "okay"; 265 }; 266 }; 267 }; 268}; 269 270&cci { 271 status = "okay"; 272}; 273 274&cci_i2c0 { 275 camera_rear@3b { 276 compatible = "ovti,ov5640"; 277 reg = <0x3b>; 278 279 enable-gpios = <&msmgpio 34 GPIO_ACTIVE_HIGH>; 280 reset-gpios = <&msmgpio 35 GPIO_ACTIVE_LOW>; 281 pinctrl-names = "default"; 282 pinctrl-0 = <&camera_rear_default>; 283 284 clocks = <&gcc GCC_CAMSS_MCLK0_CLK>; 285 clock-names = "xclk"; 286 clock-frequency = <23880000>; 287 288 vdddo-supply = <&camera_vdddo_1v8>; 289 vdda-supply = <&camera_vdda_2v8>; 290 vddd-supply = <&camera_vddd_1v5>; 291 292 /* No camera mezzanine by default */ 293 status = "disabled"; 294 295 port { 296 ov5640_ep: endpoint { 297 data-lanes = <0 2>; 298 remote-endpoint = <&csiphy0_ep>; 299 }; 300 }; 301 }; 302}; 303 304&dsi0_out { 305 data-lanes = <0 1 2 3>; 306 remote-endpoint = <&adv7533_in>; 307}; 308 309&lpass { 310 status = "okay"; 311}; 312 313&mdss { 314 status = "okay"; 315}; 316 317&mpss { 318 status = "okay"; 319 320 firmware-name = "qcom/apq8016/mba.mbn", "qcom/apq8016/modem.mbn"; 321}; 322 323&pm8916_resin { 324 status = "okay"; 325 linux,code = <KEY_VOLUMEDOWN>; 326}; 327 328&pronto { 329 status = "okay"; 330 331 firmware-name = "qcom/apq8016/wcnss.mbn"; 332}; 333 334&sdhc_1 { 335 status = "okay"; 336 337 pinctrl-names = "default", "sleep"; 338 pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>; 339 pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>; 340}; 341 342&sdhc_2 { 343 status = "okay"; 344 345 pinctrl-names = "default", "sleep"; 346 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>; 347 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>; 348 349 cd-gpios = <&msmgpio 38 GPIO_ACTIVE_LOW>; 350}; 351 352&sound { 353 status = "okay"; 354 355 pinctrl-0 = <&cdc_pdm_lines_act &ext_sec_tlmm_lines_act &ext_mclk_tlmm_lines_act>; 356 pinctrl-1 = <&cdc_pdm_lines_sus &ext_sec_tlmm_lines_sus &ext_mclk_tlmm_lines_sus>; 357 pinctrl-names = "default", "sleep"; 358 model = "DB410c"; 359 audio-routing = 360 "AMIC2", "MIC BIAS Internal2", 361 "AMIC3", "MIC BIAS External1"; 362 363 quaternary-dai-link { 364 link-name = "ADV7533"; 365 cpu { 366 sound-dai = <&lpass MI2S_QUATERNARY>; 367 }; 368 codec { 369 sound-dai = <&adv_bridge 0>; 370 }; 371 }; 372 373 primary-dai-link { 374 link-name = "WCD"; 375 cpu { 376 sound-dai = <&lpass MI2S_PRIMARY>; 377 }; 378 codec { 379 sound-dai = <&lpass_codec 0>, <&wcd_codec 0>; 380 }; 381 }; 382 383 tertiary-dai-link { 384 link-name = "WCD-Capture"; 385 cpu { 386 sound-dai = <&lpass MI2S_TERTIARY>; 387 }; 388 codec { 389 sound-dai = <&lpass_codec 1>, <&wcd_codec 1>; 390 }; 391 }; 392}; 393 394&usb { 395 status = "okay"; 396 extcon = <&usb_id>, <&usb_id>; 397 398 pinctrl-names = "default", "device"; 399 pinctrl-0 = <&usb_sw_sel_pm &usb_hub_reset_pm>; 400 pinctrl-1 = <&usb_sw_sel_pm_device &usb_hub_reset_pm_device>; 401}; 402 403&usb_hs_phy { 404 extcon = <&usb_id>; 405}; 406 407&wcd_codec { 408 clocks = <&gcc GCC_CODEC_DIGCODEC_CLK>; 409 clock-names = "mclk"; 410 qcom,mbhc-vthreshold-low = <75 150 237 450 500>; 411 qcom,mbhc-vthreshold-high = <75 150 237 450 500>; 412}; 413 414&wcnss_ctrl { 415 firmware-name = "qcom/apq8016/WCNSS_qcom_wlan_nv_sbc.bin"; 416}; 417 418/* Enable CoreSight */ 419&cti0 { status = "okay"; }; 420&cti1 { status = "okay"; }; 421&cti12 { status = "okay"; }; 422&cti13 { status = "okay"; }; 423&cti14 { status = "okay"; }; 424&cti15 { status = "okay"; }; 425&debug0 { status = "okay"; }; 426&debug1 { status = "okay"; }; 427&debug2 { status = "okay"; }; 428&debug3 { status = "okay"; }; 429&etf { status = "okay"; }; 430&etm0 { status = "okay"; }; 431&etm1 { status = "okay"; }; 432&etm2 { status = "okay"; }; 433&etm3 { status = "okay"; }; 434&etr { status = "okay"; }; 435&funnel0 { status = "okay"; }; 436&funnel1 { status = "okay"; }; 437&replicator { status = "okay"; }; 438&stm { status = "okay"; }; 439&tpiu { status = "okay"; }; 440 441&smd_rpm_regulators { 442 vdd_l1_l2_l3-supply = <&pm8916_s3>; 443 vdd_l4_l5_l6-supply = <&pm8916_s4>; 444 vdd_l7-supply = <&pm8916_s4>; 445 446 s3 { 447 regulator-min-microvolt = <375000>; 448 regulator-max-microvolt = <1562000>; 449 }; 450 451 s4 { 452 regulator-min-microvolt = <1800000>; 453 regulator-max-microvolt = <1800000>; 454 455 regulator-always-on; 456 regulator-boot-on; 457 }; 458 459 l1 { 460 regulator-min-microvolt = <375000>; 461 regulator-max-microvolt = <1525000>; 462 }; 463 464 l2 { 465 regulator-min-microvolt = <1200000>; 466 regulator-max-microvolt = <1200000>; 467 }; 468 469 l4 { 470 regulator-min-microvolt = <1750000>; 471 regulator-max-microvolt = <3337000>; 472 }; 473 474 l5 { 475 regulator-min-microvolt = <1750000>; 476 regulator-max-microvolt = <3337000>; 477 }; 478 479 l6 { 480 regulator-min-microvolt = <1800000>; 481 regulator-max-microvolt = <1800000>; 482 }; 483 484 l7 { 485 regulator-min-microvolt = <1750000>; 486 regulator-max-microvolt = <3337000>; 487 }; 488 489 l8 { 490 regulator-min-microvolt = <1750000>; 491 regulator-max-microvolt = <3337000>; 492 }; 493 494 l9 { 495 regulator-min-microvolt = <1750000>; 496 regulator-max-microvolt = <3337000>; 497 }; 498 499 l10 { 500 regulator-min-microvolt = <1750000>; 501 regulator-max-microvolt = <3337000>; 502 }; 503 504 l11 { 505 regulator-min-microvolt = <1750000>; 506 regulator-max-microvolt = <3337000>; 507 regulator-allow-set-load; 508 regulator-system-load = <200000>; 509 }; 510 511 l12 { 512 regulator-min-microvolt = <1750000>; 513 regulator-max-microvolt = <3337000>; 514 }; 515 516 l13 { 517 regulator-min-microvolt = <1750000>; 518 regulator-max-microvolt = <3337000>; 519 }; 520 521 l14 { 522 regulator-min-microvolt = <1750000>; 523 regulator-max-microvolt = <3337000>; 524 }; 525 526 /** 527 * 1.8v required on LS expansion 528 * for mezzanine boards 529 */ 530 l15 { 531 regulator-min-microvolt = <1750000>; 532 regulator-max-microvolt = <3337000>; 533 regulator-always-on; 534 }; 535 536 l16 { 537 regulator-min-microvolt = <1750000>; 538 regulator-max-microvolt = <3337000>; 539 }; 540 541 l17 { 542 regulator-min-microvolt = <3300000>; 543 regulator-max-microvolt = <3300000>; 544 }; 545 546 l18 { 547 regulator-min-microvolt = <1750000>; 548 regulator-max-microvolt = <3337000>; 549 }; 550}; 551 552/* 553 * 2mA drive strength is not enough when connecting multiple 554 * I2C devices with different pull up resistors. 555 */ 556&i2c2_default { 557 drive-strength = <16>; 558}; 559 560&i2c4_default { 561 drive-strength = <16>; 562}; 563 564&i2c6_default { 565 drive-strength = <16>; 566}; 567 568/* 569 * GPIO name legend: proper name = the GPIO line is used as GPIO 570 * NC = not connected (pin out but not routed from the chip to 571 * anything the board) 572 * "[PER]" = pin is muxed for [peripheral] (not GPIO) 573 * LSEC = Low Speed External Connector 574 * HSEC = High Speed External Connector 575 * 576 * Line names are taken from the schematic "DragonBoard410c" 577 * dated monday, august 31, 2015. Page 5 in particular. 578 * 579 * For the lines routed to the external connectors the 580 * lines are named after the 96Boards CE Specification 1.0, 581 * Appendix "Expansion Connector Signal Description". 582 * 583 * When the 96Board naming of a line and the schematic name of 584 * the same line are in conflict, the 96Board specification 585 * takes precedence, which means that the external UART on the 586 * LSEC is named UART0 while the schematic and SoC names this 587 * UART3. This is only for the informational lines i.e. "[FOO]", 588 * the GPIO named lines "GPIO-A" thru "GPIO-L" are the only 589 * ones actually used for GPIO. 590 */ 591 592&msmgpio { 593 gpio-line-names = 594 "[UART0_TX]", /* GPIO_0, LSEC pin 5 */ 595 "[UART0_RX]", /* GPIO_1, LSEC pin 7 */ 596 "[UART0_CTS_N]", /* GPIO_2, LSEC pin 3 */ 597 "[UART0_RTS_N]", /* GPIO_3, LSEC pin 9 */ 598 "[UART1_TX]", /* GPIO_4, LSEC pin 11 */ 599 "[UART1_RX]", /* GPIO_5, LSEC pin 13 */ 600 "[I2C0_SDA]", /* GPIO_8, LSEC pin 17 */ 601 "[I2C0_SCL]", /* GPIO_7, LSEC pin 15 */ 602 "[SPI1_DOUT]", /* SPI1_MOSI, HSEC pin 1 */ 603 "[SPI1_DIN]", /* SPI1_MISO, HSEC pin 11 */ 604 "[SPI1_CS]", /* SPI1_CS_N, HSEC pin 7 */ 605 "[SPI1_SCLK]", /* SPI1_CLK, HSEC pin 9 */ 606 "GPIO-B", /* LS_EXP_GPIO_B, LSEC pin 24 */ 607 "GPIO-C", /* LS_EXP_GPIO_C, LSEC pin 25 */ 608 "[I2C3_SDA]", /* HSEC pin 38 */ 609 "[I2C3_SCL]", /* HSEC pin 36 */ 610 "[SPI0_MOSI]", /* LSEC pin 14 */ 611 "[SPI0_MISO]", /* LSEC pin 10 */ 612 "[SPI0_CS_N]", /* LSEC pin 12 */ 613 "[SPI0_CLK]", /* LSEC pin 8 */ 614 "HDMI_HPD_N", /* GPIO 20 */ 615 "USR_LED_1_CTRL", 616 "[I2C1_SDA]", /* GPIO_22, LSEC pin 21 */ 617 "[I2C1_SCL]", /* GPIO_23, LSEC pin 19 */ 618 "GPIO-G", /* LS_EXP_GPIO_G, LSEC pin 29 */ 619 "GPIO-H", /* LS_EXP_GPIO_H, LSEC pin 30 */ 620 "[CSI0_MCLK]", /* HSEC pin 15 */ 621 "[CSI1_MCLK]", /* HSEC pin 17 */ 622 "GPIO-K", /* LS_EXP_GPIO_K, LSEC pin 33 */ 623 "[I2C2_SDA]", /* HSEC pin 34 */ 624 "[I2C2_SCL]", /* HSEC pin 32 */ 625 "DSI2HDMI_INT_N", 626 "DSI_SW_SEL_APQ", 627 "GPIO-L", /* LS_EXP_GPIO_L, LSEC pin 34 */ 628 "GPIO-J", /* LS_EXP_GPIO_J, LSEC pin 32 */ 629 "GPIO-I", /* LS_EXP_GPIO_I, LSEC pin 31 */ 630 "GPIO-A", /* LS_EXP_GPIO_A, LSEC pin 23 */ 631 "FORCED_USB_BOOT", 632 "SD_CARD_DET_N", 633 "[WCSS_BT_SSBI]", 634 "[WCSS_WLAN_DATA_2]", /* GPIO 40 */ 635 "[WCSS_WLAN_DATA_1]", 636 "[WCSS_WLAN_DATA_0]", 637 "[WCSS_WLAN_SET]", 638 "[WCSS_WLAN_CLK]", 639 "[WCSS_FM_SSBI]", 640 "[WCSS_FM_SDI]", 641 "[WCSS_BT_DAT_CTL]", 642 "[WCSS_BT_DAT_STB]", 643 "NC", 644 "NC", /* GPIO 50 */ 645 "NC", 646 "NC", 647 "NC", 648 "NC", 649 "NC", 650 "NC", 651 "NC", 652 "NC", 653 "NC", 654 "NC", /* GPIO 60 */ 655 "NC", 656 "NC", 657 "[CDC_PDM0_CLK]", 658 "[CDC_PDM0_SYNC]", 659 "[CDC_PDM0_TX0]", 660 "[CDC_PDM0_RX0]", 661 "[CDC_PDM0_RX1]", 662 "[CDC_PDM0_RX2]", 663 "GPIO-D", /* LS_EXP_GPIO_D, LSEC pin 26 */ 664 "NC", /* GPIO 70 */ 665 "NC", 666 "NC", 667 "NC", 668 "NC", /* GPIO 74 */ 669 "NC", 670 "NC", 671 "NC", 672 "NC", 673 "NC", 674 "BOOT_CONFIG_0", /* GPIO 80 */ 675 "BOOT_CONFIG_1", 676 "BOOT_CONFIG_2", 677 "BOOT_CONFIG_3", 678 "NC", 679 "NC", 680 "BOOT_CONFIG_5", 681 "NC", 682 "NC", 683 "NC", 684 "NC", /* GPIO 90 */ 685 "NC", 686 "NC", 687 "NC", 688 "NC", 689 "NC", 690 "NC", 691 "NC", 692 "NC", 693 "NC", 694 "NC", /* GPIO 100 */ 695 "NC", 696 "NC", 697 "NC", 698 "SSBI_GPS", 699 "NC", 700 "NC", 701 "KEY_VOLP_N", 702 "NC", 703 "NC", 704 "[LS_EXP_MI2S_WS]", /* GPIO 110 */ 705 "NC", 706 "NC", 707 "[LS_EXP_MI2S_SCK]", 708 "[LS_EXP_MI2S_DATA0]", 709 "GPIO-E", /* LS_EXP_GPIO_E, LSEC pin 27 */ 710 "NC", 711 "[DSI2HDMI_MI2S_WS]", 712 "[DSI2HDMI_MI2S_SCK]", 713 "[DSI2HDMI_MI2S_DATA0]", 714 "USR_LED_2_CTRL", /* GPIO 120 */ 715 "SB_HS_ID"; 716 717 msmgpio_leds: msmgpio-leds-state { 718 pins = "gpio21", "gpio120"; 719 function = "gpio"; 720 721 output-low; 722 }; 723 724 usb_id_default: usb-id-default-state { 725 pins = "gpio121"; 726 function = "gpio"; 727 728 drive-strength = <8>; 729 input-enable; 730 bias-pull-up; 731 }; 732 733 adv7533_int_active: adv533-int-active-state { 734 pins = "gpio31"; 735 function = "gpio"; 736 737 drive-strength = <16>; 738 bias-disable; 739 }; 740 741 adv7533_int_suspend: adv7533-int-suspend-state { 742 pins = "gpio31"; 743 function = "gpio"; 744 745 drive-strength = <2>; 746 bias-disable; 747 }; 748 749 adv7533_switch_active: adv7533-switch-active-state { 750 pins = "gpio32"; 751 function = "gpio"; 752 753 drive-strength = <16>; 754 bias-disable; 755 }; 756 757 adv7533_switch_suspend: adv7533-switch-suspend-state { 758 pins = "gpio32"; 759 function = "gpio"; 760 761 drive-strength = <2>; 762 bias-disable; 763 }; 764 765 msm_key_volp_n_default: msm-key-volp-n-default-state { 766 pins = "gpio107"; 767 function = "gpio"; 768 769 drive-strength = <8>; 770 input-enable; 771 bias-pull-up; 772 }; 773}; 774 775&pm8916_gpios { 776 gpio-line-names = 777 "USR_LED_3_CTRL", 778 "USR_LED_4_CTRL", 779 "USB_HUB_RESET_N_PM", 780 "USB_SW_SEL_PM"; 781 782 usb_hub_reset_pm: usb-hub-reset-pm-state { 783 pins = "gpio3"; 784 function = PMIC_GPIO_FUNC_NORMAL; 785 786 input-disable; 787 output-high; 788 }; 789 790 usb_hub_reset_pm_device: usb-hub-reset-pm-device-state { 791 pins = "gpio3"; 792 function = PMIC_GPIO_FUNC_NORMAL; 793 794 output-low; 795 }; 796 797 usb_sw_sel_pm: usb-sw-sel-pm-state { 798 pins = "gpio4"; 799 function = PMIC_GPIO_FUNC_NORMAL; 800 801 power-source = <PM8916_GPIO_VPH>; 802 input-disable; 803 output-high; 804 }; 805 806 usb_sw_sel_pm_device: usb-sw-sel-pm-device-state { 807 pins = "gpio4"; 808 function = PMIC_GPIO_FUNC_NORMAL; 809 810 power-source = <PM8916_GPIO_VPH>; 811 input-disable; 812 output-low; 813 }; 814 815 pm8916_gpios_leds: pm8916-gpios-leds-state { 816 pins = "gpio1", "gpio2"; 817 function = PMIC_GPIO_FUNC_NORMAL; 818 819 output-low; 820 }; 821}; 822 823&pm8916_mpps { 824 gpio-line-names = 825 "VDD_PX_BIAS", 826 "WLAN_LED_CTRL", 827 "BT_LED_CTRL", 828 "GPIO-F"; /* LS_EXP_GPIO_F, LSEC pin 28 */ 829 830 pinctrl-names = "default"; 831 pinctrl-0 = <&ls_exp_gpio_f>; 832 833 ls_exp_gpio_f: pm8916-mpp4-state { 834 pins = "mpp4"; 835 function = "digital"; 836 837 output-low; 838 power-source = <PM8916_MPP_L5>; /* 1.8V */ 839 }; 840 841 pm8916_mpps_leds: pm8916-mpps-state { 842 pins = "mpp2", "mpp3"; 843 function = "digital"; 844 845 output-low; 846 }; 847}; 848