1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Copyright (c) 2014-2016, The Linux Foundation. All rights reserved. 4 */ 5 6#include "msm8996.dtsi" 7#include "pm8994.dtsi" 8#include "pmi8994.dtsi" 9#include "apq8096-db820c-pins.dtsi" 10#include "apq8096-db820c-pmic-pins.dtsi" 11#include <dt-bindings/input/input.h> 12#include <dt-bindings/gpio/gpio.h> 13#include <dt-bindings/sound/qcom,q6afe.h> 14#include <dt-bindings/sound/qcom,q6asm.h> 15 16/* 17 * GPIO name legend: proper name = the GPIO line is used as GPIO 18 * NC = not connected (pin out but not routed from the chip to 19 * anything the board) 20 * "[PER]" = pin is muxed for [peripheral] (not GPIO) 21 * LSEC = Low Speed External Connector 22 * P HSEC = Primary High Speed External Connector 23 * S HSEC = Secondary High Speed External Connector 24 * J14 = Camera Connector 25 * TP = Test Points 26 * 27 * Line names are taken from the schematic "DragonBoard 820c", 28 * drawing no: LM25-P2751-1 29 * 30 * For the lines routed to the external connectors the 31 * lines are named after the 96Boards CE Specification 1.0, 32 * Appendix "Expansion Connector Signal Description". 33 * 34 * When the 96Board naming of a line and the schematic name of 35 * the same line are in conflict, the 96Board specification 36 * takes precedence, which means that the external UART on the 37 * LSEC is named UART0 while the schematic and SoC names this 38 * UART3. This is only for the informational lines i.e. "[FOO]", 39 * the GPIO named lines "GPIO-A" thru "GPIO-L" are the only 40 * ones actually used for GPIO. 41 */ 42 43/ { 44 aliases { 45 serial0 = &blsp2_uart1; 46 serial1 = &blsp2_uart2; 47 serial2 = &blsp1_uart1; 48 i2c0 = &blsp1_i2c2; 49 i2c1 = &blsp2_i2c1; 50 i2c2 = &blsp2_i2c0; 51 spi0 = &blsp1_spi0; 52 spi1 = &blsp2_spi5; 53 }; 54 55 chosen { 56 stdout-path = "serial0:115200n8"; 57 }; 58 59 clocks { 60 compatible = "simple-bus"; 61 divclk4: divclk4 { 62 compatible = "fixed-clock"; 63 #clock-cells = <0>; 64 clock-frequency = <32768>; 65 clock-output-names = "divclk4"; 66 67 pinctrl-names = "default"; 68 pinctrl-0 = <&divclk4_pin_a>; 69 }; 70 71 div1_mclk: divclk1 { 72 compatible = "gpio-gate-clock"; 73 pinctrl-0 = <&audio_mclk>; 74 pinctrl-names = "default"; 75 clocks = <&rpmcc RPM_SMD_DIV_CLK1>; 76 #clock-cells = <0>; 77 enable-gpios = <&pm8994_gpios 15 0>; 78 }; 79 }; 80}; 81 82&blsp1_uart1 { 83 label = "BT-UART"; 84 status = "okay"; 85 pinctrl-names = "default", "sleep"; 86 pinctrl-0 = <&blsp1_uart1_default>; 87 pinctrl-1 = <&blsp1_uart1_sleep>; 88 89 bluetooth { 90 compatible = "qcom,qca6174-bt"; 91 92 /* bt_disable_n gpio */ 93 enable-gpios = <&pm8994_gpios 19 GPIO_ACTIVE_HIGH>; 94 95 clocks = <&divclk4>; 96 }; 97}; 98 99&blsp2_uart1 { 100 label = "LS-UART1"; 101 status = "okay"; 102 pinctrl-names = "default", "sleep"; 103 pinctrl-0 = <&blsp2_uart1_2pins_default>; 104 pinctrl-1 = <&blsp2_uart1_2pins_sleep>; 105}; 106 107&blsp2_uart2 { 108 label = "LS-UART0"; 109 status = "disabled"; 110 pinctrl-names = "default", "sleep"; 111 pinctrl-0 = <&blsp2_uart2_4pins_default>; 112 pinctrl-1 = <&blsp2_uart2_4pins_sleep>; 113}; 114 115&blsp1_i2c2 { 116 /* On Low speed expansion */ 117 label = "LS-I2C0"; 118 status = "okay"; 119}; 120 121&blsp2_i2c1 { 122 /* On Low speed expansion */ 123 label = "LS-I2C1"; 124 status = "okay"; 125}; 126 127&blsp1_spi0 { 128 /* On Low speed expansion */ 129 label = "LS-SPI0"; 130 status = "okay"; 131}; 132 133&blsp2_i2c0 { 134 /* On High speed expansion */ 135 label = "HS-I2C2"; 136 status = "okay"; 137}; 138 139&blsp2_spi5 { 140 /* On High speed expansion */ 141 label = "HS-SPI1"; 142 status = "okay"; 143}; 144 145&camss { 146 vdda-supply = <&pm8994_l2>; 147}; 148 149&sdhc2 { 150 /* External SD card */ 151 pinctrl-names = "default", "sleep"; 152 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>; 153 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>; 154 cd-gpios = <&msmgpio 38 0x1>; 155 vmmc-supply = <&pm8994_l21>; 156 vqmmc-supply = <&pm8994_l13>; 157 status = "okay"; 158}; 159 160&ufsphy { 161 status = "okay"; 162 163 vdda-phy-supply = <&pm8994_l28>; 164 vdda-pll-supply = <&pm8994_l12>; 165 166 vdda-phy-max-microamp = <18380>; 167 vdda-pll-max-microamp = <9440>; 168 169 vddp-ref-clk-supply = <&pm8994_l25>; 170 vddp-ref-clk-max-microamp = <100>; 171 vddp-ref-clk-always-on; 172}; 173 174&ufshc { 175 status = "okay"; 176 177 vcc-supply = <&pm8994_l20>; 178 vccq-supply = <&pm8994_l25>; 179 vccq2-supply = <&pm8994_s4>; 180 181 vcc-max-microamp = <600000>; 182 vccq-max-microamp = <450000>; 183 vccq2-max-microamp = <450000>; 184}; 185 186&msmgpio { 187 gpio-line-names = 188 "[SPI0_DOUT]", /* GPIO_0, BLSP1_SPI_MOSI, LSEC pin 14 */ 189 "[SPI0_DIN]", /* GPIO_1, BLSP1_SPI_MISO, LSEC pin 10 */ 190 "[SPI0_CS]", /* GPIO_2, BLSP1_SPI_CS_N, LSEC pin 12 */ 191 "[SPI0_SCLK]", /* GPIO_3, BLSP1_SPI_CLK, LSEC pin 8 */ 192 "[UART1_TxD]", /* GPIO_4, BLSP8_UART_TX, LSEC pin 11 */ 193 "[UART1_RxD]", /* GPIO_5, BLSP8_UART_RX, LSEC pin 13 */ 194 "[I2C1_SDA]", /* GPIO_6, BLSP8_I2C_SDA, LSEC pin 21 */ 195 "[I2C1_SCL]", /* GPIO_7, BLSP8_I2C_SCL, LSEC pin 19 */ 196 "GPIO-H", /* GPIO_8, LCD0_RESET_N, LSEC pin 30 */ 197 "TP93", /* GPIO_9 */ 198 "GPIO-G", /* GPIO_10, MDP_VSYNC_P, LSEC pin 29 */ 199 "[MDP_VSYNC_S]", /* GPIO_11, S HSEC pin 55 */ 200 "NC", /* GPIO_12 */ 201 "[CSI0_MCLK]", /* GPIO_13, CAM_MCLK0, P HSEC pin 15 */ 202 "[CAM_MCLK1]", /* GPIO_14, J14 pin 11 */ 203 "[CSI1_MCLK]", /* GPIO_15, CAM_MCLK2, P HSEC pin 17 */ 204 "TP99", /* GPIO_16 */ 205 "[I2C2_SDA]", /* GPIO_17, CCI_I2C_SDA0, P HSEC pin 34 */ 206 "[I2C2_SCL]", /* GPIO_18, CCI_I2C_SCL0, P HSEC pin 32 */ 207 "[CCI_I2C_SDA1]", /* GPIO_19, S HSEC pin 38 */ 208 "[CCI_I2C_SCL1]", /* GPIO_20, S HSEC pin 36 */ 209 "FLASH_STROBE_EN", /* GPIO_21, S HSEC pin 5 */ 210 "FLASH_STROBE_TRIG", /* GPIO_22, S HSEC pin 1 */ 211 "GPIO-K", /* GPIO_23, CAM2_RST_N, LSEC pin 33 */ 212 "GPIO-D", /* GPIO_24, LSEC pin 26 */ 213 "GPIO-I", /* GPIO_25, CAM0_RST_N, LSEC pin 31 */ 214 "GPIO-J", /* GPIO_26, CAM0_STANDBY_N, LSEC pin 32 */ 215 "BLSP6_I2C_SDA", /* GPIO_27 */ 216 "BLSP6_I2C_SCL", /* GPIO_28 */ 217 "GPIO-B", /* GPIO_29, TS0_RESET_N, LSEC pin 24 */ 218 "GPIO30", /* GPIO_30, S HSEC pin 4 */ 219 "HDMI_CEC", /* GPIO_31 */ 220 "HDMI_DDC_CLOCK", /* GPIO_32 */ 221 "HDMI_DDC_DATA", /* GPIO_33 */ 222 "HDMI_HOT_PLUG_DETECT", /* GPIO_34 */ 223 "PCIE0_RST_N", /* GPIO_35 */ 224 "PCIE0_CLKREQ_N", /* GPIO_36 */ 225 "PCIE0_WAKE", /* GPIO_37 */ 226 "SD_CARD_DET_N", /* GPIO_38 */ 227 "TSIF1_SYNC", /* GPIO_39, S HSEC pin 48 */ 228 "W_DISABLE_N", /* GPIO_40 */ 229 "[BLSP9_UART_TX]", /* GPIO_41 */ 230 "[BLSP9_UART_RX]", /* GPIO_42 */ 231 "[BLSP2_UART_CTS_N]", /* GPIO_43 */ 232 "[BLSP2_UART_RFR_N]", /* GPIO_44 */ 233 "[BLSP3_UART_TX]", /* GPIO_45 */ 234 "[BLSP3_UART_RX]", /* GPIO_46 */ 235 "[I2C0_SDA]", /* GPIO_47, LS_I2C0_SDA, LSEC pin 17 */ 236 "[I2C0_SCL]", /* GPIO_48, LS_I2C0_SCL, LSEC pin 15 */ 237 "[UART0_TxD]", /* GPIO_49, BLSP9_UART_TX, LSEC pin 5 */ 238 "[UART0_RxD]", /* GPIO_50, BLSP9_UART_RX, LSEC pin 7 */ 239 "[UART0_CTS]", /* GPIO_51, BLSP9_UART_CTS_N, LSEC pin 3 */ 240 "[UART0_RTS]", /* GPIO_52, BLSP9_UART_RFR_N, LSEC pin 9 */ 241 "[CODEC_INT1_N]", /* GPIO_53 */ 242 "[CODEC_INT2_N]", /* GPIO_54 */ 243 "[BLSP7_I2C_SDA]", /* GPIO_55 */ 244 "[BLSP7_I2C_SCL]", /* GPIO_56 */ 245 "MI2S_MCLK", /* GPIO_57, S HSEC pin 3 */ 246 "[PCM_CLK]", /* GPIO_58, QUA_MI2S_SCK, LSEC pin 18 */ 247 "[PCM_FS]", /* GPIO_59, QUA_MI2S_WS, LSEC pin 16 */ 248 "[PCM_DO]", /* GPIO_60, QUA_MI2S_DATA0, LSEC pin 20 */ 249 "[PCM_DI]", /* GPIO_61, QUA_MI2S_DATA1, LSEC pin 22 */ 250 "GPIO-E", /* GPIO_62, LSEC pin 27 */ 251 "TP87", /* GPIO_63 */ 252 "[CODEC_RST_N]", /* GPIO_64 */ 253 "[PCM1_CLK]", /* GPIO_65 */ 254 "[PCM1_SYNC]", /* GPIO_66 */ 255 "[PCM1_DIN]", /* GPIO_67 */ 256 "[PCM1_DOUT]", /* GPIO_68 */ 257 "AUDIO_REF_CLK", /* GPIO_69 */ 258 "SLIMBUS_CLK", /* GPIO_70 */ 259 "SLIMBUS_DATA0", /* GPIO_71 */ 260 "SLIMBUS_DATA1", /* GPIO_72 */ 261 "NC", /* GPIO_73 */ 262 "NC", /* GPIO_74 */ 263 "NC", /* GPIO_75 */ 264 "NC", /* GPIO_76 */ 265 "TP94", /* GPIO_77 */ 266 "NC", /* GPIO_78 */ 267 "TP95", /* GPIO_79 */ 268 "GPIO-A", /* GPIO_80, MEMS_RESET_N, LSEC pin 23 */ 269 "TP88", /* GPIO_81 */ 270 "TP89", /* GPIO_82 */ 271 "TP90", /* GPIO_83 */ 272 "TP91", /* GPIO_84 */ 273 "[SD_DAT0]", /* GPIO_85, BLSP12_SPI_MOSI, P HSEC pin 1 */ 274 "[SD_CMD]", /* GPIO_86, BLSP12_SPI_MISO, P HSEC pin 11 */ 275 "[SD_DAT3]", /* GPIO_87, BLSP12_SPI_CS_N, P HSEC pin 7 */ 276 "[SD_SCLK]", /* GPIO_88, BLSP12_SPI_CLK, P HSEC pin 9 */ 277 "TSIF1_CLK", /* GPIO_89, S HSEC pin 42 */ 278 "TSIF1_EN", /* GPIO_90, S HSEC pin 46 */ 279 "TSIF1_DATA", /* GPIO_91, S HSEC pin 44 */ 280 "NC", /* GPIO_92 */ 281 "TSIF2_CLK", /* GPIO_93, S HSEC pin 52 */ 282 "TSIF2_EN", /* GPIO_94, S HSEC pin 56 */ 283 "TSIF2_DATA", /* GPIO_95, S HSEC pin 54 */ 284 "TSIF2_SYNC", /* GPIO_96, S HSEC pin 58 */ 285 "NC", /* GPIO_97 */ 286 "CAM1_STANDBY_N", /* GPIO_98 */ 287 "NC", /* GPIO_99 */ 288 "NC", /* GPIO_100 */ 289 "[LCD1_RESET_N]", /* GPIO_101, S HSEC pin 51 */ 290 "BOOT_CONFIG1", /* GPIO_102 */ 291 "USB_HUB_RESET", /* GPIO_103 */ 292 "CAM1_RST_N", /* GPIO_104 */ 293 "NC", /* GPIO_105 */ 294 "NC", /* GPIO_106 */ 295 "NC", /* GPIO_107 */ 296 "NC", /* GPIO_108 */ 297 "NC", /* GPIO_109 */ 298 "NC", /* GPIO_110 */ 299 "NC", /* GPIO_111 */ 300 "NC", /* GPIO_112 */ 301 "PMI8994_BUA", /* GPIO_113 */ 302 "PCIE2_RST_N", /* GPIO_114 */ 303 "PCIE2_CLKREQ_N", /* GPIO_115 */ 304 "PCIE2_WAKE", /* GPIO_116 */ 305 "SSC_IRQ_0", /* GPIO_117 */ 306 "SSC_IRQ_1", /* GPIO_118 */ 307 "SSC_IRQ_2", /* GPIO_119 */ 308 "NC", /* GPIO_120 */ 309 "GPIO121", /* GPIO_121, S HSEC pin 2 */ 310 "NC", /* GPIO_122 */ 311 "SSC_IRQ_6", /* GPIO_123 */ 312 "SSC_IRQ_7", /* GPIO_124 */ 313 "GPIO-C", /* GPIO_125, TS_INT0, LSEC pin 25 */ 314 "BOOT_CONFIG5", /* GPIO_126 */ 315 "NC", /* GPIO_127 */ 316 "NC", /* GPIO_128 */ 317 "BOOT_CONFIG7", /* GPIO_129 */ 318 "PCIE1_RST_N", /* GPIO_130 */ 319 "PCIE1_CLKREQ_N", /* GPIO_131 */ 320 "PCIE1_WAKE", /* GPIO_132 */ 321 "GPIO-L", /* GPIO_133, CAM2_STANDBY_N, LSEC pin 34 */ 322 "NC", /* GPIO_134 */ 323 "NC", /* GPIO_135 */ 324 "BOOT_CONFIG8", /* GPIO_136 */ 325 "NC", /* GPIO_137 */ 326 "NC", /* GPIO_138 */ 327 "GPS_SSBI2", /* GPIO_139 */ 328 "GPS_SSBI1", /* GPIO_140 */ 329 "NC", /* GPIO_141 */ 330 "NC", /* GPIO_142 */ 331 "NC", /* GPIO_143 */ 332 "BOOT_CONFIG6", /* GPIO_144 */ 333 "NC", /* GPIO_145 */ 334 "NC", /* GPIO_146 */ 335 "NC", /* GPIO_147 */ 336 "NC", /* GPIO_148 */ 337 "NC"; /* GPIO_149 */ 338}; 339 340&pm8994_gpios { 341 gpio-line-names = 342 "NC", 343 "KEY_VOLP_N", 344 "NC", 345 "BL1_PWM", 346 "GPIO-F", /* BL0_PWM, LSEC pin 28 */ 347 "BL1_EN", 348 "NC", 349 "WLAN_EN", 350 "NC", 351 "NC", 352 "NC", 353 "NC", 354 "NC", 355 "NC", 356 "DIVCLK1", 357 "DIVCLK2", 358 "DIVCLK3", 359 "DIVCLK4", 360 "BT_EN", 361 "PMIC_SLB", 362 "PMIC_BUA", 363 "USB_VBUS_DET"; 364}; 365 366&pm8994_mpps { 367 gpio-line-names = 368 "VDDPX_BIAS", 369 "WIFI_LED", 370 "NC", 371 "BT_LED", 372 "PM_MPP05", 373 "PM_MPP06", 374 "PM_MPP07", 375 "NC"; 376}; 377 378&pmi8994_gpios { 379 gpio-line-names = 380 "NC", 381 "SPKR_AMP_EN1", 382 "SPKR_AMP_EN2", 383 "TP61", 384 "NC", 385 "USB2_VBUS_DET", 386 "NC", 387 "NC", 388 "NC", 389 "NC"; 390}; 391 392&pcie_phy { 393 status = "okay"; 394 395 vdda-phy-supply = <&pm8994_l28>; 396 vdda-pll-supply = <&pm8994_l12>; 397}; 398 399&usb3phy { 400 status = "okay"; 401 402 vdda-phy-supply = <&pm8994_l28>; 403 vdda-pll-supply = <&pm8994_l12>; 404 405}; 406 407&hsusb_phy1 { 408 status = "okay"; 409 410 vdda-pll-supply = <&pm8994_l12>; 411 vdda-phy-dpdm-supply = <&pm8994_l24>; 412}; 413 414&hsusb_phy2 { 415 status = "okay"; 416 417 vdda-pll-supply = <&pm8994_l12>; 418 vdda-phy-dpdm-supply = <&pm8994_l24>; 419}; 420 421&usb3 { 422 status = "okay"; 423 extcon = <&usb3_id>; 424 425 dwc3@6a00000 { 426 extcon = <&usb3_id>; 427 dr_mode = "otg"; 428 }; 429}; 430 431&usb2 { 432 status = "okay"; 433 extcon = <&usb2_id>; 434 435 dwc3@7600000 { 436 extcon = <&usb2_id>; 437 dr_mode = "otg"; 438 maximum-speed = "high-speed"; 439 }; 440}; 441 442&pcie0 { 443 status = "okay"; 444 perst-gpio = <&msmgpio 35 GPIO_ACTIVE_LOW>; 445 vddpe-3v3-supply = <&wlan_en>; 446 vdda-supply = <&pm8994_l28>; 447}; 448 449&pcie1 { 450 status = "okay"; 451 perst-gpio = <&msmgpio 130 GPIO_ACTIVE_LOW>; 452 vdda-supply = <&pm8994_l28>; 453}; 454 455&pcie2 { 456 status = "okay"; 457 perst-gpio = <&msmgpio 114 GPIO_ACTIVE_LOW>; 458 vdda-supply = <&pm8994_l28>; 459}; 460 461&wcd9335 { 462 clock-names = "mclk", "slimbus"; 463 clocks = <&div1_mclk>, 464 <&rpmcc RPM_SMD_BB_CLK1>; 465 466 vdd-buck-supply = <&pm8994_s4>; 467 vdd-buck-sido-supply = <&pm8994_s4>; 468 vdd-tx-supply = <&pm8994_s4>; 469 vdd-rx-supply = <&pm8994_s4>; 470 vdd-io-supply = <&pm8994_s4>; 471}; 472 473&mdss { 474 status = "okay"; 475}; 476 477&mdp { 478 status = "okay"; 479}; 480 481&hdmi_phy { 482 status = "okay"; 483 484 vddio-supply = <&pm8994_l12>; 485 vcca-supply = <&pm8994_l28>; 486 #phy-cells = <0>; 487}; 488 489&hdmi { 490 status = "okay"; 491 492 pinctrl-names = "default", "sleep"; 493 pinctrl-0 = <&hdmi_hpd_active &hdmi_ddc_active>; 494 pinctrl-1 = <&hdmi_hpd_suspend &hdmi_ddc_suspend>; 495 496 core-vdda-supply = <&pm8994_l12>; 497 core-vcc-supply = <&pm8994_s4>; 498}; 499 500/ { 501 gpio_keys { 502 compatible = "gpio-keys"; 503 #address-cells = <1>; 504 #size-cells = <0>; 505 autorepeat; 506 507 pinctrl-names = "default"; 508 pinctrl-0 = <&volume_up_gpio>; 509 510 button@0 { 511 label = "Volume Up"; 512 linux,code = <KEY_VOLUMEUP>; 513 gpios = <&pm8994_gpios 2 GPIO_ACTIVE_LOW>; 514 }; 515 }; 516 517 rpm-glink { 518 rpm_requests { 519 pm8994-regulators { 520 vdd_l1-supply = <&pm8994_s3>; 521 vdd_l2_l26_l28-supply = <&pm8994_s3>; 522 vdd_l3_l11-supply = <&pm8994_s3>; 523 vdd_l4_l27_l31-supply = <&pm8994_s3>; 524 vdd_l5_l7-supply = <&pm8994_s5>; 525 vdd_l14_l15-supply = <&pm8994_s5>; 526 vdd_l20_l21-supply = <&pm8994_s5>; 527 vdd_l25-supply = <&pm8994_s3>; 528 529 s3 { 530 regulator-min-microvolt = <1300000>; 531 regulator-max-microvolt = <1300000>; 532 }; 533 534 /** 535 * 1.8v required on LS expansion 536 * for mezzanine boards 537 */ 538 s4 { 539 regulator-min-microvolt = <1800000>; 540 regulator-max-microvolt = <1800000>; 541 regulator-always-on; 542 }; 543 s5 { 544 regulator-min-microvolt = <2150000>; 545 regulator-max-microvolt = <2150000>; 546 }; 547 s7 { 548 regulator-min-microvolt = <800000>; 549 regulator-max-microvolt = <800000>; 550 }; 551 552 l1 { 553 regulator-min-microvolt = <1000000>; 554 regulator-max-microvolt = <1000000>; 555 }; 556 l2 { 557 regulator-min-microvolt = <1250000>; 558 regulator-max-microvolt = <1250000>; 559 }; 560 l3 { 561 regulator-min-microvolt = <850000>; 562 regulator-max-microvolt = <850000>; 563 }; 564 l4 { 565 regulator-min-microvolt = <1225000>; 566 regulator-max-microvolt = <1225000>; 567 }; 568 l6 { 569 regulator-min-microvolt = <1200000>; 570 regulator-max-microvolt = <1200000>; 571 }; 572 l8 { 573 regulator-min-microvolt = <1800000>; 574 regulator-max-microvolt = <1800000>; 575 }; 576 l9 { 577 regulator-min-microvolt = <1800000>; 578 regulator-max-microvolt = <1800000>; 579 }; 580 l10 { 581 regulator-min-microvolt = <1800000>; 582 regulator-max-microvolt = <1800000>; 583 }; 584 l11 { 585 regulator-min-microvolt = <1150000>; 586 regulator-max-microvolt = <1150000>; 587 }; 588 l12 { 589 regulator-min-microvolt = <1800000>; 590 regulator-max-microvolt = <1800000>; 591 }; 592 l13 { 593 regulator-min-microvolt = <1800000>; 594 regulator-max-microvolt = <2950000>; 595 }; 596 l14 { 597 regulator-min-microvolt = <1800000>; 598 regulator-max-microvolt = <1800000>; 599 }; 600 l15 { 601 regulator-min-microvolt = <1800000>; 602 regulator-max-microvolt = <1800000>; 603 }; 604 l16 { 605 regulator-min-microvolt = <2700000>; 606 regulator-max-microvolt = <2700000>; 607 }; 608 l17 { 609 regulator-min-microvolt = <2500000>; 610 regulator-max-microvolt = <2500000>; 611 }; 612 l18 { 613 regulator-min-microvolt = <2700000>; 614 regulator-max-microvolt = <2900000>; 615 }; 616 l19 { 617 regulator-min-microvolt = <3000000>; 618 regulator-max-microvolt = <3000000>; 619 }; 620 l20 { 621 regulator-min-microvolt = <2950000>; 622 regulator-max-microvolt = <2950000>; 623 regulator-allow-set-load; 624 }; 625 l21 { 626 regulator-min-microvolt = <2950000>; 627 regulator-max-microvolt = <2950000>; 628 regulator-allow-set-load; 629 regulator-system-load = <200000>; 630 }; 631 l22 { 632 regulator-min-microvolt = <3300000>; 633 regulator-max-microvolt = <3300000>; 634 }; 635 l23 { 636 regulator-min-microvolt = <2800000>; 637 regulator-max-microvolt = <2800000>; 638 }; 639 l24 { 640 regulator-min-microvolt = <3075000>; 641 regulator-max-microvolt = <3075000>; 642 }; 643 l25 { 644 regulator-min-microvolt = <1200000>; 645 regulator-max-microvolt = <1200000>; 646 regulator-allow-set-load; 647 }; 648 l27 { 649 regulator-min-microvolt = <1000000>; 650 regulator-max-microvolt = <1000000>; 651 }; 652 l28 { 653 regulator-min-microvolt = <925000>; 654 regulator-max-microvolt = <925000>; 655 regulator-allow-set-load; 656 }; 657 l29 { 658 regulator-min-microvolt = <2800000>; 659 regulator-max-microvolt = <2800000>; 660 }; 661 l30 { 662 regulator-min-microvolt = <1800000>; 663 regulator-max-microvolt = <1800000>; 664 }; 665 l32 { 666 regulator-min-microvolt = <1800000>; 667 regulator-max-microvolt = <1800000>; 668 }; 669 }; 670 }; 671 }; 672 673 usb2_id: usb2-id { 674 compatible = "linux,extcon-usb-gpio"; 675 id-gpio = <&pmi8994_gpios 6 GPIO_ACTIVE_HIGH>; 676 pinctrl-names = "default"; 677 pinctrl-0 = <&usb2_vbus_det_gpio>; 678 }; 679 680 usb3_id: usb3-id { 681 compatible = "linux,extcon-usb-gpio"; 682 id-gpio = <&pm8994_gpios 22 GPIO_ACTIVE_HIGH>; 683 pinctrl-names = "default"; 684 pinctrl-0 = <&usb3_vbus_det_gpio>; 685 }; 686 687 wlan_en: wlan-en-1-8v { 688 pinctrl-names = "default"; 689 pinctrl-0 = <&wlan_en_gpios>; 690 compatible = "regulator-fixed"; 691 regulator-name = "wlan-en-regulator"; 692 regulator-min-microvolt = <1800000>; 693 regulator-max-microvolt = <1800000>; 694 695 gpio = <&pm8994_gpios 8 0>; 696 697 /* WLAN card specific delay */ 698 startup-delay-us = <70000>; 699 enable-active-high; 700 }; 701}; 702 703&spmi_bus { 704 pmic@0 { 705 pon@800 { 706 resin { 707 compatible = "qcom,pm8941-resin"; 708 interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>; 709 debounce = <15625>; 710 bias-pull-up; 711 linux,code = <KEY_VOLUMEDOWN>; 712 }; 713 }; 714 }; 715}; 716 717&sound { 718 compatible = "qcom,apq8096-sndcard"; 719 model = "DB820c"; 720 audio-routing = "RX_BIAS", "MCLK"; 721 722 mm1-dai-link { 723 link-name = "MultiMedia1"; 724 cpu { 725 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>; 726 }; 727 }; 728 729 mm2-dai-link { 730 link-name = "MultiMedia2"; 731 cpu { 732 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA2>; 733 }; 734 }; 735 736 mm3-dai-link { 737 link-name = "MultiMedia3"; 738 cpu { 739 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA3>; 740 }; 741 }; 742 743 hdmi-dai-link { 744 link-name = "HDMI"; 745 cpu { 746 sound-dai = <&q6afedai HDMI_RX>; 747 }; 748 749 platform { 750 sound-dai = <&q6routing>; 751 }; 752 753 codec { 754 sound-dai = <&hdmi 0>; 755 }; 756 }; 757 758 slim-dai-link { 759 link-name = "SLIM Playback"; 760 cpu { 761 sound-dai = <&q6afedai SLIMBUS_6_RX>; 762 }; 763 764 platform { 765 sound-dai = <&q6routing>; 766 }; 767 768 codec { 769 sound-dai = <&wcd9335 6>; 770 }; 771 }; 772 773 slimcap-dai-link { 774 link-name = "SLIM Capture"; 775 cpu { 776 sound-dai = <&q6afedai SLIMBUS_0_TX>; 777 }; 778 779 platform { 780 sound-dai = <&q6routing>; 781 }; 782 783 codec { 784 sound-dai = <&wcd9335 1>; 785 }; 786 }; 787}; 788