1// SPDX-License-Identifier: BSD-3-Clause 2/* 3 * Copyright (c) 2020, The Linux Foundation. All rights reserved. 4 */ 5 6/dts-v1/; 7 8#include <dt-bindings/regulator/qcom,rpmh-regulator.h> 9#include "sm8250.dtsi" 10#include "pm8150.dtsi" 11#include "pm8150b.dtsi" 12#include "pm8150l.dtsi" 13#include "pm8009.dtsi" 14 15/ { 16 model = "Qualcomm Technologies, Inc. SM8250 MTP"; 17 compatible = "qcom,sm8250-mtp", "qcom,sm8250"; 18 19 aliases { 20 serial0 = &uart12; 21 }; 22 23 chosen { 24 stdout-path = "serial0:115200n8"; 25 }; 26 27 vph_pwr: vph-pwr-regulator { 28 compatible = "regulator-fixed"; 29 regulator-name = "vph_pwr"; 30 regulator-min-microvolt = <3700000>; 31 regulator-max-microvolt = <3700000>; 32 }; 33 34 vreg_s4a_1p8: pm8150-s4 { 35 compatible = "regulator-fixed"; 36 regulator-name = "vreg_s4a_1p8"; 37 38 regulator-min-microvolt = <1800000>; 39 regulator-max-microvolt = <1800000>; 40 41 regulator-always-on; 42 regulator-boot-on; 43 44 vin-supply = <&vph_pwr>; 45 }; 46 47 vreg_s6c_0p88: smpc6-regulator { 48 compatible = "regulator-fixed"; 49 regulator-name = "vreg_s6c_0p88"; 50 51 regulator-min-microvolt = <880000>; 52 regulator-max-microvolt = <880000>; 53 regulator-always-on; 54 vin-supply = <&vph_pwr>; 55 }; 56}; 57 58&adsp { 59 status = "okay"; 60 firmware-name = "qcom/sm8250/adsp.mbn"; 61}; 62 63&apps_rsc { 64 pm8150-rpmh-regulators { 65 compatible = "qcom,pm8150-rpmh-regulators"; 66 qcom,pmic-id = "a"; 67 68 vdd-s1-supply = <&vph_pwr>; 69 vdd-s2-supply = <&vph_pwr>; 70 vdd-s3-supply = <&vph_pwr>; 71 vdd-s4-supply = <&vph_pwr>; 72 vdd-s5-supply = <&vph_pwr>; 73 vdd-s6-supply = <&vph_pwr>; 74 vdd-s7-supply = <&vph_pwr>; 75 vdd-s8-supply = <&vph_pwr>; 76 vdd-s9-supply = <&vph_pwr>; 77 vdd-s10-supply = <&vph_pwr>; 78 vdd-l1-l8-l11-supply = <&vreg_s6c_0p88>; 79 vdd-l2-l10-supply = <&vreg_bob>; 80 vdd-l3-l4-l5-l18-supply = <&vreg_s6a_0p95>; 81 vdd-l6-l9-supply = <&vreg_s8c_1p3>; 82 vdd-l7-l12-l14-l15-supply = <&vreg_s5a_1p9>; 83 vdd-l13-l16-l17-supply = <&vreg_bob>; 84 85 vreg_s5a_1p9: smps5 { 86 regulator-name = "vreg_s5a_1p9"; 87 regulator-min-microvolt = <1904000>; 88 regulator-max-microvolt = <2000000>; 89 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 90 }; 91 92 vreg_s6a_0p95: smps6 { 93 regulator-name = "vreg_s6a_0p95"; 94 regulator-min-microvolt = <920000>; 95 regulator-max-microvolt = <1128000>; 96 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 97 }; 98 99 vreg_l2a_3p1: ldo2 { 100 regulator-name = "vreg_l2a_3p1"; 101 regulator-min-microvolt = <3072000>; 102 regulator-max-microvolt = <3072000>; 103 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 104 }; 105 106 vreg_l3a_0p9: ldo3 { 107 regulator-name = "vreg_l3a_0p9"; 108 regulator-min-microvolt = <928000>; 109 regulator-max-microvolt = <932000>; 110 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 111 }; 112 113 vreg_l5a_0p875: ldo5 { 114 regulator-name = "vreg_l5a_0p875"; 115 regulator-min-microvolt = <880000>; 116 regulator-max-microvolt = <880000>; 117 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 118 }; 119 120 vreg_l6a_1p2: ldo6 { 121 regulator-name = "vreg_l6a_1p2"; 122 regulator-min-microvolt = <1200000>; 123 regulator-max-microvolt = <1200000>; 124 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 125 }; 126 127 vreg_l7a_1p7: ldo7 { 128 regulator-name = "vreg_l7a_1p7"; 129 regulator-min-microvolt = <1704000>; 130 regulator-max-microvolt = <1800000>; 131 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 132 }; 133 134 vreg_l9a_1p2: ldo9 { 135 regulator-name = "vreg_l9a_1p2"; 136 regulator-min-microvolt = <1200000>; 137 regulator-max-microvolt = <1200000>; 138 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 139 }; 140 141 vreg_l10a_1p8: ldo10 { 142 regulator-name = "vreg_l10a_1p8"; 143 regulator-min-microvolt = <1800000>; 144 regulator-max-microvolt = <1800000>; 145 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 146 }; 147 148 vreg_l12a_1p8: ldo12 { 149 regulator-name = "vreg_l12a_1p8"; 150 regulator-min-microvolt = <1800000>; 151 regulator-max-microvolt = <1800000>; 152 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 153 }; 154 155 vreg_l13a_ts_3p0: ldo13 { 156 regulator-name = "vreg_l13a_ts_3p0"; 157 regulator-min-microvolt = <3008000>; 158 regulator-max-microvolt = <3008000>; 159 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 160 }; 161 162 vreg_l14a_1p8: ldo14 { 163 regulator-name = "vreg_l14a_1p8"; 164 regulator-min-microvolt = <1800000>; 165 regulator-max-microvolt = <1880000>; 166 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 167 }; 168 169 vreg_l15a_11ad_io_1p8: ldo15 { 170 regulator-name = "vreg_l15a_11ad_io_1p8"; 171 regulator-min-microvolt = <1800000>; 172 regulator-max-microvolt = <1800000>; 173 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 174 }; 175 176 vreg_l16a_2p7: ldo16 { 177 regulator-name = "vreg_l16a_2p7"; 178 regulator-min-microvolt = <2704000>; 179 regulator-max-microvolt = <2960000>; 180 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 181 }; 182 183 vreg_l17a_3p0: ldo17 { 184 regulator-name = "vreg_l17a_3p0"; 185 regulator-min-microvolt = <2856000>; 186 regulator-max-microvolt = <3008000>; 187 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 188 }; 189 }; 190 191 pm8150l-rpmh-regulators { 192 compatible = "qcom,pm8150l-rpmh-regulators"; 193 qcom,pmic-id = "c"; 194 195 vdd-s1-supply = <&vph_pwr>; 196 vdd-s2-supply = <&vph_pwr>; 197 vdd-s3-supply = <&vph_pwr>; 198 vdd-s4-supply = <&vph_pwr>; 199 vdd-s5-supply = <&vph_pwr>; 200 vdd-s6-supply = <&vph_pwr>; 201 vdd-s7-supply = <&vph_pwr>; 202 vdd-s8-supply = <&vph_pwr>; 203 vdd-l1-l8-supply = <&vreg_s4a_1p8>; 204 vdd-l2-l3-supply = <&vreg_s8c_1p3>; 205 vdd-l4-l5-l6-supply = <&vreg_bob>; 206 vdd-l7-l11-supply = <&vreg_bob>; 207 vdd-l9-l10-supply = <&vreg_bob>; 208 vdd-bob-supply = <&vph_pwr>; 209 210 vreg_bob: bob { 211 regulator-name = "vreg_bob"; 212 regulator-min-microvolt = <3008000>; 213 regulator-max-microvolt = <4000000>; 214 regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>; 215 }; 216 217 vreg_s8c_1p3: smps8 { 218 regulator-name = "vreg_s8c_1p3"; 219 regulator-min-microvolt = <1352000>; 220 regulator-max-microvolt = <1352000>; 221 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 222 }; 223 224 vreg_l1c_1p8: ldo1 { 225 regulator-name = "vreg_l1c_1p8"; 226 regulator-min-microvolt = <1800000>; 227 regulator-max-microvolt = <1800000>; 228 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 229 }; 230 231 vreg_l2c_1p2: ldo2 { 232 regulator-name = "vreg_l2c_1p2"; 233 regulator-min-microvolt = <1200000>; 234 regulator-max-microvolt = <1200000>; 235 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 236 }; 237 238 vreg_l3c_0p92: ldo3 { 239 regulator-name = "vreg_l3c_0p92"; 240 regulator-min-microvolt = <920000>; 241 regulator-max-microvolt = <920000>; 242 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 243 }; 244 245 vreg_l4c_1p7: ldo4 { 246 regulator-name = "vreg_l4c_1p7"; 247 regulator-min-microvolt = <1704000>; 248 regulator-max-microvolt = <2928000>; 249 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 250 }; 251 252 vreg_l5c_1p8: ldo5 { 253 regulator-name = "vreg_l5c_1p8"; 254 regulator-min-microvolt = <1800000>; 255 regulator-max-microvolt = <2928000>; 256 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 257 }; 258 259 vreg_l6c_2p9: ldo6 { 260 regulator-name = "vreg_l6c_2p9"; 261 regulator-min-microvolt = <1800000>; 262 regulator-max-microvolt = <2960000>; 263 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 264 }; 265 266 vreg_l7c_cam_vcm0_2p85: ldo7 { 267 regulator-name = "vreg_l7c_cam_vcm0_2p85"; 268 regulator-min-microvolt = <2856000>; 269 regulator-max-microvolt = <3104000>; 270 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 271 }; 272 273 vreg_l8c_1p8: ldo8 { 274 regulator-name = "vreg_l8c_1p8"; 275 regulator-min-microvolt = <1800000>; 276 regulator-max-microvolt = <1800000>; 277 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 278 }; 279 280 vreg_l9c_2p9: ldo9 { 281 regulator-name = "vreg_l9c_2p9"; 282 regulator-min-microvolt = <2704000>; 283 regulator-max-microvolt = <2960000>; 284 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 285 }; 286 287 vreg_l10c_3p0: ldo10 { 288 regulator-name = "vreg_l10c_3p0"; 289 regulator-min-microvolt = <3000000>; 290 regulator-max-microvolt = <3000000>; 291 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 292 }; 293 294 vreg_l11c_3p3: ldo11 { 295 regulator-name = "vreg_l11c_3p3"; 296 regulator-min-microvolt = <3000000>; 297 regulator-max-microvolt = <3312000>; 298 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 299 }; 300 }; 301 302 pm8009-rpmh-regulators { 303 compatible = "qcom,pm8009-rpmh-regulators"; 304 qcom,pmic-id = "f"; 305 306 vdd-s1-supply = <&vph_pwr>; 307 vdd-s2-supply = <&vreg_bob>; 308 vdd-l2-supply = <&vreg_s8c_1p3>; 309 vdd-l5-l6-supply = <&vreg_bob>; 310 vdd-l7-supply = <&vreg_s4a_1p8>; 311 312 vreg_l1f_cam_dvdd1_1p1: ldo1 { 313 regulator-name = "vreg_l1f_cam_dvdd1_1p1"; 314 regulator-min-microvolt = <1104000>; 315 regulator-max-microvolt = <1104000>; 316 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 317 }; 318 319 vreg_l2f_cam_dvdd0_1p2: ldo2 { 320 regulator-name = "vreg_l2f_cam_dvdd0_1p2"; 321 regulator-min-microvolt = <1200000>; 322 regulator-max-microvolt = <1200000>; 323 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 324 }; 325 326 vreg_l3f_cam_dvdd2_1p05: ldo3 { 327 regulator-name = "vreg_l3f_cam_dvdd2_1p05"; 328 regulator-min-microvolt = <1056000>; 329 regulator-max-microvolt = <1056000>; 330 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 331 }; 332 333 vreg_l5f_cam_avdd0_2p85: ldo5 { 334 regulator-name = "vreg_l5f_cam_avdd0_2p85"; 335 regulator-min-microvolt = <2800000>; 336 regulator-max-microvolt = <2800000>; 337 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 338 }; 339 340 vreg_l6f_cam_avdd1_2p85: ldo6 { 341 regulator-name = "vreg_l6f_cam_avdd1_2p85"; 342 regulator-min-microvolt = <2856000>; 343 regulator-max-microvolt = <2856000>; 344 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 345 }; 346 347 vreg_l7f_1p8: ldo7 { 348 regulator-name = "vreg_l7f_1p8"; 349 regulator-min-microvolt = <1800000>; 350 regulator-max-microvolt = <1800000>; 351 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 352 }; 353 }; 354}; 355 356&cdsp { 357 status = "okay"; 358 firmware-name = "qcom/sm8250/cdsp.mbn"; 359}; 360 361&i2c1 { 362 status = "okay"; 363 clock-frequency = <1000000>; 364 365 /* NQ NFC chip @28 */ 366}; 367 368&i2c13 { 369 status = "okay"; 370 371 /* st,stmfts @ 49 */ 372}; 373 374&i2c15 { 375 status = "okay"; 376 377 /* smb1390 @ 10 */ 378 /* rtc6226 @ 64 */ 379}; 380 381&qupv3_id_0 { 382 status = "okay"; 383}; 384 385&qupv3_id_1 { 386 status = "okay"; 387}; 388 389&qupv3_id_2 { 390 status = "okay"; 391}; 392 393&slpi { 394 status = "okay"; 395 firmware-name = "qcom/sm8250/slpi.mbn"; 396}; 397 398&tlmm { 399 gpio-reserved-ranges = <28 4>, <40 4>; 400}; 401 402&uart12 { 403 status = "okay"; 404}; 405 406&ufs_mem_hc { 407 status = "okay"; 408 409 vcc-supply = <&vreg_l17a_3p0>; 410 vcc-max-microamp = <750000>; 411 vccq-supply = <&vreg_l6a_1p2>; 412 vccq-max-microamp = <700000>; 413 vccq2-supply = <&vreg_s4a_1p8>; 414 vccq2-max-microamp = <750000>; 415}; 416 417&ufs_mem_phy { 418 status = "okay"; 419 420 vdda-phy-supply = <&vreg_l5a_0p875>; 421 vdda-max-microamp = <90200>; 422 vdda-pll-supply = <&vreg_l9a_1p2>; 423 vdda-pll-max-microamp = <19000>; 424}; 425