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