1// SPDX-License-Identifier: BSD-3-Clause 2/* 3 * Copyright (c) 2020-2021, Linaro Limited 4 */ 5 6/dts-v1/; 7 8#include <dt-bindings/regulator/qcom,rpmh-regulator.h> 9#include "sm8350.dtsi" 10 11/ { 12 model = "Qualcomm Technologies, Inc. SM8350 HDK"; 13 compatible = "qcom,sm8350-hdk", "qcom,sm8350"; 14 15 aliases { 16 serial0 = &uart2; 17 }; 18 19 chosen { 20 stdout-path = "serial0:115200n8"; 21 }; 22 23 vph_pwr: vph-pwr-regulator { 24 compatible = "regulator-fixed"; 25 regulator-name = "vph_pwr"; 26 regulator-min-microvolt = <3700000>; 27 regulator-max-microvolt = <3700000>; 28 29 regulator-always-on; 30 regulator-boot-on; 31 }; 32}; 33 34&adsp { 35 status = "okay"; 36 firmware-name = "qcom/sm8350/adsp.mbn"; 37}; 38 39&apps_rsc { 40 pm8350-rpmh-regulators { 41 compatible = "qcom,pm8350-rpmh-regulators"; 42 qcom,pmic-id = "b"; 43 44 vdd-s1-supply = <&vph_pwr>; 45 vdd-s2-supply = <&vph_pwr>; 46 vdd-s3-supply = <&vph_pwr>; 47 vdd-s4-supply = <&vph_pwr>; 48 vdd-s5-supply = <&vph_pwr>; 49 vdd-s6-supply = <&vph_pwr>; 50 vdd-s7-supply = <&vph_pwr>; 51 vdd-s8-supply = <&vph_pwr>; 52 vdd-s9-supply = <&vph_pwr>; 53 vdd-s10-supply = <&vph_pwr>; 54 vdd-s11-supply = <&vph_pwr>; 55 vdd-s12-supply = <&vph_pwr>; 56 57 vdd-l1-l4-supply = <&vreg_s11b_0p95>; 58 vdd-l2-l7-supply = <&vreg_bob>; 59 vdd-l3-l5-supply = <&vreg_bob>; 60 vdd-l6-l9-l10-supply = <&vreg_s11b_0p95>; 61 62 vreg_s10b_1p8: smps10 { 63 regulator-name = "vreg_s10b_1p8"; 64 regulator-min-microvolt = <1800000>; 65 regulator-max-microvolt = <1800000>; 66 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 67 }; 68 69 vreg_s11b_0p95: smps11 { 70 regulator-name = "vreg_s11b_0p95"; 71 regulator-min-microvolt = <952000>; 72 regulator-max-microvolt = <952000>; 73 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 74 }; 75 76 vreg_s12b_1p25: smps12 { 77 regulator-name = "vreg_s12b_1p25"; 78 regulator-min-microvolt = <1256000>; 79 regulator-max-microvolt = <1256000>; 80 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 81 }; 82 83 vreg_l1b_0p88: ldo1 { 84 regulator-name = "vreg_l1b_0p88"; 85 regulator-min-microvolt = <912000>; 86 regulator-max-microvolt = <920000>; 87 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 88 }; 89 90 vreg_l2b_3p07: ldo2 { 91 regulator-name = "vreg_l2b_3p07"; 92 regulator-min-microvolt = <3072000>; 93 regulator-max-microvolt = <3072000>; 94 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 95 }; 96 97 vreg_l3b_0p9: ldo3 { 98 regulator-name = "vreg_l3b_0p9"; 99 regulator-min-microvolt = <904000>; 100 regulator-max-microvolt = <904000>; 101 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 102 }; 103 104 vreg_l5b_0p88: ldo5 { 105 regulator-name = "vreg_l5b_0p88"; 106 regulator-min-microvolt = <880000>; 107 regulator-max-microvolt = <888000>; 108 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 109 regulator-allow-set-load; 110 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 111 RPMH_REGULATOR_MODE_HPM>; 112 }; 113 114 vreg_l6b_1p2: ldo6 { 115 regulator-name = "vreg_l6b_1p2"; 116 regulator-min-microvolt = <1200000>; 117 regulator-max-microvolt = <1208000>; 118 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 119 regulator-allow-set-load; 120 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 121 RPMH_REGULATOR_MODE_HPM>; 122 }; 123 124 vreg_l7b_2p96: ldo7 { 125 regulator-name = "vreg_l7b_2p96"; 126 regulator-min-microvolt = <2504000>; 127 regulator-max-microvolt = <2504000>; 128 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 129 regulator-allow-set-load; 130 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 131 RPMH_REGULATOR_MODE_HPM>; 132 }; 133 134 vreg_l9b_1p2: ldo9 { 135 regulator-name = "vreg_l9b_1p2"; 136 regulator-min-microvolt = <1200000>; 137 regulator-max-microvolt = <1200000>; 138 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 139 regulator-allow-set-load; 140 regulator-allowed-modes = <RPMH_REGULATOR_MODE_LPM 141 RPMH_REGULATOR_MODE_HPM>; 142 }; 143 }; 144 145 pm8350c-rpmh-regulators { 146 compatible = "qcom,pm8350c-rpmh-regulators"; 147 qcom,pmic-id = "c"; 148 149 vdd-s1-supply = <&vph_pwr>; 150 vdd-s2-supply = <&vph_pwr>; 151 vdd-s3-supply = <&vph_pwr>; 152 vdd-s4-supply = <&vph_pwr>; 153 vdd-s5-supply = <&vph_pwr>; 154 vdd-s6-supply = <&vph_pwr>; 155 vdd-s7-supply = <&vph_pwr>; 156 vdd-s8-supply = <&vph_pwr>; 157 vdd-s9-supply = <&vph_pwr>; 158 vdd-s10-supply = <&vph_pwr>; 159 160 vdd-l1-l12-supply = <&vreg_s1c_1p86>; 161 vdd-l2-l8-supply = <&vreg_s1c_1p86>; 162 vdd-l3-l4-l5-l7-l13-supply = <&vreg_bob>; 163 vdd-l6-l9-l11-supply = <&vreg_bob>; 164 vdd-l10-supply = <&vreg_s12b_1p25>; 165 166 vdd-bob-supply = <&vph_pwr>; 167 168 vreg_s1c_1p86: smps1 { 169 regulator-name = "vreg_s1c_1p86"; 170 regulator-min-microvolt = <1856000>; 171 regulator-max-microvolt = <1880000>; 172 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 173 }; 174 175 vreg_bob: bob { 176 regulator-name = "vreg_bob"; 177 regulator-min-microvolt = <3008000>; 178 regulator-max-microvolt = <3960000>; 179 regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>; 180 }; 181 182 vreg_l1c_1p8: ldo1 { 183 regulator-name = "vreg_l1c_1p8"; 184 regulator-min-microvolt = <1800000>; 185 regulator-max-microvolt = <1800000>; 186 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 187 }; 188 189 vreg_l2c_1p8: ldo2 { 190 regulator-name = "vreg_l2c_1p8"; 191 regulator-min-microvolt = <1800000>; 192 regulator-max-microvolt = <1800000>; 193 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 194 }; 195 196 vreg_l6c_1p8: ldo6 { 197 regulator-name = "vreg_l6c_1p8"; 198 regulator-min-microvolt = <1800000>; 199 regulator-max-microvolt = <2960000>; 200 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 201 }; 202 203 vreg_l9c_2p96: ldo9 { 204 regulator-name = "vreg_l9c_2p96"; 205 regulator-min-microvolt = <2960000>; 206 regulator-max-microvolt = <3008000>; 207 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 208 }; 209 210 vreg_l10c_1p2: ldo10 { 211 regulator-name = "vreg_l10c_1p2"; 212 regulator-min-microvolt = <1200000>; 213 regulator-max-microvolt = <1200000>; 214 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>; 215 }; 216 }; 217}; 218 219&cdsp { 220 status = "okay"; 221 firmware-name = "qcom/sm8350/cdsp.mbn"; 222}; 223 224&gpi_dma1 { 225 status = "okay"; 226}; 227 228&mpss { 229 status = "okay"; 230 firmware-name = "qcom/sm8350/modem.mbn"; 231}; 232 233&qupv3_id_0 { 234 status = "okay"; 235}; 236 237&slpi { 238 status = "okay"; 239 firmware-name = "qcom/sm8350/slpi.mbn"; 240}; 241 242&tlmm { 243 gpio-reserved-ranges = <52 8>; 244}; 245 246&uart2 { 247 status = "okay"; 248}; 249 250&ufs_mem_hc { 251 status = "okay"; 252 253 reset-gpios = <&tlmm 203 GPIO_ACTIVE_LOW>; 254 255 vcc-supply = <&vreg_l7b_2p96>; 256 vcc-max-microamp = <800000>; 257 vccq-supply = <&vreg_l9b_1p2>; 258 vccq-max-microamp = <900000>; 259}; 260 261&ufs_mem_phy { 262 status = "okay"; 263 264 vdda-phy-supply = <&vreg_l5b_0p88>; 265 vdda-pll-supply = <&vreg_l6b_1p2>; 266}; 267 268&usb_1 { 269 status = "okay"; 270}; 271 272&usb_1_dwc3 { 273 /* TODO: Define USB-C connector properly */ 274 dr_mode = "peripheral"; 275}; 276 277&usb_1_hsphy { 278 status = "okay"; 279 280 vdda-pll-supply = <&vreg_l5b_0p88>; 281 vdda18-supply = <&vreg_l1c_1p8>; 282 vdda33-supply = <&vreg_l2b_3p07>; 283}; 284 285&usb_1_qmpphy { 286 status = "okay"; 287 288 vdda-phy-supply = <&vreg_l6b_1p2>; 289 vdda-pll-supply = <&vreg_l1b_0p88>; 290}; 291 292&usb_2 { 293 status = "okay"; 294}; 295 296&usb_2_dwc3 { 297 dr_mode = "host"; 298 299 pinctrl-names = "default"; 300 pinctrl-0 = <&usb_hub_enabled_state>; 301}; 302 303&usb_2_hsphy { 304 status = "okay"; 305 306 vdda-pll-supply = <&vreg_l5b_0p88>; 307 vdda18-supply = <&vreg_l1c_1p8>; 308 vdda33-supply = <&vreg_l2b_3p07>; 309}; 310 311&usb_2_qmpphy { 312 status = "okay"; 313 314 vdda-phy-supply = <&vreg_l6b_1p2>; 315 vdda-pll-supply = <&vreg_l5b_0p88>; 316}; 317 318/* PINCTRL - additions to nodes defined in sm8350.dtsi */ 319 320&tlmm { 321 usb_hub_enabled_state: usb-hub-enabled-state { 322 pins = "gpio42"; 323 function = "gpio"; 324 325 drive-strength = <2>; 326 output-low; 327 }; 328}; 329