Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | // SPDX-License-Identifier: BSD-3-Clause |
| 2 | /* |
| 3 | * Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved. |
| 4 | */ |
| 5 | /dts-v1/; |
| 6 | |
| 7 | /* PM7250B is configured to use SID2/3 */ |
| 8 | #define PM7250B_SID 2 |
| 9 | #define PM7250B_SID1 3 |
| 10 | |
| 11 | #include "qcom-sdx65.dtsi" |
| 12 | #include <dt-bindings/regulator/qcom,rpmh-regulator.h> |
| 13 | #include <arm64/qcom/pmk8350.dtsi> |
| 14 | #include <arm64/qcom/pm7250b.dtsi> |
| 15 | #include "qcom-pmx65.dtsi" |
| 16 | |
| 17 | / { |
| 18 | model = "Qualcomm Technologies, Inc. SDX65 MTP"; |
| 19 | compatible = "qcom,sdx65-mtp", "qcom,sdx65"; |
| 20 | qcom,board-id = <0x2010008 0x302>; |
| 21 | |
| 22 | aliases { |
| 23 | serial0 = &blsp1_uart3; |
| 24 | }; |
| 25 | |
| 26 | chosen { |
| 27 | stdout-path = "serial0:115200n8"; |
| 28 | }; |
| 29 | |
| 30 | reserved-memory { |
| 31 | #address-cells = <1>; |
| 32 | #size-cells = <1>; |
| 33 | ranges; |
| 34 | |
| 35 | mpss_dsm: memory@8c400000 { |
| 36 | no-map; |
| 37 | reg = <0x8c400000 0x3200000>; |
| 38 | }; |
| 39 | |
| 40 | ipa_fw_mem: memory@8fced000 { |
| 41 | no-map; |
| 42 | reg = <0x8fced000 0x10000>; |
| 43 | }; |
| 44 | |
| 45 | mpss_adsp_mem: memory@90800000 { |
| 46 | no-map; |
| 47 | reg = <0x90800000 0x10000000>; |
| 48 | }; |
| 49 | }; |
| 50 | |
| 51 | vph_pwr: vph-pwr-regulator { |
| 52 | compatible = "regulator-fixed"; |
| 53 | regulator-name = "vph_pwr"; |
| 54 | regulator-min-microvolt = <3700000>; |
| 55 | regulator-max-microvolt = <3700000>; |
| 56 | }; |
| 57 | |
| 58 | vreg_bob_3p3: pmx65_bob { |
| 59 | compatible = "regulator-fixed"; |
| 60 | regulator-name = "vreg_bob_3p3"; |
| 61 | regulator-min-microvolt = <3300000>; |
| 62 | regulator-max-microvolt = <3300000>; |
| 63 | |
| 64 | regulator-always-on; |
| 65 | regulator-boot-on; |
| 66 | |
| 67 | vin-supply = <&vph_pwr>; |
| 68 | }; |
| 69 | }; |
| 70 | |
| 71 | &apps_rsc { |
| 72 | regulators-0 { |
| 73 | compatible = "qcom,pmx65-rpmh-regulators"; |
| 74 | qcom,pmic-id = "b"; |
| 75 | |
| 76 | vdd-s1-supply = <&vph_pwr>; |
| 77 | vdd-s2-supply = <&vph_pwr>; |
| 78 | vdd-s3-supply = <&vph_pwr>; |
| 79 | vdd-s4-supply = <&vph_pwr>; |
| 80 | vdd-s5-supply = <&vph_pwr>; |
| 81 | vdd-s6-supply = <&vph_pwr>; |
| 82 | vdd-s7-supply = <&vph_pwr>; |
| 83 | vdd-s8-supply = <&vph_pwr>; |
| 84 | vdd-l1-supply = <&vreg_s2b_1p224>; |
| 85 | vdd-l2-l18-supply = <&vreg_s2b_1p224>; |
| 86 | vdd-l3-supply = <&vreg_s8b_0p824>; |
| 87 | vdd-l4-supply = <&vreg_s7b_0p936>; |
| 88 | vdd-l5-l6-l16-supply = <&vreg_s4b_1p824>; |
| 89 | vdd-l7-supply = <&vreg_s3b_0p776>; |
| 90 | vdd-l8-l9-supply = <&vreg_s8b_0p824>; |
| 91 | vdd-l10-supply = <&vreg_bob_3p3>; |
| 92 | vdd-l11-l13-supply = <&vreg_bob_3p3>; |
| 93 | vdd-l12-supply = <&vreg_s2b_1p224>; |
| 94 | vdd-l14-supply = <&vreg_s3b_0p776>; |
| 95 | vdd-l15-supply = <&vreg_s2b_1p224>; |
| 96 | vdd-l17-supply = <&vreg_s8b_0p824>; |
| 97 | vdd-l19-supply = <&vreg_s3b_0p776>; |
| 98 | vdd-l20-supply = <&vreg_s7b_0p936>; |
| 99 | vdd-l21-supply = <&vreg_s7b_0p936>; |
| 100 | |
| 101 | vreg_s2b_1p224: smps2 { |
| 102 | regulator-min-microvolt = <1200000>; |
| 103 | regulator-max-microvolt = <1400000>; |
| 104 | }; |
| 105 | |
| 106 | vreg_s3b_0p776: smps3 { |
| 107 | regulator-min-microvolt = <500000>; |
| 108 | regulator-max-microvolt = <1040000>; |
| 109 | }; |
| 110 | |
| 111 | vreg_s4b_1p824: smps4 { |
| 112 | regulator-min-microvolt = <1800000>; |
| 113 | regulator-max-microvolt = <2024000>; |
| 114 | }; |
| 115 | |
| 116 | vreg_s7b_0p936: smps7 { |
| 117 | regulator-min-microvolt = <500000>; |
| 118 | regulator-max-microvolt = <1040000>; |
| 119 | }; |
| 120 | |
| 121 | vreg_s8b_0p824: smps8 { |
| 122 | regulator-min-microvolt = <304000>; |
| 123 | regulator-max-microvolt = <1300000>; |
| 124 | }; |
| 125 | |
| 126 | vreg_l1b_1p2: ldo1 { |
| 127 | regulator-min-microvolt = <1200000>; |
| 128 | regulator-max-microvolt = <1200000>; |
| 129 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 130 | }; |
| 131 | |
| 132 | ldo2 { |
| 133 | regulator-min-microvolt = <1128000>; |
| 134 | regulator-max-microvolt = <1128000>; |
| 135 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 136 | }; |
| 137 | |
| 138 | ldo3 { |
| 139 | regulator-min-microvolt = <300000>; |
| 140 | regulator-max-microvolt = <960000>; |
| 141 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 142 | }; |
| 143 | |
| 144 | vreg_l4b_0p88: ldo4 { |
| 145 | regulator-min-microvolt = <880000>; |
| 146 | regulator-max-microvolt = <912000>; |
| 147 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 148 | }; |
| 149 | |
| 150 | vreg_l5b_1p8: ldo5 { |
| 151 | regulator-min-microvolt = <1800000>; |
| 152 | regulator-max-microvolt = <1800000>; |
| 153 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 154 | }; |
| 155 | |
| 156 | ldo6 { |
| 157 | regulator-min-microvolt = <1800000>; |
| 158 | regulator-max-microvolt = <1800000>; |
| 159 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 160 | }; |
| 161 | |
| 162 | ldo7 { |
| 163 | regulator-min-microvolt = <752000>; |
| 164 | regulator-max-microvolt = <752000>; |
| 165 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 166 | }; |
| 167 | |
| 168 | ldo8 { |
| 169 | regulator-min-microvolt = <800000>; |
| 170 | regulator-max-microvolt = <800000>; |
| 171 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 172 | }; |
| 173 | |
| 174 | ldo9 { |
| 175 | regulator-min-microvolt = <800000>; |
| 176 | regulator-max-microvolt = <800000>; |
| 177 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 178 | }; |
| 179 | |
| 180 | vreg_l10b_3p08: ldo10 { |
| 181 | regulator-min-microvolt = <3088000>; |
| 182 | regulator-max-microvolt = <3088000>; |
| 183 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 184 | }; |
| 185 | |
| 186 | ldo11 { |
| 187 | regulator-min-microvolt = <1704000>; |
| 188 | regulator-max-microvolt = <2928000>; |
| 189 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 190 | }; |
| 191 | |
| 192 | ldo12 { |
| 193 | regulator-min-microvolt = <1200000>; |
| 194 | regulator-max-microvolt = <1200000>; |
| 195 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 196 | }; |
| 197 | |
| 198 | ldo13 { |
| 199 | regulator-min-microvolt = <1704000>; |
| 200 | regulator-max-microvolt = <2928000>; |
| 201 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 202 | }; |
| 203 | |
| 204 | ldo14 { |
| 205 | regulator-min-microvolt = <600000>; |
| 206 | regulator-max-microvolt = <800000>; |
| 207 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 208 | }; |
| 209 | |
| 210 | ldo15 { |
| 211 | regulator-min-microvolt = <1200000>; |
| 212 | regulator-max-microvolt = <1200000>; |
| 213 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 214 | }; |
| 215 | |
| 216 | ldo16 { |
| 217 | regulator-min-microvolt = <1776000>; |
| 218 | regulator-max-microvolt = <1776000>; |
| 219 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 220 | }; |
| 221 | |
| 222 | ldo17 { |
| 223 | regulator-min-microvolt = <300000>; |
| 224 | regulator-max-microvolt = <960000>; |
| 225 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 226 | }; |
| 227 | |
| 228 | ldo19 { |
| 229 | regulator-min-microvolt = <752000>; |
| 230 | regulator-max-microvolt = <752000>; |
| 231 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 232 | }; |
| 233 | |
| 234 | ldo20 { |
| 235 | regulator-min-microvolt = <912000>; |
| 236 | regulator-max-microvolt = <912000>; |
| 237 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 238 | }; |
| 239 | |
| 240 | ldo21 { |
| 241 | regulator-min-microvolt = <912000>; |
| 242 | regulator-max-microvolt = <912000>; |
| 243 | regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; |
| 244 | }; |
| 245 | }; |
| 246 | }; |
| 247 | |
| 248 | &blsp1_uart3 { |
| 249 | status = "okay"; |
| 250 | }; |
| 251 | |
| 252 | &ipa { |
| 253 | qcom,gsi-loader = "skip"; |
| 254 | status = "okay"; |
| 255 | }; |
| 256 | |
| 257 | &pcie_ep { |
| 258 | pinctrl-0 = <&pcie_ep_clkreq_default |
| 259 | &pcie_ep_perst_default |
| 260 | &pcie_ep_wake_default>; |
| 261 | pinctrl-names = "default"; |
| 262 | |
| 263 | reset-gpios = <&tlmm 57 GPIO_ACTIVE_LOW>; |
| 264 | wake-gpios = <&tlmm 53 GPIO_ACTIVE_LOW>; |
| 265 | |
| 266 | status = "okay"; |
| 267 | }; |
| 268 | |
| 269 | &pcie_phy { |
| 270 | vdda-phy-supply = <&vreg_l1b_1p2>; |
| 271 | vdda-pll-supply = <&vreg_l4b_0p88>; |
| 272 | |
| 273 | status = "okay"; |
| 274 | }; |
| 275 | |
| 276 | &qpic_bam { |
| 277 | status = "okay"; |
| 278 | }; |
| 279 | |
| 280 | &qpic_nand { |
| 281 | status = "okay"; |
| 282 | |
| 283 | nand@0 { |
| 284 | reg = <0>; |
| 285 | |
| 286 | nand-ecc-strength = <4>; |
| 287 | nand-ecc-step-size = <512>; |
| 288 | nand-bus-width = <8>; |
| 289 | /* ico and efs2 partitions are secured */ |
| 290 | secure-regions = /bits/ 64 <0x500000 0x500000 |
| 291 | 0xa00000 0xb00000>; |
| 292 | }; |
| 293 | }; |
| 294 | |
| 295 | &remoteproc_mpss { |
| 296 | memory-region = <&mpss_adsp_mem>; |
| 297 | status = "okay"; |
| 298 | }; |
| 299 | |
| 300 | &tlmm { |
| 301 | pcie_ep_clkreq_default: pcie-ep-clkreq-default-state { |
| 302 | pins = "gpio56"; |
| 303 | function = "pcie_clkreq"; |
| 304 | drive-strength = <2>; |
| 305 | bias-disable; |
| 306 | }; |
| 307 | |
| 308 | pcie_ep_perst_default: pcie-ep-perst-default-state { |
| 309 | pins = "gpio57"; |
| 310 | function = "gpio"; |
| 311 | drive-strength = <2>; |
| 312 | bias-pull-down; |
| 313 | }; |
| 314 | |
| 315 | pcie_ep_wake_default: pcie-ep-wake-default-state { |
| 316 | pins = "gpio53"; |
| 317 | function = "gpio"; |
| 318 | drive-strength = <2>; |
| 319 | bias-disable; |
| 320 | }; |
| 321 | }; |
| 322 | |
| 323 | &usb { |
| 324 | status = "okay"; |
| 325 | }; |
| 326 | |
| 327 | &usb_dwc3 { |
| 328 | dr_mode = "peripheral"; |
| 329 | }; |
| 330 | |
| 331 | &usb_hsphy { |
| 332 | vdda-pll-supply = <&vreg_l4b_0p88>; |
| 333 | vdda33-supply = <&vreg_l10b_3p08>; |
| 334 | vdda18-supply = <&vreg_l5b_1p8>; |
| 335 | status = "okay"; |
| 336 | }; |
| 337 | |
| 338 | &usb_qmpphy { |
| 339 | vdda-phy-supply = <&vreg_l4b_0p88>; |
| 340 | vdda-pll-supply = <&vreg_l1b_1p2>; |
| 341 | status = "okay"; |
| 342 | }; |