Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame^] | 1 | // SPDX-License-Identifier: BSD-3-Clause |
| 2 | /* |
| 3 | * Copyright (c) 2023, Linaro Limited |
| 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
| 7 | |
| 8 | #include <dt-bindings/leds/common.h> |
| 9 | #include <dt-bindings/regulator/qcom,rpmh-regulator.h> |
| 10 | #include "sm8650.dtsi" |
| 11 | #include "pm8010.dtsi" |
| 12 | #include "pm8550.dtsi" |
| 13 | #include "pm8550b.dtsi" |
| 14 | #define PMK8550VE_SID 8 |
| 15 | #include "pm8550ve.dtsi" |
| 16 | #include "pm8550vs.dtsi" |
| 17 | #include "pmk8550.dtsi" |
| 18 | #include "pmr735d_a.dtsi" |
| 19 | |
| 20 | / { |
| 21 | model = "Qualcomm Technologies, Inc. SM8650 QRD"; |
| 22 | compatible = "qcom,sm8650-qrd", "qcom,sm8650"; |
| 23 | |
| 24 | aliases { |
| 25 | serial0 = &uart15; |
| 26 | serial1 = &uart14; |
| 27 | }; |
| 28 | |
| 29 | chosen { |
| 30 | stdout-path = "serial0:115200n8"; |
| 31 | }; |
| 32 | |
| 33 | gpio-keys { |
| 34 | compatible = "gpio-keys"; |
| 35 | |
| 36 | pinctrl-0 = <&volume_up_n>; |
| 37 | pinctrl-names = "default"; |
| 38 | |
| 39 | key-volume-up { |
| 40 | label = "Volume Up"; |
| 41 | linux,code = <KEY_VOLUMEUP>; |
| 42 | gpios = <&pm8550_gpios 6 GPIO_ACTIVE_LOW>; |
| 43 | debounce-interval = <15>; |
| 44 | linux,can-disable; |
| 45 | wakeup-source; |
| 46 | }; |
| 47 | }; |
| 48 | |
| 49 | pmic-glink { |
| 50 | compatible = "qcom,sm8650-pmic-glink", |
| 51 | "qcom,sm8550-pmic-glink", |
| 52 | "qcom,pmic-glink"; |
| 53 | #address-cells = <1>; |
| 54 | #size-cells = <0>; |
| 55 | orientation-gpios = <&tlmm 29 GPIO_ACTIVE_HIGH>; |
| 56 | |
| 57 | connector@0 { |
| 58 | compatible = "usb-c-connector"; |
| 59 | reg = <0>; |
| 60 | |
| 61 | power-role = "dual"; |
| 62 | data-role = "dual"; |
| 63 | |
| 64 | ports { |
| 65 | #address-cells = <1>; |
| 66 | #size-cells = <0>; |
| 67 | |
| 68 | port@0 { |
| 69 | reg = <0>; |
| 70 | |
| 71 | pmic_glink_hs_in: endpoint { |
| 72 | remote-endpoint = <&usb_1_dwc3_hs>; |
| 73 | }; |
| 74 | }; |
| 75 | |
| 76 | port@1 { |
| 77 | reg = <1>; |
| 78 | |
| 79 | pmic_glink_ss_in: endpoint { |
| 80 | remote-endpoint = <&usb_1_dwc3_ss>; |
| 81 | }; |
| 82 | }; |
| 83 | }; |
| 84 | }; |
| 85 | }; |
| 86 | |
| 87 | vph_pwr: vph-pwr-regulator { |
| 88 | compatible = "regulator-fixed"; |
| 89 | |
| 90 | regulator-name = "vph_pwr"; |
| 91 | regulator-min-microvolt = <3700000>; |
| 92 | regulator-max-microvolt = <3700000>; |
| 93 | |
| 94 | regulator-always-on; |
| 95 | regulator-boot-on; |
| 96 | }; |
| 97 | }; |
| 98 | |
| 99 | &apps_rsc { |
| 100 | regulators-0 { |
| 101 | compatible = "qcom,pm8550-rpmh-regulators"; |
| 102 | |
| 103 | vdd-bob1-supply = <&vph_pwr>; |
| 104 | vdd-bob2-supply = <&vph_pwr>; |
| 105 | vdd-l2-l13-l14-supply = <&vreg_bob1>; |
| 106 | vdd-l3-supply = <&vreg_s1c_1p2>; |
| 107 | vdd-l5-l16-supply = <&vreg_bob1>; |
| 108 | vdd-l6-l7-supply = <&vreg_bob1>; |
| 109 | vdd-l8-l9-supply = <&vreg_bob1>; |
| 110 | vdd-l11-supply = <&vreg_s1c_1p2>; |
| 111 | vdd-l12-supply = <&vreg_s6c_1p8>; |
| 112 | vdd-l15-supply = <&vreg_s6c_1p8>; |
| 113 | vdd-l17-supply = <&vreg_bob2>; |
| 114 | |
| 115 | qcom,pmic-id = "b"; |
| 116 | |
| 117 | vreg_bob1: bob1 { |
| 118 | regulator-name = "vreg_bob1"; |
| 119 | regulator-min-microvolt = <3296000>; |
| 120 | regulator-max-microvolt = <3960000>; |
| 121 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 122 | }; |
| 123 | |
| 124 | vreg_bob2: bob2 { |
| 125 | regulator-name = "vreg_bob2"; |
| 126 | regulator-min-microvolt = <2720000>; |
| 127 | regulator-max-microvolt = <3008000>; |
| 128 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 129 | }; |
| 130 | |
| 131 | vreg_l2b_3p0: ldo2 { |
| 132 | regulator-name = "vreg_l2b_3p0"; |
| 133 | regulator-min-microvolt = <3008000>; |
| 134 | regulator-max-microvolt = <3008000>; |
| 135 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 136 | regulator-allow-set-load; |
| 137 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 138 | RPMH_REGULATOR_MODE_HPM>; |
| 139 | }; |
| 140 | |
| 141 | vreg_l5b_3p1: ldo5 { |
| 142 | regulator-name = "vreg_l5b_3p1"; |
| 143 | regulator-min-microvolt = <3104000>; |
| 144 | regulator-max-microvolt = <3104000>; |
| 145 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 146 | regulator-allow-set-load; |
| 147 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 148 | RPMH_REGULATOR_MODE_HPM>; |
| 149 | }; |
| 150 | |
| 151 | vreg_l6b_1p8: ldo6 { |
| 152 | regulator-name = "vreg_l6b_1p8"; |
| 153 | regulator-min-microvolt = <1800000>; |
| 154 | regulator-max-microvolt = <3008000>; |
| 155 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 156 | regulator-allow-set-load; |
| 157 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 158 | RPMH_REGULATOR_MODE_HPM>; |
| 159 | }; |
| 160 | |
| 161 | vreg_l7b_1p8: ldo7 { |
| 162 | regulator-name = "vreg_l7b_1p8"; |
| 163 | regulator-min-microvolt = <1800000>; |
| 164 | regulator-max-microvolt = <3008000>; |
| 165 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 166 | }; |
| 167 | |
| 168 | vreg_l8b_1p8: ldo8 { |
| 169 | regulator-name = "vreg_l8b_1p8"; |
| 170 | regulator-min-microvolt = <1800000>; |
| 171 | regulator-max-microvolt = <3008000>; |
| 172 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 173 | regulator-allow-set-load; |
| 174 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 175 | RPMH_REGULATOR_MODE_HPM>; |
| 176 | }; |
| 177 | |
| 178 | vreg_l11b_1p2: ldo11 { |
| 179 | regulator-name = "vreg_l11b_1p2"; |
| 180 | regulator-min-microvolt = <1200000>; |
| 181 | regulator-max-microvolt = <1504000>; |
| 182 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 183 | regulator-allow-set-load; |
| 184 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 185 | RPMH_REGULATOR_MODE_HPM>; |
| 186 | }; |
| 187 | |
| 188 | vreg_l12b_1p8: ldo12 { |
| 189 | regulator-name = "vreg_l12b_1p8"; |
| 190 | regulator-min-microvolt = <1800000>; |
| 191 | regulator-max-microvolt = <1800000>; |
| 192 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 193 | regulator-allow-set-load; |
| 194 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 195 | RPMH_REGULATOR_MODE_HPM>; |
| 196 | }; |
| 197 | |
| 198 | vreg_l13b_3p0: ldo13 { |
| 199 | regulator-name = "vreg_l13b_3p0"; |
| 200 | regulator-min-microvolt = <3000000>; |
| 201 | regulator-max-microvolt = <3000000>; |
| 202 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 203 | regulator-allow-set-load; |
| 204 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 205 | RPMH_REGULATOR_MODE_HPM>; |
| 206 | }; |
| 207 | |
| 208 | vreg_l14b_3p2: ldo14 { |
| 209 | regulator-name = "vreg_l14b_3p2"; |
| 210 | regulator-min-microvolt = <3200000>; |
| 211 | regulator-max-microvolt = <3200000>; |
| 212 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 213 | regulator-allow-set-load; |
| 214 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 215 | RPMH_REGULATOR_MODE_HPM>; |
| 216 | }; |
| 217 | |
| 218 | vreg_l15b_1p8: ldo15 { |
| 219 | regulator-name = "vreg_l15b_1p8"; |
| 220 | regulator-min-microvolt = <1800000>; |
| 221 | regulator-max-microvolt = <1800000>; |
| 222 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 223 | regulator-allow-set-load; |
| 224 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 225 | RPMH_REGULATOR_MODE_HPM>; |
| 226 | }; |
| 227 | |
| 228 | vreg_l16b_2p8: ldo16 { |
| 229 | regulator-name = "vreg_l16b_2p8"; |
| 230 | regulator-min-microvolt = <2800000>; |
| 231 | regulator-max-microvolt = <2800000>; |
| 232 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 233 | regulator-allow-set-load; |
| 234 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 235 | RPMH_REGULATOR_MODE_HPM>; |
| 236 | }; |
| 237 | |
| 238 | vreg_l17b_2p5: ldo17 { |
| 239 | regulator-name = "vreg_l17b_2p5"; |
| 240 | regulator-min-microvolt = <2504000>; |
| 241 | regulator-max-microvolt = <2504000>; |
| 242 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 243 | regulator-allow-set-load; |
| 244 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 245 | RPMH_REGULATOR_MODE_HPM>; |
| 246 | }; |
| 247 | }; |
| 248 | |
| 249 | regulators-1 { |
| 250 | compatible = "qcom,pm8550vs-rpmh-regulators"; |
| 251 | |
| 252 | vdd-l1-supply = <&vreg_s1c_1p2>; |
| 253 | vdd-l2-supply = <&vreg_s1c_1p2>; |
| 254 | vdd-l3-supply = <&vreg_s1c_1p2>; |
| 255 | vdd-s1-supply = <&vph_pwr>; |
| 256 | vdd-s2-supply = <&vph_pwr>; |
| 257 | vdd-s3-supply = <&vph_pwr>; |
| 258 | vdd-s4-supply = <&vph_pwr>; |
| 259 | vdd-s5-supply = <&vph_pwr>; |
| 260 | vdd-s6-supply = <&vph_pwr>; |
| 261 | |
| 262 | qcom,pmic-id = "c"; |
| 263 | |
| 264 | vreg_s1c_1p2: smps1 { |
| 265 | regulator-name = "vreg_s1c_1p2"; |
| 266 | regulator-min-microvolt = <1256000>; |
| 267 | regulator-max-microvolt = <1348000>; |
| 268 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 269 | }; |
| 270 | |
| 271 | vreg_s2c_0p8: smps2 { |
| 272 | regulator-name = "vreg_s2c_0p8"; |
| 273 | regulator-min-microvolt = <852000>; |
| 274 | regulator-max-microvolt = <1036000>; |
| 275 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 276 | }; |
| 277 | |
| 278 | vreg_s3c_0p9: smps3 { |
| 279 | regulator-name = "vreg_s3c_0p9"; |
| 280 | regulator-min-microvolt = <976000>; |
| 281 | regulator-max-microvolt = <1064000>; |
| 282 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 283 | }; |
| 284 | |
| 285 | vreg_s4c_1p2: smps4 { |
| 286 | regulator-name = "vreg_s4c_1p2"; |
| 287 | regulator-min-microvolt = <1224000>; |
| 288 | regulator-max-microvolt = <1280000>; |
| 289 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 290 | }; |
| 291 | |
| 292 | vreg_s5c_0p7: smps5 { |
| 293 | regulator-name = "vreg_s5c_0p7"; |
| 294 | regulator-min-microvolt = <752000>; |
| 295 | regulator-max-microvolt = <900000>; |
| 296 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 297 | }; |
| 298 | |
| 299 | vreg_s6c_1p8: smps6 { |
| 300 | regulator-name = "vreg_s6c_1p8"; |
| 301 | regulator-min-microvolt = <1856000>; |
| 302 | regulator-max-microvolt = <2000000>; |
| 303 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 304 | }; |
| 305 | |
| 306 | vreg_l1c_1p2: ldo1 { |
| 307 | regulator-name = "vreg_l1c_1p2"; |
| 308 | regulator-min-microvolt = <1200000>; |
| 309 | regulator-max-microvolt = <1200000>; |
| 310 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 311 | regulator-allow-set-load; |
| 312 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 313 | RPMH_REGULATOR_MODE_HPM>; |
| 314 | }; |
| 315 | |
| 316 | vreg_l3c_1p2: ldo3 { |
| 317 | regulator-name = "vreg_l3c_1p2"; |
| 318 | regulator-min-microvolt = <1200000>; |
| 319 | regulator-max-microvolt = <1200000>; |
| 320 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 321 | regulator-allow-set-load; |
| 322 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 323 | RPMH_REGULATOR_MODE_HPM>; |
| 324 | }; |
| 325 | }; |
| 326 | |
| 327 | regulators-2 { |
| 328 | compatible = "qcom,pm8550vs-rpmh-regulators"; |
| 329 | |
| 330 | vdd-l1-supply = <&vreg_s3c_0p9>; |
| 331 | |
| 332 | qcom,pmic-id = "d"; |
| 333 | |
| 334 | vreg_l1d_0p88: ldo1 { |
| 335 | regulator-name = "vreg_l1d_0p88"; |
| 336 | regulator-min-microvolt = <912000>; |
| 337 | regulator-max-microvolt = <920000>; |
| 338 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 339 | regulator-allow-set-load; |
| 340 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 341 | RPMH_REGULATOR_MODE_HPM>; |
| 342 | }; |
| 343 | }; |
| 344 | |
| 345 | regulators-3 { |
| 346 | compatible = "qcom,pm8550vs-rpmh-regulators"; |
| 347 | |
| 348 | vdd-l3-supply = <&vreg_s3c_0p9>; |
| 349 | |
| 350 | qcom,pmic-id = "e"; |
| 351 | |
| 352 | vreg_l3e_0p9: ldo3 { |
| 353 | regulator-name = "vreg_l3e_0p9"; |
| 354 | regulator-min-microvolt = <880000>; |
| 355 | regulator-max-microvolt = <920000>; |
| 356 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 357 | regulator-allow-set-load; |
| 358 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 359 | RPMH_REGULATOR_MODE_HPM>; |
| 360 | }; |
| 361 | }; |
| 362 | |
| 363 | regulators-4 { |
| 364 | compatible = "qcom,pm8550vs-rpmh-regulators"; |
| 365 | |
| 366 | vdd-l1-supply = <&vreg_s3c_0p9>; |
| 367 | vdd-l3-supply = <&vreg_s3c_0p9>; |
| 368 | |
| 369 | qcom,pmic-id = "g"; |
| 370 | |
| 371 | vreg_l1g_0p91: ldo1 { |
| 372 | regulator-name = "vreg_l1g_0p91"; |
| 373 | regulator-min-microvolt = <912000>; |
| 374 | regulator-max-microvolt = <920000>; |
| 375 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 376 | regulator-allow-set-load; |
| 377 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 378 | RPMH_REGULATOR_MODE_HPM>; |
| 379 | }; |
| 380 | |
| 381 | vreg_l3g_0p91: ldo3 { |
| 382 | regulator-name = "vreg_l3g_0p91"; |
| 383 | regulator-min-microvolt = <880000>; |
| 384 | regulator-max-microvolt = <912000>; |
| 385 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 386 | regulator-allow-set-load; |
| 387 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 388 | RPMH_REGULATOR_MODE_HPM>; |
| 389 | }; |
| 390 | }; |
| 391 | |
| 392 | regulators-5 { |
| 393 | compatible = "qcom,pm8550ve-rpmh-regulators"; |
| 394 | |
| 395 | vdd-l1-supply = <&vreg_s3c_0p9>; |
| 396 | vdd-l2-supply = <&vreg_s3c_0p9>; |
| 397 | vdd-l3-supply = <&vreg_s1c_1p2>; |
| 398 | vdd-s4-supply = <&vph_pwr>; |
| 399 | |
| 400 | qcom,pmic-id = "i"; |
| 401 | |
| 402 | vreg_s4i_0p85: smps4 { |
| 403 | regulator-name = "vreg_s4i_0p85"; |
| 404 | regulator-min-microvolt = <852000>; |
| 405 | regulator-max-microvolt = <1004000>; |
| 406 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 407 | }; |
| 408 | |
| 409 | vreg_l1i_0p88: ldo1 { |
| 410 | regulator-name = "vreg_l1i_0p88"; |
| 411 | regulator-min-microvolt = <880000>; |
| 412 | regulator-max-microvolt = <912000>; |
| 413 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 414 | regulator-allow-set-load; |
| 415 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 416 | RPMH_REGULATOR_MODE_HPM>; |
| 417 | }; |
| 418 | |
| 419 | vreg_l2i_0p88: ldo2 { |
| 420 | regulator-name = "vreg_l2i_0p88"; |
| 421 | regulator-min-microvolt = <880000>; |
| 422 | regulator-max-microvolt = <912000>; |
| 423 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 424 | regulator-allow-set-load; |
| 425 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 426 | RPMH_REGULATOR_MODE_HPM>; |
| 427 | }; |
| 428 | |
| 429 | vreg_l3i_1p2: ldo3 { |
| 430 | regulator-name = "vreg_l3i_0p91"; |
| 431 | regulator-min-microvolt = <1200000>; |
| 432 | regulator-max-microvolt = <1200000>; |
| 433 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 434 | regulator-allow-set-load; |
| 435 | regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM |
| 436 | RPMH_REGULATOR_MODE_HPM>; |
| 437 | }; |
| 438 | }; |
| 439 | }; |
| 440 | |
| 441 | &dispcc { |
| 442 | status = "okay"; |
| 443 | }; |
| 444 | |
| 445 | &gpi_dma1 { |
| 446 | status = "okay"; |
| 447 | }; |
| 448 | |
| 449 | &ipa { |
| 450 | qcom,gsi-loader = "self"; |
| 451 | memory-region = <&ipa_fw_mem>; |
| 452 | firmware-name = "qcom/sm8650/ipa_fws.mbn"; |
| 453 | status = "okay"; |
| 454 | }; |
| 455 | |
| 456 | &mdss { |
| 457 | status = "okay"; |
| 458 | }; |
| 459 | |
| 460 | &mdss_dsi0 { |
| 461 | vdda-supply = <&vreg_l3i_1p2>; |
| 462 | |
| 463 | status = "okay"; |
| 464 | |
| 465 | panel@0 { |
| 466 | compatible = "visionox,vtdr6130"; |
| 467 | reg = <0>; |
| 468 | |
| 469 | reset-gpios = <&tlmm 133 GPIO_ACTIVE_LOW>; |
| 470 | |
| 471 | vddio-supply = <&vreg_l12b_1p8>; |
| 472 | vci-supply = <&vreg_l13b_3p0>; |
| 473 | vdd-supply = <&vreg_l11b_1p2>; |
| 474 | |
| 475 | pinctrl-0 = <&disp0_reset_n_active>, <&mdp_vsync_active>; |
| 476 | pinctrl-1 = <&disp0_reset_n_suspend>, <&mdp_vsync_suspend>; |
| 477 | pinctrl-names = "default", "sleep"; |
| 478 | |
| 479 | port { |
| 480 | panel0_in: endpoint { |
| 481 | remote-endpoint = <&mdss_dsi0_out>; |
| 482 | }; |
| 483 | }; |
| 484 | }; |
| 485 | }; |
| 486 | |
| 487 | &mdss_dsi0_out { |
| 488 | remote-endpoint = <&panel0_in>; |
| 489 | data-lanes = <0 1 2 3>; |
| 490 | }; |
| 491 | |
| 492 | &mdss_dsi0_phy { |
| 493 | vdds-supply = <&vreg_l1i_0p88>; |
| 494 | |
| 495 | status = "okay"; |
| 496 | }; |
| 497 | |
| 498 | &mdss_mdp { |
| 499 | status = "okay"; |
| 500 | }; |
| 501 | |
| 502 | &pcie_1_phy_aux_clk { |
| 503 | clock-frequency = <1000>; |
| 504 | }; |
| 505 | |
| 506 | &pcie0 { |
| 507 | wake-gpios = <&tlmm 96 GPIO_ACTIVE_HIGH>; |
| 508 | perst-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>; |
| 509 | |
| 510 | pinctrl-0 = <&pcie0_default_state>; |
| 511 | pinctrl-names = "default"; |
| 512 | |
| 513 | status = "okay"; |
| 514 | }; |
| 515 | |
| 516 | &pcie0_phy { |
| 517 | vdda-phy-supply = <&vreg_l1i_0p88>; |
| 518 | vdda-pll-supply = <&vreg_l3i_1p2>; |
| 519 | |
| 520 | status = "okay"; |
| 521 | }; |
| 522 | |
| 523 | &pon_pwrkey { |
| 524 | status = "okay"; |
| 525 | }; |
| 526 | |
| 527 | &pon_resin { |
| 528 | linux,code = <KEY_VOLUMEDOWN>; |
| 529 | |
| 530 | status = "okay"; |
| 531 | }; |
| 532 | |
| 533 | &pm8550_flash { |
| 534 | status = "okay"; |
| 535 | |
| 536 | led-0 { |
| 537 | function = LED_FUNCTION_FLASH; |
| 538 | color = <LED_COLOR_ID_YELLOW>; |
| 539 | led-sources = <1>, <4>; |
| 540 | led-max-microamp = <500000>; |
| 541 | flash-max-microamp = <2000000>; |
| 542 | flash-max-timeout-us = <1280000>; |
| 543 | function-enumerator = <0>; |
| 544 | }; |
| 545 | |
| 546 | led-1 { |
| 547 | function = LED_FUNCTION_FLASH; |
| 548 | color = <LED_COLOR_ID_WHITE>; |
| 549 | led-sources = <2>, <3>; |
| 550 | led-max-microamp = <500000>; |
| 551 | flash-max-microamp = <2000000>; |
| 552 | flash-max-timeout-us = <1280000>; |
| 553 | function-enumerator = <1>; |
| 554 | }; |
| 555 | }; |
| 556 | |
| 557 | &pm8550_gpios { |
| 558 | volume_up_n: volume-up-n-state { |
| 559 | pins = "gpio6"; |
| 560 | function = "normal"; |
| 561 | bias-pull-up; |
| 562 | input-enable; |
| 563 | power-source = <1>; |
| 564 | }; |
| 565 | }; |
| 566 | |
| 567 | &pm8550_pwm { |
| 568 | status = "okay"; |
| 569 | |
| 570 | multi-led { |
| 571 | color = <LED_COLOR_ID_RGB>; |
| 572 | function = LED_FUNCTION_STATUS; |
| 573 | |
| 574 | #address-cells = <1>; |
| 575 | #size-cells = <0>; |
| 576 | |
| 577 | led@1 { |
| 578 | reg = <1>; |
| 579 | color = <LED_COLOR_ID_RED>; |
| 580 | }; |
| 581 | |
| 582 | led@2 { |
| 583 | reg = <2>; |
| 584 | color = <LED_COLOR_ID_GREEN>; |
| 585 | }; |
| 586 | |
| 587 | led@3 { |
| 588 | reg = <3>; |
| 589 | color = <LED_COLOR_ID_BLUE>; |
| 590 | }; |
| 591 | }; |
| 592 | }; |
| 593 | |
| 594 | &pm8550b_eusb2_repeater { |
| 595 | vdd18-supply = <&vreg_l15b_1p8>; |
| 596 | vdd3-supply = <&vreg_l5b_3p1>; |
| 597 | }; |
| 598 | |
| 599 | &pmk8550_rtc { |
| 600 | status = "okay"; |
| 601 | }; |
| 602 | |
| 603 | &qupv3_id_0 { |
| 604 | status = "okay"; |
| 605 | }; |
| 606 | |
| 607 | &qupv3_id_1 { |
| 608 | status = "okay"; |
| 609 | }; |
| 610 | |
| 611 | &remoteproc_adsp { |
| 612 | firmware-name = "qcom/sm8650/adsp.mbn", |
| 613 | "qcom/sm8650/adsp_dtb.mbn"; |
| 614 | |
| 615 | status = "okay"; |
| 616 | }; |
| 617 | |
| 618 | &remoteproc_cdsp { |
| 619 | firmware-name = "qcom/sm8650/cdsp.mbn", |
| 620 | "qcom/sm8650/cdsp_dtb.mbn"; |
| 621 | |
| 622 | status = "okay"; |
| 623 | }; |
| 624 | |
| 625 | &remoteproc_mpss { |
| 626 | firmware-name = "qcom/sm8650/modem.mbn", |
| 627 | "qcom/sm8650/modem_dtb.mbn"; |
| 628 | |
| 629 | status = "okay"; |
| 630 | }; |
| 631 | |
| 632 | &sleep_clk { |
| 633 | clock-frequency = <32000>; |
| 634 | }; |
| 635 | |
| 636 | &spi4 { |
| 637 | status = "okay"; |
| 638 | |
| 639 | touchscreen@0 { |
| 640 | compatible = "goodix,gt9916"; |
| 641 | reg = <0>; |
| 642 | |
| 643 | interrupt-parent = <&tlmm>; |
| 644 | interrupts = <162 IRQ_TYPE_LEVEL_LOW>; |
| 645 | |
| 646 | reset-gpios = <&tlmm 161 GPIO_ACTIVE_LOW>; |
| 647 | |
| 648 | avdd-supply = <&vreg_l14b_3p2>; |
| 649 | |
| 650 | spi-max-frequency = <1000000>; |
| 651 | |
| 652 | touchscreen-size-x = <1080>; |
| 653 | touchscreen-size-y = <2400>; |
| 654 | |
| 655 | pinctrl-0 = <&ts_irq>, <&ts_reset>; |
| 656 | pinctrl-names = "default"; |
| 657 | }; |
| 658 | }; |
| 659 | |
| 660 | &tlmm { |
| 661 | /* Reserved I/Os for NFC */ |
| 662 | gpio-reserved-ranges = <32 8>, <74 1>; |
| 663 | |
| 664 | bt_default: bt-default-state { |
| 665 | bt-en-pins { |
| 666 | pins = "gpio17"; |
| 667 | function = "gpio"; |
| 668 | drive-strength = <16>; |
| 669 | bias-disable; |
| 670 | }; |
| 671 | |
| 672 | sw-ctrl-pins { |
| 673 | pins = "gpio18"; |
| 674 | function = "gpio"; |
| 675 | bias-pull-down; |
| 676 | }; |
| 677 | }; |
| 678 | |
| 679 | disp0_reset_n_active: disp0-reset-n-active-state { |
| 680 | pins = "gpio133"; |
| 681 | function = "gpio"; |
| 682 | drive-strength = <8>; |
| 683 | bias-disable; |
| 684 | }; |
| 685 | |
| 686 | disp0_reset_n_suspend: disp0-reset-n-suspend-state { |
| 687 | pins = "gpio133"; |
| 688 | function = "gpio"; |
| 689 | drive-strength = <2>; |
| 690 | bias-pull-down; |
| 691 | }; |
| 692 | |
| 693 | mdp_vsync_active: mdp-vsync-active-state { |
| 694 | pins = "gpio86"; |
| 695 | function = "mdp_vsync"; |
| 696 | drive-strength = <2>; |
| 697 | bias-pull-down; |
| 698 | }; |
| 699 | |
| 700 | mdp_vsync_suspend: mdp-vsync-suspend-state { |
| 701 | pins = "gpio86"; |
| 702 | function = "mdp_vsync"; |
| 703 | drive-strength = <2>; |
| 704 | bias-pull-down; |
| 705 | }; |
| 706 | |
| 707 | ts_irq: ts-irq-state { |
| 708 | pins = "gpio161"; |
| 709 | function = "gpio"; |
| 710 | drive-strength = <8>; |
| 711 | bias-pull-up; |
| 712 | output-disable; |
| 713 | }; |
| 714 | |
| 715 | ts_reset: ts-reset-state { |
| 716 | pins = "gpio162"; |
| 717 | function = "gpio"; |
| 718 | drive-strength = <8>; |
| 719 | bias-pull-up; |
| 720 | }; |
| 721 | }; |
| 722 | |
| 723 | &uart14 { |
| 724 | status = "okay"; |
| 725 | |
| 726 | bluetooth { |
| 727 | compatible = "qcom,wcn7850-bt"; |
| 728 | |
| 729 | clocks = <&rpmhcc RPMH_RF_CLK1>; |
| 730 | |
| 731 | vddio-supply = <&vreg_l3c_1p2>; |
| 732 | vddaon-supply = <&vreg_l15b_1p8>; |
| 733 | vdddig-supply = <&vreg_s3c_0p9>; |
| 734 | vddrfa0p8-supply = <&vreg_s3c_0p9>; |
| 735 | vddrfa1p2-supply = <&vreg_s1c_1p2>; |
| 736 | vddrfa1p9-supply = <&vreg_s6c_1p8>; |
| 737 | |
| 738 | max-speed = <3200000>; |
| 739 | |
| 740 | enable-gpios = <&tlmm 17 GPIO_ACTIVE_HIGH>; |
| 741 | swctrl-gpios = <&tlmm 18 GPIO_ACTIVE_HIGH>; |
| 742 | |
| 743 | pinctrl-0 = <&bt_default>; |
| 744 | pinctrl-names = "default"; |
| 745 | }; |
| 746 | }; |
| 747 | |
| 748 | &uart15 { |
| 749 | status = "okay"; |
| 750 | }; |
| 751 | |
| 752 | &ufs_mem_hc { |
| 753 | reset-gpios = <&tlmm 210 GPIO_ACTIVE_LOW>; |
| 754 | |
| 755 | vcc-supply = <&vreg_l17b_2p5>; |
| 756 | vcc-max-microamp = <1300000>; |
| 757 | vccq-supply = <&vreg_l1c_1p2>; |
| 758 | vccq-max-microamp = <1200000>; |
| 759 | |
| 760 | status = "okay"; |
| 761 | }; |
| 762 | |
| 763 | &ufs_mem_phy { |
| 764 | vdda-phy-supply = <&vreg_l1d_0p88>; |
| 765 | vdda-pll-supply = <&vreg_l3i_1p2>; |
| 766 | |
| 767 | status = "okay"; |
| 768 | }; |
| 769 | |
| 770 | /* |
| 771 | * DPAUX -> WCD9395 -> USB_SBU -> USB-C |
| 772 | * eUSB2 DP/DM -> PM85550HS -> eUSB2 DP/DM -> WCD9395 -> USB-C |
| 773 | * USB SS -> NB7VPQ904MMUTWG -> USB-C |
| 774 | */ |
| 775 | |
| 776 | &usb_1 { |
| 777 | status = "okay"; |
| 778 | }; |
| 779 | |
| 780 | &usb_1_dwc3 { |
| 781 | dr_mode = "otg"; |
| 782 | usb-role-switch; |
| 783 | }; |
| 784 | |
| 785 | &usb_1_dwc3_hs { |
| 786 | remote-endpoint = <&pmic_glink_hs_in>; |
| 787 | }; |
| 788 | |
| 789 | &usb_1_dwc3_ss { |
| 790 | remote-endpoint = <&pmic_glink_ss_in>; |
| 791 | }; |
| 792 | |
| 793 | &usb_1_hsphy { |
| 794 | vdd-supply = <&vreg_l1i_0p88>; |
| 795 | vdda12-supply = <&vreg_l3i_1p2>; |
| 796 | |
| 797 | phys = <&pm8550b_eusb2_repeater>; |
| 798 | |
| 799 | status = "okay"; |
| 800 | }; |
| 801 | |
| 802 | &usb_dp_qmpphy { |
| 803 | vdda-phy-supply = <&vreg_l3i_1p2>; |
| 804 | vdda-pll-supply = <&vreg_l3g_0p91>; |
| 805 | |
| 806 | status = "okay"; |
| 807 | }; |
| 808 | |
| 809 | &xo_board { |
| 810 | clock-frequency = <76800000>; |
| 811 | }; |