1 // SPDX-License-Identifier: BSD-3-Clause 2 /* 3 * Copyright (c) 2017-2019, The Linux Foundati 4 * Copyright (c) 2019, Linaro Limited 5 */ 6 7 /dts-v1/; 8 9 #include <dt-bindings/regulator/qcom,rpmh-regu 10 #include <dt-bindings/gpio/gpio.h> 11 #include "sm8150.dtsi" 12 #include "pm8150.dtsi" 13 #include "pm8150b.dtsi" 14 #include "pm8150l.dtsi" 15 16 / { 17 model = "Qualcomm Technologies, Inc. S 18 compatible = "qcom,sm8150-mtp", "qcom, 19 chassis-type = "handset"; 20 21 aliases { 22 serial0 = &uart2; 23 }; 24 25 chosen { 26 stdout-path = "serial0:115200n 27 }; 28 29 vph_pwr: vph-pwr-regulator { 30 compatible = "regulator-fixed" 31 regulator-name = "vph_pwr"; 32 regulator-min-microvolt = <370 33 regulator-max-microvolt = <370 34 }; 35 36 /* 37 * Apparently RPMh does not provide su 38 * is always-on; model it as a fixed r 39 */ 40 vreg_s4a_1p8: pm8150-s4 { 41 compatible = "regulator-fixed" 42 regulator-name = "vreg_s4a_1p8 43 44 regulator-min-microvolt = <180 45 regulator-max-microvolt = <180 46 47 regulator-always-on; 48 regulator-boot-on; 49 50 vin-supply = <&vph_pwr>; 51 }; 52 }; 53 54 &apps_rsc { 55 regulators-0 { 56 compatible = "qcom,pm8150-rpmh 57 qcom,pmic-id = "a"; 58 59 vdd-s1-supply = <&vph_pwr>; 60 vdd-s2-supply = <&vph_pwr>; 61 vdd-s3-supply = <&vph_pwr>; 62 vdd-s4-supply = <&vph_pwr>; 63 vdd-s5-supply = <&vph_pwr>; 64 vdd-s6-supply = <&vph_pwr>; 65 vdd-s7-supply = <&vph_pwr>; 66 vdd-s8-supply = <&vph_pwr>; 67 vdd-s9-supply = <&vph_pwr>; 68 vdd-s10-supply = <&vph_pwr>; 69 70 vdd-l1-l8-l11-supply = <&vreg_ 71 vdd-l2-l10-supply = <&vreg_bob 72 vdd-l3-l4-l5-l18-supply = <&vr 73 vdd-l6-l9-supply = <&vreg_s8c_ 74 vdd-l7-l12-l14-l15-supply = <& 75 vdd-l13-l16-l17-supply = <&vre 76 77 vreg_s5a_2p0: smps5 { 78 regulator-min-microvol 79 regulator-max-microvol 80 }; 81 82 vreg_s6a_0p9: smps6 { 83 regulator-min-microvol 84 regulator-max-microvol 85 }; 86 87 vdda_wcss_pll: 88 vreg_l1a_0p75: ldo1 { 89 regulator-min-microvol 90 regulator-max-microvol 91 regulator-initial-mode 92 }; 93 94 vdd_pdphy: 95 vdda_usb_hs_3p1: 96 vreg_l2a_3p1: ldo2 { 97 regulator-min-microvol 98 regulator-max-microvol 99 regulator-initial-mode 100 }; 101 102 vreg_l3a_0p8: ldo3 { 103 regulator-min-microvol 104 regulator-max-microvol 105 regulator-initial-mode 106 }; 107 108 vdd_usb_hs_core: 109 vdda_csi_0_0p9: 110 vdda_csi_1_0p9: 111 vdda_csi_2_0p9: 112 vdda_csi_3_0p9: 113 vdda_dsi_0_0p9: 114 vdda_dsi_1_0p9: 115 vdda_dsi_0_pll_0p9: 116 vdda_dsi_1_pll_0p9: 117 vdda_pcie_1ln_core: 118 vdda_pcie_2ln_core: 119 vdda_pll_hv_cc_ebi01: 120 vdda_pll_hv_cc_ebi23: 121 vdda_qrefs_0p875_5: 122 vdda_sp_sensor: 123 vdda_ufs_2ln_core_1: 124 vdda_ufs_2ln_core_2: 125 vdda_usb_ss_dp_core_1: 126 vdda_usb_ss_dp_core_2: 127 vdda_qlink_lv: 128 vdda_qlink_lv_ck: 129 vreg_l5a_0p875: ldo5 { 130 regulator-min-microvol 131 regulator-max-microvol 132 regulator-initial-mode 133 }; 134 135 vreg_l6a_1p2: ldo6 { 136 regulator-min-microvol 137 regulator-max-microvol 138 regulator-initial-mode 139 }; 140 141 vreg_l7a_1p8: ldo7 { 142 regulator-min-microvol 143 regulator-max-microvol 144 regulator-initial-mode 145 }; 146 147 vddpx_10: 148 vreg_l9a_1p2: ldo9 { 149 regulator-min-microvol 150 regulator-max-microvol 151 regulator-initial-mode 152 }; 153 154 vreg_l10a_2p5: ldo10 { 155 regulator-min-microvol 156 regulator-max-microvol 157 regulator-initial-mode 158 }; 159 160 vreg_l11a_0p8: ldo11 { 161 regulator-min-microvol 162 regulator-max-microvol 163 regulator-initial-mode 164 }; 165 166 vdd_qfprom: 167 vdd_qfprom_sp: 168 vdda_apc_cs_1p8: 169 vdda_gfx_cs_1p8: 170 vdda_usb_hs_1p8: 171 vdda_qrefs_vref_1p8: 172 vddpx_10_a: 173 vreg_l12a_1p8: ldo12 { 174 regulator-min-microvol 175 regulator-max-microvol 176 regulator-initial-mode 177 }; 178 179 vreg_l13a_2p7: ldo13 { 180 regulator-min-microvol 181 regulator-max-microvol 182 regulator-initial-mode 183 }; 184 185 vreg_l14a_1p8: ldo14 { 186 regulator-min-microvol 187 regulator-max-microvol 188 regulator-initial-mode 189 }; 190 191 vreg_l15a_1p7: ldo15 { 192 regulator-min-microvol 193 regulator-max-microvol 194 regulator-initial-mode 195 }; 196 197 vreg_l16a_2p7: ldo16 { 198 regulator-min-microvol 199 regulator-max-microvol 200 regulator-initial-mode 201 }; 202 203 vreg_l17a_3p0: ldo17 { 204 regulator-min-microvol 205 regulator-max-microvol 206 regulator-initial-mode 207 }; 208 }; 209 210 regulators-1 { 211 compatible = "qcom,pm8150l-rpm 212 qcom,pmic-id = "c"; 213 214 vdd-s1-supply = <&vph_pwr>; 215 vdd-s2-supply = <&vph_pwr>; 216 vdd-s3-supply = <&vph_pwr>; 217 vdd-s4-supply = <&vph_pwr>; 218 vdd-s5-supply = <&vph_pwr>; 219 vdd-s6-supply = <&vph_pwr>; 220 vdd-s7-supply = <&vph_pwr>; 221 vdd-s8-supply = <&vph_pwr>; 222 223 vdd-l1-l8-supply = <&vreg_s4a_ 224 vdd-l2-l3-supply = <&vreg_s8c_ 225 vdd-l4-l5-l6-supply = <&vreg_b 226 vdd-l7-l11-supply = <&vreg_bob 227 vdd-l9-l10-supply = <&vreg_bob 228 229 vdd-bob-supply = <&vph_pwr>; 230 vdd-flash-supply = <&vreg_bob> 231 vdd-rgb-supply = <&vreg_bob>; 232 233 vreg_bob: bob { 234 regulator-min-microvol 235 regulator-max-microvol 236 regulator-initial-mode 237 regulator-allow-bypass 238 }; 239 240 vreg_s8c_1p3: smps8 { 241 regulator-min-microvol 242 regulator-max-microvol 243 }; 244 245 vreg_l1c_1p8: ldo1 { 246 regulator-min-microvol 247 regulator-max-microvol 248 regulator-initial-mode 249 }; 250 251 vdda_wcss_adcdac_1: 252 vdda_wcss_adcdac_22: 253 vreg_l2c_1p3: ldo2 { 254 regulator-min-microvol 255 regulator-max-microvol 256 regulator-initial-mode 257 }; 258 259 vdda_hv_ebi0: 260 vdda_hv_ebi1: 261 vdda_hv_ebi2: 262 vdda_hv_ebi3: 263 vdda_hv_refgen0: 264 vdda_qlink_hv_ck: 265 vreg_l3c_1p2: ldo3 { 266 regulator-min-microvol 267 regulator-max-microvol 268 regulator-initial-mode 269 }; 270 271 vddpx_5: 272 vreg_l4c_1p8: ldo4 { 273 regulator-min-microvol 274 regulator-max-microvol 275 regulator-initial-mode 276 }; 277 278 vddpx_6: 279 vreg_l5c_1p8: ldo5 { 280 regulator-min-microvol 281 regulator-max-microvol 282 regulator-initial-mode 283 }; 284 285 vddpx_2: 286 vreg_l6c_2p9: ldo6 { 287 regulator-min-microvol 288 regulator-max-microvol 289 regulator-initial-mode 290 }; 291 292 vreg_l7c_3p0: ldo7 { 293 regulator-min-microvol 294 regulator-max-microvol 295 regulator-initial-mode 296 }; 297 298 vreg_l8c_1p8: ldo8 { 299 regulator-min-microvol 300 regulator-max-microvol 301 regulator-initial-mode 302 }; 303 304 vreg_l9c_2p9: ldo9 { 305 regulator-min-microvol 306 regulator-max-microvol 307 regulator-initial-mode 308 }; 309 310 vreg_l10c_3p3: ldo10 { 311 regulator-min-microvol 312 regulator-max-microvol 313 regulator-initial-mode 314 }; 315 316 vreg_l11c_3p3: ldo11 { 317 regulator-min-microvol 318 regulator-max-microvol 319 regulator-initial-mode 320 }; 321 }; 322 323 regulators-2 { 324 compatible = "qcom,pm8009-rpmh 325 qcom,pmic-id = "f"; 326 327 vdd-s1-supply = <&vph_pwr>; 328 vdd-s2-supply = <&vreg_bob>; 329 330 vdd-l2-supply = <&vreg_s8c_1p3 331 vdd-l5-l6-supply = <&vreg_bob> 332 333 vreg_l2f_1p2: ldo2 { 334 regulator-min-microvol 335 regulator-max-microvol 336 regulator-initial-mode 337 }; 338 339 vreg_l5f_2p85: ldo5 { 340 regulator-min-microvol 341 regulator-max-microvol 342 regulator-initial-mode 343 }; 344 345 vreg_l6f_2p85: ldo6 { 346 regulator-initial-mode 347 regulator-min-microvol 348 regulator-max-microvol 349 }; 350 }; 351 }; 352 353 &gmu { 354 status = "okay"; 355 }; 356 357 &gpu { 358 /* 359 * NOTE: "amd,imageon" makes Adreno st 360 * after display support is added on t 361 */ 362 compatible = "qcom,adreno-640.1", "qco 363 status = "okay"; 364 }; 365 366 &pon_pwrkey { 367 status = "okay"; 368 }; 369 370 &pon_resin { 371 status = "okay"; 372 373 linux,code = <KEY_VOLUMEDOWN>; 374 }; 375 376 &qupv3_id_1 { 377 status = "okay"; 378 }; 379 380 &remoteproc_adsp { 381 status = "okay"; 382 firmware-name = "qcom/sm8150/adsp.mdt" 383 }; 384 385 &remoteproc_cdsp { 386 status = "okay"; 387 firmware-name = "qcom/sm8150/cdsp.mdt" 388 }; 389 390 &remoteproc_mpss { 391 status = "okay"; 392 firmware-name = "qcom/sm8150/modem.mdt 393 }; 394 395 &remoteproc_slpi { 396 status = "okay"; 397 firmware-name = "qcom/sm8150/slpi.mdt" 398 }; 399 400 &tlmm { 401 gpio-reserved-ranges = <0 4>, <126 4>; 402 }; 403 404 &uart2 { 405 status = "okay"; 406 }; 407 408 &ufs_mem_hc { 409 status = "okay"; 410 411 reset-gpios = <&tlmm 175 GPIO_ACTIVE_L 412 413 vcc-supply = <&vreg_l10a_2p5>; 414 vcc-max-microamp = <750000>; 415 vccq-supply = <&vreg_l9a_1p2>; 416 vccq-max-microamp = <700000>; 417 vccq2-supply = <&vreg_s4a_1p8>; 418 vccq2-max-microamp = <750000>; 419 }; 420 421 &ufs_mem_phy { 422 status = "okay"; 423 424 vdda-phy-supply = <&vdda_ufs_2ln_core_ 425 vdda-pll-supply = <&vreg_l3c_1p2>; 426 }; 427 428 &usb_1_hsphy { 429 status = "okay"; 430 vdda-pll-supply = <&vdd_usb_hs_core>; 431 vdda33-supply = <&vdda_usb_hs_3p1>; 432 vdda18-supply = <&vdda_usb_hs_1p8>; 433 }; 434 435 &usb_1_qmpphy { 436 status = "okay"; 437 vdda-phy-supply = <&vreg_l3c_1p2>; 438 vdda-pll-supply = <&vdda_usb_ss_dp_cor 439 }; 440 441 &usb_1 { 442 status = "okay"; 443 }; 444 445 &usb_1_dwc3 { 446 dr_mode = "peripheral"; 447 }; 448 449 &wifi { 450 status = "okay"; 451 452 vdd-0.8-cx-mx-supply = <&vdda_wcss_pll 453 vdd-1.8-xo-supply = <&vreg_l7a_1p8>; 454 vdd-1.3-rfa-supply = <&vdda_wcss_adcda 455 vdd-3.3-ch0-supply = <&vreg_l11c_3p3>; 456 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.