1 Qualcomm Technologies, Inc. RPMh Regulators
3 rpmh-regulator devices support PMIC regulator management via the Voltage
4 Regulator Manager (VRM) and Oscillator Buffer (XOB) RPMh accelerators. The APPS
5 processor communicates with these hardware blocks via a Resource State
6 Coordinator (RSC) using command packets. The VRM allows changing three
7 parameters for a given regulator: enable state, output voltage, and operating
8 mode. The XOB allows changing only a single parameter for a given regulator:
9 its enable state. Despite its name, the XOB is capable of controlling the
10 enable state of any PMIC peripheral. It is used for clock buffers, low-voltage
11 switches, and LDO/SMPS regulators which have a fixed voltage and mode.
13 =======================
14 Required Node Structure
15 =======================
17 RPMh regulators must be described in two levels of device nodes. The first
18 level describes the PMIC containing the regulators and must reside within an
19 RPMh device node. The second level describes each regulator within the PMIC
20 which is to be used on the board. Each of these regulators maps to a single
23 The names used for regulator nodes must match those supported by a given PMIC.
24 Supported regulator node names:
26 PM8009: smps1 - smps2, ldo1 - ldo7
27 PM8150: smps1 - smps10, ldo1 - ldo18
28 PM8150L: smps1 - smps8, ldo1 - ldo11, bob, flash, rgb
29 PM8998: smps1 - smps13, ldo1 - ldo28, lvs1 - lvs2
31 PM6150: smps1 - smps5, ldo1 - ldo19
32 PM6150L: smps1 - smps8, ldo1 - ldo11, bob
34 ========================
35 First Level Nodes - PMIC
36 ========================
41 Definition: Must be one of below:
42 "qcom,pm8005-rpmh-regulators"
43 "qcom,pm8009-rpmh-regulators"
44 "qcom,pm8150-rpmh-regulators"
45 "qcom,pm8150l-rpmh-regulators"
46 "qcom,pm8998-rpmh-regulators"
47 "qcom,pmi8998-rpmh-regulators"
48 "qcom,pm6150-rpmh-regulators"
49 "qcom,pm6150l-rpmh-regulators"
54 Definition: RPMh resource name suffix used for the regulators found on
55 this PMIC. Typical values: "a", "b", "c", "d", "e", "f".
61 Usage: optional (PM8998 and PM8005 only)
63 Definition: phandle of the parent supply regulator of one or more of the
64 regulators for this PMIC.
76 - vdd-l2-l8-l17-supply
80 - vdd-l7-l12-l14-l15-supply
82 - vdd-l10-l23-l25-supply
83 - vdd-l13-l19-l21-supply
89 Usage: optional (PM8998 only)
91 Definition: phandle of the parent supply regulator of one or more of the
92 regulators for this PMIC.
95 Usage: optional (PMI8998 only)
97 Definition: BOB regulator parent supply phandle
99 ===============================
100 Second Level Nodes - Regulators
101 ===============================
103 - qcom,always-wait-for-ack
106 Definition: Boolean flag which indicates that the application processor
107 must wait for an ACK or a NACK from RPMh for every request
108 sent for this regulator including those which are for a
109 strictly lower power state.
111 Other properties defined in Documentation/devicetree/bindings/regulator/regulator.txt
112 may also be used. regulator-initial-mode and regulator-allowed-modes may be
113 specified for VRM regulators using mode values from
114 include/dt-bindings/regulator/qcom,rpmh-regulator.h. regulator-allow-bypass
115 may be specified for BOB type regulators managed via VRM.
116 regulator-allow-set-load may be specified for LDO type regulators managed via
123 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
126 pm8998-rpmh-regulators {
127 compatible = "qcom,pm8998-rpmh-regulators";
130 vdd-l7-l12-l14-l15-supply = <&pm8998_s5>;
133 regulator-min-microvolt = <1100000>;
134 regulator-max-microvolt = <1100000>;
138 regulator-min-microvolt = <1904000>;
139 regulator-max-microvolt = <2040000>;
143 regulator-min-microvolt = <1800000>;
144 regulator-max-microvolt = <1800000>;
145 regulator-initial-mode = <RPMH_REGULATOR_MODE_HPM>;
146 regulator-allowed-modes =
147 <RPMH_REGULATOR_MODE_LPM
148 RPMH_REGULATOR_MODE_HPM>;
149 regulator-allow-set-load;
153 regulator-min-microvolt = <1800000>;
154 regulator-max-microvolt = <1800000>;
158 pmi8998-rpmh-regulators {
159 compatible = "qcom,pmi8998-rpmh-regulators";
163 regulator-min-microvolt = <3312000>;
164 regulator-max-microvolt = <3600000>;
165 regulator-allowed-modes =
166 <RPMH_REGULATOR_MODE_AUTO
167 RPMH_REGULATOR_MODE_HPM>;
168 regulator-initial-mode = <RPMH_REGULATOR_MODE_AUTO>;