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 <dt-bindings/gpio/gpio.h> 10#include "sm8150.dtsi" 11#include "pm8150.dtsi" 12#include "pm8150b.dtsi" 13#include "pm8150l.dtsi" 14 15/ { 16 model = "Qualcomm Technologies, Inc. SM8150 HDK"; 17 compatible = "qcom,sm8150-hdk", "qcom,sm8150"; 18 19 aliases { 20 serial0 = &uart2; 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 gpio_keys { 48 compatible = "gpio-keys"; 49 50 vol-up { 51 label = "Volume Up"; 52 linux,code = <KEY_VOLUMEUP>; 53 gpios = <&pm8150_gpios 6 GPIO_ACTIVE_LOW>; 54 }; 55 }; 56}; 57 58&apps_rsc { 59 pm8150-rpmh-regulators { 60 compatible = "qcom,pm8150-rpmh-regulators"; 61 qcom,pmic-id = "a"; 62 63 vdd-s1-supply = <&vph_pwr>; 64 vdd-s2-supply = <&vph_pwr>; 65 vdd-s3-supply = <&vph_pwr>; 66 vdd-s4-supply = <&vph_pwr>; 67 vdd-s5-supply = <&vph_pwr>; 68 vdd-s6-supply = <&vph_pwr>; 69 vdd-s7-supply = <&vph_pwr>; 70 vdd-s8-supply = <&vph_pwr>; 71 vdd-s9-supply = <&vph_pwr>; 72 vdd-s10-supply = <&vph_pwr>; 73 74 vdd-l1-l8-l11-supply = <&vreg_s6a_0p9>; 75 vdd-l2-l10-supply = <&vreg_bob>; 76 vdd-l3-l4-l5-l18-supply = <&vreg_s6a_0p9>; 77 vdd-l6-l9-supply = <&vreg_s8c_1p3>; 78 vdd-l7-l12-l14-l15-supply = <&vreg_s5a_2p0>; 79 vdd-l13-l16-l17-supply = <&vreg_bob>; 80 81 vreg_s5a_2p0: smps5 { 82 regulator-min-microvolt = <1904000>; 83 regulator-max-microvolt = <2000000>; 84 }; 85 86 vreg_s6a_0p9: smps6 { 87 regulator-min-microvolt = <920000>; 88 regulator-max-microvolt = <1128000>; 89 }; 90 91 vdda_wcss_pll: 92 vreg_l1a_0p75: ldo1 { 93 regulator-min-microvolt = <752000>; 94 regulator-max-microvolt = <752000>; 95 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 96 }; 97 98 vdd_pdphy: 99 vdda_usb_hs_3p1: 100 vreg_l2a_3p1: ldo2 { 101 regulator-min-microvolt = <3072000>; 102 regulator-max-microvolt = <3072000>; 103 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 104 }; 105 106 vreg_l3a_0p8: ldo3 { 107 regulator-min-microvolt = <480000>; 108 regulator-max-microvolt = <932000>; 109 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 110 }; 111 112 vdd_usb_hs_core: 113 vdda_csi_0_0p9: 114 vdda_csi_1_0p9: 115 vdda_csi_2_0p9: 116 vdda_csi_3_0p9: 117 vdda_dsi_0_0p9: 118 vdda_dsi_1_0p9: 119 vdda_dsi_0_pll_0p9: 120 vdda_dsi_1_pll_0p9: 121 vdda_pcie_1ln_core: 122 vdda_pcie_2ln_core: 123 vdda_pll_hv_cc_ebi01: 124 vdda_pll_hv_cc_ebi23: 125 vdda_qrefs_0p875_5: 126 vdda_sp_sensor: 127 vdda_ufs_2ln_core_1: 128 vdda_ufs_2ln_core_2: 129 vdda_qlink_lv: 130 vdda_qlink_lv_ck: 131 vreg_l5a_0p875: ldo5 { 132 regulator-min-microvolt = <880000>; 133 regulator-max-microvolt = <880000>; 134 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 135 }; 136 137 vreg_l6a_1p2: ldo6 { 138 regulator-min-microvolt = <1200000>; 139 regulator-max-microvolt = <1200000>; 140 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 141 }; 142 143 vreg_l7a_1p8: ldo7 { 144 regulator-min-microvolt = <1800000>; 145 regulator-max-microvolt = <1800000>; 146 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 147 }; 148 149 vddpx_10: 150 vreg_l9a_1p2: ldo9 { 151 regulator-min-microvolt = <1200000>; 152 regulator-max-microvolt = <1200000>; 153 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 154 }; 155 156 vreg_l10a_2p5: ldo10 { 157 regulator-min-microvolt = <2504000>; 158 regulator-max-microvolt = <2960000>; 159 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 160 }; 161 162 vreg_l11a_0p8: ldo11 { 163 regulator-min-microvolt = <800000>; 164 regulator-max-microvolt = <800000>; 165 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 166 }; 167 168 vdd_qfprom: 169 vdd_qfprom_sp: 170 vdda_apc_cs_1p8: 171 vdda_gfx_cs_1p8: 172 vdda_usb_hs_1p8: 173 vdda_qrefs_vref_1p8: 174 vddpx_10_a: 175 vreg_l12a_1p8: ldo12 { 176 regulator-min-microvolt = <1800000>; 177 regulator-max-microvolt = <1800000>; 178 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 179 }; 180 181 vreg_l13a_2p7: ldo13 { 182 regulator-min-microvolt = <2704000>; 183 regulator-max-microvolt = <2704000>; 184 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 185 }; 186 187 vreg_l14a_1p8: ldo14 { 188 regulator-min-microvolt = <1800000>; 189 regulator-max-microvolt = <1880000>; 190 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 191 }; 192 193 vreg_l15a_1p7: ldo15 { 194 regulator-min-microvolt = <1704000>; 195 regulator-max-microvolt = <1704000>; 196 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 197 }; 198 199 vreg_l16a_2p7: ldo16 { 200 regulator-min-microvolt = <2704000>; 201 regulator-max-microvolt = <2960000>; 202 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 203 }; 204 205 vreg_l17a_3p0: ldo17 { 206 regulator-min-microvolt = <2856000>; 207 regulator-max-microvolt = <3008000>; 208 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 209 }; 210 211 vreg_l18a_0p8: ldo18 { 212 regulator-min-microvolt = <880000>; 213 regulator-max-microvolt = <880000>; 214 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 215 }; 216 }; 217 218 pm8150l-rpmh-regulators { 219 compatible = "qcom,pm8150l-rpmh-regulators"; 220 qcom,pmic-id = "c"; 221 222 vdd-s1-supply = <&vph_pwr>; 223 vdd-s2-supply = <&vph_pwr>; 224 vdd-s3-supply = <&vph_pwr>; 225 vdd-s4-supply = <&vph_pwr>; 226 vdd-s5-supply = <&vph_pwr>; 227 vdd-s6-supply = <&vph_pwr>; 228 vdd-s7-supply = <&vph_pwr>; 229 vdd-s8-supply = <&vph_pwr>; 230 231 vdd-l1-l8-supply = <&vreg_s4a_1p8>; 232 vdd-l2-l3-supply = <&vreg_s8c_1p3>; 233 vdd-l4-l5-l6-supply = <&vreg_bob>; 234 vdd-l7-l11-supply = <&vreg_bob>; 235 vdd-l9-l10-supply = <&vreg_bob>; 236 237 vdd-bob-supply = <&vph_pwr>; 238 vdd-flash-supply = <&vreg_bob>; 239 vdd-rgb-supply = <&vreg_bob>; 240 241 vreg_bob: bob { 242 regulator-min-microvolt = <3008000>; 243 regulator-max-microvolt = <4000000>; 244 regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>; 245 regulator-allow-bypass; 246 }; 247 248 vreg_s8c_1p3: smps8 { 249 regulator-min-microvolt = <1352000>; 250 regulator-max-microvolt = <1352000>; 251 }; 252 253 vreg_l1c_1p8: ldo1 { 254 regulator-min-microvolt = <1800000>; 255 regulator-max-microvolt = <1800000>; 256 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 257 }; 258 259 vdda_wcss_adcdac_1: 260 vdda_wcss_adcdac_22: 261 vreg_l2c_1p3: ldo2 { 262 regulator-min-microvolt = <1304000>; 263 regulator-max-microvolt = <1304000>; 264 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 265 }; 266 267 vdda_hv_ebi0: 268 vdda_hv_ebi1: 269 vdda_hv_ebi2: 270 vdda_hv_ebi3: 271 vdda_hv_refgen0: 272 vdda_qlink_hv_ck: 273 vreg_l3c_1p2: ldo3 { 274 regulator-min-microvolt = <1200000>; 275 regulator-max-microvolt = <1200000>; 276 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 277 }; 278 279 vddpx_5: 280 vreg_l4c_1p8: ldo4 { 281 regulator-min-microvolt = <1704000>; 282 regulator-max-microvolt = <2928000>; 283 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 284 }; 285 286 vddpx_6: 287 vreg_l5c_1p8: ldo5 { 288 regulator-min-microvolt = <1704000>; 289 regulator-max-microvolt = <2928000>; 290 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 291 }; 292 293 vddpx_2: 294 vreg_l6c_2p9: ldo6 { 295 regulator-min-microvolt = <1800000>; 296 regulator-max-microvolt = <2960000>; 297 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 298 }; 299 300 vreg_l7c_3p0: ldo7 { 301 regulator-min-microvolt = <2856000>; 302 regulator-max-microvolt = <3104000>; 303 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 304 }; 305 306 vreg_l8c_1p8: ldo8 { 307 regulator-min-microvolt = <1800000>; 308 regulator-max-microvolt = <1800000>; 309 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 310 }; 311 312 vreg_l9c_2p9: ldo9 { 313 regulator-min-microvolt = <2704000>; 314 regulator-max-microvolt = <2960000>; 315 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 316 }; 317 318 vreg_l10c_3p3: ldo10 { 319 regulator-min-microvolt = <3000000>; 320 regulator-max-microvolt = <3312000>; 321 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 322 }; 323 324 vreg_l11c_3p3: ldo11 { 325 regulator-min-microvolt = <3000000>; 326 regulator-max-microvolt = <3312000>; 327 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 328 }; 329 }; 330 331 pm8009-rpmh-regulators { 332 compatible = "qcom,pm8009-rpmh-regulators"; 333 qcom,pmic-id = "f"; 334 335 vdd-s1-supply = <&vph_pwr>; 336 vdd-s2-supply = <&vreg_bob>; 337 338 vdd-l2-supply = <&vreg_s8c_1p3>; 339 vdd-l5-l6-supply = <&vreg_bob>; 340 341 vreg_l2f_1p2: ldo2 { 342 regulator-min-microvolt = <1200000>; 343 regulator-max-microvolt = <1200000>; 344 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 345 }; 346 347 vreg_l5f_2p85: ldo5 { 348 regulator-min-microvolt = <2800000>; 349 regulator-max-microvolt = <2800000>; 350 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 351 }; 352 353 vreg_l6f_2p85: ldo6 { 354 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 355 regulator-min-microvolt = <2856000>; 356 regulator-max-microvolt = <2856000>; 357 }; 358 }; 359}; 360 361&gmu { 362 status = "okay"; 363}; 364 365&gpu { 366 status = "okay"; 367}; 368 369&pon_pwrkey { 370 status = "okay"; 371}; 372 373&pon_resin { 374 status = "okay"; 375 376 linux,code = <KEY_VOLUMEDOWN>; 377}; 378 379&qupv3_id_1 { 380 status = "okay"; 381}; 382 383&remoteproc_adsp { 384 status = "okay"; 385 386 firmware-name = "qcom/sm8150/adsp.mbn"; 387}; 388 389&remoteproc_cdsp { 390 status = "okay"; 391 392 firmware-name = "qcom/sm8150/cdsp.mbn"; 393}; 394 395&remoteproc_slpi { 396 status = "okay"; 397 398 firmware-name = "qcom/sm8150/slpi.mbn"; 399}; 400 401&tlmm { 402 gpio-reserved-ranges = <0 4>, <126 4>; 403}; 404 405&uart2 { 406 status = "okay"; 407}; 408 409&ufs_mem_hc { 410 status = "okay"; 411 412 reset-gpios = <&tlmm 175 GPIO_ACTIVE_LOW>; 413 414 vcc-supply = <&vreg_l10a_2p5>; 415 vcc-max-microamp = <750000>; 416 vccq-supply = <&vreg_l9a_1p2>; 417 vccq-max-microamp = <700000>; 418 vccq2-supply = <&vreg_s4a_1p8>; 419 vccq2-max-microamp = <750000>; 420}; 421 422&ufs_mem_phy { 423 status = "okay"; 424 425 vdda-phy-supply = <&vdda_ufs_2ln_core_1>; 426 vdda-max-microamp = <90200>; 427 vdda-pll-supply = <&vreg_l3c_1p2>; 428 vdda-pll-max-microamp = <19000>; 429}; 430 431&usb_1_hsphy { 432 status = "okay"; 433 vdda-pll-supply = <&vdd_usb_hs_core>; 434 vdda33-supply = <&vdda_usb_hs_3p1>; 435 vdda18-supply = <&vdda_usb_hs_1p8>; 436}; 437 438&usb_2_hsphy { 439 status = "okay"; 440 vdda-pll-supply = <&vdd_usb_hs_core>; 441 vdda33-supply = <&vdda_usb_hs_3p1>; 442 vdda18-supply = <&vdda_usb_hs_1p8>; 443}; 444 445&usb_1_qmpphy { 446 status = "okay"; 447 vdda-phy-supply = <&vreg_l3c_1p2>; 448 vdda-pll-supply = <&vreg_l18a_0p8>; 449}; 450 451&usb_2_qmpphy { 452 status = "okay"; 453 vdda-phy-supply = <&vreg_l3c_1p2>; 454 vdda-pll-supply = <&vreg_l5a_0p875>; 455}; 456 457&usb_1 { 458 status = "okay"; 459}; 460 461&usb_2 { 462 status = "okay"; 463}; 464 465&usb_1_dwc3 { 466 dr_mode = "peripheral"; 467}; 468 469&usb_2_dwc3 { 470 dr_mode = "host"; 471}; 472