1// SPDX-License-Identifier: GPL-2.0 2/* 3 * SDM845 OnePlus 6(T) (enchilada / fajita) common device tree source 4 * 5 * Copyright (c) 2020, The Linux Foundation. All rights reserved. 6 */ 7 8/dts-v1/; 9 10#include <dt-bindings/arm/qcom,ids.h> 11#include <dt-bindings/input/linux-event-codes.h> 12#include <dt-bindings/leds/common.h> 13#include <dt-bindings/regulator/qcom,rpmh-regulator.h> 14#include <dt-bindings/sound/qcom,q6afe.h> 15#include <dt-bindings/sound/qcom,q6asm.h> 16 17#include "sdm845.dtsi" 18#include "sdm845-wcd9340.dtsi" 19#include "pm8998.dtsi" 20#include "pmi8998.dtsi" 21 22/delete-node/ &rmtfs_mem; 23 24/ { 25 chassis-type = "handset"; 26 qcom,msm-id = <QCOM_ID_SDM845 0x20001>; 27 28 aliases { 29 serial0 = &uart9; 30 serial1 = &uart6; 31 }; 32 33 chosen { 34 stdout-path = "serial0:115200n8"; 35 }; 36 37 gpio-hall-sensor { 38 compatible = "gpio-keys"; 39 label = "Hall effect sensor"; 40 41 pinctrl-0 = <&hall_sensor_default>; 42 pinctrl-names = "default"; 43 44 event-hall-sensor { 45 gpios = <&tlmm 124 GPIO_ACTIVE_LOW>; 46 label = "Hall Effect Sensor"; 47 linux,input-type = <EV_SW>; 48 linux,code = <SW_LID>; 49 linux,can-disable; 50 wakeup-source; 51 }; 52 }; 53 54 gpio-keys { 55 compatible = "gpio-keys"; 56 label = "Volume keys"; 57 autorepeat; 58 59 pinctrl-names = "default"; 60 pinctrl-0 = <&volume_down_gpio &volume_up_gpio>; 61 62 key-vol-down { 63 label = "Volume down"; 64 linux,code = <KEY_VOLUMEDOWN>; 65 gpios = <&pm8998_gpios 5 GPIO_ACTIVE_LOW>; 66 debounce-interval = <15>; 67 }; 68 69 key-vol-up { 70 label = "Volume up"; 71 linux,code = <KEY_VOLUMEUP>; 72 gpios = <&pm8998_gpios 6 GPIO_ACTIVE_LOW>; 73 debounce-interval = <15>; 74 }; 75 }; 76 77 reserved-memory { 78 /* 79 * The rmtfs_mem needs to be guarded due to "XPU limitations" 80 * it is otherwise possible for an allocation adjacent to the 81 * rmtfs_mem region to trigger an XPU violation, causing a crash. 82 */ 83 rmtfs_lower_guard: rmtfs-lower-guard@f5b00000 { 84 no-map; 85 reg = <0 0xf5b00000 0 0x1000>; 86 }; 87 /* 88 * The rmtfs memory region in downstream is 'dynamically allocated' 89 * but given the same address every time. Hard code it as this address is 90 * where the modem firmware expects it to be. 91 */ 92 rmtfs_mem: rmtfs-mem@f5b01000 { 93 compatible = "qcom,rmtfs-mem"; 94 reg = <0 0xf5b01000 0 0x200000>; 95 no-map; 96 97 qcom,client-id = <1>; 98 qcom,vmid = <QCOM_SCM_VMID_MSS_MSA>; 99 }; 100 rmtfs_upper_guard: rmtfs-upper-guard@f5d01000 { 101 no-map; 102 reg = <0 0xf5d01000 0 0x1000>; 103 }; 104 105 /* 106 * It seems like reserving the old rmtfs_mem region is also needed to prevent 107 * random crashes which are most likely modem related, more testing needed. 108 */ 109 removed_region: removed-region@88f00000 { 110 no-map; 111 reg = <0 0x88f00000 0 0x1c00000>; 112 }; 113 114 ramoops: ramoops@ac300000 { 115 compatible = "ramoops"; 116 reg = <0 0xac300000 0 0x400000>; 117 record-size = <0x40000>; 118 console-size = <0x40000>; 119 ftrace-size = <0x40000>; 120 pmsg-size = <0x200000>; 121 ecc-size = <16>; 122 }; 123 }; 124 125 vph_pwr: vph-pwr-regulator { 126 compatible = "regulator-fixed"; 127 regulator-name = "vph_pwr"; 128 regulator-min-microvolt = <3700000>; 129 regulator-max-microvolt = <3700000>; 130 }; 131 132 /* 133 * Apparently RPMh does not provide support for PM8998 S4 because it 134 * is always-on; model it as a fixed regulator. 135 */ 136 vreg_s4a_1p8: pm8998-smps4 { 137 compatible = "regulator-fixed"; 138 regulator-name = "vreg_s4a_1p8"; 139 140 regulator-min-microvolt = <1800000>; 141 regulator-max-microvolt = <1800000>; 142 143 regulator-always-on; 144 regulator-boot-on; 145 146 vin-supply = <&vph_pwr>; 147 }; 148 149 /* 150 * The touchscreen regulator seems to be controlled somehow by a gpio. 151 * Model it as a fixed regulator and keep it on. Without schematics we 152 * don't know how this is actually wired up... 153 */ 154 ts_1p8_supply: ts-1p8-regulator { 155 compatible = "regulator-fixed"; 156 regulator-name = "ts_1p8_supply"; 157 158 regulator-min-microvolt = <1800000>; 159 regulator-max-microvolt = <1800000>; 160 161 gpio = <&tlmm 88 0>; 162 enable-active-high; 163 regulator-boot-on; 164 }; 165}; 166 167&adsp_pas { 168 status = "okay"; 169 firmware-name = "qcom/sdm845/oneplus6/adsp.mbn"; 170}; 171 172&apps_rsc { 173 regulators-0 { 174 compatible = "qcom,pm8998-rpmh-regulators"; 175 qcom,pmic-id = "a"; 176 177 vdd-s1-supply = <&vph_pwr>; 178 vdd-s2-supply = <&vph_pwr>; 179 vdd-s3-supply = <&vph_pwr>; 180 vdd-s4-supply = <&vph_pwr>; 181 vdd-s5-supply = <&vph_pwr>; 182 vdd-s6-supply = <&vph_pwr>; 183 vdd-s7-supply = <&vph_pwr>; 184 vdd-s8-supply = <&vph_pwr>; 185 vdd-s9-supply = <&vph_pwr>; 186 vdd-s10-supply = <&vph_pwr>; 187 vdd-s11-supply = <&vph_pwr>; 188 vdd-s12-supply = <&vph_pwr>; 189 vdd-s13-supply = <&vph_pwr>; 190 vdd-l1-l27-supply = <&vreg_s7a_1p025>; 191 vdd-l2-l8-l17-supply = <&vreg_s3a_1p35>; 192 vdd-l3-l11-supply = <&vreg_s7a_1p025>; 193 vdd-l4-l5-supply = <&vreg_s7a_1p025>; 194 vdd-l6-supply = <&vph_pwr>; 195 vdd-l7-l12-l14-l15-supply = <&vreg_s5a_2p04>; 196 vdd-l9-supply = <&vreg_bob>; 197 vdd-l10-l23-l25-supply = <&vreg_bob>; 198 vdd-l13-l19-l21-supply = <&vreg_bob>; 199 vdd-l16-l28-supply = <&vreg_bob>; 200 vdd-l18-l22-supply = <&vreg_bob>; 201 vdd-l20-l24-supply = <&vreg_bob>; 202 vdd-l26-supply = <&vreg_s3a_1p35>; 203 vin-lvs-1-2-supply = <&vreg_s4a_1p8>; 204 205 vreg_s3a_1p35: smps3 { 206 regulator-min-microvolt = <1352000>; 207 regulator-max-microvolt = <1352000>; 208 }; 209 210 vreg_s5a_2p04: smps5 { 211 regulator-min-microvolt = <1904000>; 212 regulator-max-microvolt = <2040000>; 213 }; 214 215 vreg_s7a_1p025: smps7 { 216 regulator-min-microvolt = <900000>; 217 regulator-max-microvolt = <1028000>; 218 }; 219 220 vdda_mipi_dsi0_pll: 221 vdda_qlink_lv: 222 vdda_ufs1_core: 223 vdda_usb1_ss_core: 224 vreg_l1a_0p875: ldo1 { 225 regulator-min-microvolt = <880000>; 226 regulator-max-microvolt = <880000>; 227 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 228 }; 229 230 vreg_l2a_1p2: ldo2 { 231 regulator-min-microvolt = <1200000>; 232 regulator-max-microvolt = <1200000>; 233 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 234 regulator-always-on; 235 }; 236 237 vreg_l5a_0p8: ldo5 { 238 regulator-min-microvolt = <800000>; 239 regulator-max-microvolt = <800000>; 240 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 241 }; 242 243 vreg_l7a_1p8: ldo7 { 244 regulator-min-microvolt = <1800000>; 245 regulator-max-microvolt = <1800000>; 246 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 247 }; 248 249 vdda_qusb_hs0_1p8: 250 vreg_l12a_1p8: ldo12 { 251 regulator-min-microvolt = <1800000>; 252 regulator-max-microvolt = <1800000>; 253 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 254 }; 255 256 vreg_l14a_1p88: ldo14 { 257 regulator-min-microvolt = <1800000>; 258 regulator-max-microvolt = <1800000>; 259 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 260 regulator-always-on; 261 }; 262 263 vreg_l17a_1p3: ldo17 { 264 regulator-min-microvolt = <1304000>; 265 regulator-max-microvolt = <1304000>; 266 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 267 }; 268 269 vreg_l20a_2p95: ldo20 { 270 regulator-min-microvolt = <2704000>; 271 regulator-max-microvolt = <2960000>; 272 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 273 }; 274 275 vreg_l23a_3p3: ldo23 { 276 regulator-min-microvolt = <3300000>; 277 regulator-max-microvolt = <3312000>; 278 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 279 }; 280 281 vdda_qusb_hs0_3p1: 282 vreg_l24a_3p075: ldo24 { 283 regulator-min-microvolt = <3088000>; 284 regulator-max-microvolt = <3088000>; 285 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 286 }; 287 288 vreg_l25a_3p3: ldo25 { 289 regulator-min-microvolt = <3300000>; 290 regulator-max-microvolt = <3312000>; 291 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 292 }; 293 294 vdda_mipi_dsi0_1p2: 295 vdda_ufs1_1p2: 296 vreg_l26a_1p2: ldo26 { 297 regulator-min-microvolt = <1200000>; 298 regulator-max-microvolt = <1200000>; 299 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 300 }; 301 302 vreg_l28a_3p0: ldo28 { 303 regulator-min-microvolt = <2856000>; 304 regulator-max-microvolt = <3008000>; 305 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 306 }; 307 }; 308 309 regulators-1 { 310 compatible = "qcom,pmi8998-rpmh-regulators"; 311 qcom,pmic-id = "b"; 312 313 vdd-bob-supply = <&vph_pwr>; 314 315 vreg_bob: bob { 316 regulator-min-microvolt = <3312000>; 317 regulator-max-microvolt = <3600000>; 318 regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>; 319 regulator-allow-bypass; 320 }; 321 }; 322 323 regulators-2 { 324 compatible = "qcom,pm8005-rpmh-regulators"; 325 qcom,pmic-id = "c"; 326 327 vdd-s1-supply = <&vph_pwr>; 328 vdd-s2-supply = <&vph_pwr>; 329 vdd-s3-supply = <&vph_pwr>; 330 vdd-s4-supply = <&vph_pwr>; 331 332 vreg_s3c_0p6: smps3 { 333 regulator-min-microvolt = <600000>; 334 regulator-max-microvolt = <600000>; 335 }; 336 }; 337}; 338 339&cdsp_pas { 340 status = "okay"; 341 firmware-name = "qcom/sdm845/oneplus6/cdsp.mbn"; 342}; 343 344&gcc { 345 protected-clocks = <GCC_QSPI_CORE_CLK>, 346 <GCC_QSPI_CORE_CLK_SRC>, 347 <GCC_QSPI_CNOC_PERIPH_AHB_CLK>, 348 <GCC_LPASS_Q6_AXI_CLK>, 349 <GCC_LPASS_SWAY_CLK>; 350}; 351 352&gpu { 353 status = "okay"; 354 355 zap-shader { 356 memory-region = <&gpu_mem>; 357 firmware-name = "qcom/sdm845/oneplus6/a630_zap.mbn"; 358 }; 359}; 360 361&i2c10 { 362 status = "okay"; 363 clock-frequency = <100000>; 364 365 bq27441_fg: bq27441-battery@55 { 366 compatible = "ti,bq27411"; 367 status = "okay"; 368 reg = <0x55>; 369 }; 370}; 371 372&i2c12 { 373 status = "okay"; 374 clock-frequency = <400000>; 375 376 synaptics-rmi4-i2c@20 { 377 compatible = "syna,rmi4-i2c"; 378 reg = <0x20>; 379 #address-cells = <1>; 380 #size-cells = <0>; 381 interrupts-extended = <&tlmm 125 IRQ_TYPE_EDGE_FALLING>; 382 383 pinctrl-names = "default"; 384 pinctrl-0 = <&ts_default_pins>; 385 386 vdd-supply = <&vreg_l28a_3p0>; 387 vio-supply = <&ts_1p8_supply>; 388 389 syna,reset-delay-ms = <200>; 390 syna,startup-delay-ms = <200>; 391 392 rmi4-f01@1 { 393 reg = <0x01>; 394 syna,nosleep-mode = <1>; 395 }; 396 397 rmi4_f12: rmi4-f12@12 { 398 reg = <0x12>; 399 touchscreen-x-mm = <68>; 400 touchscreen-y-mm = <144>; 401 syna,sensor-type = <1>; 402 syna,rezero-wait-ms = <200>; 403 }; 404 }; 405}; 406 407&ipa { 408 qcom,gsi-loader = "self"; 409 memory-region = <&ipa_fw_mem>; 410 firmware-name = "qcom/sdm845/oneplus6/ipa_fws.mbn"; 411 status = "okay"; 412}; 413 414&mdss { 415 status = "okay"; 416}; 417 418&mdss_dsi0 { 419 status = "okay"; 420 vdda-supply = <&vdda_mipi_dsi0_1p2>; 421 422 /* 423 * Both devices use different panels but all other properties 424 * are common. Compatible line is declared in device dts. 425 */ 426 display_panel: panel@0 { 427 status = "disabled"; 428 429 reg = <0>; 430 431 vddio-supply = <&vreg_l14a_1p88>; 432 433 reset-gpios = <&tlmm 6 GPIO_ACTIVE_LOW>; 434 435 pinctrl-names = "default"; 436 pinctrl-0 = <&panel_reset_pins &panel_te_pin &panel_esd_pin>; 437 438 port { 439 panel_in: endpoint { 440 remote-endpoint = <&mdss_dsi0_out>; 441 }; 442 }; 443 }; 444}; 445 446&mdss_dsi0_out { 447 remote-endpoint = <&panel_in>; 448 data-lanes = <0 1 2 3>; 449}; 450 451&mdss_dsi0_phy { 452 status = "okay"; 453 vdds-supply = <&vdda_mipi_dsi0_pll>; 454}; 455 456/* Modem/wifi */ 457&mss_pil { 458 status = "okay"; 459 firmware-name = "qcom/sdm845/oneplus6/mba.mbn", "qcom/sdm845/oneplus6/modem.mbn"; 460}; 461 462&pm8998_gpios { 463 volume_down_gpio: pm8998-gpio5-state { 464 pinconf { 465 pins = "gpio5"; 466 function = "normal"; 467 input-enable; 468 bias-pull-up; 469 qcom,drive-strength = <0>; 470 }; 471 }; 472 473 volume_up_gpio: pm8998-gpio6-state { 474 pinconf { 475 pins = "gpio6"; 476 function = "normal"; 477 input-enable; 478 bias-pull-up; 479 qcom,drive-strength = <0>; 480 }; 481 }; 482}; 483 484&pmi8998_charger { 485 status = "okay"; 486}; 487 488&pmi8998_flash { 489 status = "okay"; 490 491 led-0 { 492 function = LED_FUNCTION_FLASH; 493 color = <LED_COLOR_ID_WHITE>; 494 led-sources = <1>; 495 led-max-microamp = <500000>; 496 flash-max-microamp = <1500000>; 497 flash-max-timeout-us = <1280000>; 498 }; 499 500 led-1 { 501 function = LED_FUNCTION_FLASH; 502 color = <LED_COLOR_ID_YELLOW>; 503 led-sources = <2>; 504 led-max-microamp = <500000>; 505 flash-max-microamp = <1500000>; 506 flash-max-timeout-us = <1280000>; 507 }; 508}; 509 510&q6afedai { 511 dai@22 { 512 reg = <QUATERNARY_MI2S_RX>; 513 qcom,sd-lines = <1>; 514 }; 515 516 dai@23 { 517 reg = <QUATERNARY_MI2S_TX>; 518 qcom,sd-lines = <0>; 519 }; 520}; 521 522&q6asmdai { 523 dai@0 { 524 reg = <MSM_FRONTEND_DAI_MULTIMEDIA1>; 525 }; 526 527 dai@1 { 528 reg = <MSM_FRONTEND_DAI_MULTIMEDIA2>; 529 }; 530 531 dai@2 { 532 reg = <MSM_FRONTEND_DAI_MULTIMEDIA3>; 533 }; 534 535 dai@3 { 536 reg = <MSM_FRONTEND_DAI_MULTIMEDIA4>; 537 }; 538 539 dai@4 { 540 reg = <MSM_FRONTEND_DAI_MULTIMEDIA5>; 541 }; 542 543 dai@5 { 544 reg = <MSM_FRONTEND_DAI_MULTIMEDIA6>; 545 }; 546}; 547 548&qupv3_id_1 { 549 status = "okay"; 550}; 551 552&qupv3_id_0 { 553 status = "okay"; 554}; 555 556&qup_i2c10_default { 557 drive-strength = <2>; 558 bias-disable; 559}; 560 561&qup_i2c12_default { 562 drive-strength = <2>; 563 bias-disable; 564}; 565 566&qup_uart9_rx { 567 drive-strength = <2>; 568 bias-pull-up; 569}; 570 571&qup_uart9_tx { 572 drive-strength = <2>; 573 bias-disable; 574}; 575 576&slpi_pas { 577 firmware-name = "qcom/sdm845/oneplus6/slpi.mbn"; 578 status = "okay"; 579}; 580 581&sound { 582 compatible = "qcom,sdm845-sndcard"; 583 pinctrl-0 = <&quat_mi2s_active &quat_mi2s_sd0_active &quat_mi2s_sd1_active>; 584 pinctrl-names = "default"; 585 status = "okay"; 586 587 mm1-dai-link { 588 link-name = "MultiMedia1"; 589 cpu { 590 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>; 591 }; 592 }; 593 594 mm2-dai-link { 595 link-name = "MultiMedia2"; 596 cpu { 597 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA2>; 598 }; 599 }; 600 601 mm3-dai-link { 602 link-name = "MultiMedia3"; 603 cpu { 604 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA3>; 605 }; 606 }; 607 608 mm4-dai-link { 609 link-name = "MultiMedia4"; 610 cpu { 611 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA4>; 612 }; 613 }; 614 615 mm5-dai-link { 616 link-name = "MultiMedia5"; 617 cpu { 618 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA5>; 619 }; 620 }; 621 622 mm6-dai-link { 623 link-name = "MultiMedia6"; 624 cpu { 625 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA6>; 626 }; 627 }; 628 629 speaker_playback_dai: speaker-dai-link { 630 link-name = "Speaker Playback"; 631 cpu { 632 sound-dai = <&q6afedai QUATERNARY_MI2S_RX>; 633 }; 634 635 platform { 636 sound-dai = <&q6routing>; 637 }; 638 }; 639 640 slim-dai-link { 641 link-name = "SLIM Playback 1"; 642 cpu { 643 sound-dai = <&q6afedai SLIMBUS_0_RX>; 644 }; 645 646 platform { 647 sound-dai = <&q6routing>; 648 }; 649 650 codec { 651 sound-dai = <&wcd9340 0>; 652 }; 653 }; 654 655 slimcap-dai-link { 656 link-name = "SLIM Capture 1"; 657 cpu { 658 sound-dai = <&q6afedai SLIMBUS_0_TX>; 659 }; 660 661 platform { 662 sound-dai = <&q6routing>; 663 }; 664 665 codec { 666 sound-dai = <&wcd9340 1>; 667 }; 668 }; 669 670 slim2-dai-link { 671 link-name = "SLIM Playback 2"; 672 cpu { 673 sound-dai = <&q6afedai SLIMBUS_1_RX>; 674 }; 675 676 platform { 677 sound-dai = <&q6routing>; 678 }; 679 680 codec { 681 sound-dai = <&wcd9340 2>; /* AIF2_PB */ 682 }; 683 }; 684 685 slimcap2-dai-link { 686 link-name = "SLIM Capture 2"; 687 cpu { 688 sound-dai = <&q6afedai SLIMBUS_1_TX>; 689 }; 690 691 platform { 692 sound-dai = <&q6routing>; 693 }; 694 695 codec { 696 sound-dai = <&wcd9340 3>; /* AIF2_CAP */ 697 }; 698 }; 699 700 slimcap3-dai-link { 701 link-name = "SLIM Capture 3"; 702 cpu { 703 sound-dai = <&q6afedai SLIMBUS_2_TX>; 704 }; 705 706 platform { 707 sound-dai = <&q6routing>; 708 }; 709 710 codec { 711 sound-dai = <&wcd9340 5>; /* AIF3_CAP */ 712 }; 713 }; 714}; 715 716&uart6 { 717 status = "okay"; 718 719 pinctrl-0 = <&qup_uart6_4pin>; 720 721 bluetooth { 722 compatible = "qcom,wcn3990-bt"; 723 724 /* 725 * This path is relative to the qca/ 726 * subdir under lib/firmware. 727 */ 728 firmware-name = "oneplus6/crnv21.bin"; 729 730 vddio-supply = <&vreg_s4a_1p8>; 731 vddxo-supply = <&vreg_l7a_1p8>; 732 vddrf-supply = <&vreg_l17a_1p3>; 733 vddch0-supply = <&vreg_l25a_3p3>; 734 max-speed = <3200000>; 735 }; 736}; 737 738&uart9 { 739 label = "LS-UART1"; 740 status = "okay"; 741}; 742 743&ufs_mem_hc { 744 status = "okay"; 745 746 reset-gpios = <&tlmm 150 GPIO_ACTIVE_LOW>; 747 748 vcc-supply = <&vreg_l20a_2p95>; 749 vcc-max-microamp = <600000>; 750}; 751 752&ufs_mem_phy { 753 status = "okay"; 754 755 vdda-phy-supply = <&vdda_ufs1_core>; 756 vdda-pll-supply = <&vdda_ufs1_1p2>; 757}; 758 759&usb_1 { 760 status = "okay"; 761 762 /* 763 * disable USB3 clock requirement as the device only supports 764 * USB2. 765 */ 766 qcom,select-utmi-as-pipe-clk; 767}; 768 769&usb_1_dwc3 { 770 /* 771 * We don't have the capability to switch modes yet. 772 */ 773 dr_mode = "peripheral"; 774 775 /* fastest mode for USB 2 */ 776 maximum-speed = "high-speed"; 777 778 /* Remove USB3 phy as it's unused on this device. */ 779 phys = <&usb_1_hsphy>; 780 phy-names = "usb2-phy"; 781}; 782 783&usb_1_hsphy { 784 status = "okay"; 785 786 vdd-supply = <&vdda_usb1_ss_core>; 787 vdda-pll-supply = <&vdda_qusb_hs0_1p8>; 788 vdda-phy-dpdm-supply = <&vdda_qusb_hs0_3p1>; 789 790 qcom,imp-res-offset-value = <8>; 791 qcom,hstx-trim-value = <QUSB2_V2_HSTX_TRIM_21_6_MA>; 792 qcom,preemphasis-level = <QUSB2_V2_PREEMPHASIS_5_PERCENT>; 793 qcom,preemphasis-width = <QUSB2_V2_PREEMPHASIS_WIDTH_HALF_BIT>; 794}; 795 796&tlmm { 797 gpio-reserved-ranges = <0 4>, <81 4>; 798 799 hall_sensor_default: hall-sensor-default-state { 800 pins = "gpio124"; 801 function = "gpio"; 802 drive-strength = <2>; 803 bias-disable; 804 }; 805 806 tri_state_key_default: tri-state-key-default-state { 807 pins = "gpio40", "gpio42", "gpio26"; 808 function = "gpio"; 809 drive-strength = <2>; 810 bias-disable; 811 }; 812 813 ts_default_pins: ts-int-state { 814 pins = "gpio99", "gpio125"; 815 function = "gpio"; 816 drive-strength = <16>; 817 bias-pull-up; 818 }; 819 820 panel_reset_pins: panel-reset-state { 821 pins = "gpio6", "gpio25", "gpio26"; 822 function = "gpio"; 823 drive-strength = <8>; 824 bias-disable; 825 }; 826 827 panel_te_pin: panel-te-state { 828 pins = "gpio10"; 829 function = "mdp_vsync"; 830 drive-strength = <2>; 831 bias-disable; 832 }; 833 834 panel_esd_pin: panel-esd-state { 835 pins = "gpio30"; 836 function = "gpio"; 837 drive-strength = <2>; 838 bias-pull-down; 839 }; 840 841 speaker_default: speaker-default-state { 842 pins = "gpio69"; 843 function = "gpio"; 844 drive-strength = <16>; 845 bias-pull-up; 846 output-high; 847 }; 848}; 849 850&venus { 851 status = "okay"; 852 firmware-name = "qcom/sdm845/oneplus6/venus.mbn"; 853}; 854 855&wcd9340 { 856 pinctrl-0 = <&wcd_intr_default>; 857 pinctrl-names = "default"; 858 reset-gpios = <&tlmm 64 GPIO_ACTIVE_HIGH>; 859 vdd-buck-supply = <&vreg_s4a_1p8>; 860 vdd-buck-sido-supply = <&vreg_s4a_1p8>; 861 vdd-tx-supply = <&vreg_s4a_1p8>; 862 vdd-rx-supply = <&vreg_s4a_1p8>; 863 vdd-io-supply = <&vreg_s4a_1p8>; 864}; 865 866&wifi { 867 status = "okay"; 868 vdd-0.8-cx-mx-supply = <&vreg_l5a_0p8>; 869 vdd-1.8-xo-supply = <&vreg_l7a_1p8>; 870 vdd-1.3-rfa-supply = <&vreg_l17a_1p3>; 871 vdd-3.3-ch0-supply = <&vreg_l25a_3p3>; 872 vdd-3.3-ch1-supply = <&vreg_l23a_3p3>; 873 874 qcom,snoc-host-cap-8bit-quirk; 875}; 876