1// SPDX-License-Identifier: BSD-3-Clause 2 3/dts-v1/; 4 5#include <dt-bindings/gpio/gpio.h> 6#include <dt-bindings/sound/qcom,q6asm.h> 7#include <dt-bindings/regulator/qcom,rpmh-regulator.h> 8 9#include "sc7180.dtsi" 10 11#include "pm6150.dtsi" 12#include "pm6150l.dtsi" 13 14/delete-node/ &tz_mem; 15/delete-node/ &ipa_fw_mem; 16 17/ { 18 model = "Acer Aspire 1"; 19 compatible = "acer,aspire1", "qcom,sc7180"; 20 chassis-type = "laptop"; 21 22 aliases { 23 bluetooth0 = &bluetooth; 24 hsuart0 = &uart3; 25 serial0 = &uart8; 26 wifi0 = &wifi; 27 }; 28 29 chosen { 30 stdout-path = "serial0:115200n8"; 31 }; 32 33 reserved-memory { 34 zap_mem: zap-shader@80840000 { 35 reg = <0x0 0x80840000 0 0x2000>; 36 no-map; 37 }; 38 39 venus_mem: venus@85b00000 { 40 reg = <0x0 0x85b00000 0 0x500000>; 41 no-map; 42 }; 43 44 mpss_mem: mpss@86000000 { 45 reg = <0x0 0x86000000 0x0 0x2000000>; 46 no-map; 47 }; 48 49 adsp_mem: adsp@8e400000 { 50 reg = <0x0 0x8e400000 0x0 0x2800000>; 51 no-map; 52 }; 53 54 wlan_mem: wlan@93900000 { 55 reg = <0x0 0x93900000 0x0 0x200000>; 56 no-map; 57 }; 58 }; 59 60 max98357a: audio-codec { 61 compatible = "maxim,max98357a"; 62 sdmode-gpios = <&tlmm 23 GPIO_ACTIVE_HIGH>; 63 64 pinctrl-0 = <&_sd_mode_default>; 65 pinctrl-names = "default"; 66 67 #sound-dai-cells = <0>; 68 }; 69 70 backlight: backlight { 71 compatible = "pwm-backlight"; 72 pwms = <&sn65dsi86_bridge 1000000>; 73 enable-gpios = <&tlmm 10 GPIO_ACTIVE_HIGH>; 74 75 pinctrl-0 = <&soc_bkoff_default>; 76 pinctrl-names = "default"; 77 }; 78 79 reg_brij_1p2: bridge-1p2-regulator { 80 compatible = "regulator-fixed"; 81 regulator-name = "brij_1p2"; 82 regulator-min-microvolt = <1200000>; 83 regulator-max-microvolt = <1200000>; 84 85 gpio = <&tlmm 19 GPIO_ACTIVE_HIGH>; 86 enable-active-high; 87 88 pinctrl-0 = <®_edp_1p2_en_default>; 89 pinctrl-names = "default"; 90 }; 91 92 reg_brij_1p8: bridge-regulator { 93 compatible = "regulator-fixed"; 94 regulator-name = "brij_1p8"; 95 regulator-min-microvolt = <1800000>; 96 regulator-max-microvolt = <1800000>; 97 98 vin-supply = <&vreg_l8c_1p8>; 99 100 gpio = <&tlmm 20 GPIO_ACTIVE_HIGH>; 101 enable-active-high; 102 103 pinctrl-0 = <®_edp_1p8_en_default>; 104 pinctrl-names = "default"; 105 }; 106 107 reg_codec_3p3: codec-regulator { 108 compatible = "regulator-fixed"; 109 regulator-name = "codec_3p3"; 110 regulator-min-microvolt = <3300000>; 111 regulator-max-microvolt = <3300000>; 112 113 gpio = <&tlmm 83 GPIO_ACTIVE_HIGH>; 114 enable-active-high; 115 116 pinctrl-0 = <®_audio_en_default>; 117 pinctrl-names = "default"; 118 }; 119 120 reg_lcm_3p3: panel-regulator { 121 compatible = "regulator-fixed"; 122 regulator-name = "lcm_3p3"; 123 regulator-min-microvolt = <3300000>; 124 regulator-max-microvolt = <3300000>; 125 126 gpio = <&tlmm 26 GPIO_ACTIVE_HIGH>; 127 enable-active-high; 128 129 pinctrl-0 = <®_lcm_en_default>; 130 pinctrl-names = "default"; 131 }; 132 133 sound: sound { 134 compatible = "qcom,sc7180-qdsp6-sndcard"; 135 pinctrl-0 = <&pri_mi2s_active>, <&pri_mi2s_mclk_active>, <&ter_mi2s_active>; 136 pinctrl-names = "default"; 137 model = "Acer-Aspire-1"; 138 139 audio-routing = 140 "Headphone Jack", "HPOL", 141 "Headphone Jack", "HPOR"; 142 143 multimedia1-dai-link { 144 link-name = "MultiMedia1"; 145 146 cpu { 147 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>; 148 }; 149 }; 150 151 multimedia2-dai-link { 152 link-name = "MultiMedia2"; 153 154 cpu { 155 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA2>; 156 }; 157 }; 158 159 multimedia3-dai-link { 160 link-name = "MultiMedia3"; 161 162 cpu { 163 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA3>; 164 }; 165 }; 166 167 multimedia4-dai-link { 168 link-name = "MultiMedia4"; 169 170 cpu { 171 sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA4>; 172 }; 173 }; 174 175 primary-rx-dai-link { 176 link-name = "Primary MI2S Playback"; 177 178 cpu { 179 sound-dai = <&q6afedai PRIMARY_MI2S_RX>; 180 }; 181 182 platform { 183 sound-dai = <&q6routing>; 184 }; 185 186 codec { 187 sound-dai = <&alc5682 0>; 188 }; 189 }; 190 191 primary-tx-dai-link { 192 link-name = "Primary MI2S Capture"; 193 194 cpu { 195 sound-dai = <&q6afedai PRIMARY_MI2S_TX>; 196 }; 197 198 platform { 199 sound-dai = <&q6routing>; 200 }; 201 202 codec { 203 sound-dai = <&alc5682 0>; 204 }; 205 }; 206 207 tertiary-rx-dai-link { 208 link-name = "Tertiary MI2S Playback"; 209 210 cpu { 211 sound-dai = <&q6afedai TERTIARY_MI2S_RX>; 212 }; 213 214 platform { 215 sound-dai = <&q6routing>; 216 }; 217 218 codec { 219 sound-dai = <&max98357a>; 220 }; 221 }; 222 223 displayport-rx-dai-link { 224 link-name = "DisplayPort Playback"; 225 226 cpu { 227 sound-dai = <&q6afedai DISPLAY_PORT_RX>; 228 }; 229 230 platform { 231 sound-dai = <&q6routing>; 232 }; 233 234 codec { 235 sound-dai = <&mdss_dp>; 236 }; 237 }; 238 }; 239 240 reg_tp_3p3: touchpad-regulator { 241 compatible = "regulator-fixed"; 242 regulator-name = "tp_3p3"; 243 regulator-min-microvolt = <3300000>; 244 regulator-max-microvolt = <3300000>; 245 246 gpio = <&tlmm 25 GPIO_ACTIVE_HIGH>; 247 enable-active-high; 248 249 pinctrl-0 = <®_tp_en_default>; 250 pinctrl-names = "default"; 251 }; 252}; 253 254&i2c2 { 255 clock-frequency = <400000>; 256 status = "okay"; 257 258 embedded-controller@76 { 259 compatible = "acer,aspire1-ec"; 260 reg = <0x76>; 261 262 interrupts-extended = <&tlmm 30 IRQ_TYPE_LEVEL_LOW>; 263 264 pinctrl-0 = <&ec_int_default>; 265 pinctrl-names = "default"; 266 267 connector { 268 compatible = "usb-c-connector"; 269 270 port { 271 ec_dp_in: endpoint { 272 remote-endpoint = <&mdss_dp_out>; 273 }; 274 }; 275 }; 276 }; 277}; 278 279&i2c4 { 280 clock-frequency = <400000>; 281 status = "okay"; 282 283 /* 284 * NOTE: DSDT defines two possible touchpads, other one is 285 * 286 * reg = <0x15>; 287 * hid-descr-addr = <0x1>; 288 */ 289 290 touchpad@2c { 291 compatible = "hid-over-i2c"; 292 reg = <0x2c>; 293 hid-descr-addr = <0x20>; 294 295 vdd-supply = <®_tp_3p3>; 296 297 interrupts-extended = <&tlmm 94 IRQ_TYPE_LEVEL_LOW>; 298 299 pinctrl-0 = <&hid_touchpad_default>; 300 pinctrl-names = "default"; 301 302 wakeup-source; 303 }; 304 305 keyboard@3a { 306 compatible = "hid-over-i2c"; 307 reg = <0x3a>; 308 hid-descr-addr = <0x1>; 309 310 interrupts-extended = <&tlmm 33 IRQ_TYPE_LEVEL_LOW>; 311 312 pinctrl-0 = <&hid_keyboard_default>; 313 pinctrl-names = "default"; 314 315 wakeup-source; 316 }; 317}; 318 319&i2c9 { 320 clock-frequency = <400000>; 321 status = "okay"; 322 323 alc5682: codec@1a { 324 compatible = "realtek,rt5682i"; 325 reg = <0x1a>; 326 327 #sound-dai-cells = <1>; 328 329 interrupt-parent = <&tlmm>; 330 interrupts = <28 IRQ_TYPE_EDGE_BOTH>; 331 332 pinctrl-0 = <&codec_irq_default>; 333 pinctrl-names = "default"; 334 335 AVDD-supply = <&vreg_l15a_1p8>; 336 MICVDD-supply = <®_codec_3p3>; 337 VBAT-supply = <®_codec_3p3>; 338 DBVDD-supply = <&vreg_l15a_1p8>; 339 LDO1-IN-supply = <&vreg_l15a_1p8>; 340 341 /* 342 * NOTE: The board has a path from this codec to the 343 * DMIC microphones in the lid, however some of the option 344 * resistors are absent and the microphones are connected 345 * to the SoC instead. 346 * 347 * If the resistors were to be changed by the user to 348 * connect the codec, the following could be used: 349 * 350 * realtek,dmic1-data-pin = <1>; 351 * realtek,dmic1-clk-pin = <1>; 352 */ 353 354 realtek,jd-src = <1>; 355 }; 356}; 357 358&i2c10 { 359 clock-frequency = <400000>; 360 status = "okay"; 361 362 sn65dsi86_bridge: bridge@2c { 363 compatible = "ti,sn65dsi86"; 364 reg = <0x2c>; 365 gpio-controller; 366 #gpio-cells = <2>; 367 #pwm-cells = <1>; 368 369 interrupt-parent = <&tlmm>; 370 interrupts = <11 IRQ_TYPE_LEVEL_HIGH>; 371 372 enable-gpios = <&tlmm 51 GPIO_ACTIVE_HIGH>; 373 suspend-gpios = <&tlmm 22 GPIO_ACTIVE_LOW>; 374 375 pinctrl-0 = <&bridge_en_default>, 376 <&edp_bridge_irq_default>, 377 <&bridge_suspend_default>; 378 pinctrl-names = "default"; 379 380 vpll-supply = <®_brij_1p8>; 381 vccio-supply = <®_brij_1p8>; 382 vcca-supply = <®_brij_1p2>; 383 vcc-supply = <®_brij_1p2>; 384 385 clocks = <&rpmhcc RPMH_LN_BB_CLK3>; 386 clock-names = "refclk"; 387 388 ports { 389 #address-cells = <1>; 390 #size-cells = <0>; 391 392 port@0 { 393 reg = <0>; 394 395 sn65dsi86_in: endpoint { 396 remote-endpoint = <&mdss_dsi0_out>; 397 }; 398 }; 399 400 port@1 { 401 reg = <1>; 402 403 sn65dsi86_out: endpoint { 404 data-lanes = <0 1>; 405 remote-endpoint = <&panel_in_edp>; 406 }; 407 }; 408 }; 409 410 aux-bus { 411 panel: panel { 412 compatible = "edp-panel"; 413 power-supply = <®_lcm_3p3>; 414 backlight = <&backlight>; 415 hpd-absent-delay-ms = <200>; 416 417 port { 418 panel_in_edp: endpoint { 419 remote-endpoint = <&sn65dsi86_out>; 420 }; 421 }; 422 }; 423 }; 424 }; 425}; 426 427&gpu { 428 status = "okay"; 429 430 zap-shader { 431 memory-region = <&zap_mem>; 432 firmware-name = "qcom/sc7180/acer/aspire1/qcdxkmsuc7180.mbn"; 433 }; 434}; 435 436&mdss { 437 status = "okay"; 438}; 439 440&mdss_dp { 441 status = "okay"; 442}; 443 444&mdss_dp_out { 445 data-lanes = <0 1>; 446 remote-endpoint = <&ec_dp_in>; 447}; 448 449&mdss_dsi0 { 450 vdda-supply = <&vreg_l3c_1p2>; 451 status = "okay"; 452}; 453 454&mdss_dsi0_out { 455 remote-endpoint = <&sn65dsi86_in>; 456 data-lanes = <0 1 2 3>; 457}; 458 459&mdss_dsi0_phy { 460 vdds-supply = <&vreg_l4a_0p8>; 461 status = "okay"; 462}; 463 464&pm6150_adc { 465 channel@4e { 466 reg = <ADC5_AMUX_THM2_100K_PU>; 467 qcom,ratiometric; 468 qcom,hw-settle-time = <200>; 469 label = "thermistor"; 470 }; 471 472 channel@4f { 473 reg = <ADC5_AMUX_THM3_100K_PU>; 474 qcom,ratiometric; 475 qcom,hw-settle-time = <200>; 476 label = "charger_thermistor"; 477 }; 478}; 479 480&pm6150_adc_tm { 481 status = "okay"; 482 483 charger-thermistor@0 { 484 reg = <0>; 485 io-channels = <&pm6150_adc ADC5_AMUX_THM3_100K_PU>; 486 qcom,ratiometric; 487 qcom,hw-settle-time-us = <200>; 488 }; 489 490 thermistor@1 { 491 reg = <1>; 492 io-channels = <&pm6150_adc ADC5_AMUX_THM2_100K_PU>; 493 qcom,ratiometric; 494 qcom,hw-settle-time-us = <200>; 495 }; 496}; 497 498&pm6150_pon { 499 status = "disabled"; 500}; 501 502&pm6150_rtc { 503 status = "okay"; 504}; 505 506&q6afedai { 507 dai@16 { 508 reg = <PRIMARY_MI2S_RX>; 509 qcom,sd-lines = <1>; 510 }; 511 512 dai@17 { 513 reg = <PRIMARY_MI2S_TX>; 514 qcom,sd-lines = <0>; 515 }; 516 517 dai@20 { 518 reg = <TERTIARY_MI2S_RX>; 519 qcom,sd-lines = <0>; 520 }; 521 522 dai@104 { 523 reg = <DISPLAY_PORT_RX>; 524 }; 525}; 526 527&q6asmdai { 528 dai@0 { 529 reg = <MSM_FRONTEND_DAI_MULTIMEDIA1>; 530 }; 531 532 dai@1 { 533 reg = <MSM_FRONTEND_DAI_MULTIMEDIA2>; 534 }; 535 536 dai@2 { 537 reg = <MSM_FRONTEND_DAI_MULTIMEDIA3>; 538 }; 539 540 dai@3 { 541 reg = <MSM_FRONTEND_DAI_MULTIMEDIA4>; 542 }; 543}; 544 545&qupv3_id_0 { 546 status = "okay"; 547}; 548 549&qupv3_id_1 { 550 status = "okay"; 551}; 552 553&remoteproc_adsp { 554 memory-region = <&adsp_mem>; 555 firmware-name = "qcom/sc7180/acer/aspire1/qcadsp7180.mbn"; 556 status = "okay"; 557}; 558 559&remoteproc_mpss { 560 firmware-name = "qcom/sc7180/acer/aspire1/qcmpss7180_nm.mbn"; 561 status = "okay"; 562}; 563 564&sdhc_1 { 565 pinctrl-0 = <&sdc1_default>; 566 pinctrl-1 = <&sdc1_sleep>; 567 pinctrl-names = "default", "sleep"; 568 vmmc-supply = <&vreg_l19a_2p9>; 569 vqmmc-supply = <&vreg_l12a_1p8>; 570 571 status = "okay"; 572}; 573 574&uart3 { 575 /delete-property/interrupts; 576 interrupts-extended = <&intc GIC_SPI 604 IRQ_TYPE_LEVEL_HIGH>, 577 <&tlmm 41 IRQ_TYPE_EDGE_FALLING>; 578 579 pinctrl-1 = <&qup_uart3_sleep>; 580 pinctrl-names = "default", "sleep"; 581 582 status = "okay"; 583 584 bluetooth: bluetooth { 585 compatible = "qcom,wcn3991-bt"; 586 vddio-supply = <&vreg_l10a_1p8>; 587 vddxo-supply = <&vreg_l1c_1p8>; 588 vddrf-supply = <&vreg_l2c_1p3>; 589 vddch0-supply = <&vreg_l10c_3p3>; 590 max-speed = <3200000>; 591 }; 592}; 593 594&uart8 { 595 status = "okay"; 596}; 597 598&usb_1 { 599 status = "okay"; 600}; 601 602&usb_1_dwc3 { 603 dr_mode = "host"; 604 #address-cells = <1>; 605 #size-cells = <0>; 606 607 usb_hub_2_x: hub@1 { 608 compatible = "usbbda,5411"; 609 reg = <1>; 610 peer-hub = <&usb_hub_3_x>; 611 }; 612 613 usb_hub_3_x: hub@2 { 614 compatible = "usbbda,411"; 615 reg = <2>; 616 peer-hub = <&usb_hub_2_x>; 617 }; 618}; 619 620&usb_1_hsphy { 621 vdd-supply = <&vreg_l4a_0p8>; 622 vdda-pll-supply = <&vreg_l11a_1p8>; 623 vdda-phy-dpdm-supply = <&vreg_l17a_3p0>; 624 qcom,imp-res-offset-value = <8>; 625 qcom,preemphasis-level = <QUSB2_V2_PREEMPHASIS_15_PERCENT>; 626 qcom,preemphasis-width = <QUSB2_V2_PREEMPHASIS_WIDTH_HALF_BIT>; 627 qcom,bias-ctrl-value = <0x22>; 628 qcom,charge-ctrl-value = <3>; 629 qcom,hsdisc-trim-value = <0>; 630 631 status = "okay"; 632}; 633 634&usb_1_qmpphy { 635 vdda-phy-supply = <&vreg_l3c_1p2>; 636 vdda-pll-supply = <&vreg_l4a_0p8>; 637 638 status = "okay"; 639}; 640 641&venus { 642 firmware-name = "qcom/sc7180/acer/aspire1/qcvss7180.mbn"; 643}; 644 645&wifi { 646 vdd-0.8-cx-mx-supply = <&vreg_l9a_0p6>; 647 vdd-1.8-xo-supply = <&vreg_l1c_1p8>; 648 vdd-1.3-rfa-supply = <&vreg_l2c_1p3>; 649 vdd-3.3-ch0-supply = <&vreg_l10c_3p3>; 650 vdd-3.3-ch1-supply = <&vreg_l11c_3p3>; 651 652 status = "okay"; 653}; 654 655&apps_rsc { 656 regulators-0 { 657 compatible = "qcom,pm6150-rpmh-regulators"; 658 qcom,pmic-id = "a"; 659 660 vreg_s1a_1p1: smps1 { 661 regulator-min-microvolt = <1128000>; 662 regulator-max-microvolt = <1128000>; 663 }; 664 665 vreg_l4a_0p8: ldo4 { 666 regulator-min-microvolt = <824000>; 667 regulator-max-microvolt = <928000>; 668 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 669 }; 670 671 vreg_l9a_0p6: ldo9 { 672 regulator-min-microvolt = <488000>; 673 regulator-max-microvolt = <800000>; 674 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 675 }; 676 677 vreg_l10a_1p8: ldo10 { 678 regulator-min-microvolt = <1800000>; 679 regulator-max-microvolt = <1800000>; 680 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 681 regulator-always-on; 682 regulator-boot-on; 683 }; 684 685 vreg_l11a_1p8: ldo11 { 686 regulator-min-microvolt = <1800000>; 687 regulator-max-microvolt = <1800000>; 688 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 689 }; 690 691 vreg_l12a_1p8: ldo12 { 692 regulator-min-microvolt = <1800000>; 693 regulator-max-microvolt = <1800000>; 694 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 695 }; 696 697 vreg_l13a_1p8: ldo13 { 698 regulator-min-microvolt = <1800000>; 699 regulator-max-microvolt = <1800000>; 700 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 701 }; 702 703 vreg_l14a_1p8: ldo14 { 704 regulator-min-microvolt = <1800000>; 705 regulator-max-microvolt = <1800000>; 706 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 707 }; 708 709 vreg_l15a_1p8: ldo15 { 710 regulator-min-microvolt = <1800000>; 711 regulator-max-microvolt = <1800000>; 712 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 713 }; 714 715 vreg_l16a_2p7: ldo16 { 716 regulator-min-microvolt = <2496000>; 717 regulator-max-microvolt = <3304000>; 718 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 719 }; 720 721 vreg_l17a_3p0: ldo17 { 722 regulator-min-microvolt = <2920000>; 723 regulator-max-microvolt = <3232000>; 724 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 725 }; 726 727 vreg_l18a_2p8: ldo18 { 728 regulator-min-microvolt = <2496000>; 729 regulator-max-microvolt = <3304000>; 730 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 731 }; 732 733 vreg_l19a_2p9: ldo19 { 734 regulator-min-microvolt = <2960000>; 735 regulator-max-microvolt = <2960000>; 736 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 737 }; 738 }; 739 740 regulators-1 { 741 compatible = "qcom,pm6150l-rpmh-regulators"; 742 qcom,pmic-id = "c"; 743 744 vreg_s8c_1p3: smps8 { 745 regulator-min-microvolt = <1120000>; 746 regulator-max-microvolt = <1408000>; 747 }; 748 749 vreg_l1c_1p8: ldo1 { 750 regulator-min-microvolt = <1616000>; 751 regulator-max-microvolt = <1984000>; 752 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 753 }; 754 755 vreg_l2c_1p3: ldo2 { 756 regulator-min-microvolt = <1168000>; 757 regulator-max-microvolt = <1304000>; 758 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 759 }; 760 761 vreg_l3c_1p2: ldo3 { 762 regulator-min-microvolt = <1144000>; 763 regulator-max-microvolt = <1304000>; 764 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 765 }; 766 767 vreg_l4c_1p8: ldo4 { 768 regulator-min-microvolt = <1648000>; 769 regulator-max-microvolt = <3304000>; 770 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>; 771 }; 772 773 vreg_l5c_1p8: ldo5 { 774 regulator-min-microvolt = <1648000>; 775 regulator-max-microvolt = <3304000>; 776 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>; 777 }; 778 779 vreg_l6c_2p9: ldo6 { 780 regulator-min-microvolt = <1800000>; 781 regulator-max-microvolt = <2950000>; 782 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 783 }; 784 785 vreg_l7c_3p0: ldo7 { 786 regulator-min-microvolt = <3000000>; 787 regulator-max-microvolt = <3312000>; 788 regulator-initial-mode = <RPMH_REGULATOR_MODE_LPM>; 789 }; 790 791 vreg_l8c_1p8: ldo8 { 792 regulator-min-microvolt = <1800000>; 793 regulator-max-microvolt = <1800000>; 794 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 795 }; 796 797 vreg_l9c_2p9: ldo9 { 798 regulator-min-microvolt = <2952000>; 799 regulator-max-microvolt = <2952000>; 800 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 801 }; 802 803 vreg_l10c_3p3: ldo10 { 804 regulator-min-microvolt = <3000000>; 805 regulator-max-microvolt = <3400000>; 806 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 807 }; 808 809 vreg_l11c_3p3: ldo11 { 810 regulator-min-microvolt = <3000000>; 811 regulator-max-microvolt = <3400000>; 812 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 813 }; 814 815 vreg_bob: bob { 816 regulator-min-microvolt = <3008000>; 817 regulator-max-microvolt = <3960000>; 818 regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>; 819 }; 820 }; 821}; 822 823&qup_i2c2_default { 824 drive-strength = <2>; 825 826 /* Has external pullup */ 827 bias-disable; 828}; 829 830&qup_i2c4_default { 831 drive-strength = <2>; 832 833 /* Has external pullup */ 834 bias-disable; 835}; 836 837&qup_i2c9_default { 838 drive-strength = <2>; 839 840 /* Has external pullup */ 841 bias-disable; 842}; 843 844&qup_i2c10_default { 845 drive-strength = <2>; 846 847 /* Has external pullup */ 848 bias-disable; 849}; 850 851&tlmm { 852 /* 853 * The TZ seem to protect those because some boards can have 854 * fingerprint sensor connected to this range. Not connected 855 * on this board 856 */ 857 gpio-reserved-ranges = <58 5>; 858 859 amp_sd_mode_default: amp-sd-mode-deault-state { 860 pins = "gpio23"; 861 function = "gpio"; 862 drive-strength = <16>; 863 bias-disable; 864 }; 865 866 bridge_en_default: bridge-en-default-state { 867 pins = "gpio51"; 868 function = "gpio"; 869 drive-strength = <16>; 870 bias-disable; 871 }; 872 873 bridge_suspend_default: bridge-suspend-default-state { 874 pins = "gpio22"; 875 function = "gpio"; 876 drive-strength = <16>; 877 bias-pull-up; 878 }; 879 880 codec_irq_default: codec-irq-deault-state { 881 pins = "gpio28"; 882 function = "gpio"; 883 drive-strength = <2>; 884 bias-disable; 885 }; 886 887 ec_int_default: ec-int-default-state { 888 pins = "gpio30"; 889 function = "gpio"; 890 drive-strength = <2>; 891 bias-disable; 892 }; 893 894 edp_bridge_irq_default: edp-bridge-irq-default-state { 895 pins = "gpio11"; 896 function = "gpio"; 897 drive-strength = <2>; 898 bias-pull-down; 899 }; 900 901 hid_keyboard_default: hid-keyboard-default-state { 902 pins = "gpio33"; 903 function = "gpio"; 904 drive-strength = <2>; 905 bias-disable; 906 }; 907 908 hid_touchpad_default: hid-touchpad-default-state { 909 pins = "gpio94"; 910 function = "gpio"; 911 drive-strength = <2>; 912 bias-disable; 913 }; 914 915 qup_uart3_sleep: qup-uart3-sleep-state { 916 cts-pins { 917 /* 918 * Configure a pull-down on CTS to match the pull of 919 * the Bluetooth module. 920 */ 921 pins = "gpio38"; 922 function = "gpio"; 923 bias-pull-down; 924 }; 925 926 rts-pins { 927 /* 928 * Configure pull-down on RTS. As RTS is active low 929 * signal, pull it low to indicate the BT SoC that it 930 * can wakeup the system anytime from suspend state by 931 * pulling RX low (by sending wakeup bytes). 932 */ 933 pins = "gpio39"; 934 function = "gpio"; 935 bias-pull-down; 936 }; 937 938 tx-pins { 939 /* 940 * Configure pull-up on TX when it isn't actively driven 941 * to prevent BT SoC from receiving garbage during sleep. 942 */ 943 pins = "gpio40"; 944 function = "gpio"; 945 bias-pull-up; 946 }; 947 948 rx-pins { 949 /* 950 * Configure a pull-up on RX. This is needed to avoid 951 * garbage data when the TX pin of the Bluetooth module 952 * is floating which may cause spurious wakeups. 953 */ 954 pins = "gpio41"; 955 function = "gpio"; 956 bias-pull-up; 957 }; 958 }; 959 960 reg_edp_1p2_en_default: reg-edp-1p2-en-deault-state { 961 pins = "gpio19"; 962 function = "gpio"; 963 drive-strength = <16>; 964 bias-disable; 965 }; 966 967 reg_edp_1p8_en_default: reg-edp-1p8-en-deault-state { 968 pins = "gpio20"; 969 function = "gpio"; 970 drive-strength = <16>; 971 bias-disable; 972 }; 973 974 reg_lcm_en_default: reg-lcm-en-deault-state { 975 pins = "gpio26"; 976 function = "gpio"; 977 drive-strength = <16>; 978 bias-disable; 979 }; 980 981 reg_audio_en_default: reg-audio-en-deault-state { 982 pins = "gpio83"; 983 function = "gpio"; 984 drive-strength = <2>; 985 bias-disable; 986 }; 987 988 reg_tp_en_default: reg-tp-en-deault-state { 989 pins = "gpio25"; 990 function = "gpio"; 991 drive-strength = <2>; 992 bias-disable; 993 }; 994 995 soc_bkoff_default: soc-bkoff-deault-state { 996 pins = "gpio10"; 997 function = "gpio"; 998 drive-strength = <16>; 999 bias-disable; 1000 }; 1001 1002 sdc1_default: sdc1-default-state { 1003 clk-pins { 1004 pins = "sdc1_clk"; 1005 drive-strength = <16>; 1006 bias-disable; 1007 }; 1008 1009 cmd-pins { 1010 pins = "sdc1_cmd"; 1011 drive-strength = <16>; 1012 bias-pull-up; 1013 }; 1014 1015 data-pins { 1016 pins = "sdc1_data"; 1017 drive-strength = <16>; 1018 bias-pull-up; 1019 }; 1020 1021 rclk-pins { 1022 pins = "sdc1_rclk"; 1023 bias-pull-down; 1024 }; 1025 }; 1026 1027 sdc1_sleep: sdc1-sleep-state { 1028 clk-pins { 1029 pins = "sdc1_clk"; 1030 drive-strength = <2>; 1031 bias-disable; 1032 }; 1033 1034 cmd-pins { 1035 pins = "sdc1_cmd"; 1036 drive-strength = <2>; 1037 bias-pull-up; 1038 }; 1039 1040 data-pins { 1041 pins = "sdc1_data"; 1042 drive-strength = <2>; 1043 bias-pull-up; 1044 }; 1045 1046 rclk-pins { 1047 pins = "sdc1_rclk"; 1048 bias-pull-down; 1049 }; 1050 }; 1051}; 1052