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