1 // SPDX-License-Identifier: BSD-3-Clause 1 // SPDX-License-Identifier: BSD-3-Clause 2 /* 2 /* 3 * Copyright (c) 2020, Linaro Limited 3 * Copyright (c) 2020, Linaro Limited 4 */ 4 */ 5 5 6 /dts-v1/; 6 /dts-v1/; 7 7 8 #include <dt-bindings/regulator/qcom,rpmh-regu 8 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 9 #include "sm8350.dtsi" 9 #include "sm8350.dtsi" 10 #include "pm8350.dtsi" << 11 #include "pm8350b.dtsi" << 12 #include "pm8350c.dtsi" << 13 #include "pmk8350.dtsi" << 14 #include "pmr735a.dtsi" << 15 #include "pmr735b.dtsi" << 16 10 17 / { 11 / { 18 model = "Qualcomm Technologies, Inc. s 12 model = "Qualcomm Technologies, Inc. sm8350 MTP"; 19 compatible = "qcom,sm8350-mtp", "qcom, 13 compatible = "qcom,sm8350-mtp", "qcom,sm8350"; 20 chassis-type = "handset"; << 21 14 22 aliases { 15 aliases { 23 serial0 = &uart2; 16 serial0 = &uart2; 24 }; 17 }; 25 18 26 chosen { 19 chosen { 27 stdout-path = "serial0:115200n 20 stdout-path = "serial0:115200n8"; 28 }; 21 }; 29 22 30 vph_pwr: vph-pwr-regulator { 23 vph_pwr: vph-pwr-regulator { 31 compatible = "regulator-fixed" 24 compatible = "regulator-fixed"; 32 regulator-name = "vph_pwr"; 25 regulator-name = "vph_pwr"; 33 regulator-min-microvolt = <370 26 regulator-min-microvolt = <3700000>; 34 regulator-max-microvolt = <370 27 regulator-max-microvolt = <3700000>; 35 28 36 regulator-always-on; 29 regulator-always-on; 37 regulator-boot-on; 30 regulator-boot-on; 38 }; 31 }; 39 }; 32 }; 40 33 41 &adsp { << 42 status = "okay"; << 43 firmware-name = "qcom/sm8350/adsp.mbn" << 44 }; << 45 << 46 &apps_rsc { 34 &apps_rsc { 47 regulators-0 { !! 35 pm8350-rpmh-regulators { 48 compatible = "qcom,pm8350-rpmh 36 compatible = "qcom,pm8350-rpmh-regulators"; 49 qcom,pmic-id = "b"; 37 qcom,pmic-id = "b"; 50 38 51 vdd-s1-supply = <&vph_pwr>; 39 vdd-s1-supply = <&vph_pwr>; 52 vdd-s2-supply = <&vph_pwr>; 40 vdd-s2-supply = <&vph_pwr>; 53 vdd-s3-supply = <&vph_pwr>; 41 vdd-s3-supply = <&vph_pwr>; 54 vdd-s4-supply = <&vph_pwr>; 42 vdd-s4-supply = <&vph_pwr>; 55 vdd-s5-supply = <&vph_pwr>; 43 vdd-s5-supply = <&vph_pwr>; 56 vdd-s6-supply = <&vph_pwr>; 44 vdd-s6-supply = <&vph_pwr>; 57 vdd-s7-supply = <&vph_pwr>; 45 vdd-s7-supply = <&vph_pwr>; 58 vdd-s8-supply = <&vph_pwr>; 46 vdd-s8-supply = <&vph_pwr>; 59 vdd-s9-supply = <&vph_pwr>; 47 vdd-s9-supply = <&vph_pwr>; 60 vdd-s10-supply = <&vph_pwr>; 48 vdd-s10-supply = <&vph_pwr>; 61 vdd-s11-supply = <&vph_pwr>; 49 vdd-s11-supply = <&vph_pwr>; 62 vdd-s12-supply = <&vph_pwr>; 50 vdd-s12-supply = <&vph_pwr>; 63 51 64 vdd-l1-l4-supply = <&vreg_s11b 52 vdd-l1-l4-supply = <&vreg_s11b_0p95>; 65 vdd-l2-l7-supply = <&vreg_bob> 53 vdd-l2-l7-supply = <&vreg_bob>; 66 vdd-l3-l5-supply = <&vreg_bob> 54 vdd-l3-l5-supply = <&vreg_bob>; 67 vdd-l6-l9-l10-supply = <&vreg_ 55 vdd-l6-l9-l10-supply = <&vreg_s11b_0p95>; 68 vdd-l8-supply = <&vreg_s2c_0p8 56 vdd-l8-supply = <&vreg_s2c_0p8>; 69 57 70 vreg_s10b_1p8: smps10 { 58 vreg_s10b_1p8: smps10 { 71 regulator-name = "vreg << 72 regulator-min-microvol 59 regulator-min-microvolt = <1800000>; 73 regulator-max-microvol 60 regulator-max-microvolt = <1800000>; 74 }; 61 }; 75 62 76 vreg_s11b_0p95: smps11 { 63 vreg_s11b_0p95: smps11 { 77 regulator-name = "vreg << 78 regulator-min-microvol 64 regulator-min-microvolt = <752000>; 79 regulator-max-microvol 65 regulator-max-microvolt = <1000000>; 80 }; 66 }; 81 67 82 vreg_s12b_1p25: smps12 { 68 vreg_s12b_1p25: smps12 { 83 regulator-name = "vreg << 84 regulator-min-microvol 69 regulator-min-microvolt = <1224000>; 85 regulator-max-microvol 70 regulator-max-microvolt = <1360000>; 86 }; 71 }; 87 72 88 vreg_l1b_0p88: ldo1 { 73 vreg_l1b_0p88: ldo1 { 89 regulator-name = "vreg << 90 regulator-min-microvol 74 regulator-min-microvolt = <912000>; 91 regulator-max-microvol 75 regulator-max-microvolt = <920000>; 92 regulator-initial-mode 76 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 93 }; 77 }; 94 78 95 vreg_l2b_3p07: ldo2 { 79 vreg_l2b_3p07: ldo2 { 96 regulator-name = "vreg << 97 regulator-min-microvol 80 regulator-min-microvolt = <3072000>; 98 regulator-max-microvol 81 regulator-max-microvolt = <3072000>; 99 regulator-initial-mode 82 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 100 }; 83 }; 101 84 102 vreg_l3b_0p9: ldo3 { 85 vreg_l3b_0p9: ldo3 { 103 regulator-name = "vreg << 104 regulator-min-microvol 86 regulator-min-microvolt = <904000>; 105 regulator-max-microvol 87 regulator-max-microvolt = <904000>; 106 regulator-initial-mode 88 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 107 }; 89 }; 108 90 109 vreg_l5b_0p88: ldo5 { 91 vreg_l5b_0p88: ldo5 { 110 regulator-name = "vreg << 111 regulator-min-microvol 92 regulator-min-microvolt = <880000>; 112 regulator-max-microvol 93 regulator-max-microvolt = <888000>; 113 regulator-initial-mode 94 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 114 }; 95 }; 115 96 116 vreg_l6b_1p2: ldo6 { 97 vreg_l6b_1p2: ldo6 { 117 regulator-name = "vreg << 118 regulator-min-microvol 98 regulator-min-microvolt = <1200000>; 119 regulator-max-microvol 99 regulator-max-microvolt = <1208000>; 120 regulator-initial-mode 100 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 121 }; 101 }; 122 102 123 vreg_l7b_2p96: ldo7 { 103 vreg_l7b_2p96: ldo7 { 124 regulator-name = "vreg << 125 regulator-min-microvol 104 regulator-min-microvolt = <2400000>; 126 regulator-max-microvol 105 regulator-max-microvolt = <3008000>; 127 regulator-initial-mode 106 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 128 }; 107 }; 129 108 130 vreg_l9b_1p2: ldo9 { 109 vreg_l9b_1p2: ldo9 { 131 regulator-name = "vreg << 132 regulator-min-microvol 110 regulator-min-microvolt = <1200000>; 133 regulator-max-microvol 111 regulator-max-microvolt = <1200000>; 134 regulator-initial-mode 112 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 135 }; 113 }; 136 }; 114 }; 137 115 138 regulators-1 { !! 116 pm8350c-rpmh-regulators { 139 compatible = "qcom,pm8350c-rpm 117 compatible = "qcom,pm8350c-rpmh-regulators"; 140 qcom,pmic-id = "c"; 118 qcom,pmic-id = "c"; 141 119 142 vdd-s1-supply = <&vph_pwr>; 120 vdd-s1-supply = <&vph_pwr>; 143 vdd-s2-supply = <&vph_pwr>; 121 vdd-s2-supply = <&vph_pwr>; 144 vdd-s3-supply = <&vph_pwr>; 122 vdd-s3-supply = <&vph_pwr>; 145 vdd-s4-supply = <&vph_pwr>; 123 vdd-s4-supply = <&vph_pwr>; 146 vdd-s5-supply = <&vph_pwr>; 124 vdd-s5-supply = <&vph_pwr>; 147 vdd-s6-supply = <&vph_pwr>; 125 vdd-s6-supply = <&vph_pwr>; 148 vdd-s7-supply = <&vph_pwr>; 126 vdd-s7-supply = <&vph_pwr>; 149 vdd-s8-supply = <&vph_pwr>; 127 vdd-s8-supply = <&vph_pwr>; 150 vdd-s9-supply = <&vph_pwr>; 128 vdd-s9-supply = <&vph_pwr>; 151 vdd-s10-supply = <&vph_pwr>; 129 vdd-s10-supply = <&vph_pwr>; 152 130 153 vdd-l1-l12-supply = <&vreg_s1c 131 vdd-l1-l12-supply = <&vreg_s1c_1p86>; 154 vdd-l2-l8-supply = <&vreg_s1c_ 132 vdd-l2-l8-supply = <&vreg_s1c_1p86>; 155 vdd-l3-l4-l5-l7-l13-supply = < 133 vdd-l3-l4-l5-l7-l13-supply = <&vreg_bob>; 156 vdd-l6-l9-l11-supply = <&vreg_ 134 vdd-l6-l9-l11-supply = <&vreg_bob>; 157 vdd-l10-supply = <&vreg_s12b_1 135 vdd-l10-supply = <&vreg_s12b_1p25>; 158 136 159 vdd-bob-supply = <&vph_pwr>; 137 vdd-bob-supply = <&vph_pwr>; 160 138 161 vreg_s1c_1p86: smps1 { 139 vreg_s1c_1p86: smps1 { 162 regulator-name = "vreg << 163 regulator-min-microvol 140 regulator-min-microvolt = <1800000>; 164 regulator-max-microvol 141 regulator-max-microvolt = <1952000>; 165 }; 142 }; 166 143 167 vreg_s2c_0p8: smps2 { 144 vreg_s2c_0p8: smps2 { 168 regulator-name = "vreg << 169 regulator-min-microvol 145 regulator-min-microvolt = <640000>; 170 regulator-max-microvol 146 regulator-max-microvolt = <1000000>; 171 }; 147 }; 172 148 173 vreg_s10c_1p05: smps10 { 149 vreg_s10c_1p05: smps10 { 174 regulator-name = "vreg << 175 regulator-min-microvol 150 regulator-min-microvolt = <1048000>; 176 regulator-max-microvol 151 regulator-max-microvolt = <1128000>; 177 }; 152 }; 178 153 179 vreg_bob: bob { 154 vreg_bob: bob { 180 regulator-name = "vreg << 181 regulator-min-microvol 155 regulator-min-microvolt = <3008000>; 182 regulator-max-microvol 156 regulator-max-microvolt = <3960000>; 183 regulator-initial-mode 157 regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>; 184 }; 158 }; 185 159 186 vreg_l1c_1p8: ldo1 { 160 vreg_l1c_1p8: ldo1 { 187 regulator-name = "vreg << 188 regulator-min-microvol 161 regulator-min-microvolt = <1800000>; 189 regulator-max-microvol 162 regulator-max-microvolt = <1800000>; 190 regulator-initial-mode 163 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 191 }; 164 }; 192 165 193 vreg_l2c_1p8: ldo2 { 166 vreg_l2c_1p8: ldo2 { 194 regulator-name = "vreg << 195 regulator-min-microvol 167 regulator-min-microvolt = <1800000>; 196 regulator-max-microvol 168 regulator-max-microvolt = <1800000>; 197 regulator-initial-mode 169 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 198 }; 170 }; 199 171 200 vreg_l3c_3p0: ldo3 { 172 vreg_l3c_3p0: ldo3 { 201 regulator-name = "vreg << 202 regulator-min-microvol 173 regulator-min-microvolt = <3008000>; 203 regulator-max-microvol 174 regulator-max-microvolt = <3008000>; 204 regulator-initial-mode 175 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 205 }; 176 }; 206 177 207 vreg_l4c_uim1: ldo4 { 178 vreg_l4c_uim1: ldo4 { 208 regulator-name = "vreg << 209 regulator-min-microvol 179 regulator-min-microvolt = <1704000>; 210 regulator-max-microvol 180 regulator-max-microvolt = <3000000>; 211 regulator-initial-mode 181 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 212 }; 182 }; 213 183 214 vreg_l5c_uim2: ldo5 { 184 vreg_l5c_uim2: ldo5 { 215 regulator-name = "vreg << 216 regulator-min-microvol 185 regulator-min-microvolt = <1704000>; 217 regulator-max-microvol 186 regulator-max-microvolt = <3000000>; 218 regulator-initial-mode 187 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 219 }; 188 }; 220 189 221 vreg_l6c_1p8: ldo6 { 190 vreg_l6c_1p8: ldo6 { 222 regulator-name = "vreg << 223 regulator-min-microvol 191 regulator-min-microvolt = <1800000>; 224 regulator-max-microvol 192 regulator-max-microvolt = <2960000>; 225 regulator-initial-mode 193 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 226 }; 194 }; 227 195 228 vreg_l7c_3p0: ldo7 { 196 vreg_l7c_3p0: ldo7 { 229 regulator-name = "vreg << 230 regulator-min-microvol 197 regulator-min-microvolt = <3008000>; 231 regulator-max-microvol 198 regulator-max-microvolt = <3008000>; 232 regulator-initial-mode 199 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 233 }; 200 }; 234 201 235 vreg_l8c_1p8: ldo8 { 202 vreg_l8c_1p8: ldo8 { 236 regulator-name = "vreg << 237 regulator-min-microvol 203 regulator-min-microvolt = <1800000>; 238 regulator-max-microvol 204 regulator-max-microvolt = <1800000>; 239 regulator-initial-mode 205 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 240 }; 206 }; 241 207 242 vreg_l9c_2p96: ldo9 { 208 vreg_l9c_2p96: ldo9 { 243 regulator-name = "vreg << 244 regulator-min-microvol 209 regulator-min-microvolt = <2960000>; 245 regulator-max-microvol 210 regulator-max-microvolt = <3008000>; 246 regulator-initial-mode 211 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 247 }; 212 }; 248 213 249 vreg_l10c_1p2: ldo10 { 214 vreg_l10c_1p2: ldo10 { 250 regulator-name = "vreg << 251 regulator-min-microvol 215 regulator-min-microvolt = <1200000>; 252 regulator-max-microvol 216 regulator-max-microvolt = <1200000>; 253 regulator-initial-mode 217 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 254 }; 218 }; 255 219 256 vreg_l11c_2p96: ldo11 { 220 vreg_l11c_2p96: ldo11 { 257 regulator-name = "vreg << 258 regulator-min-microvol 221 regulator-min-microvolt = <2400000>; 259 regulator-max-microvol 222 regulator-max-microvolt = <3008000>; 260 regulator-initial-mode 223 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 261 }; 224 }; 262 225 263 vreg_l12c_1p8: ldo12 { 226 vreg_l12c_1p8: ldo12 { 264 regulator-name = "vreg << 265 regulator-min-microvol 227 regulator-min-microvolt = <1800000>; 266 regulator-max-microvol 228 regulator-max-microvolt = <2000000>; 267 regulator-initial-mode 229 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 268 }; 230 }; 269 231 270 vreg_l13c_3p0: ldo13 { 232 vreg_l13c_3p0: ldo13 { 271 regulator-name = "vreg << 272 regulator-min-microvol 233 regulator-min-microvolt = <3000000>; 273 regulator-max-microvol 234 regulator-max-microvolt = <3000000>; 274 regulator-initial-mode 235 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 275 }; 236 }; 276 }; 237 }; 277 }; 238 }; 278 239 279 &cdsp { !! 240 &qupv3_id_1 { 280 status = "okay"; << 281 firmware-name = "qcom/sm8350/cdsp.mbn" << 282 }; << 283 << 284 &mpss { << 285 status = "okay"; << 286 firmware-name = "qcom/sm8350/modem.mbn << 287 }; << 288 << 289 &pmk8350_rtc { << 290 status = "okay"; << 291 }; << 292 << 293 &pon_pwrkey { << 294 status = "okay"; << 295 }; << 296 << 297 &pon_resin { << 298 status = "okay"; 241 status = "okay"; 299 linux,code = <KEY_VOLUMEDOWN>; << 300 }; << 301 << 302 &qupv3_id_0 { << 303 status = "okay"; << 304 }; << 305 << 306 &slpi { << 307 status = "okay"; << 308 firmware-name = "qcom/sm8350/slpi.mbn" << 309 }; 242 }; 310 243 311 &tlmm { 244 &tlmm { 312 gpio-reserved-ranges = <52 8>; 245 gpio-reserved-ranges = <52 8>; 313 }; 246 }; 314 247 315 &uart2 { 248 &uart2 { 316 status = "okay"; << 317 }; << 318 << 319 &ufs_mem_hc { << 320 status = "okay"; << 321 << 322 reset-gpios = <&tlmm 203 GPIO_ACTIVE_L << 323 << 324 vcc-supply = <&vreg_l7b_2p96>; << 325 vcc-max-microamp = <800000>; << 326 vccq-supply = <&vreg_l9b_1p2>; << 327 vccq-max-microamp = <900000>; << 328 vdd-hba-supply = <&vreg_l9b_1p2>; << 329 }; << 330 << 331 &ufs_mem_phy { << 332 status = "okay"; << 333 << 334 vdda-phy-supply = <&vreg_l5b_0p88>; << 335 vdda-pll-supply = <&vreg_l6b_1p2>; << 336 }; << 337 << 338 &usb_1 { << 339 status = "okay"; << 340 }; << 341 << 342 &usb_1_dwc3 { << 343 dr_mode = "peripheral"; << 344 }; << 345 << 346 &usb_1_hsphy { << 347 status = "okay"; << 348 << 349 vdda-pll-supply = <&vreg_l5b_0p88>; << 350 vdda18-supply = <&vreg_l1c_1p8>; << 351 vdda33-supply = <&vreg_l2b_3p07>; << 352 }; << 353 << 354 &usb_1_qmpphy { << 355 status = "okay"; << 356 << 357 vdda-phy-supply = <&vreg_l6b_1p2>; << 358 vdda-pll-supply = <&vreg_l1b_0p88>; << 359 }; << 360 << 361 &usb_2 { << 362 status = "okay"; << 363 }; << 364 << 365 &usb_2_hsphy { << 366 status = "okay"; << 367 << 368 vdda-pll-supply = <&vreg_l5b_0p88>; << 369 vdda18-supply = <&vreg_l1c_1p8>; << 370 vdda33-supply = <&vreg_l2b_3p07>; << 371 }; << 372 << 373 &usb_2_qmpphy { << 374 status = "okay"; << 375 << 376 vdda-phy-supply = <&vreg_l6b_1p2>; << 377 vdda-pll-supply = <&vreg_l5b_0p88>; << 378 }; << 379 << 380 &ipa { << 381 qcom,gsi-loader = "self"; << 382 memory-region = <&pil_ipa_fw_mem>; << 383 status = "okay"; 249 status = "okay"; 384 }; 250 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.