1// SPDX-License-Identifier: BSD-3-Clause 2/* 3 * sc7280 IDP board device tree source (common between SKU1 and SKU2) 4 * 5 * Copyright (c) 2021, The Linux Foundation. All rights reserved. 6 */ 7 8#include <dt-bindings/gpio/gpio.h> 9#include <dt-bindings/iio/qcom,spmi-adc7-pmk8350.h> 10#include "sc7280.dtsi" 11#include "pm7325.dtsi" 12#include "pm8350c.dtsi" 13#include "pmk8350.dtsi" 14 15&apps_rsc { 16 pm7325-regulators { 17 compatible = "qcom,pm7325-rpmh-regulators"; 18 qcom,pmic-id = "b"; 19 20 vreg_s1b_1p8: smps1 { 21 regulator-min-microvolt = <1856000>; 22 regulator-max-microvolt = <2040000>; 23 }; 24 25 vreg_s7b_0p9: smps7 { 26 regulator-min-microvolt = <535000>; 27 regulator-max-microvolt = <1120000>; 28 }; 29 30 vreg_s8b_1p2: smps8 { 31 regulator-min-microvolt = <1256000>; 32 regulator-max-microvolt = <1500000>; 33 }; 34 35 vreg_l1b_0p8: ldo1 { 36 regulator-min-microvolt = <825000>; 37 regulator-max-microvolt = <925000>; 38 }; 39 40 vreg_l2b_3p0: ldo2 { 41 regulator-min-microvolt = <2700000>; 42 regulator-max-microvolt = <3544000>; 43 }; 44 45 vreg_l6b_1p2: ldo6 { 46 regulator-min-microvolt = <1140000>; 47 regulator-max-microvolt = <1260000>; 48 }; 49 50 vreg_l7b_2p9: ldo7 { 51 regulator-min-microvolt = <2960000>; 52 regulator-max-microvolt = <2960000>; 53 }; 54 55 vreg_l8b_0p9: ldo8 { 56 regulator-min-microvolt = <870000>; 57 regulator-max-microvolt = <970000>; 58 }; 59 60 vreg_l9b_1p2: ldo9 { 61 regulator-min-microvolt = <1080000>; 62 regulator-max-microvolt = <1304000>; 63 }; 64 65 vreg_l11b_1p7: ldo11 { 66 regulator-min-microvolt = <1504000>; 67 regulator-max-microvolt = <2000000>; 68 }; 69 70 vreg_l12b_0p8: ldo12 { 71 regulator-min-microvolt = <751000>; 72 regulator-max-microvolt = <824000>; 73 }; 74 75 vreg_l13b_0p8: ldo13 { 76 regulator-min-microvolt = <530000>; 77 regulator-max-microvolt = <824000>; 78 }; 79 80 vreg_l14b_1p2: ldo14 { 81 regulator-min-microvolt = <1080000>; 82 regulator-max-microvolt = <1304000>; 83 }; 84 85 vreg_l15b_0p8: ldo15 { 86 regulator-min-microvolt = <765000>; 87 regulator-max-microvolt = <1020000>; 88 }; 89 90 vreg_l16b_1p2: ldo16 { 91 regulator-min-microvolt = <1100000>; 92 regulator-max-microvolt = <1300000>; 93 }; 94 95 vreg_l17b_1p8: ldo17 { 96 regulator-min-microvolt = <1700000>; 97 regulator-max-microvolt = <1900000>; 98 }; 99 100 vreg_l18b_1p8: ldo18 { 101 regulator-min-microvolt = <1800000>; 102 regulator-max-microvolt = <2000000>; 103 }; 104 105 vreg_l19b_1p8: ldo19 { 106 regulator-min-microvolt = <1800000>; 107 regulator-max-microvolt = <1800000>; 108 }; 109 }; 110 111 pm8350c-regulators { 112 compatible = "qcom,pm8350c-rpmh-regulators"; 113 qcom,pmic-id = "c"; 114 115 vreg_s1c_2p2: smps1 { 116 regulator-min-microvolt = <2190000>; 117 regulator-max-microvolt = <2210000>; 118 }; 119 120 vreg_s9c_1p0: smps9 { 121 regulator-min-microvolt = <1010000>; 122 regulator-max-microvolt = <1170000>; 123 }; 124 125 vreg_l1c_1p8: ldo1 { 126 regulator-min-microvolt = <1800000>; 127 regulator-max-microvolt = <1980000>; 128 }; 129 130 vreg_l2c_1p8: ldo2 { 131 regulator-min-microvolt = <1620000>; 132 regulator-max-microvolt = <1980000>; 133 }; 134 135 vreg_l3c_3p0: ldo3 { 136 regulator-min-microvolt = <2800000>; 137 regulator-max-microvolt = <3540000>; 138 }; 139 140 vreg_l4c_1p8: ldo4 { 141 regulator-min-microvolt = <1620000>; 142 regulator-max-microvolt = <3300000>; 143 }; 144 145 vreg_l5c_1p8: ldo5 { 146 regulator-min-microvolt = <1620000>; 147 regulator-max-microvolt = <3300000>; 148 }; 149 150 vreg_l6c_2p9: ldo6 { 151 regulator-min-microvolt = <1800000>; 152 regulator-max-microvolt = <2950000>; 153 }; 154 155 vreg_l7c_3p0: ldo7 { 156 regulator-min-microvolt = <3000000>; 157 regulator-max-microvolt = <3544000>; 158 }; 159 160 vreg_l8c_1p8: ldo8 { 161 regulator-min-microvolt = <1620000>; 162 regulator-max-microvolt = <2000000>; 163 }; 164 165 vreg_l9c_2p9: ldo9 { 166 regulator-min-microvolt = <2960000>; 167 regulator-max-microvolt = <2960000>; 168 }; 169 170 vreg_l10c_0p8: ldo10 { 171 regulator-min-microvolt = <720000>; 172 regulator-max-microvolt = <1050000>; 173 }; 174 175 vreg_l11c_2p8: ldo11 { 176 regulator-min-microvolt = <2800000>; 177 regulator-max-microvolt = <3544000>; 178 }; 179 180 vreg_l12c_1p8: ldo12 { 181 regulator-min-microvolt = <1650000>; 182 regulator-max-microvolt = <2000000>; 183 }; 184 185 vreg_l13c_3p0: ldo13 { 186 regulator-min-microvolt = <2700000>; 187 regulator-max-microvolt = <3544000>; 188 }; 189 190 vreg_bob: bob { 191 regulator-min-microvolt = <3008000>; 192 regulator-max-microvolt = <3960000>; 193 }; 194 }; 195}; 196 197&ipa { 198 status = "okay"; 199 modem-init; 200}; 201 202&pmk8350_vadc { 203 pmk8350_die_temp { 204 reg = <PMK8350_ADC7_DIE_TEMP>; 205 label = "pmk8350_die_temp"; 206 qcom,pre-scaling = <1 1>; 207 }; 208}; 209 210&qupv3_id_0 { 211 status = "okay"; 212}; 213 214&sdhc_1 { 215 status = "okay"; 216 217 pinctrl-names = "default", "sleep"; 218 pinctrl-0 = <&sdc1_on>; 219 pinctrl-1 = <&sdc1_off>; 220 221 non-removable; 222 no-sd; 223 no-sdio; 224 225 vmmc-supply = <&vreg_l7b_2p9>; 226 vqmmc-supply = <&vreg_l19b_1p8>; 227}; 228 229&sdhc_2 { 230 status = "okay"; 231 232 pinctrl-names = "default", "sleep"; 233 pinctrl-0 = <&sdc2_on>; 234 pinctrl-1 = <&sdc2_off>; 235 236 vmmc-supply = <&vreg_l9c_2p9>; 237 vqmmc-supply = <&vreg_l6c_2p9>; 238 239 cd-gpios = <&tlmm 91 GPIO_ACTIVE_LOW>; 240}; 241 242&uart5 { 243 status = "okay"; 244}; 245 246&usb_1 { 247 status = "okay"; 248}; 249 250&usb_1_dwc3 { 251 dr_mode = "host"; 252}; 253 254&usb_1_hsphy { 255 status = "okay"; 256 257 vdda-pll-supply = <&vreg_l10c_0p8>; 258 vdda33-supply = <&vreg_l2b_3p0>; 259 vdda18-supply = <&vreg_l1c_1p8>; 260}; 261 262&usb_1_qmpphy { 263 status = "okay"; 264 265 vdda-phy-supply = <&vreg_l6b_1p2>; 266 vdda-pll-supply = <&vreg_l1b_0p8>; 267}; 268 269&usb_2 { 270 status = "okay"; 271}; 272 273&usb_2_dwc3 { 274 dr_mode = "peripheral"; 275}; 276 277&usb_2_hsphy { 278 status = "okay"; 279 280 vdda-pll-supply = <&vreg_l10c_0p8>; 281 vdda33-supply = <&vreg_l2b_3p0>; 282 vdda18-supply = <&vreg_l1c_1p8>; 283}; 284 285/* PINCTRL - additions to nodes defined in sc7280.dtsi */ 286 287&qup_uart5_default { 288 tx { 289 pins = "gpio46"; 290 drive-strength = <2>; 291 bias-disable; 292 }; 293 294 rx { 295 pins = "gpio47"; 296 drive-strength = <2>; 297 bias-pull-up; 298 }; 299}; 300 301&sdc1_on { 302 clk { 303 bias-disable; 304 drive-strength = <16>; 305 }; 306 307 cmd { 308 bias-pull-up; 309 drive-strength = <10>; 310 }; 311 312 data { 313 bias-pull-up; 314 drive-strength = <10>; 315 }; 316 317 rclk { 318 bias-pull-down; 319 }; 320}; 321 322&sdc2_on { 323 clk { 324 bias-disable; 325 drive-strength = <16>; 326 }; 327 328 cmd { 329 bias-pull-up; 330 drive-strength = <10>; 331 }; 332 333 data { 334 bias-pull-up; 335 drive-strength = <10>; 336 }; 337 338 sd-cd { 339 bias-pull-up; 340 }; 341}; 342