1 // SPDX-License-Identifier: GPL-2.0
3 * SDM845 MTP board device tree source
5 * Copyright (c) 2018, The Linux Foundation. All rights reserved.
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
12 #include "sdm845.dtsi"
15 model = "Qualcomm Technologies, Inc. SDM845 MTP";
16 compatible = "qcom,sdm845-mtp";
23 stdout-path = "serial0:115200n8";
26 vph_pwr: vph-pwr-regulator {
27 compatible = "regulator-fixed";
28 regulator-name = "vph_pwr";
29 regulator-min-microvolt = <3700000>;
30 regulator-max-microvolt = <3700000>;
34 * Apparently RPMh does not provide support for PM8998 S4 because it
35 * is always-on; model it as a fixed regulator.
37 vreg_s4a_1p8: pm8998-smps4 {
38 compatible = "regulator-fixed";
39 regulator-name = "vreg_s4a_1p8";
41 regulator-min-microvolt = <1800000>;
42 regulator-max-microvolt = <1800000>;
47 vin-supply = <&vph_pwr>;
56 pm8998-rpmh-regulators {
57 compatible = "qcom,pm8998-rpmh-regulators";
60 vdd-s1-supply = <&vph_pwr>;
61 vdd-s2-supply = <&vph_pwr>;
62 vdd-s3-supply = <&vph_pwr>;
63 vdd-s4-supply = <&vph_pwr>;
64 vdd-s5-supply = <&vph_pwr>;
65 vdd-s6-supply = <&vph_pwr>;
66 vdd-s7-supply = <&vph_pwr>;
67 vdd-s8-supply = <&vph_pwr>;
68 vdd-s9-supply = <&vph_pwr>;
69 vdd-s10-supply = <&vph_pwr>;
70 vdd-s11-supply = <&vph_pwr>;
71 vdd-s12-supply = <&vph_pwr>;
72 vdd-s13-supply = <&vph_pwr>;
73 vdd-l1-l27-supply = <&vreg_s7a_1p025>;
74 vdd-l2-l8-l17-supply = <&vreg_s3a_1p35>;
75 vdd-l3-l11-supply = <&vreg_s7a_1p025>;
76 vdd-l4-l5-supply = <&vreg_s7a_1p025>;
77 vdd-l6-supply = <&vph_pwr>;
78 vdd-l7-l12-l14-l15-supply = <&vreg_s5a_2p04>;
79 vdd-l9-supply = <&vreg_bob>;
80 vdd-l10-l23-l25-supply = <&vreg_bob>;
81 vdd-l13-l19-l21-supply = <&vreg_bob>;
82 vdd-l16-l28-supply = <&vreg_bob>;
83 vdd-l18-l22-supply = <&vreg_bob>;
84 vdd-l20-l24-supply = <&vreg_bob>;
85 vdd-l26-supply = <&vreg_s3a_1p35>;
86 vin-lvs-1-2-supply = <&vreg_s4a_1p8>;
88 vreg_s2a_1p125: smps2 {
89 regulator-min-microvolt = <1100000>;
90 regulator-max-microvolt = <1100000>;
93 vreg_s3a_1p35: smps3 {
94 regulator-min-microvolt = <1352000>;
95 regulator-max-microvolt = <1352000>;
98 vreg_s5a_2p04: smps5 {
99 regulator-min-microvolt = <1904000>;
100 regulator-max-microvolt = <2040000>;
103 vreg_s7a_1p025: smps7 {
104 regulator-min-microvolt = <900000>;
105 regulator-max-microvolt = <1028000>;
126 vreg_l1a_0p875: ldo1 {
127 regulator-min-microvolt = <880000>;
128 regulator-max-microvolt = <880000>;
129 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
134 regulator-min-microvolt = <1200000>;
135 regulator-max-microvolt = <1200000>;
136 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
141 regulator-min-microvolt = <1000000>;
142 regulator-max-microvolt = <1000000>;
143 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
150 regulator-min-microvolt = <800000>;
151 regulator-max-microvolt = <800000>;
152 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
157 regulator-min-microvolt = <1856000>;
158 regulator-max-microvolt = <1856000>;
159 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
163 regulator-min-microvolt = <1800000>;
164 regulator-max-microvolt = <1800000>;
165 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
169 regulator-min-microvolt = <1200000>;
170 regulator-max-microvolt = <1248000>;
171 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
175 regulator-min-microvolt = <1704000>;
176 regulator-max-microvolt = <2928000>;
177 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
180 vreg_l10a_1p8: ldo10 {
181 regulator-min-microvolt = <1704000>;
182 regulator-max-microvolt = <2928000>;
183 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
186 vreg_l11a_1p0: ldo11 {
187 regulator-min-microvolt = <1000000>;
188 regulator-max-microvolt = <1048000>;
189 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
199 vreg_l12a_1p8: ldo12 {
200 regulator-min-microvolt = <1800000>;
201 regulator-max-microvolt = <1800000>;
202 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
206 vreg_l13a_2p95: ldo13 {
207 regulator-min-microvolt = <1800000>;
208 regulator-max-microvolt = <2960000>;
209 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
212 vreg_l14a_1p88: ldo14 {
213 regulator-min-microvolt = <1800000>;
214 regulator-max-microvolt = <1800000>;
215 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
218 vreg_l15a_1p8: ldo15 {
219 regulator-min-microvolt = <1800000>;
220 regulator-max-microvolt = <1800000>;
221 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
224 vreg_l16a_2p7: ldo16 {
225 regulator-min-microvolt = <2704000>;
226 regulator-max-microvolt = <2704000>;
227 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
230 vreg_l17a_1p3: ldo17 {
231 regulator-min-microvolt = <1304000>;
232 regulator-max-microvolt = <1304000>;
233 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
236 vreg_l18a_2p7: ldo18 {
237 regulator-min-microvolt = <2704000>;
238 regulator-max-microvolt = <2960000>;
239 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
242 vreg_l19a_3p0: ldo19 {
243 regulator-min-microvolt = <2856000>;
244 regulator-max-microvolt = <3104000>;
245 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
248 vreg_l20a_2p95: ldo20 {
249 regulator-min-microvolt = <2704000>;
250 regulator-max-microvolt = <2960000>;
251 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
254 vreg_l21a_2p95: ldo21 {
255 regulator-min-microvolt = <2704000>;
256 regulator-max-microvolt = <2960000>;
257 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
260 vreg_l22a_2p85: ldo22 {
261 regulator-min-microvolt = <2864000>;
262 regulator-max-microvolt = <3312000>;
263 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
266 vreg_l23a_3p3: ldo23 {
267 regulator-min-microvolt = <3000000>;
268 regulator-max-microvolt = <3312000>;
269 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
273 vreg_l24a_3p075: ldo24 {
274 regulator-min-microvolt = <3088000>;
275 regulator-max-microvolt = <3088000>;
276 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
279 vreg_l25a_3p3: ldo25 {
280 regulator-min-microvolt = <3300000>;
281 regulator-max-microvolt = <3312000>;
282 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
298 vreg_l26a_1p2: ldo26 {
299 regulator-min-microvolt = <1200000>;
300 regulator-max-microvolt = <1200000>;
301 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
304 vreg_l28a_3p0: ldo28 {
305 regulator-min-microvolt = <2856000>;
306 regulator-max-microvolt = <3008000>;
307 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
310 vreg_lvs1a_1p8: lvs1 {
311 regulator-min-microvolt = <1800000>;
312 regulator-max-microvolt = <1800000>;
315 vreg_lvs2a_1p8: lvs2 {
316 regulator-min-microvolt = <1800000>;
317 regulator-max-microvolt = <1800000>;
321 pmi8998-rpmh-regulators {
322 compatible = "qcom,pmi8998-rpmh-regulators";
325 vdd-bob-supply = <&vph_pwr>;
328 regulator-min-microvolt = <3312000>;
329 regulator-max-microvolt = <3600000>;
330 regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>;
331 regulator-allow-bypass;
335 pm8005-rpmh-regulators {
336 compatible = "qcom,pm8005-rpmh-regulators";
339 vdd-s1-supply = <&vph_pwr>;
340 vdd-s2-supply = <&vph_pwr>;
341 vdd-s3-supply = <&vph_pwr>;
342 vdd-s4-supply = <&vph_pwr>;
344 vreg_s3c_0p6: smps3 {
345 regulator-min-microvolt = <600000>;
346 regulator-max-microvolt = <600000>;
356 protected-clocks = <GCC_QSPI_CORE_CLK>,
357 <GCC_QSPI_CORE_CLK_SRC>,
358 <GCC_QSPI_CNOC_PERIPH_AHB_CLK>,
359 <GCC_LPASS_Q6_AXI_CLK>,
360 <GCC_LPASS_SWAY_CLK>;
365 clock-frequency = <400000>;
375 pinctrl-names = "default";
376 pinctrl-0 = <&sdc2_clk &sdc2_cmd &sdc2_data &sd_card_det_n>;
378 vmmc-supply = <&vreg_l21a_2p95>;
379 vqmmc-supply = <&vddpx_2>;
381 cd-gpios = <&tlmm 126 GPIO_ACTIVE_LOW>;
391 vcc-supply = <&vreg_l20a_2p95>;
392 vcc-max-microamp = <600000>;
398 vdda-phy-supply = <&vdda_ufs1_core>;
399 vdda-pll-supply = <&vdda_ufs1_1p2>;
407 /* Until we have Type C hooked up we'll force this as peripheral. */
408 dr_mode = "peripheral";
414 vdd-supply = <&vdda_usb1_ss_core>;
415 vdda-pll-supply = <&vdda_qusb_hs0_1p8>;
416 vdda-phy-dpdm-supply = <&vdda_qusb_hs0_3p1>;
418 qcom,imp-res-offset-value = <8>;
419 qcom,hstx-trim-value = <QUSB2_V2_HSTX_TRIM_21_6_MA>;
420 qcom,preemphasis-level = <QUSB2_V2_PREEMPHASIS_5_PERCENT>;
421 qcom,preemphasis-width = <QUSB2_V2_PREEMPHASIS_WIDTH_HALF_BIT>;
427 vdda-phy-supply = <&vdda_usb1_ss_1p2>;
428 vdda-pll-supply = <&vdda_usb1_ss_core>;
437 * Though the USB block on SDM845 can support host, there's no vbus
438 * signal for this port on MTP. Thus (unless you have a non-compliant
439 * hub that works without vbus) the only sensible thing is to force
442 dr_mode = "peripheral";
448 vdd-supply = <&vdda_usb2_ss_core>;
449 vdda-pll-supply = <&vdda_qusb_hs0_1p8>;
450 vdda-phy-dpdm-supply = <&vdda_qusb_hs0_3p1>;
452 qcom,imp-res-offset-value = <8>;
453 qcom,hstx-trim-value = <QUSB2_V2_HSTX_TRIM_22_8_MA>;
459 vdda-phy-supply = <&vdda_usb2_ss_1p2>;
460 vdda-pll-supply = <&vdda_usb2_ss_core>;
465 vdd-0.8-cx-mx-supply = <&vreg_l5a_0p8>;
466 vdd-1.8-xo-supply = <&vreg_l7a_1p8>;
467 vdd-1.3-rfa-supply = <&vreg_l17a_1p3>;
468 vdd-3.3-ch0-supply = <&vreg_l25a_3p3>;
471 /* PINCTRL - additions to nodes defined in sdm845.dtsi */
475 pins = "gpio55", "gpio56";
476 drive-strength = <2>;
484 drive-strength = <2>;
490 drive-strength = <2>;
496 gpio-reserved-ranges = <0 4>, <81 4>;
504 * It seems that mmc_test reports errors if drive
505 * strength is not 16 on clk, cmd, and data pins.
507 drive-strength = <16>;
515 drive-strength = <16>;
519 sdc2_data: sdc2-data {
523 drive-strength = <16>;
527 sd_card_det_n: sd-card-det-n {