1// SPDX-License-Identifier: BSD-3-Clause 2/* 3 * Copyright (c) 2023, Linaro Limited 4 */ 5 6/dts-v1/; 7 8#include <dt-bindings/gpio/gpio.h> 9#include <dt-bindings/regulator/qcom,rpmh-regulator.h> 10 11#include "sa8775p.dtsi" 12#include "sa8775p-pmics.dtsi" 13 14/ { 15 aliases { 16 ethernet0 = ðernet0; 17 ethernet1 = ðernet1; 18 i2c11 = &i2c11; 19 i2c18 = &i2c18; 20 serial0 = &uart10; 21 serial1 = &uart12; 22 serial2 = &uart17; 23 spi16 = &spi16; 24 ufshc1 = &ufs_mem_hc; 25 }; 26 27 chosen { 28 stdout-path = "serial0:115200n8"; 29 }; 30 31 vreg_conn_1p8: vreg_conn_1p8 { 32 compatible = "regulator-fixed"; 33 regulator-name = "vreg_conn_1p8"; 34 startup-delay-us = <4000>; 35 enable-active-high; 36 gpio = <&pmm8654au_1_gpios 4 GPIO_ACTIVE_HIGH>; 37 }; 38 39 vreg_conn_pa: vreg_conn_pa { 40 compatible = "regulator-fixed"; 41 regulator-name = "vreg_conn_pa"; 42 startup-delay-us = <4000>; 43 enable-active-high; 44 gpio = <&pmm8654au_1_gpios 6 GPIO_ACTIVE_HIGH>; 45 }; 46 47 wcn6855-pmu { 48 compatible = "qcom,wcn6855-pmu"; 49 50 pinctrl-names = "default"; 51 pinctrl-0 = <&bt_en_state>, <&wlan_en_state>; 52 53 vddio-supply = <&vreg_conn_pa>; 54 vddaon-supply = <&vreg_l2c>; 55 vddpmu-supply = <&vreg_conn_1p8>; 56 vddrfa0p95-supply = <&vreg_l2c>; 57 vddrfa1p3-supply = <&vreg_l6e>; 58 vddrfa1p9-supply = <&vreg_s5a>; 59 vddpcie1p3-supply = <&vreg_l6e>; 60 vddpcie1p9-supply = <&vreg_s5a>; 61 62 bt-enable-gpios = <&pmm8654au_1_gpios 8 GPIO_ACTIVE_HIGH>; 63 wlan-enable-gpios = <&pmm8654au_1_gpios 7 GPIO_ACTIVE_HIGH>; 64 65 regulators { 66 vreg_pmu_rfa_cmn: ldo0 { 67 regulator-name = "vreg_pmu_rfa_cmn"; 68 }; 69 70 vreg_pmu_aon_0p59: ldo1 { 71 regulator-name = "vreg_pmu_aon_0p59"; 72 }; 73 74 vreg_pmu_wlcx_0p8: ldo2 { 75 regulator-name = "vreg_pmu_wlcx_0p8"; 76 }; 77 78 vreg_pmu_wlmx_0p85: ldo3 { 79 regulator-name = "vreg_pmu_wlmx_0p85"; 80 }; 81 82 vreg_pmu_btcmx_0p85: ldo4 { 83 regulator-name = "vreg_pmu_btcmx_0p85"; 84 }; 85 86 vreg_pmu_rfa_0p8: ldo5 { 87 regulator-name = "vreg_pmu_rfa_0p8"; 88 }; 89 90 vreg_pmu_rfa_1p2: ldo6 { 91 regulator-name = "vreg_pmu_rfa_1p2"; 92 }; 93 94 vreg_pmu_rfa_1p7: ldo7 { 95 regulator-name = "vreg_pmu_rfa_1p7"; 96 }; 97 98 vreg_pmu_pcie_0p9: ldo8 { 99 regulator-name = "vreg_pmu_pcie_0p9"; 100 }; 101 102 vreg_pmu_pcie_1p8: ldo9 { 103 regulator-name = "vreg_pmu_pcie_1p8"; 104 }; 105 }; 106 }; 107}; 108 109&apps_rsc { 110 regulators-0 { 111 compatible = "qcom,pmm8654au-rpmh-regulators"; 112 qcom,pmic-id = "a"; 113 114 vreg_s4a: smps4 { 115 regulator-name = "vreg_s4a"; 116 regulator-min-microvolt = <1800000>; 117 regulator-max-microvolt = <1816000>; 118 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 119 }; 120 121 vreg_s5a: smps5 { 122 regulator-name = "vreg_s5a"; 123 regulator-min-microvolt = <1850000>; 124 regulator-max-microvolt = <1996000>; 125 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 126 }; 127 128 vreg_s9a: smps9 { 129 regulator-name = "vreg_s9a"; 130 regulator-min-microvolt = <535000>; 131 regulator-max-microvolt = <1120000>; 132 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 133 }; 134 135 vreg_l4a: ldo4 { 136 regulator-name = "vreg_l4a"; 137 regulator-min-microvolt = <788000>; 138 regulator-max-microvolt = <1050000>; 139 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 140 regulator-allow-set-load; 141 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 142 RPMH_REGULATOR_MODE_HPM>; 143 }; 144 145 vreg_l5a: ldo5 { 146 regulator-name = "vreg_l5a"; 147 regulator-min-microvolt = <870000>; 148 regulator-max-microvolt = <950000>; 149 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 150 regulator-allow-set-load; 151 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 152 RPMH_REGULATOR_MODE_HPM>; 153 }; 154 155 vreg_l6a: ldo6 { 156 regulator-name = "vreg_l6a"; 157 regulator-min-microvolt = <870000>; 158 regulator-max-microvolt = <970000>; 159 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 160 regulator-allow-set-load; 161 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 162 RPMH_REGULATOR_MODE_HPM>; 163 }; 164 165 vreg_l7a: ldo7 { 166 regulator-name = "vreg_l7a"; 167 regulator-min-microvolt = <720000>; 168 regulator-max-microvolt = <950000>; 169 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 170 regulator-allow-set-load; 171 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 172 RPMH_REGULATOR_MODE_HPM>; 173 }; 174 175 vreg_l8a: ldo8 { 176 regulator-name = "vreg_l8a"; 177 regulator-min-microvolt = <2504000>; 178 regulator-max-microvolt = <3300000>; 179 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 180 regulator-allow-set-load; 181 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 182 RPMH_REGULATOR_MODE_HPM>; 183 }; 184 185 vreg_l9a: ldo9 { 186 regulator-name = "vreg_l9a"; 187 regulator-min-microvolt = <2970000>; 188 regulator-max-microvolt = <3544000>; 189 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 190 regulator-allow-set-load; 191 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 192 RPMH_REGULATOR_MODE_HPM>; 193 }; 194 }; 195 196 regulators-1 { 197 compatible = "qcom,pmm8654au-rpmh-regulators"; 198 qcom,pmic-id = "c"; 199 200 vreg_l1c: ldo1 { 201 regulator-name = "vreg_l1c"; 202 regulator-min-microvolt = <1140000>; 203 regulator-max-microvolt = <1260000>; 204 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 205 regulator-allow-set-load; 206 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 207 RPMH_REGULATOR_MODE_HPM>; 208 }; 209 210 vreg_l2c: ldo2 { 211 regulator-name = "vreg_l2c"; 212 regulator-min-microvolt = <900000>; 213 regulator-max-microvolt = <1100000>; 214 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 215 regulator-allow-set-load; 216 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 217 RPMH_REGULATOR_MODE_HPM>; 218 }; 219 220 vreg_l3c: ldo3 { 221 regulator-name = "vreg_l3c"; 222 regulator-min-microvolt = <1100000>; 223 regulator-max-microvolt = <1300000>; 224 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 225 regulator-allow-set-load; 226 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 227 RPMH_REGULATOR_MODE_HPM>; 228 }; 229 230 vreg_l4c: ldo4 { 231 regulator-name = "vreg_l4c"; 232 regulator-min-microvolt = <1200000>; 233 regulator-max-microvolt = <1200000>; 234 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 235 /* 236 * FIXME: This should have regulator-allow-set-load but 237 * we're getting an over-current fault from the PMIC 238 * when switching to LPM. 239 */ 240 }; 241 242 vreg_l5c: ldo5 { 243 regulator-name = "vreg_l5c"; 244 regulator-min-microvolt = <1100000>; 245 regulator-max-microvolt = <1300000>; 246 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 247 regulator-allow-set-load; 248 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 249 RPMH_REGULATOR_MODE_HPM>; 250 }; 251 252 vreg_l6c: ldo6 { 253 regulator-name = "vreg_l6c"; 254 regulator-min-microvolt = <1620000>; 255 regulator-max-microvolt = <1980000>; 256 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 257 regulator-allow-set-load; 258 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 259 RPMH_REGULATOR_MODE_HPM>; 260 }; 261 262 vreg_l7c: ldo7 { 263 regulator-name = "vreg_l7c"; 264 regulator-min-microvolt = <1620000>; 265 regulator-max-microvolt = <2000000>; 266 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 267 regulator-allow-set-load; 268 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 269 RPMH_REGULATOR_MODE_HPM>; 270 }; 271 272 vreg_l8c: ldo8 { 273 regulator-name = "vreg_l8c"; 274 regulator-min-microvolt = <2400000>; 275 regulator-max-microvolt = <3300000>; 276 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 277 regulator-allow-set-load; 278 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 279 RPMH_REGULATOR_MODE_HPM>; 280 }; 281 282 vreg_l9c: ldo9 { 283 regulator-name = "vreg_l9c"; 284 regulator-min-microvolt = <1650000>; 285 regulator-max-microvolt = <2700000>; 286 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 287 regulator-allow-set-load; 288 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 289 RPMH_REGULATOR_MODE_HPM>; 290 }; 291 }; 292 293 regulators-2 { 294 compatible = "qcom,pmm8654au-rpmh-regulators"; 295 qcom,pmic-id = "e"; 296 297 vreg_s4e: smps4 { 298 regulator-name = "vreg_s4e"; 299 regulator-min-microvolt = <970000>; 300 regulator-max-microvolt = <1520000>; 301 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 302 }; 303 304 vreg_s7e: smps7 { 305 regulator-name = "vreg_s7e"; 306 regulator-min-microvolt = <1010000>; 307 regulator-max-microvolt = <1170000>; 308 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 309 }; 310 311 vreg_s9e: smps9 { 312 regulator-name = "vreg_s9e"; 313 regulator-min-microvolt = <300000>; 314 regulator-max-microvolt = <570000>; 315 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 316 }; 317 318 vreg_l6e: ldo6 { 319 regulator-name = "vreg_l6e"; 320 regulator-min-microvolt = <1280000>; 321 regulator-max-microvolt = <1450000>; 322 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 323 regulator-allow-set-load; 324 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 325 RPMH_REGULATOR_MODE_HPM>; 326 }; 327 328 vreg_l8e: ldo8 { 329 regulator-name = "vreg_l8e"; 330 regulator-min-microvolt = <1800000>; 331 regulator-max-microvolt = <1950000>; 332 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 333 regulator-allow-set-load; 334 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 335 RPMH_REGULATOR_MODE_HPM>; 336 }; 337 }; 338}; 339 340ðernet0 { 341 phy-handle = <&sgmii_phy0>; 342 343 pinctrl-0 = <ðernet0_default>; 344 pinctrl-names = "default"; 345 346 snps,mtl-rx-config = <&mtl_rx_setup>; 347 snps,mtl-tx-config = <&mtl_tx_setup>; 348 snps,ps-speed = <1000>; 349 350 status = "okay"; 351 352 mdio: mdio { 353 compatible = "snps,dwmac-mdio"; 354 #address-cells = <1>; 355 #size-cells = <0>; 356 }; 357 358 mtl_rx_setup: rx-queues-config { 359 snps,rx-queues-to-use = <4>; 360 snps,rx-sched-sp; 361 362 queue0 { 363 snps,dcb-algorithm; 364 snps,map-to-dma-channel = <0x0>; 365 snps,route-up; 366 snps,priority = <0x1>; 367 }; 368 369 queue1 { 370 snps,dcb-algorithm; 371 snps,map-to-dma-channel = <0x1>; 372 snps,route-ptp; 373 }; 374 375 queue2 { 376 snps,avb-algorithm; 377 snps,map-to-dma-channel = <0x2>; 378 snps,route-avcp; 379 }; 380 381 queue3 { 382 snps,avb-algorithm; 383 snps,map-to-dma-channel = <0x3>; 384 snps,priority = <0xc>; 385 }; 386 }; 387 388 mtl_tx_setup: tx-queues-config { 389 snps,tx-queues-to-use = <4>; 390 snps,tx-sched-sp; 391 392 queue0 { 393 snps,dcb-algorithm; 394 }; 395 396 queue1 { 397 snps,dcb-algorithm; 398 }; 399 400 queue2 { 401 snps,avb-algorithm; 402 snps,send_slope = <0x1000>; 403 snps,idle_slope = <0x1000>; 404 snps,high_credit = <0x3e800>; 405 snps,low_credit = <0xffc18000>; 406 }; 407 408 queue3 { 409 snps,avb-algorithm; 410 snps,send_slope = <0x1000>; 411 snps,idle_slope = <0x1000>; 412 snps,high_credit = <0x3e800>; 413 snps,low_credit = <0xffc18000>; 414 }; 415 }; 416}; 417 418ðernet1 { 419 phy-handle = <&sgmii_phy1>; 420 421 snps,mtl-rx-config = <&mtl_rx_setup1>; 422 snps,mtl-tx-config = <&mtl_tx_setup1>; 423 snps,ps-speed = <1000>; 424 425 status = "okay"; 426 427 mtl_rx_setup1: rx-queues-config { 428 snps,rx-queues-to-use = <4>; 429 snps,rx-sched-sp; 430 431 queue0 { 432 snps,dcb-algorithm; 433 snps,map-to-dma-channel = <0x0>; 434 snps,route-up; 435 snps,priority = <0x1>; 436 }; 437 438 queue1 { 439 snps,dcb-algorithm; 440 snps,map-to-dma-channel = <0x1>; 441 snps,route-ptp; 442 }; 443 444 queue2 { 445 snps,avb-algorithm; 446 snps,map-to-dma-channel = <0x2>; 447 snps,route-avcp; 448 }; 449 450 queue3 { 451 snps,avb-algorithm; 452 snps,map-to-dma-channel = <0x3>; 453 snps,priority = <0xc>; 454 }; 455 }; 456 457 mtl_tx_setup1: tx-queues-config { 458 snps,tx-queues-to-use = <4>; 459 snps,tx-sched-sp; 460 461 queue0 { 462 snps,dcb-algorithm; 463 }; 464 465 queue1 { 466 snps,dcb-algorithm; 467 }; 468 469 queue2 { 470 snps,avb-algorithm; 471 snps,send_slope = <0x1000>; 472 snps,idle_slope = <0x1000>; 473 snps,high_credit = <0x3e800>; 474 snps,low_credit = <0xffc18000>; 475 }; 476 477 queue3 { 478 snps,avb-algorithm; 479 snps,send_slope = <0x1000>; 480 snps,idle_slope = <0x1000>; 481 snps,high_credit = <0x3e800>; 482 snps,low_credit = <0xffc18000>; 483 }; 484 }; 485}; 486 487&i2c11 { 488 clock-frequency = <400000>; 489 pinctrl-0 = <&qup_i2c11_default>; 490 pinctrl-names = "default"; 491 status = "okay"; 492}; 493 494&i2c18 { 495 clock-frequency = <400000>; 496 pinctrl-0 = <&qup_i2c18_default>; 497 pinctrl-names = "default"; 498 status = "okay"; 499}; 500 501&pmm8654au_0_gpios { 502 gpio-line-names = "DS_EN", 503 "POFF_COMPLETE", 504 "UFS0_VER_ID", 505 "FAST_POFF", 506 "DBU1_PON_DONE", 507 "AOSS_SLEEP", 508 "CAM_DES0_EN", 509 "CAM_DES1_EN", 510 "CAM_DES2_EN", 511 "CAM_DES3_EN", 512 "UEFI", 513 "ANALOG_PON_OPT"; 514}; 515 516&pmm8654au_0_pon_resin { 517 linux,code = <KEY_VOLUMEDOWN>; 518 status = "okay"; 519}; 520 521&pmm8654au_1_gpios { 522 gpio-line-names = "PMIC_C_ID0", 523 "PMIC_C_ID1", 524 "UFS1_VER_ID", 525 "IPA_PWR", 526 "", 527 "WLAN_DBU4_EN", 528 "WLAN_EN", 529 "BT_EN", 530 "USB2_PWR_EN", 531 "USB2_FAULT"; 532 533 wlan_en_state: wlan-en-state { 534 pins = "gpio7"; 535 function = "normal"; 536 output-low; 537 bias-pull-down; 538 }; 539 540 bt_en_state: bt-en-state { 541 pins = "gpio8"; 542 function = "normal"; 543 output-low; 544 bias-pull-down; 545 }; 546 547 usb2_en_state: usb2-en-state { 548 pins = "gpio9"; 549 function = "normal"; 550 output-high; 551 power-source = <0>; 552 }; 553}; 554 555&pmm8654au_2_gpios { 556 gpio-line-names = "PMIC_E_ID0", 557 "PMIC_E_ID1", 558 "USB0_PWR_EN", 559 "USB0_FAULT", 560 "SENSOR_IRQ_1", 561 "SENSOR_IRQ_2", 562 "SENSOR_RST", 563 "SGMIIO0_RST", 564 "SGMIIO1_RST", 565 "USB1_PWR_ENABLE", 566 "USB1_FAULT", 567 "VMON_SPX8"; 568 569 usb0_en_state: usb0-en-state { 570 pins = "gpio3"; 571 function = "normal"; 572 output-high; 573 power-source = <0>; 574 }; 575 576 usb1_en_state: usb1-en-state { 577 pins = "gpio10"; 578 function = "normal"; 579 output-high; 580 power-source = <0>; 581 }; 582}; 583 584&pmm8654au_3_gpios { 585 gpio-line-names = "PMIC_G_ID0", 586 "PMIC_G_ID1", 587 "GNSS_RST", 588 "GNSS_EN", 589 "GNSS_BOOT_MODE"; 590}; 591 592&qupv3_id_1 { 593 status = "okay"; 594}; 595 596&qupv3_id_2 { 597 status = "okay"; 598}; 599 600&serdes0 { 601 phy-supply = <&vreg_l5a>; 602 status = "okay"; 603}; 604 605&serdes1 { 606 phy-supply = <&vreg_l5a>; 607 status = "okay"; 608}; 609 610&sleep_clk { 611 clock-frequency = <32764>; 612}; 613 614&spi16 { 615 pinctrl-0 = <&qup_spi16_default>; 616 pinctrl-names = "default"; 617 status = "okay"; 618}; 619 620&tlmm { 621 ethernet0_default: ethernet0-default-state { 622 ethernet0_mdc: ethernet0-mdc-pins { 623 pins = "gpio8"; 624 function = "emac0_mdc"; 625 drive-strength = <16>; 626 bias-pull-up; 627 }; 628 629 ethernet0_mdio: ethernet0-mdio-pins { 630 pins = "gpio9"; 631 function = "emac0_mdio"; 632 drive-strength = <16>; 633 bias-pull-up; 634 }; 635 }; 636 637 qup_uart10_default: qup-uart10-state { 638 pins = "gpio46", "gpio47"; 639 function = "qup1_se3"; 640 }; 641 642 qup_spi16_default: qup-spi16-state { 643 pins = "gpio86", "gpio87", "gpio88", "gpio89"; 644 function = "qup2_se2"; 645 drive-strength = <6>; 646 bias-disable; 647 }; 648 649 qup_i2c11_default: qup-i2c11-state { 650 pins = "gpio48", "gpio49"; 651 function = "qup1_se4"; 652 drive-strength = <2>; 653 bias-pull-up; 654 }; 655 656 qup_i2c18_default: qup-i2c18-state { 657 pins = "gpio95", "gpio96"; 658 function = "qup2_se4"; 659 drive-strength = <2>; 660 bias-pull-up; 661 }; 662 663 qup_uart12_default: qup-uart12-state { 664 qup_uart12_cts: qup-uart12-cts-pins { 665 pins = "gpio52"; 666 function = "qup1_se5"; 667 bias-disable; 668 }; 669 670 qup_uart12_rts: qup-uart12-rts-pins { 671 pins = "gpio53"; 672 function = "qup1_se5"; 673 bias-pull-down; 674 }; 675 676 qup_uart12_tx: qup-uart12-tx-pins { 677 pins = "gpio54"; 678 function = "qup1_se5"; 679 bias-pull-up; 680 }; 681 682 qup_uart12_rx: qup-uart12-rx-pins { 683 pins = "gpio55"; 684 function = "qup1_se5"; 685 bias-pull-down; 686 }; 687 }; 688 689 qup_uart17_default: qup-uart17-state { 690 qup_uart17_cts: qup-uart17-cts-pins { 691 pins = "gpio91"; 692 function = "qup2_se3"; 693 bias-disable; 694 }; 695 696 qup_uart17_rts: qup0-uart17-rts-pins { 697 pins = "gpio92"; 698 function = "qup2_se3"; 699 bias-pull-down; 700 }; 701 702 qup_uart17_tx: qup0-uart17-tx-pins { 703 pins = "gpio93"; 704 function = "qup2_se3"; 705 bias-pull-up; 706 }; 707 708 qup_uart17_rx: qup0-uart17-rx-pins { 709 pins = "gpio94"; 710 function = "qup2_se3"; 711 bias-pull-down; 712 }; 713 }; 714 715 pcie0_default_state: pcie0-default-state { 716 perst-pins { 717 pins = "gpio2"; 718 function = "gpio"; 719 drive-strength = <2>; 720 bias-pull-down; 721 }; 722 723 clkreq-pins { 724 pins = "gpio1"; 725 function = "pcie0_clkreq"; 726 drive-strength = <2>; 727 bias-pull-up; 728 }; 729 730 wake-pins { 731 pins = "gpio0"; 732 function = "gpio"; 733 drive-strength = <2>; 734 bias-pull-up; 735 }; 736 }; 737 738 pcie1_default_state: pcie1-default-state { 739 perst-pins { 740 pins = "gpio4"; 741 function = "gpio"; 742 drive-strength = <2>; 743 bias-pull-down; 744 }; 745 746 clkreq-pins { 747 pins = "gpio3"; 748 function = "pcie1_clkreq"; 749 drive-strength = <2>; 750 bias-pull-up; 751 }; 752 753 wake-pins { 754 pins = "gpio5"; 755 function = "gpio"; 756 drive-strength = <2>; 757 bias-pull-up; 758 }; 759 }; 760}; 761 762&pcie0 { 763 perst-gpios = <&tlmm 2 GPIO_ACTIVE_LOW>; 764 wake-gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>; 765 766 pinctrl-names = "default"; 767 pinctrl-0 = <&pcie0_default_state>; 768 769 status = "okay"; 770}; 771 772&pcie1 { 773 perst-gpios = <&tlmm 4 GPIO_ACTIVE_LOW>; 774 wake-gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>; 775 776 pinctrl-names = "default"; 777 pinctrl-0 = <&pcie1_default_state>; 778 779 status = "okay"; 780}; 781 782&pcie0_phy { 783 vdda-phy-supply = <&vreg_l5a>; 784 vdda-pll-supply = <&vreg_l1c>; 785 786 status = "okay"; 787}; 788 789&pcie1_phy { 790 vdda-phy-supply = <&vreg_l5a>; 791 vdda-pll-supply = <&vreg_l1c>; 792 793 status = "okay"; 794}; 795 796&pcieport0 { 797 wifi@0 { 798 compatible = "pci17cb,1101"; 799 reg = <0x10000 0x0 0x0 0x0 0x0>; 800 801 qcom,ath11k-calibration-variant = "QC_SA8775P_Ride"; 802 803 vddrfacmn-supply = <&vreg_pmu_rfa_cmn>; 804 vddaon-supply = <&vreg_pmu_aon_0p59>; 805 vddwlcx-supply = <&vreg_pmu_wlcx_0p8>; 806 vddwlmx-supply = <&vreg_pmu_wlmx_0p85>; 807 vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>; 808 vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>; 809 vddrfa1p7-supply = <&vreg_pmu_rfa_1p7>; 810 vddpcie0p9-supply = <&vreg_pmu_pcie_0p9>; 811 vddpcie1p8-supply = <&vreg_pmu_pcie_1p8>; 812 }; 813}; 814 815&remoteproc_adsp { 816 firmware-name = "qcom/sa8775p/adsp.mbn"; 817 status = "okay"; 818}; 819 820&remoteproc_cdsp0 { 821 firmware-name = "qcom/sa8775p/cdsp0.mbn"; 822 status = "okay"; 823}; 824 825&remoteproc_cdsp1 { 826 firmware-name = "qcom/sa8775p/cdsp1.mbn"; 827 status = "okay"; 828}; 829 830&remoteproc_gpdsp0 { 831 firmware-name = "qcom/sa8775p/gpdsp0.mbn"; 832 status = "okay"; 833}; 834 835&remoteproc_gpdsp1 { 836 firmware-name = "qcom/sa8775p/gpdsp1.mbn"; 837 status = "okay"; 838}; 839 840&uart10 { 841 compatible = "qcom,geni-debug-uart"; 842 pinctrl-0 = <&qup_uart10_default>; 843 pinctrl-names = "default"; 844 status = "okay"; 845}; 846 847&uart12 { 848 pinctrl-0 = <&qup_uart12_default>; 849 pinctrl-names = "default"; 850 status = "okay"; 851}; 852 853&uart17 { 854 pinctrl-0 = <&qup_uart17_default>; 855 pinctrl-names = "default"; 856 status = "okay"; 857 858 bluetooth { 859 compatible = "qcom,wcn6855-bt"; 860 861 vddrfacmn-supply = <&vreg_pmu_rfa_cmn>; 862 vddaon-supply = <&vreg_pmu_aon_0p59>; 863 vddbtcmx-supply = <&vreg_pmu_btcmx_0p85>; 864 vddrfa0p8-supply = <&vreg_pmu_rfa_0p8>; 865 vddrfa1p2-supply = <&vreg_pmu_rfa_1p2>; 866 vddrfa1p7-supply = <&vreg_pmu_rfa_1p7>; 867 }; 868}; 869 870&ufs_mem_hc { 871 reset-gpios = <&tlmm 149 GPIO_ACTIVE_LOW>; 872 vcc-supply = <&vreg_l8a>; 873 vcc-max-microamp = <1100000>; 874 vccq-supply = <&vreg_l4c>; 875 vccq-max-microamp = <1200000>; 876 877 status = "okay"; 878}; 879 880&ufs_mem_phy { 881 vdda-phy-supply = <&vreg_l4a>; 882 vdda-pll-supply = <&vreg_l1c>; 883 884 status = "okay"; 885}; 886 887&usb_0 { 888 pinctrl-names = "default"; 889 pinctrl-0 = <&usb0_en_state>; 890 891 status = "okay"; 892}; 893 894&usb_0_dwc3 { 895 dr_mode = "peripheral"; 896}; 897 898&usb_0_hsphy { 899 vdda-pll-supply = <&vreg_l7a>; 900 vdda18-supply = <&vreg_l6c>; 901 vdda33-supply = <&vreg_l9a>; 902 903 status = "okay"; 904}; 905 906&usb_0_qmpphy { 907 vdda-phy-supply = <&vreg_l1c>; 908 vdda-pll-supply = <&vreg_l7a>; 909 910 status = "okay"; 911}; 912 913&usb_1 { 914 pinctrl-names = "default"; 915 pinctrl-0 = <&usb1_en_state>; 916 917 status = "okay"; 918}; 919 920&usb_1_dwc3 { 921 dr_mode = "host"; 922}; 923 924&usb_1_hsphy { 925 vdda-pll-supply = <&vreg_l7a>; 926 vdda18-supply = <&vreg_l6c>; 927 vdda33-supply = <&vreg_l9a>; 928 929 status = "okay"; 930}; 931 932&usb_1_qmpphy { 933 vdda-phy-supply = <&vreg_l1c>; 934 vdda-pll-supply = <&vreg_l7a>; 935 936 status = "okay"; 937}; 938 939&usb_2 { 940 pinctrl-names = "default"; 941 pinctrl-0 = <&usb2_en_state>; 942 943 status = "okay"; 944}; 945 946&usb_2_dwc3 { 947 dr_mode = "host"; 948}; 949 950&usb_2_hsphy { 951 vdda-pll-supply = <&vreg_l7a>; 952 vdda18-supply = <&vreg_l6c>; 953 vdda33-supply = <&vreg_l9a>; 954 955 status = "okay"; 956}; 957 958&xo_board_clk { 959 clock-frequency = <38400000>; 960}; 961