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