1// SPDX-License-Identifier: BSD-3-Clause 2/* 3 * Copyright (c) 2021, The Linux Foundation. All rights reserved. 4 * Copyright (c) 2022, Linaro Limited 5 */ 6 7/dts-v1/; 8 9#include <dt-bindings/iio/qcom,spmi-adc7-pm8350.h> 10#include <dt-bindings/gpio/gpio.h> 11#include <dt-bindings/input/gpio-keys.h> 12#include <dt-bindings/input/input.h> 13#include <dt-bindings/leds/common.h> 14#include <dt-bindings/regulator/qcom,rpmh-regulator.h> 15 16#include "sc8280xp.dtsi" 17#include "sc8280xp-pmics.dtsi" 18 19/ { 20 model = "Lenovo ThinkPad X13s"; 21 compatible = "lenovo,thinkpad-x13s", "qcom,sc8280xp"; 22 23 aliases { 24 i2c4 = &i2c4; 25 i2c21 = &i2c21; 26 serial1 = &uart2; 27 }; 28 29 wcd938x: audio-codec { 30 compatible = "qcom,wcd9380-codec"; 31 32 pinctrl-names = "default"; 33 pinctrl-0 = <&wcd_default>; 34 35 reset-gpios = <&tlmm 106 GPIO_ACTIVE_LOW>; 36 37 vdd-buck-supply = <&vreg_s10b>; 38 vdd-rxtx-supply = <&vreg_s10b>; 39 vdd-io-supply = <&vreg_s10b>; 40 vdd-mic-bias-supply = <&vreg_bob>; 41 42 qcom,micbias1-microvolt = <1800000>; 43 qcom,micbias2-microvolt = <1800000>; 44 qcom,micbias3-microvolt = <1800000>; 45 qcom,micbias4-microvolt = <1800000>; 46 qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>; 47 qcom,mbhc-headset-vthreshold-microvolt = <1700000>; 48 qcom,mbhc-headphone-vthreshold-microvolt = <50000>; 49 qcom,rx-device = <&wcd_rx>; 50 qcom,tx-device = <&wcd_tx>; 51 52 #sound-dai-cells = <1>; 53 }; 54 55 backlight: backlight { 56 compatible = "pwm-backlight"; 57 pwms = <&pmc8280c_lpg 3 1000000>; 58 enable-gpios = <&pmc8280_1_gpios 8 GPIO_ACTIVE_HIGH>; 59 power-supply = <&vreg_edp_bl>; 60 61 pinctrl-names = "default"; 62 pinctrl-0 = <&edp_bl_en>, <&edp_bl_pwm>; 63 }; 64 65 gpio-keys { 66 compatible = "gpio-keys"; 67 68 pinctrl-names = "default"; 69 pinctrl-0 = <&hall_int_n_default>; 70 71 switch-lid { 72 gpios = <&tlmm 107 GPIO_ACTIVE_LOW>; 73 linux,input-type = <EV_SW>; 74 linux,code = <SW_LID>; 75 wakeup-source; 76 wakeup-event-action = <EV_ACT_DEASSERTED>; 77 }; 78 }; 79 80 leds { 81 compatible = "gpio-leds"; 82 83 pinctrl-names = "default"; 84 pinctrl-0 = <&cam_indicator_en>; 85 86 led-camera-indicator { 87 label = "white:camera-indicator"; 88 function = LED_FUNCTION_INDICATOR; 89 color = <LED_COLOR_ID_WHITE>; 90 gpios = <&tlmm 28 GPIO_ACTIVE_HIGH>; 91 linux,default-trigger = "none"; 92 default-state = "off"; 93 /* Reuse as a panic indicator until we get a "camera on" trigger */ 94 panic-indicator; 95 }; 96 }; 97 98 pmic-glink { 99 compatible = "qcom,sc8280xp-pmic-glink", "qcom,pmic-glink"; 100 101 #address-cells = <1>; 102 #size-cells = <0>; 103 orientation-gpios = <&tlmm 166 GPIO_ACTIVE_HIGH>, 104 <&tlmm 49 GPIO_ACTIVE_HIGH>; 105 106 connector@0 { 107 compatible = "usb-c-connector"; 108 reg = <0>; 109 power-role = "dual"; 110 data-role = "dual"; 111 112 ports { 113 #address-cells = <1>; 114 #size-cells = <0>; 115 116 port@0 { 117 reg = <0>; 118 119 pmic_glink_con0_hs: endpoint { 120 remote-endpoint = <&usb_0_dwc3_hs>; 121 }; 122 }; 123 124 port@1 { 125 reg = <1>; 126 127 pmic_glink_con0_ss: endpoint { 128 remote-endpoint = <&usb_0_qmpphy_out>; 129 }; 130 }; 131 132 port@2 { 133 reg = <2>; 134 135 pmic_glink_con0_sbu: endpoint { 136 remote-endpoint = <&usb0_sbu_mux>; 137 }; 138 }; 139 }; 140 }; 141 142 connector@1 { 143 compatible = "usb-c-connector"; 144 reg = <1>; 145 power-role = "dual"; 146 data-role = "dual"; 147 148 ports { 149 #address-cells = <1>; 150 #size-cells = <0>; 151 port@0 { 152 reg = <0>; 153 154 pmic_glink_con1_hs: endpoint { 155 remote-endpoint = <&usb_1_dwc3_hs>; 156 }; 157 }; 158 159 port@1 { 160 reg = <1>; 161 162 pmic_glink_con1_ss: endpoint { 163 remote-endpoint = <&usb_1_qmpphy_out>; 164 }; 165 }; 166 167 port@2 { 168 reg = <2>; 169 170 pmic_glink_con1_sbu: endpoint { 171 remote-endpoint = <&usb1_sbu_mux>; 172 }; 173 }; 174 }; 175 }; 176 }; 177 178 vreg_edp_3p3: regulator-edp-3p3 { 179 compatible = "regulator-fixed"; 180 181 regulator-name = "VCC3LCD"; 182 regulator-min-microvolt = <3300000>; 183 regulator-max-microvolt = <3300000>; 184 185 gpio = <&tlmm 25 GPIO_ACTIVE_HIGH>; 186 enable-active-high; 187 188 pinctrl-names = "default"; 189 pinctrl-0 = <&edp_reg_en>; 190 191 regulator-boot-on; 192 }; 193 194 vreg_edp_bl: regulator-edp-bl { 195 compatible = "regulator-fixed"; 196 197 regulator-name = "VBL9"; 198 regulator-min-microvolt = <3600000>; 199 regulator-max-microvolt = <3600000>; 200 201 gpio = <&pmc8280_1_gpios 9 GPIO_ACTIVE_HIGH>; 202 enable-active-high; 203 204 pinctrl-names = "default"; 205 pinctrl-0 = <&edp_bl_reg_en>; 206 207 regulator-boot-on; 208 }; 209 210 vreg_misc_3p3: regulator-misc-3p3 { 211 compatible = "regulator-fixed"; 212 213 regulator-name = "VCC3B"; 214 regulator-min-microvolt = <3300000>; 215 regulator-max-microvolt = <3300000>; 216 217 gpio = <&pmc8280_1_gpios 1 GPIO_ACTIVE_HIGH>; 218 enable-active-high; 219 220 pinctrl-names = "default"; 221 pinctrl-0 = <&misc_3p3_reg_en>; 222 223 regulator-boot-on; 224 regulator-always-on; 225 }; 226 227 vreg_nvme: regulator-nvme { 228 compatible = "regulator-fixed"; 229 230 regulator-name = "VCC3_SSD"; 231 regulator-min-microvolt = <3300000>; 232 regulator-max-microvolt = <3300000>; 233 234 gpio = <&tlmm 135 GPIO_ACTIVE_HIGH>; 235 enable-active-high; 236 237 pinctrl-names = "default"; 238 pinctrl-0 = <&nvme_reg_en>; 239 240 regulator-boot-on; 241 }; 242 243 vreg_vph_pwr: regulator-vph-pwr { 244 compatible = "regulator-fixed"; 245 246 regulator-name = "VPH_VCC3R9"; 247 regulator-min-microvolt = <3900000>; 248 regulator-max-microvolt = <3900000>; 249 250 regulator-always-on; 251 }; 252 253 vreg_wlan: regulator-wlan { 254 compatible = "regulator-fixed"; 255 256 regulator-name = "VCC_WLAN_3R9"; 257 regulator-min-microvolt = <3900000>; 258 regulator-max-microvolt = <3900000>; 259 260 gpio = <&pmr735a_gpios 1 GPIO_ACTIVE_HIGH>; 261 enable-active-high; 262 263 pinctrl-names = "default"; 264 pinctrl-0 = <&hastings_reg_en>; 265 266 regulator-boot-on; 267 }; 268 269 vreg_wwan: regulator-wwan { 270 compatible = "regulator-fixed"; 271 272 regulator-name = "VCC3B_WAN"; 273 regulator-min-microvolt = <3300000>; 274 regulator-max-microvolt = <3300000>; 275 276 gpio = <&pmc8280_2_gpios 1 GPIO_ACTIVE_HIGH>; 277 enable-active-high; 278 279 pinctrl-names = "default"; 280 pinctrl-0 = <&wwan_sw_en>; 281 282 regulator-boot-on; 283 }; 284 285 reserved-memory { 286 gpu_mem: gpu-mem@8bf00000 { 287 reg = <0 0x8bf00000 0 0x2000>; 288 no-map; 289 }; 290 291 linux,cma { 292 compatible = "shared-dma-pool"; 293 size = <0x0 0x8000000>; 294 reusable; 295 linux,cma-default; 296 }; 297 }; 298 299 thermal-zones { 300 pm8008-thermal { 301 polling-delay-passive = <100>; 302 polling-delay = <0>; 303 304 thermal-sensors = <&pm8008>; 305 306 trips { 307 trip0 { 308 temperature = <95000>; 309 hysteresis = <0>; 310 type = "passive"; 311 }; 312 313 trip1 { 314 temperature = <115000>; 315 hysteresis = <0>; 316 type = "critical"; 317 }; 318 }; 319 }; 320 321 skin-temp-thermal { 322 polling-delay-passive = <250>; 323 324 thermal-sensors = <&pmk8280_adc_tm 5>; 325 326 trips { 327 skin_temp_alert0: trip-point0 { 328 temperature = <55000>; 329 hysteresis = <1000>; 330 type = "passive"; 331 }; 332 333 skin_temp_alert1: trip-point1 { 334 temperature = <58000>; 335 hysteresis = <1000>; 336 type = "passive"; 337 }; 338 339 skin-temp-crit { 340 temperature = <73000>; 341 hysteresis = <1000>; 342 type = "critical"; 343 }; 344 }; 345 346 cooling-maps { 347 map0 { 348 trip = <&skin_temp_alert0>; 349 cooling-device = <&CPU4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 350 <&CPU5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 351 <&CPU6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 352 <&CPU7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; 353 }; 354 355 map1 { 356 trip = <&skin_temp_alert1>; 357 cooling-device = <&CPU4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 358 <&CPU5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 359 <&CPU6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 360 <&CPU7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; 361 }; 362 }; 363 }; 364 }; 365 366 usb0-sbu-mux { 367 compatible = "pericom,pi3usb102", "gpio-sbu-mux"; 368 369 enable-gpios = <&tlmm 101 GPIO_ACTIVE_LOW>; 370 select-gpios = <&tlmm 164 GPIO_ACTIVE_HIGH>; 371 372 pinctrl-names = "default"; 373 pinctrl-0 = <&usb0_sbu_default>; 374 375 mode-switch; 376 orientation-switch; 377 378 port { 379 usb0_sbu_mux: endpoint { 380 remote-endpoint = <&pmic_glink_con0_sbu>; 381 }; 382 }; 383 }; 384 385 usb1-sbu-mux { 386 compatible = "pericom,pi3usb102", "gpio-sbu-mux"; 387 388 enable-gpios = <&tlmm 48 GPIO_ACTIVE_LOW>; 389 select-gpios = <&tlmm 47 GPIO_ACTIVE_HIGH>; 390 391 pinctrl-names = "default"; 392 pinctrl-0 = <&usb1_sbu_default>; 393 394 mode-switch; 395 orientation-switch; 396 397 port { 398 usb1_sbu_mux: endpoint { 399 remote-endpoint = <&pmic_glink_con1_sbu>; 400 }; 401 }; 402 }; 403}; 404 405&apps_rsc { 406 regulators-0 { 407 compatible = "qcom,pm8350-rpmh-regulators"; 408 qcom,pmic-id = "b"; 409 410 vdd-l1-l4-supply = <&vreg_s12b>; 411 vdd-l2-l7-supply = <&vreg_bob>; 412 vdd-l3-l5-supply = <&vreg_s11b>; 413 vdd-l6-l9-l10-supply = <&vreg_s12b>; 414 vdd-l8-supply = <&vreg_s12b>; 415 416 vreg_s10b: smps10 { 417 regulator-name = "vreg_s10b"; 418 regulator-min-microvolt = <1800000>; 419 regulator-max-microvolt = <1800000>; 420 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 421 regulator-always-on; 422 }; 423 424 vreg_s11b: smps11 { 425 regulator-name = "vreg_s11b"; 426 regulator-min-microvolt = <1272000>; 427 regulator-max-microvolt = <1272000>; 428 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 429 regulator-always-on; 430 }; 431 432 vreg_s12b: smps12 { 433 regulator-name = "vreg_s12b"; 434 regulator-min-microvolt = <984000>; 435 regulator-max-microvolt = <984000>; 436 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 437 regulator-always-on; 438 }; 439 440 vreg_l1b: ldo1 { 441 regulator-name = "vreg_l1b"; 442 regulator-min-microvolt = <912000>; 443 regulator-max-microvolt = <912000>; 444 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 445 }; 446 447 vreg_l3b: ldo3 { 448 regulator-name = "vreg_l3b"; 449 regulator-min-microvolt = <1200000>; 450 regulator-max-microvolt = <1200000>; 451 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 452 regulator-boot-on; 453 }; 454 455 vreg_l4b: ldo4 { 456 regulator-name = "vreg_l4b"; 457 regulator-min-microvolt = <912000>; 458 regulator-max-microvolt = <912000>; 459 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 460 }; 461 462 vreg_l6b: ldo6 { 463 regulator-name = "vreg_l6b"; 464 regulator-min-microvolt = <880000>; 465 regulator-max-microvolt = <880000>; 466 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 467 regulator-boot-on; 468 }; 469 }; 470 471 regulators-1 { 472 compatible = "qcom,pm8350c-rpmh-regulators"; 473 qcom,pmic-id = "c"; 474 475 vdd-bob-supply = <&vreg_vph_pwr>; 476 vdd-l1-l12-supply = <&vreg_s1c>; 477 vdd-l2-l8-supply = <&vreg_s1c>; 478 vdd-l3-l4-l5-l7-l13-supply = <&vreg_bob>; 479 vdd-l6-l9-l11-supply = <&vreg_bob>; 480 vdd-l10-supply = <&vreg_s11b>; 481 482 vreg_s1c: smps1 { 483 regulator-name = "vreg_s1c"; 484 regulator-min-microvolt = <1880000>; 485 regulator-max-microvolt = <1900000>; 486 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 487 regulator-always-on; 488 }; 489 490 vreg_l1c: ldo1 { 491 regulator-name = "vreg_l1c"; 492 regulator-min-microvolt = <1800000>; 493 regulator-max-microvolt = <1800000>; 494 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 495 }; 496 497 vreg_l8c: ldo8 { 498 regulator-name = "vreg_l8c"; 499 regulator-min-microvolt = <1800000>; 500 regulator-max-microvolt = <1800000>; 501 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 502 }; 503 504 vreg_l12c: ldo12 { 505 regulator-name = "vreg_l12c"; 506 regulator-min-microvolt = <1800000>; 507 regulator-max-microvolt = <1800000>; 508 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 509 }; 510 511 vreg_l13c: ldo13 { 512 regulator-name = "vreg_l13c"; 513 regulator-min-microvolt = <3072000>; 514 regulator-max-microvolt = <3072000>; 515 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 516 }; 517 518 vreg_bob: bob { 519 regulator-name = "vreg_bob"; 520 regulator-min-microvolt = <3008000>; 521 regulator-max-microvolt = <3960000>; 522 regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>; 523 regulator-always-on; 524 }; 525 }; 526 527 regulators-2 { 528 compatible = "qcom,pm8350-rpmh-regulators"; 529 qcom,pmic-id = "d"; 530 531 vdd-l1-l4-supply = <&vreg_s11b>; 532 vdd-l2-l7-supply = <&vreg_bob>; 533 vdd-l3-l5-supply = <&vreg_s11b>; 534 vdd-l6-l9-l10-supply = <&vreg_s12b>; 535 vdd-l8-supply = <&vreg_s12b>; 536 537 vreg_l2d: ldo2 { 538 regulator-name = "vreg_l2d"; 539 regulator-min-microvolt = <3072000>; 540 regulator-max-microvolt = <3072000>; 541 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 542 }; 543 544 vreg_l3d: ldo3 { 545 regulator-name = "vreg_l3d"; 546 regulator-min-microvolt = <1200000>; 547 regulator-max-microvolt = <1200000>; 548 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 549 }; 550 551 vreg_l4d: ldo4 { 552 regulator-name = "vreg_l4d"; 553 regulator-min-microvolt = <1200000>; 554 regulator-max-microvolt = <1200000>; 555 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 556 }; 557 558 vreg_l6d: ldo6 { 559 regulator-name = "vreg_l6d"; 560 regulator-min-microvolt = <880000>; 561 regulator-max-microvolt = <880000>; 562 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 563 }; 564 565 vreg_l7d: ldo7 { 566 regulator-name = "vreg_l7d"; 567 regulator-min-microvolt = <3072000>; 568 regulator-max-microvolt = <3072000>; 569 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 570 }; 571 572 vreg_l8d: ldo8 { 573 regulator-name = "vreg_l8d"; 574 regulator-min-microvolt = <912000>; 575 regulator-max-microvolt = <912000>; 576 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 577 }; 578 579 vreg_l9d: ldo9 { 580 regulator-name = "vreg_l9d"; 581 regulator-min-microvolt = <912000>; 582 regulator-max-microvolt = <912000>; 583 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 584 }; 585 586 vreg_l10d: ldo10 { 587 regulator-name = "vreg_l10d"; 588 regulator-min-microvolt = <912000>; 589 regulator-max-microvolt = <912000>; 590 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 591 }; 592 }; 593}; 594 595&camss { 596 vdda-phy-supply = <&vreg_l6d>; 597 vdda-pll-supply = <&vreg_l4d>; 598 599 status = "okay"; 600 601 ports { 602 port@0 { 603 csiphy0_lanes01_ep: endpoint@0 { 604 reg = <0>; 605 clock-lanes = <7>; 606 data-lanes = <0 1>; 607 remote-endpoint = <&ov5675_ep>; 608 }; 609 }; 610 }; 611}; 612 613&cci2 { 614 status = "okay"; 615}; 616 617&cci2_i2c1 { 618 camera@10 { 619 compatible = "ovti,ov5675"; 620 reg = <0x10>; 621 622 reset-gpios = <&tlmm 15 GPIO_ACTIVE_LOW>; 623 pinctrl-names = "default"; 624 pinctrl-0 = <&cam_rgb_default>; 625 626 clocks = <&camcc CAMCC_MCLK3_CLK>; 627 628 orientation = <0>; /* Front facing */ 629 630 avdd-supply = <&vreg_l6q>; 631 dvdd-supply = <&vreg_l2q>; 632 dovdd-supply = <&vreg_l7q>; 633 634 port { 635 ov5675_ep: endpoint { 636 clock-lanes = <0>; 637 data-lanes = <1 2>; 638 link-frequencies = /bits/ 64 <450000000>; 639 remote-endpoint = <&csiphy0_lanes01_ep>; 640 }; 641 }; 642 643 }; 644}; 645 646&dispcc0 { 647 status = "okay"; 648}; 649 650&gpu { 651 status = "okay"; 652 653 zap-shader { 654 memory-region = <&gpu_mem>; 655 firmware-name = "qcom/sc8280xp/LENOVO/21BX/qcdxkmsuc8280.mbn"; 656 }; 657}; 658 659&mdss0 { 660 status = "okay"; 661}; 662 663&mdss0_dp0 { 664 status = "okay"; 665}; 666 667&mdss0_dp0_out { 668 data-lanes = <0 1>; 669 remote-endpoint = <&usb_0_qmpphy_dp_in>; 670}; 671 672&mdss0_dp1 { 673 status = "okay"; 674}; 675 676&mdss0_dp1_out { 677 data-lanes = <0 1>; 678 remote-endpoint = <&usb_1_qmpphy_dp_in>; 679}; 680 681&mdss0_dp3 { 682 compatible = "qcom,sc8280xp-edp"; 683 /delete-property/ #sound-dai-cells; 684 685 data-lanes = <0 1 2 3>; 686 687 status = "okay"; 688 689 aux-bus { 690 panel { 691 compatible = "edp-panel"; 692 693 backlight = <&backlight>; 694 power-supply = <&vreg_edp_3p3>; 695 696 port { 697 edp_panel_in: endpoint { 698 remote-endpoint = <&mdss0_dp3_out>; 699 }; 700 }; 701 }; 702 }; 703 704 ports { 705 port@1 { 706 reg = <1>; 707 mdss0_dp3_out: endpoint { 708 remote-endpoint = <&edp_panel_in>; 709 }; 710 }; 711 }; 712}; 713 714&mdss0_dp3_phy { 715 compatible = "qcom,sc8280xp-edp-phy"; 716 vdda-phy-supply = <&vreg_l6b>; 717 vdda-pll-supply = <&vreg_l3b>; 718 719 status = "okay"; 720}; 721 722&i2c4 { 723 clock-frequency = <400000>; 724 725 pinctrl-names = "default"; 726 pinctrl-0 = <&i2c4_default>; 727 728 status = "okay"; 729 730 touchscreen@10 { 731 compatible = "elan,ekth5015m", "elan,ekth6915"; 732 reg = <0x10>; 733 734 interrupts-extended = <&tlmm 175 IRQ_TYPE_LEVEL_LOW>; 735 reset-gpios = <&tlmm 99 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>; 736 no-reset-on-power-off; 737 738 vcc33-supply = <&vreg_misc_3p3>; 739 vccio-supply = <&vreg_misc_3p3>; 740 741 pinctrl-names = "default"; 742 pinctrl-0 = <&ts0_default>; 743 }; 744}; 745 746&i2c11 { 747 clock-frequency = <400000>; 748 749 pinctrl-names = "default"; 750 pinctrl-0 = <&i2c11_default>; 751 752 status = "okay"; 753 754 pm8008: pmic@c { 755 compatible = "qcom,pm8008"; 756 reg = <0xc>; 757 758 interrupts-extended = <&tlmm 41 IRQ_TYPE_EDGE_RISING>; 759 reset-gpios = <&tlmm 42 GPIO_ACTIVE_LOW>; 760 761 vdd-l1-l2-supply = <&vreg_s11b>; 762 vdd-l3-l4-supply = <&vreg_bob>; 763 vdd-l5-supply = <&vreg_bob>; 764 vdd-l6-supply = <&vreg_bob>; 765 vdd-l7-supply = <&vreg_bob>; 766 767 pinctrl-names = "default"; 768 pinctrl-0 = <&pm8008_default>; 769 770 gpio-controller; 771 #gpio-cells = <2>; 772 gpio-ranges = <&pm8008 0 0 2>; 773 774 interrupt-controller; 775 #interrupt-cells = <2>; 776 777 #thermal-sensor-cells = <0>; 778 779 regulators { 780 vreg_l1q: ldo1 { 781 regulator-name = "vreg_l1q"; 782 regulator-min-microvolt = <1200000>; 783 regulator-max-microvolt = <1200000>; 784 }; 785 786 vreg_l2q: ldo2 { 787 regulator-name = "vreg_l2q"; 788 regulator-min-microvolt = <1200000>; 789 regulator-max-microvolt = <1200000>; 790 }; 791 792 vreg_l3q: ldo3 { 793 regulator-name = "vreg_l3q"; 794 regulator-min-microvolt = <2800000>; 795 regulator-max-microvolt = <2800000>; 796 }; 797 798 vreg_l4q: ldo4 { 799 regulator-name = "vreg_l4q"; 800 regulator-min-microvolt = <2800000>; 801 regulator-max-microvolt = <2800000>; 802 }; 803 804 vreg_l5q: ldo5 { 805 regulator-name = "vreg_l5q"; 806 regulator-min-microvolt = <1800000>; 807 regulator-max-microvolt = <1800000>; 808 }; 809 810 vreg_l6q: ldo6 { 811 regulator-name = "vreg_l6q"; 812 regulator-min-microvolt = <1800000>; 813 regulator-max-microvolt = <1800000>; 814 }; 815 816 vreg_l7q: ldo7 { 817 regulator-name = "vreg_l7q"; 818 regulator-min-microvolt = <2800000>; 819 regulator-max-microvolt = <2800000>; 820 }; 821 }; 822 }; 823}; 824 825&i2c21 { 826 clock-frequency = <400000>; 827 828 pinctrl-names = "default"; 829 pinctrl-0 = <&i2c21_default>, <&tpad_default>; 830 831 status = "okay"; 832 833 touchpad@15 { 834 compatible = "hid-over-i2c"; 835 reg = <0x15>; 836 837 hid-descr-addr = <0x1>; 838 interrupts-extended = <&tlmm 182 IRQ_TYPE_LEVEL_LOW>; 839 vdd-supply = <&vreg_misc_3p3>; 840 vddl-supply = <&vreg_s10b>; 841 842 wakeup-source; 843 }; 844 845 touchpad@2c { 846 compatible = "hid-over-i2c"; 847 reg = <0x2c>; 848 849 hid-descr-addr = <0x20>; 850 interrupts-extended = <&tlmm 182 IRQ_TYPE_LEVEL_LOW>; 851 vdd-supply = <&vreg_misc_3p3>; 852 vddl-supply = <&vreg_s10b>; 853 854 wakeup-source; 855 }; 856 857 keyboard@68 { 858 compatible = "hid-over-i2c"; 859 reg = <0x68>; 860 861 hid-descr-addr = <0x1>; 862 interrupts-extended = <&tlmm 104 IRQ_TYPE_LEVEL_LOW>; 863 vdd-supply = <&vreg_misc_3p3>; 864 vddl-supply = <&vreg_s10b>; 865 866 pinctrl-names = "default"; 867 pinctrl-0 = <&kybd_default>; 868 869 wakeup-source; 870 }; 871}; 872 873&pcie2a { 874 perst-gpios = <&tlmm 143 GPIO_ACTIVE_LOW>; 875 wake-gpios = <&tlmm 145 GPIO_ACTIVE_LOW>; 876 877 vddpe-3v3-supply = <&vreg_nvme>; 878 879 pinctrl-names = "default"; 880 pinctrl-0 = <&pcie2a_default>; 881 882 status = "okay"; 883}; 884 885&pcie2a_phy { 886 vdda-phy-supply = <&vreg_l6d>; 887 vdda-pll-supply = <&vreg_l4d>; 888 889 status = "okay"; 890}; 891 892&pcie3a { 893 perst-gpios = <&tlmm 151 GPIO_ACTIVE_LOW>; 894 wake-gpios = <&tlmm 148 GPIO_ACTIVE_LOW>; 895 896 vddpe-3v3-supply = <&vreg_wwan>; 897 898 pinctrl-names = "default"; 899 pinctrl-0 = <&pcie3a_default>; 900 901 status = "okay"; 902}; 903 904&pcie3a_phy { 905 vdda-phy-supply = <&vreg_l6d>; 906 vdda-pll-supply = <&vreg_l4d>; 907 908 status = "okay"; 909}; 910 911&pcie4 { 912 max-link-speed = <2>; 913 914 perst-gpios = <&tlmm 141 GPIO_ACTIVE_LOW>; 915 wake-gpios = <&tlmm 139 GPIO_ACTIVE_LOW>; 916 917 vddpe-3v3-supply = <&vreg_wlan>; 918 919 pinctrl-names = "default"; 920 pinctrl-0 = <&pcie4_default>; 921 922 status = "okay"; 923}; 924 925&pcie4_port0 { 926 wifi@0 { 927 compatible = "pci17cb,1103"; 928 reg = <0x10000 0x0 0x0 0x0 0x0>; 929 930 qcom,ath11k-calibration-variant = "LE_X13S"; 931 }; 932}; 933 934&pcie4_phy { 935 vdda-phy-supply = <&vreg_l6d>; 936 vdda-pll-supply = <&vreg_l4d>; 937 938 status = "okay"; 939}; 940 941&pmc8280c_lpg { 942 status = "okay"; 943}; 944 945&pmk8280_adc_tm { 946 status = "okay"; 947 948 sys-therm@0 { 949 reg = <0>; 950 io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM1_100K_PU(1)>; 951 qcom,hw-settle-time-us = <200>; 952 qcom,avg-samples = <2>; 953 qcom,ratiometric; 954 }; 955 956 sys-therm@1 { 957 reg = <1>; 958 io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM2_100K_PU(1)>; 959 qcom,hw-settle-time-us = <200>; 960 qcom,avg-samples = <2>; 961 qcom,ratiometric; 962 }; 963 964 sys-therm@2 { 965 reg = <2>; 966 io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM3_100K_PU(1)>; 967 qcom,hw-settle-time-us = <200>; 968 qcom,avg-samples = <2>; 969 qcom,ratiometric; 970 }; 971 972 sys-therm@3 { 973 reg = <3>; 974 io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM4_100K_PU(1)>; 975 qcom,hw-settle-time-us = <200>; 976 qcom,avg-samples = <2>; 977 qcom,ratiometric; 978 }; 979 980 sys-therm@4 { 981 reg = <4>; 982 io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM1_100K_PU(3)>; 983 qcom,hw-settle-time-us = <200>; 984 qcom,avg-samples = <2>; 985 qcom,ratiometric; 986 }; 987 988 sys-therm@5 { 989 reg = <5>; 990 io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM2_100K_PU(3)>; 991 qcom,hw-settle-time-us = <200>; 992 qcom,avg-samples = <2>; 993 qcom,ratiometric; 994 }; 995 996 sys-therm@6 { 997 reg = <6>; 998 io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM3_100K_PU(3)>; 999 qcom,hw-settle-time-us = <200>; 1000 qcom,avg-samples = <2>; 1001 qcom,ratiometric; 1002 }; 1003 1004 sys-therm@7 { 1005 reg = <7>; 1006 io-channels = <&pmk8280_vadc PM8350_ADC7_AMUX_THM4_100K_PU(3)>; 1007 qcom,hw-settle-time-us = <200>; 1008 qcom,avg-samples = <2>; 1009 qcom,ratiometric; 1010 }; 1011}; 1012 1013&pmk8280_pon_pwrkey { 1014 status = "okay"; 1015}; 1016 1017&pmk8280_pon_resin { 1018 status = "okay"; 1019}; 1020 1021&pmk8280_rtc { 1022 nvmem-cells = <&rtc_offset>; 1023 nvmem-cell-names = "offset"; 1024 1025 status = "okay"; 1026}; 1027 1028&pmk8280_sdam_6 { 1029 status = "okay"; 1030 1031 rtc_offset: rtc-offset@bc { 1032 reg = <0xbc 0x4>; 1033 }; 1034}; 1035 1036&pmk8280_vadc { 1037 channel@144 { 1038 reg = <PM8350_ADC7_AMUX_THM1_100K_PU(1)>; 1039 qcom,hw-settle-time = <200>; 1040 qcom,ratiometric; 1041 label = "sys_therm1"; 1042 }; 1043 1044 channel@145 { 1045 reg = <PM8350_ADC7_AMUX_THM2_100K_PU(1)>; 1046 qcom,hw-settle-time = <200>; 1047 qcom,ratiometric; 1048 label = "sys_therm2"; 1049 }; 1050 1051 channel@146 { 1052 reg = <PM8350_ADC7_AMUX_THM3_100K_PU(1)>; 1053 qcom,hw-settle-time = <200>; 1054 qcom,ratiometric; 1055 label = "sys_therm3"; 1056 }; 1057 1058 channel@147 { 1059 reg = <PM8350_ADC7_AMUX_THM4_100K_PU(1)>; 1060 qcom,hw-settle-time = <200>; 1061 qcom,ratiometric; 1062 label = "sys_therm4"; 1063 }; 1064 1065 channel@344 { 1066 reg = <PM8350_ADC7_AMUX_THM1_100K_PU(3)>; 1067 qcom,hw-settle-time = <200>; 1068 qcom,ratiometric; 1069 label = "sys_therm5"; 1070 }; 1071 1072 channel@345 { 1073 reg = <PM8350_ADC7_AMUX_THM2_100K_PU(3)>; 1074 qcom,hw-settle-time = <200>; 1075 qcom,ratiometric; 1076 label = "sys_therm6"; 1077 }; 1078 1079 channel@346 { 1080 reg = <PM8350_ADC7_AMUX_THM3_100K_PU(3)>; 1081 qcom,hw-settle-time = <200>; 1082 qcom,ratiometric; 1083 label = "sys_therm7"; 1084 }; 1085 1086 channel@347 { 1087 reg = <PM8350_ADC7_AMUX_THM4_100K_PU(3)>; 1088 qcom,hw-settle-time = <200>; 1089 qcom,ratiometric; 1090 label = "sys_therm8"; 1091 }; 1092}; 1093 1094&qup0 { 1095 status = "okay"; 1096}; 1097 1098&qup1 { 1099 status = "okay"; 1100}; 1101 1102&qup2 { 1103 status = "okay"; 1104}; 1105 1106&remoteproc_adsp { 1107 firmware-name = "qcom/sc8280xp/LENOVO/21BX/qcadsp8280.mbn"; 1108 1109 status = "okay"; 1110}; 1111 1112&remoteproc_nsp0 { 1113 firmware-name = "qcom/sc8280xp/LENOVO/21BX/qccdsp8280.mbn"; 1114 1115 status = "okay"; 1116}; 1117 1118&rxmacro { 1119 status = "okay"; 1120}; 1121 1122&sound { 1123 compatible = "qcom,sc8280xp-sndcard"; 1124 model = "SC8280XP-LENOVO-X13S"; 1125 audio-routing = 1126 "SpkrLeft IN", "WSA_SPK1 OUT", 1127 "SpkrRight IN", "WSA_SPK2 OUT", 1128 "IN1_HPHL", "HPHL_OUT", 1129 "IN2_HPHR", "HPHR_OUT", 1130 "AMIC2", "MIC BIAS2", 1131 "VA DMIC0", "MIC BIAS1", 1132 "VA DMIC1", "MIC BIAS1", 1133 "VA DMIC2", "MIC BIAS3", 1134 "TX SWR_ADC1", "ADC2_OUTPUT"; 1135 1136 wcd-playback-dai-link { 1137 link-name = "WCD Playback"; 1138 cpu { 1139 sound-dai = <&q6apmbedai RX_CODEC_DMA_RX_0>; 1140 }; 1141 1142 codec { 1143 sound-dai = <&wcd938x 0>, <&swr1 0>, <&rxmacro 0>; 1144 }; 1145 1146 platform { 1147 sound-dai = <&q6apm>; 1148 }; 1149 }; 1150 1151 wcd-capture-dai-link { 1152 link-name = "WCD Capture"; 1153 cpu { 1154 sound-dai = <&q6apmbedai TX_CODEC_DMA_TX_3>; 1155 }; 1156 1157 codec { 1158 sound-dai = <&wcd938x 1>, <&swr2 0>, <&txmacro 0>; 1159 }; 1160 1161 platform { 1162 sound-dai = <&q6apm>; 1163 }; 1164 }; 1165 1166 wsa-dai-link { 1167 link-name = "WSA Playback"; 1168 cpu { 1169 sound-dai = <&q6apmbedai WSA_CODEC_DMA_RX_0>; 1170 }; 1171 1172 codec { 1173 sound-dai = <&left_spkr>, <&right_spkr>, <&swr0 0>, <&wsamacro 0>; 1174 }; 1175 1176 platform { 1177 sound-dai = <&q6apm>; 1178 }; 1179 }; 1180 1181 va-dai-link { 1182 link-name = "VA Capture"; 1183 cpu { 1184 sound-dai = <&q6apmbedai VA_CODEC_DMA_TX_0>; 1185 }; 1186 1187 platform { 1188 sound-dai = <&q6apm>; 1189 }; 1190 1191 codec { 1192 sound-dai = <&vamacro 0>; 1193 }; 1194 }; 1195}; 1196 1197&swr0 { 1198 status = "okay"; 1199 1200 left_spkr: wsa8830-left@0,1 { 1201 compatible = "sdw10217020200"; 1202 reg = <0 1>; 1203 pinctrl-names = "default"; 1204 pinctrl-0 = <&spkr_1_sd_n_default>; 1205 powerdown-gpios = <&tlmm 178 GPIO_ACTIVE_LOW>; 1206 #thermal-sensor-cells = <0>; 1207 sound-name-prefix = "SpkrLeft"; 1208 #sound-dai-cells = <0>; 1209 vdd-supply = <&vreg_s10b>; 1210 }; 1211 1212 right_spkr: wsa8830-right@0,2 { 1213 compatible = "sdw10217020200"; 1214 reg = <0 2>; 1215 pinctrl-names = "default"; 1216 pinctrl-0 = <&spkr_2_sd_n_default>; 1217 powerdown-gpios = <&tlmm 179 GPIO_ACTIVE_LOW>; 1218 #thermal-sensor-cells = <0>; 1219 sound-name-prefix = "SpkrRight"; 1220 #sound-dai-cells = <0>; 1221 vdd-supply = <&vreg_s10b>; 1222 }; 1223}; 1224 1225&swr1 { 1226 status = "okay"; 1227 1228 wcd_rx: wcd9380-rx@0,4 { 1229 compatible = "sdw20217010d00"; 1230 reg = <0 4>; 1231 qcom,rx-port-mapping = <1 2 3 4 5>; 1232 }; 1233}; 1234 1235&swr2 { 1236 status = "okay"; 1237 1238 wcd_tx: wcd9380-tx@0,3 { 1239 compatible = "sdw20217010d00"; 1240 reg = <0 3>; 1241 qcom,tx-port-mapping = <1 1 2 3>; 1242 }; 1243}; 1244 1245&txmacro { 1246 status = "okay"; 1247}; 1248 1249&uart2 { 1250 pinctrl-0 = <&uart2_default>; 1251 pinctrl-names = "default"; 1252 1253 status = "okay"; 1254 1255 bluetooth { 1256 compatible = "qcom,wcn6855-bt"; 1257 1258 vddio-supply = <&vreg_s10b>; 1259 vddbtcxmx-supply = <&vreg_s12b>; 1260 vddrfacmn-supply = <&vreg_s12b>; 1261 vddrfa0p8-supply = <&vreg_s12b>; 1262 vddrfa1p2-supply = <&vreg_s11b>; 1263 vddrfa1p7-supply = <&vreg_s1c>; 1264 1265 max-speed = <3200000>; 1266 1267 enable-gpios = <&tlmm 133 GPIO_ACTIVE_HIGH>; 1268 swctrl-gpios = <&tlmm 132 GPIO_ACTIVE_HIGH>; 1269 1270 pinctrl-0 = <&bt_default>; 1271 pinctrl-names = "default"; 1272 }; 1273}; 1274 1275&usb_0 { 1276 status = "okay"; 1277}; 1278 1279&usb_0_dwc3 { 1280 dr_mode = "host"; 1281}; 1282 1283&usb_0_dwc3_hs { 1284 remote-endpoint = <&pmic_glink_con0_hs>; 1285}; 1286 1287&usb_0_hsphy { 1288 vdda-pll-supply = <&vreg_l9d>; 1289 vdda18-supply = <&vreg_l1c>; 1290 vdda33-supply = <&vreg_l7d>; 1291 1292 status = "okay"; 1293}; 1294 1295&usb_0_qmpphy { 1296 vdda-phy-supply = <&vreg_l9d>; 1297 vdda-pll-supply = <&vreg_l4d>; 1298 1299 orientation-switch; 1300 1301 status = "okay"; 1302}; 1303 1304&usb_0_qmpphy_dp_in { 1305 remote-endpoint = <&mdss0_dp0_out>; 1306}; 1307 1308&usb_0_qmpphy_out { 1309 remote-endpoint = <&pmic_glink_con0_ss>; 1310}; 1311 1312&usb_1 { 1313 status = "okay"; 1314}; 1315 1316&usb_1_dwc3 { 1317 dr_mode = "host"; 1318}; 1319 1320&usb_1_dwc3_hs { 1321 remote-endpoint = <&pmic_glink_con1_hs>; 1322}; 1323 1324&usb_1_hsphy { 1325 vdda-pll-supply = <&vreg_l4b>; 1326 vdda18-supply = <&vreg_l1c>; 1327 vdda33-supply = <&vreg_l13c>; 1328 1329 status = "okay"; 1330}; 1331 1332&usb_1_qmpphy { 1333 vdda-phy-supply = <&vreg_l4b>; 1334 vdda-pll-supply = <&vreg_l3b>; 1335 1336 orientation-switch; 1337 1338 status = "okay"; 1339}; 1340 1341&usb_1_qmpphy_dp_in { 1342 remote-endpoint = <&mdss0_dp1_out>; 1343}; 1344 1345&usb_1_qmpphy_out { 1346 remote-endpoint = <&pmic_glink_con1_ss>; 1347}; 1348 1349&usb_2 { 1350 status = "okay"; 1351}; 1352 1353&usb_2_hsphy0 { 1354 vdda-pll-supply = <&vreg_l1b>; 1355 vdda18-supply = <&vreg_l1c>; 1356 vdda33-supply = <&vreg_l7d>; 1357 1358 status = "okay"; 1359}; 1360 1361&usb_2_hsphy1 { 1362 vdda-pll-supply = <&vreg_l8d>; 1363 vdda18-supply = <&vreg_l1c>; 1364 vdda33-supply = <&vreg_l7d>; 1365 1366 status = "okay"; 1367}; 1368 1369&usb_2_hsphy2 { 1370 vdda-pll-supply = <&vreg_l10d>; 1371 vdda18-supply = <&vreg_l8c>; 1372 vdda33-supply = <&vreg_l2d>; 1373 1374 status = "okay"; 1375}; 1376 1377&usb_2_hsphy3 { 1378 vdda-pll-supply = <&vreg_l10d>; 1379 vdda18-supply = <&vreg_l8c>; 1380 vdda33-supply = <&vreg_l2d>; 1381 1382 status = "okay"; 1383}; 1384 1385&usb_2_qmpphy0 { 1386 vdda-phy-supply = <&vreg_l1b>; 1387 vdda-pll-supply = <&vreg_l4d>; 1388 1389 status = "okay"; 1390}; 1391 1392&usb_2_qmpphy1 { 1393 vdda-phy-supply = <&vreg_l8d>; 1394 vdda-pll-supply = <&vreg_l4d>; 1395 1396 status = "okay"; 1397}; 1398 1399&vamacro { 1400 pinctrl-0 = <&dmic01_default>, <&dmic23_default>; 1401 pinctrl-names = "default"; 1402 1403 vdd-micb-supply = <&vreg_s10b>; 1404 1405 qcom,dmic-sample-rate = <4800000>; 1406 1407 status = "okay"; 1408}; 1409 1410&wsamacro { 1411 status = "okay"; 1412}; 1413 1414&xo_board_clk { 1415 clock-frequency = <38400000>; 1416}; 1417 1418/* PINCTRL */ 1419 1420&lpass_tlmm { 1421 status = "okay"; 1422}; 1423 1424&pmc8280_1_gpios { 1425 edp_bl_en: edp-bl-en-state { 1426 pins = "gpio8"; 1427 function = "normal"; 1428 }; 1429 1430 edp_bl_reg_en: edp-bl-reg-en-state { 1431 pins = "gpio9"; 1432 function = "normal"; 1433 }; 1434 1435 misc_3p3_reg_en: misc-3p3-reg-en-state { 1436 pins = "gpio1"; 1437 function = "normal"; 1438 }; 1439}; 1440 1441&pmc8280_2_gpios { 1442 wwan_sw_en: wwan-sw-en-state { 1443 pins = "gpio1"; 1444 function = "normal"; 1445 }; 1446}; 1447 1448&pmc8280c_gpios { 1449 edp_bl_pwm: edp-bl-pwm-state { 1450 pins = "gpio8"; 1451 function = "func1"; 1452 }; 1453}; 1454 1455&pmr735a_gpios { 1456 hastings_reg_en: hastings-reg-en-state { 1457 pins = "gpio1"; 1458 function = "normal"; 1459 }; 1460}; 1461 1462&tlmm { 1463 gpio-reserved-ranges = <70 2>, <74 6>, <125 2>, <128 2>, <154 4>; 1464 1465 bt_default: bt-default-state { 1466 hstp-bt-en-pins { 1467 pins = "gpio133"; 1468 function = "gpio"; 1469 drive-strength = <16>; 1470 bias-disable; 1471 }; 1472 1473 hstp-sw-ctrl-pins { 1474 pins = "gpio132"; 1475 function = "gpio"; 1476 bias-pull-down; 1477 }; 1478 }; 1479 1480 cam_indicator_en: cam-indicator-en-state { 1481 pins = "gpio28"; 1482 function = "gpio"; 1483 drive-strength = <2>; 1484 bias-disable; 1485 }; 1486 1487 cam_rgb_default: cam-rgb-default-state { 1488 mclk-pins { 1489 pins = "gpio17"; 1490 function = "cam_mclk"; 1491 drive-strength = <16>; 1492 bias-disable; 1493 }; 1494 1495 sc-rgb-xshut-n-pins { 1496 pins = "gpio15"; 1497 function = "gpio"; 1498 drive-strength = <2>; 1499 bias-disable; 1500 }; 1501 }; 1502 1503 edp_reg_en: edp-reg-en-state { 1504 pins = "gpio25"; 1505 function = "gpio"; 1506 drive-strength = <16>; 1507 bias-disable; 1508 }; 1509 1510 hall_int_n_default: hall-int-n-state { 1511 pins = "gpio107"; 1512 function = "gpio"; 1513 bias-disable; 1514 }; 1515 1516 i2c4_default: i2c4-default-state { 1517 pins = "gpio171", "gpio172"; 1518 function = "qup4"; 1519 drive-strength = <16>; 1520 bias-disable; 1521 }; 1522 1523 i2c11_default: i2c11-default-state { 1524 pins = "gpio18", "gpio19"; 1525 function = "qup11"; 1526 drive-strength = <16>; 1527 bias-disable; 1528 }; 1529 1530 i2c21_default: i2c21-default-state { 1531 pins = "gpio81", "gpio82"; 1532 function = "qup21"; 1533 drive-strength = <16>; 1534 bias-disable; 1535 }; 1536 1537 kybd_default: kybd-default-state { 1538 disable-pins { 1539 pins = "gpio102"; 1540 function = "gpio"; 1541 output-low; 1542 }; 1543 1544 int-n-pins { 1545 pins = "gpio104"; 1546 function = "gpio"; 1547 bias-disable; 1548 }; 1549 1550 reset-pins { 1551 pins = "gpio105"; 1552 function = "gpio"; 1553 bias-disable; 1554 }; 1555 }; 1556 1557 nvme_reg_en: nvme-reg-en-state { 1558 pins = "gpio135"; 1559 function = "gpio"; 1560 drive-strength = <2>; 1561 bias-disable; 1562 }; 1563 1564 pcie2a_default: pcie2a-default-state { 1565 clkreq-n-pins { 1566 pins = "gpio142"; 1567 function = "pcie2a_clkreq"; 1568 drive-strength = <2>; 1569 bias-pull-up; 1570 }; 1571 1572 perst-n-pins { 1573 pins = "gpio143"; 1574 function = "gpio"; 1575 drive-strength = <2>; 1576 bias-disable; 1577 }; 1578 1579 wake-n-pins { 1580 pins = "gpio145"; 1581 function = "gpio"; 1582 drive-strength = <2>; 1583 bias-pull-up; 1584 }; 1585 }; 1586 1587 pcie3a_default: pcie3a-default-state { 1588 clkreq-n-pins { 1589 pins = "gpio150"; 1590 function = "pcie3a_clkreq"; 1591 drive-strength = <2>; 1592 bias-pull-up; 1593 }; 1594 1595 perst-n-pins { 1596 pins = "gpio151"; 1597 function = "gpio"; 1598 drive-strength = <2>; 1599 bias-disable; 1600 }; 1601 1602 wake-n-pins { 1603 pins = "gpio148"; 1604 function = "gpio"; 1605 drive-strength = <2>; 1606 bias-pull-up; 1607 }; 1608 }; 1609 1610 pcie4_default: pcie4-default-state { 1611 clkreq-n-pins { 1612 pins = "gpio140"; 1613 function = "pcie4_clkreq"; 1614 drive-strength = <2>; 1615 bias-pull-up; 1616 }; 1617 1618 perst-n-pins { 1619 pins = "gpio141"; 1620 function = "gpio"; 1621 drive-strength = <2>; 1622 bias-disable; 1623 }; 1624 1625 wake-n-pins { 1626 pins = "gpio139"; 1627 function = "gpio"; 1628 drive-strength = <2>; 1629 bias-pull-up; 1630 }; 1631 }; 1632 1633 pm8008_default: pm8008-default-state { 1634 int-pins { 1635 pins = "gpio41"; 1636 function = "gpio"; 1637 drive-strength = <2>; 1638 bias-pull-down; 1639 }; 1640 1641 reset-n-pins { 1642 pins = "gpio42"; 1643 function = "gpio"; 1644 drive-strength = <2>; 1645 bias-disable; 1646 }; 1647 }; 1648 1649 spkr_1_sd_n_default: spkr-1-sd-n-default-state { 1650 perst-n-pins { 1651 pins = "gpio178"; 1652 function = "gpio"; 1653 drive-strength = <16>; 1654 bias-disable; 1655 output-high; 1656 }; 1657 }; 1658 1659 spkr_2_sd_n_default: spkr-2-sd-n-default-state { 1660 perst-n-pins { 1661 pins = "gpio179"; 1662 function = "gpio"; 1663 drive-strength = <16>; 1664 bias-disable; 1665 output-high; 1666 }; 1667 }; 1668 1669 tpad_default: tpad-default-state { 1670 int-n-pins { 1671 pins = "gpio182"; 1672 function = "gpio"; 1673 bias-disable; 1674 }; 1675 }; 1676 1677 ts0_default: ts0-default-state { 1678 int-n-pins { 1679 pins = "gpio175"; 1680 function = "gpio"; 1681 bias-disable; 1682 }; 1683 1684 reset-n-pins { 1685 pins = "gpio99"; 1686 function = "gpio"; 1687 drive-strength = <2>; 1688 bias-disable; 1689 }; 1690 }; 1691 1692 uart2_default: uart2-default-state { 1693 cts-pins { 1694 pins = "gpio121"; 1695 function = "qup2"; 1696 bias-bus-hold; 1697 }; 1698 1699 rts-pins { 1700 pins = "gpio122"; 1701 function = "qup2"; 1702 drive-strength = <2>; 1703 bias-disable; 1704 }; 1705 1706 rx-pins { 1707 pins = "gpio124"; 1708 function = "qup2"; 1709 bias-pull-up; 1710 }; 1711 1712 tx-pins { 1713 pins = "gpio123"; 1714 function = "qup2"; 1715 drive-strength = <2>; 1716 bias-disable; 1717 }; 1718 }; 1719 1720 usb0_sbu_default: usb0-sbu-state { 1721 oe-n-pins { 1722 pins = "gpio101"; 1723 function = "gpio"; 1724 bias-disable; 1725 drive-strength = <16>; 1726 output-high; 1727 }; 1728 1729 sel-pins { 1730 pins = "gpio164"; 1731 function = "gpio"; 1732 bias-disable; 1733 drive-strength = <16>; 1734 }; 1735 }; 1736 1737 usb1_sbu_default: usb1-sbu-state { 1738 oe-n-pins { 1739 pins = "gpio48"; 1740 function = "gpio"; 1741 bias-disable; 1742 drive-strength = <16>; 1743 output-high; 1744 }; 1745 1746 sel-pins { 1747 pins = "gpio47"; 1748 function = "gpio"; 1749 bias-disable; 1750 drive-strength = <16>; 1751 }; 1752 }; 1753 1754 wcd_default: wcd-default-state { 1755 reset-pins { 1756 pins = "gpio106"; 1757 function = "gpio"; 1758 bias-disable; 1759 }; 1760 }; 1761}; 1762