Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: BSD-3-Clause |
| 2 | /* |
| 3 | * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved. |
| 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
| 7 | |
| 8 | /* PM7250B is configured to use SID8/9 */ |
| 9 | #define PM7250B_SID 8 |
| 10 | #define PM7250B_SID1 9 |
| 11 | |
| 12 | #include <dt-bindings/regulator/qcom,rpmh-regulator.h> |
| 13 | #include "sc7280.dtsi" |
| 14 | #include "pm7250b.dtsi" |
| 15 | #include "pm7325.dtsi" |
| 16 | #include "pm8350c.dtsi" |
| 17 | #include "pmk8350.dtsi" |
| 18 | |
| 19 | /delete-node/ &ipa_fw_mem; |
| 20 | /delete-node/ &remoteproc_mpss; |
| 21 | /delete-node/ &rmtfs_mem; |
| 22 | /delete-node/ &adsp_mem; |
| 23 | /delete-node/ &cdsp_mem; |
| 24 | /delete-node/ &video_mem; |
| 25 | /delete-node/ &wlan_ce_mem; |
| 26 | /delete-node/ &wpss_mem; |
| 27 | /delete-node/ &xbl_mem; |
| 28 | |
| 29 | / { |
| 30 | model = "Qualcomm Technologies, Inc. Robotics RB3gen2"; |
| 31 | compatible = "qcom,qcs6490-rb3gen2", "qcom,qcm6490"; |
| 32 | chassis-type = "embedded"; |
| 33 | |
| 34 | aliases { |
| 35 | serial0 = &uart5; |
| 36 | }; |
| 37 | |
| 38 | chosen { |
| 39 | stdout-path = "serial0:115200n8"; |
| 40 | }; |
| 41 | |
| 42 | reserved-memory { |
| 43 | xbl_mem: xbl@80700000 { |
| 44 | reg = <0x0 0x80700000 0x0 0x100000>; |
| 45 | no-map; |
| 46 | }; |
| 47 | |
| 48 | cdsp_secure_heap_mem: cdsp-secure-heap@81800000 { |
| 49 | reg = <0x0 0x81800000 0x0 0x1e00000>; |
| 50 | no-map; |
| 51 | }; |
| 52 | |
| 53 | camera_mem: camera@84300000 { |
| 54 | reg = <0x0 0x84300000 0x0 0x500000>; |
| 55 | no-map; |
| 56 | }; |
| 57 | |
| 58 | wpss_mem: wpss@84800000 { |
| 59 | reg = <0x0 0x84800000 0x0 0x1900000>; |
| 60 | no-map; |
| 61 | }; |
| 62 | |
| 63 | adsp_mem: adsp@86100000 { |
| 64 | reg = <0x0 0x86100000 0x0 0x2800000>; |
| 65 | no-map; |
| 66 | }; |
| 67 | |
| 68 | cdsp_mem: cdsp@88900000 { |
| 69 | reg = <0x0 0x88900000 0x0 0x1e00000>; |
| 70 | no-map; |
| 71 | }; |
| 72 | |
| 73 | video_mem: video@8a700000 { |
| 74 | reg = <0x0 0x8a700000 0x0 0x700000>; |
| 75 | no-map; |
| 76 | }; |
| 77 | |
| 78 | cvp_mem: cvp@8ae00000 { |
| 79 | reg = <0x0 0x8ae00000 0x0 0x500000>; |
| 80 | no-map; |
| 81 | }; |
| 82 | |
| 83 | ipa_fw_mem: ipa-fw@8b300000 { |
| 84 | reg = <0x0 0x8b300000 0x0 0x10000>; |
| 85 | no-map; |
| 86 | }; |
| 87 | |
| 88 | ipa_gsi_mem: ipa-gsi@8b310000 { |
| 89 | reg = <0x0 0x8b310000 0x0 0xa000>; |
| 90 | no-map; |
| 91 | }; |
| 92 | |
| 93 | gpu_microcode_mem: gpu-microcode@8b31a000 { |
| 94 | reg = <0x0 0x8b31a000 0x0 0x2000>; |
| 95 | no-map; |
| 96 | }; |
| 97 | |
| 98 | tz_stat_mem: tz-stat@c0000000 { |
| 99 | reg = <0x0 0xc0000000 0x0 0x100000>; |
| 100 | no-map; |
| 101 | }; |
| 102 | |
| 103 | tags_mem: tags@c0100000 { |
| 104 | reg = <0x0 0xc0100000 0x0 0x1200000>; |
| 105 | no-map; |
| 106 | }; |
| 107 | |
| 108 | qtee_mem: qtee@c1300000 { |
| 109 | reg = <0x0 0xc1300000 0x0 0x500000>; |
| 110 | no-map; |
| 111 | }; |
| 112 | |
Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame^] | 113 | trusted_apps_mem: trusted-apps@c1800000 { |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 114 | reg = <0x0 0xc1800000 0x0 0x1c00000>; |
| 115 | no-map; |
| 116 | }; |
| 117 | |
| 118 | debug_vm_mem: debug-vm@d0600000 { |
| 119 | reg = <0x0 0xd0600000 0x0 0x100000>; |
| 120 | no-map; |
| 121 | }; |
| 122 | }; |
| 123 | |
| 124 | vph_pwr: vph-pwr-regulator { |
| 125 | compatible = "regulator-fixed"; |
| 126 | regulator-name = "vph_pwr"; |
Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame^] | 127 | regulator-min-microvolt = <3700000>; |
| 128 | regulator-max-microvolt = <3700000>; |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 129 | }; |
| 130 | }; |
| 131 | |
| 132 | &apps_rsc { |
| 133 | regulators-0 { |
| 134 | compatible = "qcom,pm7325-rpmh-regulators"; |
| 135 | qcom,pmic-id = "b"; |
| 136 | |
| 137 | vdd-s1-supply = <&vph_pwr>; |
| 138 | vdd-s2-supply = <&vph_pwr>; |
| 139 | vdd-s3-supply = <&vph_pwr>; |
| 140 | vdd-s4-supply = <&vph_pwr>; |
| 141 | vdd-s5-supply = <&vph_pwr>; |
| 142 | vdd-s6-supply = <&vph_pwr>; |
| 143 | vdd-s7-supply = <&vph_pwr>; |
| 144 | vdd-s8-supply = <&vph_pwr>; |
| 145 | vdd-l1-l4-l12-l15-supply = <&vreg_s7b_0p972>; |
| 146 | vdd-l2-l7-supply = <&vreg_bob_3p296>; |
| 147 | vdd-l3-supply = <&vreg_s2b_0p876>; |
| 148 | vdd-l5-supply = <&vreg_s2b_0p876>; |
| 149 | vdd-l6-l9-l10-supply = <&vreg_s8b_1p272>; |
| 150 | vdd-l8-supply = <&vreg_s7b_0p972>; |
| 151 | vdd-l11-l17-l18-l19-supply = <&vreg_s1b_1p872>; |
| 152 | vdd-l13-supply = <&vreg_s7b_0p972>; |
| 153 | vdd-l14-l16-supply = <&vreg_s8b_1p272>; |
| 154 | |
| 155 | vreg_s1b_1p872: smps1 { |
| 156 | regulator-min-microvolt = <1840000>; |
| 157 | regulator-max-microvolt = <2040000>; |
| 158 | }; |
| 159 | |
| 160 | vreg_s2b_0p876: smps2 { |
| 161 | regulator-min-microvolt = <570070>; |
| 162 | regulator-max-microvolt = <1050000>; |
| 163 | }; |
| 164 | |
| 165 | vreg_s7b_0p972: smps7 { |
| 166 | regulator-min-microvolt = <535000>; |
| 167 | regulator-max-microvolt = <1120000>; |
| 168 | }; |
| 169 | |
| 170 | vreg_s8b_1p272: smps8 { |
| 171 | regulator-min-microvolt = <1200000>; |
| 172 | regulator-max-microvolt = <1500000>; |
| 173 | regulator-initial-mode = <RPMH_REGULATOR_MODE_RET>; |
| 174 | }; |
| 175 | |
| 176 | vreg_l1b_0p912: ldo1 { |
| 177 | regulator-min-microvolt = <825000>; |
| 178 | regulator-max-microvolt = <925000>; |
| 179 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 180 | }; |
| 181 | |
| 182 | vreg_l2b_3p072: ldo2 { |
| 183 | regulator-min-microvolt = <2700000>; |
| 184 | regulator-max-microvolt = <3544000>; |
| 185 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 186 | }; |
| 187 | |
| 188 | vreg_l3b_0p504: ldo3 { |
| 189 | regulator-min-microvolt = <312000>; |
| 190 | regulator-max-microvolt = <910000>; |
| 191 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 192 | }; |
| 193 | |
| 194 | vreg_l4b_0p752: ldo4 { |
| 195 | regulator-min-microvolt = <752000>; |
| 196 | regulator-max-microvolt = <820000>; |
| 197 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 198 | }; |
| 199 | |
| 200 | reg_l5b_0p752: ldo5 { |
| 201 | regulator-min-microvolt = <552000>; |
| 202 | regulator-max-microvolt = <832000>; |
| 203 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 204 | }; |
| 205 | |
| 206 | vreg_l6b_1p2: ldo6 { |
| 207 | regulator-min-microvolt = <1140000>; |
| 208 | regulator-max-microvolt = <1260000>; |
| 209 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 210 | }; |
| 211 | |
| 212 | vreg_l7b_2p952: ldo7 { |
| 213 | regulator-min-microvolt = <2400000>; |
| 214 | regulator-max-microvolt = <3544000>; |
| 215 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 216 | }; |
| 217 | |
| 218 | vreg_l8b_0p904: ldo8 { |
| 219 | regulator-min-microvolt = <870000>; |
| 220 | regulator-max-microvolt = <970000>; |
| 221 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 222 | }; |
| 223 | |
| 224 | vreg_l9b_1p2: ldo9 { |
| 225 | regulator-min-microvolt = <1200000>; |
| 226 | regulator-max-microvolt = <1304000>; |
| 227 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 228 | }; |
| 229 | |
| 230 | vreg_l11b_1p504: ldo11 { |
| 231 | regulator-min-microvolt = <1504000>; |
| 232 | regulator-max-microvolt = <2000000>; |
| 233 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 234 | }; |
| 235 | |
| 236 | vreg_l12b_0p751: ldo12 { |
| 237 | regulator-min-microvolt = <751000>; |
| 238 | regulator-max-microvolt = <824000>; |
| 239 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 240 | }; |
| 241 | |
| 242 | vreg_l13b_0p53: ldo13 { |
| 243 | regulator-min-microvolt = <530000>; |
| 244 | regulator-max-microvolt = <824000>; |
| 245 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 246 | }; |
| 247 | |
| 248 | vreg_l14b_1p08: ldo14 { |
| 249 | regulator-min-microvolt = <1080000>; |
| 250 | regulator-max-microvolt = <1304000>; |
| 251 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 252 | }; |
| 253 | |
| 254 | vreg_l15b_0p765: ldo15 { |
| 255 | regulator-min-microvolt = <765000>; |
| 256 | regulator-max-microvolt = <1020000>; |
| 257 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 258 | }; |
| 259 | |
| 260 | vreg_l16b_1p1: ldo16 { |
| 261 | regulator-min-microvolt = <1100000>; |
| 262 | regulator-max-microvolt = <1300000>; |
| 263 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 264 | }; |
| 265 | |
| 266 | vreg_l17b_1p7: ldo17 { |
| 267 | regulator-min-microvolt = <1700000>; |
| 268 | regulator-max-microvolt = <1900000>; |
| 269 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 270 | }; |
| 271 | |
| 272 | vreg_l18b_1p8: ldo18 { |
| 273 | regulator-min-microvolt = <1800000>; |
| 274 | regulator-max-microvolt = <2000000>; |
| 275 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 276 | }; |
| 277 | |
| 278 | vreg_l19b_1p8: ldo19 { |
| 279 | regulator-min-microvolt = <1800000>; |
| 280 | regulator-max-microvolt = <2000000>; |
| 281 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 282 | }; |
| 283 | }; |
| 284 | |
| 285 | regulators-1 { |
| 286 | compatible = "qcom,pm8350c-rpmh-regulators"; |
| 287 | qcom,pmic-id = "c"; |
| 288 | |
| 289 | vdd-s1-supply = <&vph_pwr>; |
| 290 | vdd-s2-supply = <&vph_pwr>; |
| 291 | vdd-s3-supply = <&vph_pwr>; |
| 292 | vdd-s4-supply = <&vph_pwr>; |
| 293 | vdd-s5-supply = <&vph_pwr>; |
| 294 | vdd-s6-supply = <&vph_pwr>; |
| 295 | vdd-s7-supply = <&vph_pwr>; |
| 296 | vdd-s8-supply = <&vph_pwr>; |
| 297 | vdd-s9-supply = <&vph_pwr>; |
| 298 | vdd-s10-supply = <&vph_pwr>; |
| 299 | vdd-l1-l12-supply = <&vreg_s1b_1p872>; |
| 300 | vdd-l2-l8-supply = <&vreg_s1b_1p872>; |
| 301 | vdd-l3-l4-l5-l7-l13-supply = <&vreg_bob_3p296>; |
| 302 | vdd-l6-l9-l11-supply = <&vreg_bob_3p296>; |
| 303 | vdd-l10-supply = <&vreg_s7b_0p972>; |
| 304 | vdd-bob-supply = <&vph_pwr>; |
| 305 | |
| 306 | vreg_s1c_2p19: smps1 { |
| 307 | regulator-min-microvolt = <2190000>; |
| 308 | regulator-max-microvolt = <2210000>; |
| 309 | }; |
| 310 | |
| 311 | vreg_s2c_0p752: smps2 { |
| 312 | regulator-min-microvolt = <750000>; |
| 313 | regulator-max-microvolt = <800000>; |
| 314 | }; |
| 315 | |
| 316 | vreg_s5c_0p752: smps5 { |
| 317 | regulator-min-microvolt = <465000>; |
| 318 | regulator-max-microvolt = <1050000>; |
| 319 | }; |
| 320 | |
| 321 | vreg_s7c_0p752: smps7 { |
| 322 | regulator-min-microvolt = <465000>; |
| 323 | regulator-max-microvolt = <800000>; |
| 324 | }; |
| 325 | |
| 326 | vreg_s9c_1p084: smps9 { |
| 327 | regulator-min-microvolt = <1010000>; |
| 328 | regulator-max-microvolt = <1170000>; |
| 329 | }; |
| 330 | |
| 331 | vreg_l1c_1p8: ldo1 { |
| 332 | regulator-min-microvolt = <1800000>; |
| 333 | regulator-max-microvolt = <1980000>; |
| 334 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 335 | }; |
| 336 | |
| 337 | vreg_l2c_1p62: ldo2 { |
| 338 | regulator-min-microvolt = <1620000>; |
| 339 | regulator-max-microvolt = <1980000>; |
| 340 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 341 | }; |
| 342 | |
| 343 | vreg_l3c_2p8: ldo3 { |
| 344 | regulator-min-microvolt = <2800000>; |
| 345 | regulator-max-microvolt = <3540000>; |
| 346 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 347 | }; |
| 348 | |
| 349 | vreg_l4c_1p62: ldo4 { |
| 350 | regulator-min-microvolt = <1620000>; |
| 351 | regulator-max-microvolt = <3300000>; |
| 352 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 353 | }; |
| 354 | |
| 355 | vreg_l5c_1p62: ldo5 { |
| 356 | regulator-min-microvolt = <1620000>; |
| 357 | regulator-max-microvolt = <3300000>; |
| 358 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 359 | }; |
| 360 | |
| 361 | vreg_l6c_2p96: ldo6 { |
| 362 | regulator-min-microvolt = <1650000>; |
| 363 | regulator-max-microvolt = <3544000>; |
| 364 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 365 | }; |
| 366 | |
| 367 | vreg_l7c_3p0: ldo7 { |
| 368 | regulator-min-microvolt = <3000000>; |
| 369 | regulator-max-microvolt = <3544000>; |
| 370 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 371 | }; |
| 372 | |
| 373 | vreg_l8c_1p62: ldo8 { |
| 374 | regulator-min-microvolt = <1620000>; |
| 375 | regulator-max-microvolt = <2000000>; |
| 376 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 377 | }; |
| 378 | |
| 379 | vreg_l9c_2p96: ldo9 { |
| 380 | regulator-min-microvolt = <2700000>; |
| 381 | regulator-max-microvolt = <35440000>; |
| 382 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 383 | }; |
| 384 | |
| 385 | vreg_l10c_0p88: ldo10 { |
| 386 | regulator-min-microvolt = <720000>; |
| 387 | regulator-max-microvolt = <1050000>; |
| 388 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 389 | }; |
| 390 | |
| 391 | vreg_l11c_2p8: ldo11 { |
| 392 | regulator-min-microvolt = <2800000>; |
| 393 | regulator-max-microvolt = <3544000>; |
| 394 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 395 | }; |
| 396 | |
| 397 | vreg_l12c_1p65: ldo12 { |
| 398 | regulator-min-microvolt = <1650000>; |
| 399 | regulator-max-microvolt = <2000000>; |
| 400 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 401 | }; |
| 402 | |
| 403 | vreg_l13c_2p7: ldo13 { |
| 404 | regulator-min-microvolt = <2700000>; |
| 405 | regulator-max-microvolt = <3544000>; |
| 406 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 407 | }; |
| 408 | |
| 409 | vreg_bob_3p296: bob { |
| 410 | regulator-min-microvolt = <3008000>; |
| 411 | regulator-max-microvolt = <3960000>; |
| 412 | }; |
| 413 | }; |
| 414 | }; |
| 415 | |
Tom Rini | 6bb92fc | 2024-05-20 09:54:58 -0600 | [diff] [blame^] | 416 | &gcc { |
| 417 | protected-clocks = <GCC_CFG_NOC_LPASS_CLK>, |
| 418 | <GCC_MSS_CFG_AHB_CLK>, |
| 419 | <GCC_MSS_GPLL0_MAIN_DIV_CLK_SRC>, |
| 420 | <GCC_MSS_OFFLINE_AXI_CLK>, |
| 421 | <GCC_MSS_Q6SS_BOOT_CLK_SRC>, |
| 422 | <GCC_MSS_Q6_MEMNOC_AXI_CLK>, |
| 423 | <GCC_MSS_SNOC_AXI_CLK>, |
| 424 | <GCC_QSPI_CNOC_PERIPH_AHB_CLK>, |
| 425 | <GCC_QSPI_CORE_CLK>, |
| 426 | <GCC_QSPI_CORE_CLK_SRC>, |
| 427 | <GCC_SEC_CTRL_CLK_SRC>, |
| 428 | <GCC_WPSS_AHB_BDG_MST_CLK>, |
| 429 | <GCC_WPSS_AHB_CLK>, |
| 430 | <GCC_WPSS_RSCP_CLK>; |
| 431 | }; |
| 432 | |
Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 433 | &qupv3_id_0 { |
| 434 | status = "okay"; |
| 435 | }; |
| 436 | |
| 437 | &tlmm { |
| 438 | gpio-reserved-ranges = <32 2>, /* ADSP */ |
| 439 | <48 4>; /* NFC */ |
| 440 | }; |
| 441 | |
| 442 | &uart5 { |
| 443 | compatible = "qcom,geni-debug-uart"; |
| 444 | status = "okay"; |
| 445 | }; |
| 446 | |
| 447 | &usb_1 { |
| 448 | status = "okay"; |
| 449 | }; |
| 450 | |
| 451 | &usb_1_dwc3 { |
| 452 | dr_mode = "peripheral"; |
| 453 | }; |
| 454 | |
| 455 | &usb_1_hsphy { |
| 456 | vdda-pll-supply = <&vreg_l10c_0p88>; |
| 457 | vdda33-supply = <&vreg_l2b_3p072>; |
| 458 | vdda18-supply = <&vreg_l1c_1p8>; |
| 459 | |
| 460 | status = "okay"; |
| 461 | }; |
| 462 | |
| 463 | &usb_1_qmpphy { |
| 464 | vdda-phy-supply = <&vreg_l6b_1p2>; |
| 465 | vdda-pll-supply = <&vreg_l1b_0p912>; |
| 466 | |
| 467 | status = "okay"; |
| 468 | }; |
| 469 | |
| 470 | &wifi { |
| 471 | memory-region = <&wlan_fw_mem>; |
| 472 | }; |