1 // SPDX-License-Identifier: BSD-3-Clause
3 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
4 * Copyright (c) 2019, Linaro Limited
9 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
10 #include <dt-bindings/gpio/gpio.h>
11 #include "sm8150.dtsi"
12 #include "pm8150.dtsi"
13 #include "pm8150b.dtsi"
14 #include "pm8150l.dtsi"
17 model = "Qualcomm Technologies, Inc. SM8150 MTP";
18 compatible = "qcom,sm8150-mtp";
25 stdout-path = "serial0:115200n8";
28 vph_pwr: vph-pwr-regulator {
29 compatible = "regulator-fixed";
30 regulator-name = "vph_pwr";
31 regulator-min-microvolt = <3700000>;
32 regulator-max-microvolt = <3700000>;
36 * Apparently RPMh does not provide support for PM8150 S4 because it
37 * is always-on; model it as a fixed regulator.
39 vreg_s4a_1p8: pm8150-s4 {
40 compatible = "regulator-fixed";
41 regulator-name = "vreg_s4a_1p8";
43 regulator-min-microvolt = <1800000>;
44 regulator-max-microvolt = <1800000>;
49 vin-supply = <&vph_pwr>;
54 pm8150-rpmh-regulators {
55 compatible = "qcom,pm8150-rpmh-regulators";
58 vdd-s1-supply = <&vph_pwr>;
59 vdd-s2-supply = <&vph_pwr>;
60 vdd-s3-supply = <&vph_pwr>;
61 vdd-s4-supply = <&vph_pwr>;
62 vdd-s5-supply = <&vph_pwr>;
63 vdd-s6-supply = <&vph_pwr>;
64 vdd-s7-supply = <&vph_pwr>;
65 vdd-s8-supply = <&vph_pwr>;
66 vdd-s9-supply = <&vph_pwr>;
67 vdd-s10-supply = <&vph_pwr>;
69 vdd-l1-l8-l11-supply = <&vreg_s6a_0p9>;
70 vdd-l2-l10-supply = <&vreg_bob>;
71 vdd-l3-l4-l5-l18-supply = <&vreg_s6a_0p9>;
72 vdd-l6-l9-supply = <&vreg_s8c_1p3>;
73 vdd-l7-l12-l14-l15-supply = <&vreg_s5a_2p0>;
74 vdd-l13-l16-l17-supply = <&vreg_bob>;
77 regulator-min-microvolt = <1904000>;
78 regulator-max-microvolt = <2000000>;
82 regulator-min-microvolt = <920000>;
83 regulator-max-microvolt = <1128000>;
88 regulator-min-microvolt = <752000>;
89 regulator-max-microvolt = <752000>;
90 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
96 regulator-min-microvolt = <3072000>;
97 regulator-max-microvolt = <3072000>;
98 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
102 regulator-min-microvolt = <480000>;
103 regulator-max-microvolt = <932000>;
104 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
118 vdda_pll_hv_cc_ebi01:
119 vdda_pll_hv_cc_ebi23:
124 vdda_usb_ss_dp_core_1:
125 vdda_usb_ss_dp_core_2:
128 vreg_l5a_0p875: ldo5 {
129 regulator-min-microvolt = <880000>;
130 regulator-max-microvolt = <880000>;
131 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
135 regulator-min-microvolt = <1200000>;
136 regulator-max-microvolt = <1200000>;
137 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
141 regulator-min-microvolt = <1800000>;
142 regulator-max-microvolt = <1800000>;
143 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
148 regulator-min-microvolt = <1200000>;
149 regulator-max-microvolt = <1200000>;
150 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
153 vreg_l10a_2p5: ldo10 {
154 regulator-min-microvolt = <2504000>;
155 regulator-max-microvolt = <2960000>;
156 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
159 vreg_l11a_0p8: ldo11 {
160 regulator-min-microvolt = <800000>;
161 regulator-max-microvolt = <800000>;
162 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
172 vreg_l12a_1p8: ldo12 {
173 regulator-min-microvolt = <1800000>;
174 regulator-max-microvolt = <1800000>;
175 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
178 vreg_l13a_2p7: ldo13 {
179 regulator-min-microvolt = <2704000>;
180 regulator-max-microvolt = <2704000>;
181 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
184 vreg_l14a_1p8: ldo14 {
185 regulator-min-microvolt = <1800000>;
186 regulator-max-microvolt = <1880000>;
187 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
190 vreg_l15a_1p7: ldo15 {
191 regulator-min-microvolt = <1704000>;
192 regulator-max-microvolt = <1704000>;
193 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
196 vreg_l16a_2p7: ldo16 {
197 regulator-min-microvolt = <2704000>;
198 regulator-max-microvolt = <2960000>;
199 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
202 vreg_l17a_3p0: ldo17 {
203 regulator-min-microvolt = <2856000>;
204 regulator-max-microvolt = <3008000>;
205 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
209 pm8150l-rpmh-regulators {
210 compatible = "qcom,pm8150l-rpmh-regulators";
213 vdd-s1-supply = <&vph_pwr>;
214 vdd-s2-supply = <&vph_pwr>;
215 vdd-s3-supply = <&vph_pwr>;
216 vdd-s4-supply = <&vph_pwr>;
217 vdd-s5-supply = <&vph_pwr>;
218 vdd-s6-supply = <&vph_pwr>;
219 vdd-s7-supply = <&vph_pwr>;
220 vdd-s8-supply = <&vph_pwr>;
222 vdd-l1-l8-supply = <&vreg_s4a_1p8>;
223 vdd-l2-l3-supply = <&vreg_s8c_1p3>;
224 vdd-l4-l5-l6-supply = <&vreg_bob>;
225 vdd-l7-l11-supply = <&vreg_bob>;
226 vdd-l9-l10-supply = <&vreg_bob>;
228 vdd-bob-supply = <&vph_pwr>;
229 vdd-flash-supply = <&vreg_bob>;
230 vdd-rgb-supply = <&vreg_bob>;
233 regulator-min-microvolt = <3008000>;
234 regulator-max-microvolt = <4000000>;
235 regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>;
236 regulator-allow-bypass;
239 vreg_s8c_1p3: smps8 {
240 regulator-min-microvolt = <1352000>;
241 regulator-max-microvolt = <1352000>;
245 regulator-min-microvolt = <1800000>;
246 regulator-max-microvolt = <1800000>;
247 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
253 regulator-min-microvolt = <1304000>;
254 regulator-max-microvolt = <1304000>;
255 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
265 regulator-min-microvolt = <1200000>;
266 regulator-max-microvolt = <1200000>;
267 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
272 regulator-min-microvolt = <1704000>;
273 regulator-max-microvolt = <2928000>;
274 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
279 regulator-min-microvolt = <1704000>;
280 regulator-max-microvolt = <2928000>;
281 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
286 regulator-min-microvolt = <1800000>;
287 regulator-max-microvolt = <2960000>;
288 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
292 regulator-min-microvolt = <2856000>;
293 regulator-max-microvolt = <3104000>;
294 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
298 regulator-min-microvolt = <1800000>;
299 regulator-max-microvolt = <1800000>;
300 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
304 regulator-min-microvolt = <2704000>;
305 regulator-max-microvolt = <2960000>;
306 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
309 vreg_l10c_3p3: ldo10 {
310 regulator-min-microvolt = <3000000>;
311 regulator-max-microvolt = <3312000>;
312 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
315 vreg_l11c_3p3: ldo11 {
316 regulator-min-microvolt = <3000000>;
317 regulator-max-microvolt = <3312000>;
318 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
322 pm8009-rpmh-regulators {
323 compatible = "qcom,pm8009-rpmh-regulators";
326 vdd-s1-supply = <&vph_pwr>;
327 vdd-s2-supply = <&vreg_bob>;
329 vdd-l2-supply = <&vreg_s8c_1p3>;
330 vdd-l5-l6-supply = <&vreg_bob>;
333 regulator-min-microvolt = <1200000>;
334 regulator-max-microvolt = <1200000>;
335 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
338 vreg_l5f_2p85: ldo5 {
339 regulator-min-microvolt = <2800000>;
340 regulator-max-microvolt = <2800000>;
341 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
344 vreg_l6f_2p85: ldo6 {
345 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
346 regulator-min-microvolt = <2856000>;
347 regulator-max-microvolt = <2856000>;
362 compatible = "qcom,pm8941-resin";
363 interrupts = <0x0 0x8 0x1 IRQ_TYPE_EDGE_BOTH>;
366 linux,code = <KEY_VOLUMEDOWN>;
383 gpio-reserved-ranges = <0 4>, <126 4>;
393 reset-gpios = <&tlmm 175 GPIO_ACTIVE_LOW>;
395 vcc-supply = <&vreg_l10a_2p5>;
396 vcc-max-microamp = <750000>;
397 vccq-supply = <&vreg_l9a_1p2>;
398 vccq-max-microamp = <700000>;
399 vccq2-supply = <&vreg_s4a_1p8>;
400 vccq2-max-microamp = <750000>;
406 vdda-phy-supply = <&vdda_ufs_2ln_core_1>;
407 vdda-max-microamp = <90200>;
408 vdda-pll-supply = <&vreg_l3c_1p2>;
409 vdda-pll-max-microamp = <19000>;