Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | // SPDX-License-Identifier: BSD-3-Clause |
| 2 | /* |
| 3 | * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved. |
| 4 | * Copyright (c) 2020-2023, Linaro Limited |
| 5 | */ |
| 6 | |
| 7 | /dts-v1/; |
| 8 | |
| 9 | #include <dt-bindings/firmware/qcom,scm.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/regulator/qcom,rpmh-regulator.h> |
| 14 | #include "sc8180x.dtsi" |
| 15 | #include "sc8180x-pmics.dtsi" |
| 16 | |
| 17 | / { |
| 18 | model = "Qualcomm SC8180x Primus"; |
| 19 | compatible = "qcom,sc8180x-primus", "qcom,sc8180x"; |
| 20 | |
| 21 | aliases { |
| 22 | serial0 = &uart12; |
| 23 | serial1 = &uart13; |
| 24 | }; |
| 25 | |
| 26 | backlight: backlight { |
| 27 | compatible = "pwm-backlight"; |
| 28 | pwms = <&pmc8180c_lpg 4 1000000>; |
| 29 | enable-gpios = <&pmc8180c_gpios 8 GPIO_ACTIVE_HIGH>; |
| 30 | |
| 31 | pinctrl-names = "default"; |
| 32 | pinctrl-0 = <&bl_pwm_default>; |
| 33 | }; |
| 34 | |
| 35 | chosen { |
| 36 | stdout-path = "serial0:115200n8"; |
| 37 | }; |
| 38 | |
| 39 | gpio-keys { |
| 40 | compatible = "gpio-keys"; |
| 41 | |
| 42 | pinctrl-names = "default"; |
| 43 | pinctrl-0 = <&hall_int_active_state>; |
| 44 | |
| 45 | lid-switch { |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 46 | gpios = <&tlmm 121 GPIO_ACTIVE_LOW>; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 47 | linux,input-type = <EV_SW>; |
| 48 | linux,code = <SW_LID>; |
| 49 | wakeup-source; |
| 50 | wakeup-event-action = <EV_ACT_DEASSERTED>; |
| 51 | }; |
| 52 | }; |
| 53 | |
| 54 | pmic-glink { |
| 55 | compatible = "qcom,sc8180x-pmic-glink", "qcom,pmic-glink"; |
| 56 | |
| 57 | #address-cells = <1>; |
| 58 | #size-cells = <0>; |
| 59 | |
| 60 | connector@0 { |
| 61 | compatible = "usb-c-connector"; |
| 62 | reg = <0>; |
| 63 | power-role = "dual"; |
| 64 | data-role = "dual"; |
| 65 | |
| 66 | ports { |
| 67 | #address-cells = <1>; |
| 68 | #size-cells = <0>; |
| 69 | |
| 70 | port@0 { |
| 71 | reg = <0>; |
| 72 | |
| 73 | pmic_glink_con0_hs: endpoint { |
Tom Rini | 6b642ac | 2024-10-01 12:20:28 -0600 | [diff] [blame] | 74 | remote-endpoint = <&usb_prim_dwc3_hs>; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 75 | }; |
| 76 | }; |
| 77 | |
| 78 | port@1 { |
| 79 | reg = <1>; |
| 80 | |
| 81 | pmic_glink_con0_ss: endpoint { |
| 82 | remote-endpoint = <&usb_prim_qmpphy_out>; |
| 83 | }; |
| 84 | }; |
| 85 | |
| 86 | port@2 { |
| 87 | reg = <2>; |
| 88 | |
| 89 | pmic_glink_con0_sbu: endpoint { |
| 90 | remote-endpoint = <&usbprim_sbu_mux>; |
| 91 | }; |
| 92 | }; |
| 93 | }; |
| 94 | }; |
| 95 | |
| 96 | connector@1 { |
| 97 | compatible = "usb-c-connector"; |
| 98 | reg = <1>; |
| 99 | power-role = "dual"; |
| 100 | data-role = "dual"; |
| 101 | |
| 102 | ports { |
| 103 | #address-cells = <1>; |
| 104 | #size-cells = <0>; |
| 105 | port@0 { |
| 106 | reg = <0>; |
| 107 | |
| 108 | pmic_glink_con1_hs: endpoint { |
Tom Rini | 6b642ac | 2024-10-01 12:20:28 -0600 | [diff] [blame] | 109 | remote-endpoint = <&usb_sec_dwc3_hs>; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 110 | }; |
| 111 | }; |
| 112 | |
| 113 | port@1 { |
| 114 | reg = <1>; |
| 115 | |
| 116 | pmic_glink_con1_ss: endpoint { |
| 117 | remote-endpoint = <&usb_sec_qmpphy_out>; |
| 118 | }; |
| 119 | }; |
| 120 | |
| 121 | port@2 { |
| 122 | reg = <2>; |
| 123 | |
| 124 | pmic_glink_con1_sbu: endpoint { |
| 125 | remote-endpoint = <&usbsec_sbu_mux>; |
| 126 | }; |
| 127 | }; |
| 128 | }; |
| 129 | }; |
| 130 | }; |
| 131 | |
| 132 | reserved-memory { |
| 133 | rmtfs_mem: rmtfs-region@85500000 { |
| 134 | compatible = "qcom,rmtfs-mem"; |
| 135 | reg = <0x0 0x85500000 0x0 0x200000>; |
| 136 | no-map; |
| 137 | |
| 138 | qcom,client-id = <1>; |
| 139 | qcom,vmid = <QCOM_SCM_VMID_MSS_MSA>; |
| 140 | }; |
| 141 | |
| 142 | wlan_mem: wlan-region@8bc00000 { |
| 143 | reg = <0x0 0x8bc00000 0x0 0x180000>; |
| 144 | no-map; |
| 145 | }; |
| 146 | |
| 147 | adsp_mem: adsp-region@96e00000 { |
| 148 | reg = <0x0 0x96e00000 0x0 0x1c00000>; |
| 149 | no-map; |
| 150 | }; |
| 151 | |
| 152 | mpss_mem: mpss-region@8d800000 { |
| 153 | reg = <0x0 0x8d800000 0x0 0x9600000>; |
| 154 | no-map; |
| 155 | }; |
| 156 | |
| 157 | gpu_mem: gpu-region@98a00000 { |
| 158 | reg = <0x0 0x98a00000 0x0 0x2000>; |
| 159 | no-map; |
| 160 | }; |
| 161 | |
| 162 | reserved-region@9a500000 { |
| 163 | reg = <0x0 0x9a500000 0x0 0x600000>; |
| 164 | no-map; |
| 165 | }; |
| 166 | }; |
| 167 | |
| 168 | vreg_nvme_0p9: nvme-0p9-regulator { |
| 169 | compatible = "regulator-fixed"; |
| 170 | regulator-name = "vreg_nvme_0p9"; |
| 171 | |
| 172 | regulator-min-microvolt = <900000>; |
| 173 | regulator-max-microvolt = <900000>; |
| 174 | |
| 175 | regulator-always-on; |
| 176 | }; |
| 177 | |
| 178 | vreg_nvme_3p3: nvme-3p3-regulator { |
| 179 | compatible = "regulator-fixed"; |
| 180 | regulator-name = "vreg_nvme_3p3"; |
| 181 | |
| 182 | regulator-min-microvolt = <3300000>; |
| 183 | regulator-max-microvolt = <3300000>; |
| 184 | |
| 185 | gpio = <&pmc8180c_gpios 11 0>; |
| 186 | enable-active-high; |
| 187 | |
| 188 | regulator-always-on; |
| 189 | }; |
| 190 | |
| 191 | vdd_kb_tp_3v3: vdd-kb-tp-3v3-regulator { |
| 192 | compatible = "regulator-fixed"; |
| 193 | regulator-name = "vdd_kb_tp_3v3"; |
| 194 | regulator-min-microvolt = <3300000>; |
| 195 | regulator-max-microvolt = <3300000>; |
| 196 | |
| 197 | gpio = <&tlmm 4 GPIO_ACTIVE_HIGH>; |
| 198 | enable-active-high; |
| 199 | |
| 200 | regulator-always-on; |
| 201 | |
| 202 | pinctrl-names = "default"; |
| 203 | pinctrl-0 = <&kb_tp_3v3_en_active_state>; |
| 204 | }; |
| 205 | |
| 206 | vph_pwr: vph-pwr-regulator { |
| 207 | compatible = "regulator-fixed"; |
| 208 | regulator-name = "vph_pwr"; |
| 209 | regulator-min-microvolt = <3700000>; |
| 210 | regulator-max-microvolt = <3700000>; |
| 211 | }; |
| 212 | |
| 213 | vreg_s4a_1p8: pm8150-s4 { |
| 214 | compatible = "regulator-fixed"; |
| 215 | regulator-name = "vreg_s4a_1p8"; |
| 216 | |
| 217 | regulator-min-microvolt = <1800000>; |
| 218 | regulator-max-microvolt = <1800000>; |
| 219 | |
| 220 | regulator-always-on; |
| 221 | regulator-boot-on; |
| 222 | |
| 223 | vin-supply = <&vph_pwr>; |
| 224 | }; |
| 225 | |
Tom Rini | 9c8af15 | 2024-12-24 12:03:04 -0600 | [diff] [blame] | 226 | vreg_usb2_host_en: regulator-usb2-host-en { |
| 227 | compatible = "regulator-fixed"; |
| 228 | regulator-name = "usb2_host_en"; |
| 229 | |
| 230 | regulator-min-microvolt = <5000000>; |
| 231 | regulator-max-microvolt = <5000000>; |
| 232 | |
| 233 | gpio = <&pmc8180_1_gpios 9 GPIO_ACTIVE_HIGH>; |
| 234 | enable-active-high; |
| 235 | |
| 236 | regulator-always-on; |
| 237 | }; |
| 238 | |
| 239 | vreg_usb3_host_en: regulator-usb3-host-en { |
| 240 | compatible = "regulator-fixed"; |
| 241 | regulator-name = "usb3_host_en"; |
| 242 | |
| 243 | regulator-min-microvolt = <5000000>; |
| 244 | regulator-max-microvolt = <5000000>; |
| 245 | |
| 246 | gpio = <&pmc8180_2_gpios 9 GPIO_ACTIVE_HIGH>; |
| 247 | enable-active-high; |
| 248 | |
| 249 | regulator-always-on; |
| 250 | }; |
| 251 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 252 | usbprim-sbu-mux { |
| 253 | compatible = "pericom,pi3usb102", "gpio-sbu-mux"; |
| 254 | |
| 255 | enable-gpios = <&tlmm 152 GPIO_ACTIVE_LOW>; |
| 256 | select-gpios = <&tlmm 100 GPIO_ACTIVE_HIGH>; |
| 257 | |
| 258 | pinctrl-names = "default"; |
| 259 | pinctrl-0 = <&usbprim_sbu_default>; |
| 260 | |
| 261 | mode-switch; |
| 262 | orientation-switch; |
| 263 | |
| 264 | port { |
| 265 | usbprim_sbu_mux: endpoint { |
| 266 | remote-endpoint = <&pmic_glink_con0_sbu>; |
| 267 | }; |
| 268 | }; |
| 269 | }; |
| 270 | |
| 271 | usbsec-sbu-mux { |
| 272 | compatible = "pericom,pi3usb102", "gpio-sbu-mux"; |
| 273 | |
| 274 | enable-gpios = <&tlmm 188 GPIO_ACTIVE_LOW>; |
| 275 | select-gpios = <&tlmm 187 GPIO_ACTIVE_HIGH>; |
| 276 | |
| 277 | pinctrl-names = "default"; |
| 278 | pinctrl-0 = <&usbsec_sbu_default>; |
| 279 | |
| 280 | mode-switch; |
| 281 | orientation-switch; |
| 282 | |
| 283 | port { |
| 284 | usbsec_sbu_mux: endpoint { |
| 285 | remote-endpoint = <&pmic_glink_con1_sbu>; |
| 286 | }; |
| 287 | }; |
| 288 | }; |
| 289 | }; |
| 290 | |
| 291 | &apps_rsc { |
| 292 | regulators-0 { |
| 293 | compatible = "qcom,pmc8180-rpmh-regulators"; |
| 294 | qcom,pmic-id = "a"; |
| 295 | |
| 296 | vdd-s5-supply = <&vph_pwr>; |
| 297 | vdd-l7-l12-l14-l15-supply = <&vreg_s5a_2p0>; |
| 298 | |
| 299 | vreg_s5a_2p0: smps5 { |
| 300 | regulator-min-microvolt = <2040000>; |
| 301 | regulator-max-microvolt = <2100000>; |
| 302 | }; |
| 303 | |
| 304 | vreg_l7a_1p8: ldo7 { |
| 305 | regulator-min-microvolt = <1800000>; |
| 306 | regulator-max-microvolt = <1800000>; |
| 307 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 308 | }; |
| 309 | |
| 310 | vreg_l9a_1p3: ldo9 { |
| 311 | regulator-min-microvolt = <1296000>; |
| 312 | regulator-max-microvolt = <1304000>; |
| 313 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 314 | }; |
| 315 | |
| 316 | vreg_l12a_1p8: ldo12 { |
| 317 | regulator-min-microvolt = <1800000>; |
| 318 | regulator-max-microvolt = <1800000>; |
| 319 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 320 | }; |
| 321 | }; |
| 322 | |
| 323 | regulators-1 { |
| 324 | compatible = "qcom,pmc8180c-rpmh-regulators"; |
| 325 | qcom,pmic-id = "c"; |
| 326 | |
| 327 | vdd-s6-supply = <&vph_pwr>; |
| 328 | vdd-s8-supply = <&vph_pwr>; |
| 329 | vdd-l2-l3-supply = <&vreg_s6c_1p35>; |
| 330 | vdd-bob-supply = <&vph_pwr>; |
| 331 | |
| 332 | vreg_s6c_1p35: smps6 { |
| 333 | regulator-min-microvolt = <1350000>; |
| 334 | regulator-max-microvolt = <1372000>; |
| 335 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 336 | }; |
| 337 | |
| 338 | vreg_s8c_1p8: smps8 { |
| 339 | regulator-min-microvolt = <1800000>; |
| 340 | regulator-max-microvolt = <1800000>; |
| 341 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 342 | regulator-always-on; |
| 343 | }; |
| 344 | |
| 345 | vreg_l3c_1p2: ldo3 { |
| 346 | regulator-min-microvolt = <1200000>; |
| 347 | regulator-max-microvolt = <1200000>; |
| 348 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 349 | }; |
| 350 | |
| 351 | vreg_l4c_3p3: ldo4 { |
| 352 | regulator-min-microvolt = <3008000>; |
| 353 | regulator-max-microvolt = <3008000>; |
| 354 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 355 | }; |
| 356 | |
| 357 | vreg_l10c_3p3: ldo10 { |
| 358 | regulator-min-microvolt = <3000000>; |
| 359 | regulator-max-microvolt = <3312000>; |
| 360 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 361 | }; |
| 362 | |
| 363 | vreg_l11c_3p3: ldo11 { |
| 364 | regulator-min-microvolt = <3296000>; |
| 365 | regulator-max-microvolt = <3304000>; |
| 366 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 367 | }; |
| 368 | |
| 369 | vreg_bob: bob { |
| 370 | regulator-min-microvolt = <3296000>; |
| 371 | regulator-max-microvolt = <3350000>; |
| 372 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 373 | }; |
| 374 | }; |
| 375 | |
| 376 | regulators-2 { |
| 377 | compatible = "qcom,pmc8180-rpmh-regulators"; |
| 378 | qcom,pmic-id = "e"; |
| 379 | |
| 380 | vdd-s4-supply = <&vph_pwr>; |
| 381 | vdd-s5-supply = <&vph_pwr>; |
| 382 | vdd-l2-l10-supply = <&vreg_bob>; |
| 383 | vdd-l3-l4-l5-l18-supply = <&vreg_s4e_0p98>; |
| 384 | vdd-l7-l12-l14-l15-supply = <&vreg_s5e_2p05>; |
| 385 | vdd-l13-l16-l17-supply = <&vreg_bob>; |
| 386 | |
| 387 | vreg_s4e_0p98: smps4 { |
| 388 | regulator-min-microvolt = <992000>; |
| 389 | regulator-max-microvolt = <992000>; |
| 390 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 391 | }; |
| 392 | |
| 393 | vreg_s5e_2p05: smps5 { |
| 394 | regulator-min-microvolt = <2040000>; |
| 395 | regulator-max-microvolt = <2040000>; |
| 396 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 397 | }; |
| 398 | |
| 399 | vreg_l1e_0p75: ldo1 { |
| 400 | regulator-min-microvolt = <752000>; |
| 401 | regulator-max-microvolt = <752000>; |
| 402 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 403 | }; |
| 404 | |
| 405 | vreg_l5e_0p88: ldo5 { |
| 406 | regulator-min-microvolt = <880000>; |
| 407 | regulator-max-microvolt = <880000>; |
| 408 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 409 | }; |
| 410 | |
| 411 | vreg_l7e_1p8: ldo7 { |
| 412 | regulator-min-microvolt = <1800000>; |
| 413 | regulator-max-microvolt = <1800000>; |
| 414 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 415 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 416 | RPMH_REGULATOR_MODE_HPM>; |
| 417 | regulator-allow-set-load; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 418 | }; |
| 419 | |
| 420 | vreg_l10e_2p9: ldo10 { |
| 421 | regulator-min-microvolt = <2904000>; |
| 422 | regulator-max-microvolt = <2904000>; |
| 423 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 424 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 425 | RPMH_REGULATOR_MODE_HPM>; |
| 426 | regulator-allow-set-load; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 427 | }; |
| 428 | |
| 429 | vreg_l12e: ldo12 { |
| 430 | regulator-min-microvolt = <1800000>; |
| 431 | regulator-max-microvolt = <1800000>; |
| 432 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 433 | }; |
| 434 | |
| 435 | vreg_l16e_3p0: ldo16 { |
| 436 | regulator-min-microvolt = <3072000>; |
| 437 | regulator-max-microvolt = <3072000>; |
| 438 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 439 | }; |
| 440 | }; |
| 441 | }; |
| 442 | |
| 443 | &gpu { |
| 444 | status = "okay"; |
| 445 | |
| 446 | zap-shader { |
| 447 | memory-region = <&gpu_mem>; |
| 448 | firmware-name = "qcom/sc8180x/qcdxkmsuc8180.mbn"; |
| 449 | }; |
| 450 | }; |
| 451 | |
| 452 | &i2c1 { |
| 453 | clock-frequency = <100000>; |
| 454 | |
| 455 | pinctrl-names = "default"; |
| 456 | pinctrl-0 = <&ts_i2c_active_state>; |
| 457 | |
| 458 | status = "okay"; |
| 459 | |
| 460 | touchscreen@10 { |
| 461 | compatible = "hid-over-i2c"; |
| 462 | reg = <0x10>; |
| 463 | hid-descr-addr = <0x1>; |
| 464 | |
| 465 | vdd-supply = <&vreg_l4c_3p3>; |
| 466 | vddl-supply = <&vreg_l12e>; |
| 467 | |
| 468 | post-power-on-delay-ms = <20>; |
| 469 | |
| 470 | interrupts-extended = <&tlmm 122 IRQ_TYPE_LEVEL_LOW>; |
| 471 | |
| 472 | pinctrl-names = "default"; |
| 473 | pinctrl-0 = <&ts_active_state>; |
| 474 | }; |
| 475 | }; |
| 476 | |
| 477 | &i2c7 { |
| 478 | clock-frequency = <100000>; |
| 479 | |
| 480 | pinctrl-names = "default"; |
| 481 | pinctrl-0 = <&aux_i2c_active_state>; |
| 482 | |
| 483 | status = "okay"; |
| 484 | |
| 485 | touchpad@15 { |
| 486 | compatible = "hid-over-i2c"; |
| 487 | reg = <0x15>; |
| 488 | hid-descr-addr = <0x1>; |
| 489 | |
| 490 | interrupts-extended = <&tlmm 24 IRQ_TYPE_LEVEL_LOW>; |
| 491 | |
| 492 | pinctrl-names = "default"; |
| 493 | pinctrl-0 = <&tp_int_active_state>; |
| 494 | |
| 495 | vdd-supply = <&vdd_kb_tp_3v3>; |
| 496 | }; |
| 497 | |
| 498 | keyboard@3a { |
| 499 | compatible = "hid-over-i2c"; |
| 500 | reg = <0x3a>; |
| 501 | hid-descr-addr = <0x1>; |
| 502 | interrupts-extended = <&tlmm 37 IRQ_TYPE_LEVEL_LOW>; |
| 503 | |
| 504 | pinctrl-names = "default"; |
| 505 | pinctrl-0 = <&kb_int_active_state>; |
| 506 | |
| 507 | vdd-supply = <&vdd_kb_tp_3v3>; |
| 508 | }; |
| 509 | }; |
| 510 | |
| 511 | &mdss { |
| 512 | status = "okay"; |
| 513 | }; |
| 514 | |
| 515 | &mdss_dp0 { |
| 516 | status = "okay"; |
| 517 | }; |
| 518 | |
| 519 | &mdss_dp0_out { |
| 520 | data-lanes = <0 1>; |
| 521 | remote-endpoint = <&usb_prim_qmpphy_dp_in>; |
| 522 | }; |
| 523 | |
| 524 | &mdss_dp1 { |
| 525 | status = "okay"; |
| 526 | }; |
| 527 | |
| 528 | &mdss_dp1_out { |
| 529 | data-lanes = <0 1>; |
| 530 | remote-endpoint = <&usb_sec_qmpphy_dp_in>; |
| 531 | }; |
| 532 | |
| 533 | &mdss_edp { |
| 534 | data-lanes = <0 1 2 3>; |
| 535 | |
| 536 | pinctrl-names = "default"; |
| 537 | pinctrl-0 = <&edp_hpd_active>; |
| 538 | |
| 539 | status = "okay"; |
| 540 | |
| 541 | aux-bus { |
| 542 | panel { |
| 543 | compatible = "edp-panel"; |
| 544 | |
| 545 | backlight = <&backlight>; |
| 546 | |
| 547 | port { |
| 548 | auo_b133han05_in: endpoint { |
| 549 | remote-endpoint = <&mdss_edp_out>; |
| 550 | }; |
| 551 | }; |
| 552 | }; |
| 553 | }; |
| 554 | |
| 555 | ports { |
| 556 | port@1 { |
| 557 | reg = <1>; |
| 558 | mdss_edp_out: endpoint { |
| 559 | remote-endpoint = <&auo_b133han05_in>; |
| 560 | }; |
| 561 | }; |
| 562 | }; |
| 563 | }; |
| 564 | |
| 565 | &pcie1 { |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 566 | perst-gpios = <&tlmm 175 GPIO_ACTIVE_LOW>; |
| 567 | wake-gpios = <&tlmm 177 GPIO_ACTIVE_HIGH>; |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 568 | pinctrl-names = "default"; |
| 569 | pinctrl-0 = <&pcie2_default_state>; |
| 570 | |
| 571 | status = "okay"; |
| 572 | }; |
| 573 | |
| 574 | &pcie1_phy { |
| 575 | vdda-phy-supply = <&vreg_l5e_0p88>; |
| 576 | vdda-pll-supply = <&vreg_l3c_1p2>; |
| 577 | |
Tom Rini | 9c8af15 | 2024-12-24 12:03:04 -0600 | [diff] [blame] | 578 | status = "okay"; |
| 579 | }; |
| 580 | |
| 581 | &pmc8180_pwrkey { |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 582 | status = "okay"; |
| 583 | }; |
| 584 | |
| 585 | &pmc8180c_lpg { |
| 586 | status = "okay"; |
| 587 | }; |
| 588 | |
| 589 | &qupv3_id_0 { |
| 590 | status = "okay"; |
| 591 | }; |
| 592 | |
| 593 | &qupv3_id_1 { |
| 594 | status = "okay"; |
| 595 | }; |
| 596 | |
| 597 | &qupv3_id_2 { |
| 598 | status = "okay"; |
| 599 | }; |
| 600 | |
| 601 | &remoteproc_adsp { |
| 602 | memory-region = <&adsp_mem>; |
| 603 | firmware-name = "qcom/sc8180x/qcadsp8180.mbn"; |
| 604 | |
| 605 | status = "okay"; |
| 606 | }; |
| 607 | |
| 608 | &remoteproc_mpss { |
| 609 | memory-region = <&mpss_mem>; |
| 610 | firmware-name = "qcom/sc8180x/qcmpss8180.mbn"; |
| 611 | |
| 612 | status = "okay"; |
| 613 | }; |
| 614 | |
| 615 | &uart12 { |
| 616 | compatible = "qcom,geni-debug-uart"; |
| 617 | status = "okay"; |
| 618 | }; |
| 619 | |
| 620 | &uart13 { |
| 621 | pinctrl-names = "default"; |
| 622 | pinctrl-0 = <&uart13_state>; |
| 623 | |
| 624 | status = "okay"; |
| 625 | |
| 626 | bluetooth { |
| 627 | compatible = "qcom,wcn3998-bt"; |
| 628 | |
| 629 | vddio-supply = <&vreg_s4a_1p8>; |
| 630 | vddxo-supply = <&vreg_l7a_1p8>; |
| 631 | vddrf-supply = <&vreg_l9a_1p3>; |
| 632 | vddch0-supply = <&vreg_l11c_3p3>; |
| 633 | max-speed = <3200000>; |
| 634 | }; |
| 635 | }; |
| 636 | |
| 637 | &ufs_mem_hc { |
| 638 | reset-gpios = <&tlmm 190 GPIO_ACTIVE_LOW>; |
| 639 | |
| 640 | vcc-supply = <&vreg_l10e_2p9>; |
| 641 | vcc-max-microamp = <155000>; |
| 642 | |
| 643 | vccq2-supply = <&vreg_l7e_1p8>; |
| 644 | vccq2-max-microamp = <425000>; |
| 645 | |
| 646 | status = "okay"; |
| 647 | }; |
| 648 | |
| 649 | &ufs_mem_phy { |
| 650 | vdda-phy-supply = <&vreg_l5e_0p88>; |
| 651 | vdda-pll-supply = <&vreg_l3c_1p2>; |
| 652 | |
| 653 | status = "okay"; |
| 654 | }; |
| 655 | |
Tom Rini | 9c8af15 | 2024-12-24 12:03:04 -0600 | [diff] [blame] | 656 | &usb_mp { |
| 657 | status = "okay"; |
| 658 | }; |
| 659 | |
| 660 | &usb_mp_hsphy0 { |
| 661 | vdda-pll-supply = <&vreg_l5e_0p88>; |
| 662 | vdda18-supply = <&vreg_l12a_1p8>; |
| 663 | vdda33-supply = <&vreg_l16e_3p0>; |
| 664 | |
| 665 | status = "okay"; |
| 666 | }; |
| 667 | |
| 668 | &usb_mp_hsphy1 { |
| 669 | vdda-pll-supply = <&vreg_l5e_0p88>; |
| 670 | vdda18-supply = <&vreg_l12a_1p8>; |
| 671 | vdda33-supply = <&vreg_l16e_3p0>; |
| 672 | |
| 673 | status = "okay"; |
| 674 | }; |
| 675 | |
| 676 | &usb_mp_qmpphy0 { |
| 677 | vdda-phy-supply = <&vreg_l3c_1p2>; |
| 678 | vdda-pll-supply = <&vreg_l5e_0p88>; |
| 679 | |
| 680 | status = "okay"; |
| 681 | }; |
| 682 | |
| 683 | &usb_mp_qmpphy1 { |
| 684 | vdda-phy-supply = <&vreg_l3c_1p2>; |
| 685 | vdda-pll-supply = <&vreg_l5e_0p88>; |
| 686 | |
| 687 | status = "okay"; |
| 688 | }; |
| 689 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 690 | &usb_prim_hsphy { |
| 691 | vdda-pll-supply = <&vreg_l5e_0p88>; |
| 692 | vdda18-supply = <&vreg_l12a_1p8>; |
| 693 | vdda33-supply = <&vreg_l16e_3p0>; |
| 694 | |
| 695 | status = "okay"; |
| 696 | }; |
| 697 | |
| 698 | &usb_prim_qmpphy { |
| 699 | vdda-phy-supply = <&vreg_l3c_1p2>; |
| 700 | vdda-pll-supply = <&vreg_l5e_0p88>; |
| 701 | |
| 702 | orientation-switch; |
| 703 | |
| 704 | status = "okay"; |
| 705 | }; |
| 706 | |
| 707 | &usb_prim { |
| 708 | status = "okay"; |
| 709 | }; |
| 710 | |
| 711 | &usb_prim_dwc3 { |
| 712 | dr_mode = "host"; |
| 713 | }; |
| 714 | |
Tom Rini | 6b642ac | 2024-10-01 12:20:28 -0600 | [diff] [blame] | 715 | &usb_prim_dwc3_hs { |
| 716 | remote-endpoint = <&pmic_glink_con0_hs>; |
| 717 | }; |
| 718 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 719 | &usb_prim_qmpphy_dp_in { |
| 720 | remote-endpoint = <&mdss_dp0_out>; |
| 721 | }; |
| 722 | |
| 723 | &usb_prim_qmpphy_out { |
| 724 | remote-endpoint = <&pmic_glink_con0_ss>; |
| 725 | }; |
| 726 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 727 | &usb_sec_hsphy { |
| 728 | vdda-pll-supply = <&vreg_l5e_0p88>; |
| 729 | vdda18-supply = <&vreg_l12a_1p8>; |
| 730 | vdda33-supply = <&vreg_l16e_3p0>; |
| 731 | |
| 732 | status = "okay"; |
| 733 | }; |
| 734 | |
| 735 | &usb_sec_qmpphy { |
| 736 | vdda-phy-supply = <&vreg_l3c_1p2>; |
| 737 | vdda-pll-supply = <&vreg_l5e_0p88>; |
| 738 | |
| 739 | orientation-switch; |
| 740 | |
| 741 | status = "okay"; |
| 742 | }; |
| 743 | |
| 744 | &usb_sec_qmpphy_dp_in { |
| 745 | remote-endpoint = <&mdss_dp1_out>; |
| 746 | }; |
| 747 | |
| 748 | &usb_sec_qmpphy_out { |
| 749 | remote-endpoint = <&pmic_glink_con1_ss>; |
| 750 | }; |
| 751 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 752 | &usb_sec { |
| 753 | status = "okay"; |
| 754 | }; |
| 755 | |
| 756 | &usb_sec_dwc3 { |
| 757 | dr_mode = "host"; |
| 758 | }; |
| 759 | |
Tom Rini | 6b642ac | 2024-10-01 12:20:28 -0600 | [diff] [blame] | 760 | &usb_sec_dwc3_hs { |
| 761 | remote-endpoint = <&pmic_glink_con1_hs>; |
| 762 | }; |
| 763 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 764 | &wifi { |
| 765 | memory-region = <&wlan_mem>; |
| 766 | |
| 767 | vdd-0.8-cx-mx-supply = <&vreg_l1e_0p75>; |
| 768 | vdd-1.8-xo-supply = <&vreg_l7a_1p8>; |
| 769 | vdd-1.3-rfa-supply = <&vreg_l9a_1p3>; |
| 770 | vdd-3.3-ch0-supply = <&vreg_l11c_3p3>; |
| 771 | vdd-3.3-ch1-supply = <&vreg_l10c_3p3>; |
| 772 | |
| 773 | status = "okay"; |
| 774 | }; |
| 775 | |
Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 776 | /* PINCTRL */ |
| 777 | |
| 778 | &pmc8180c_gpios { |
| 779 | bl_pwm_default: bl-pwm-default-state { |
| 780 | en-pins { |
| 781 | pins = "gpio8"; |
| 782 | function = "normal"; |
| 783 | }; |
| 784 | |
| 785 | pwm-pins { |
| 786 | pins = "gpio10"; |
| 787 | function = "func1"; |
| 788 | }; |
| 789 | }; |
| 790 | }; |
| 791 | |
| 792 | &tlmm { |
| 793 | gpio-reserved-ranges = <0 4>, <47 4>, <126 4>; |
| 794 | |
| 795 | aux_i2c_active_state: aux-i2c-active-state { |
| 796 | pins = "gpio98", "gpio99"; |
| 797 | function = "qup7"; |
| 798 | |
| 799 | bias-disable; |
| 800 | drive-strength = <16>; |
| 801 | }; |
| 802 | |
| 803 | edp_hpd_active: epd-hpd-active-state { |
| 804 | pins = "gpio10"; |
| 805 | function = "edp_hot"; |
| 806 | }; |
| 807 | |
| 808 | hall_int_active_state: hall-int-active-state { |
| 809 | pins = "gpio121"; |
| 810 | function = "gpio"; |
| 811 | |
| 812 | bias-disable; |
| 813 | }; |
| 814 | |
| 815 | kb_int_active_state: kb-int-active-state { |
| 816 | int-n-pins { |
| 817 | pins = "gpio37"; |
| 818 | function = "gpio"; |
| 819 | |
| 820 | bias-pull-up; |
| 821 | }; |
| 822 | |
| 823 | kp-disable-pins { |
| 824 | pins = "gpio135"; |
| 825 | function = "gpio"; |
| 826 | |
| 827 | output-high; |
| 828 | }; |
| 829 | }; |
| 830 | |
| 831 | kb_tp_3v3_en_active_state: kb-tp-3v3-en-active-state { |
| 832 | pins = "gpio4"; |
| 833 | function = "gpio"; |
| 834 | |
| 835 | bias-disable; |
| 836 | }; |
| 837 | |
| 838 | pcie2_default_state: pcie2-default-state { |
| 839 | clkreq-pins { |
| 840 | pins = "gpio176"; |
| 841 | function = "pci_e2"; |
| 842 | bias-pull-up; |
| 843 | }; |
| 844 | |
| 845 | reset-n-pins { |
| 846 | pins = "gpio175"; |
| 847 | function = "gpio"; |
| 848 | |
| 849 | drive-strength = <2>; |
| 850 | output-low; |
| 851 | bias-pull-down; |
| 852 | }; |
| 853 | |
| 854 | wake-n-pins { |
| 855 | pins = "gpio177"; |
| 856 | function = "gpio"; |
| 857 | |
| 858 | drive-strength = <2>; |
| 859 | bias-pull-up; |
| 860 | }; |
| 861 | }; |
| 862 | |
| 863 | usbprim_sbu_default: usbprim-sbu-state { |
| 864 | oe-n-pins { |
| 865 | pins = "gpio152"; |
| 866 | function = "gpio"; |
| 867 | bias-disable; |
| 868 | drive-strength = <16>; |
| 869 | output-high; |
| 870 | }; |
| 871 | |
| 872 | sel-pins { |
| 873 | pins = "gpio100"; |
| 874 | function = "gpio"; |
| 875 | bias-disable; |
| 876 | drive-strength = <16>; |
| 877 | }; |
| 878 | }; |
| 879 | |
| 880 | usbsec_sbu_default: usbsec-sbu-state { |
| 881 | oe-n-pins { |
| 882 | pins = "gpio188"; |
| 883 | function = "gpio"; |
| 884 | bias-disable; |
| 885 | drive-strength = <16>; |
| 886 | output-high; |
| 887 | }; |
| 888 | |
| 889 | sel-pins { |
| 890 | pins = "gpio187"; |
| 891 | function = "gpio"; |
| 892 | bias-disable; |
| 893 | drive-strength = <16>; |
| 894 | }; |
| 895 | }; |
| 896 | |
| 897 | tp_int_active_state: tp-int-active-state { |
| 898 | tp-int-pins { |
| 899 | pins = "gpio24"; |
| 900 | function = "gpio"; |
| 901 | |
| 902 | bias-disable; |
| 903 | }; |
| 904 | |
| 905 | tp-close-n-pins { |
| 906 | pins = "gpio116"; |
| 907 | function = "gpio"; |
| 908 | |
| 909 | bias-disable; |
| 910 | }; |
| 911 | }; |
| 912 | |
| 913 | ts_active_state: ts-active-state { |
| 914 | int-n-pins { |
| 915 | pins = "gpio122"; |
| 916 | function = "gpio"; |
| 917 | |
| 918 | bias-disable; |
| 919 | }; |
| 920 | |
| 921 | reset-n-pins { |
| 922 | pins = "gpio54"; |
| 923 | function = "gpio"; |
| 924 | |
| 925 | output-high; |
| 926 | }; |
| 927 | }; |
| 928 | |
| 929 | ts_i2c_active_state: ts-i2c-active-state { |
| 930 | pins = "gpio114", "gpio115"; |
| 931 | function = "qup1"; |
| 932 | |
| 933 | /* External pull up */ |
| 934 | bias-disable; |
| 935 | drive-strength = <2>; |
| 936 | }; |
| 937 | |
| 938 | uart13_state: uart13-state { |
| 939 | cts-pins { |
| 940 | pins = "gpio43"; |
| 941 | function = "qup13"; |
| 942 | bias-pull-down; |
| 943 | }; |
| 944 | |
| 945 | rts-tx-pins { |
| 946 | pins = "gpio44", "gpio45"; |
| 947 | function = "qup13"; |
| 948 | drive-strength = <2>; |
| 949 | bias-disable; |
| 950 | }; |
| 951 | |
| 952 | rx-pins { |
| 953 | pins = "gpio46"; |
| 954 | function = "qup13"; |
| 955 | bias-pull-up; |
| 956 | }; |
| 957 | }; |
| 958 | }; |