hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/Documentation/devicetree/bindings/regulator/act8945a-regulator.txt
....@@ -15,11 +15,17 @@
1515 - inl67-supply: The input supply for REG_LDO3 and REG_LDO4
1616
1717 Any standard regulator properties can be used to configure the single regulator.
18
+regulator-initial-mode, regulator-allowed-modes and regulator-mode could be
19
+specified using mode values from dt-bindings/regulator/active-semi,8945a-regulator.h
20
+file.
1821
1922 The valid names for regulators are:
2023 REG_DCDC1, REG_DCDC2, REG_DCDC3, REG_LDO1, REG_LDO2, REG_LDO3, REG_LDO4.
2124
2225 Example:
26
+
27
+#include <dt-bindings/regulator/active-semi,8945a-regulator.h>
28
+
2329 pmic@5b {
2430 compatible = "active-semi,act8945a";
2531 reg = <0x5b>;
....@@ -32,6 +38,18 @@
3238 regulator-min-microvolt = <1350000>;
3339 regulator-max-microvolt = <1350000>;
3440 regulator-always-on;
41
+
42
+ regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_FIXED>,
43
+ <ACT8945A_REGULATOR_MODE_LOWPOWER>;
44
+ regulator-initial-mode = <ACT8945A_REGULATOR_MODE_FIXED>;
45
+
46
+ regulator-state-mem {
47
+ regulator-on-in-suspend;
48
+ regulator-suspend-min-microvolt=<1400000>;
49
+ regulator-suspend-max-microvolt=<1400000>;
50
+ regulator-changeable-in-suspend;
51
+ regulator-mode=<ACT8945A_REGULATOR_MODE_LOWPOWER>;
52
+ };
3553 };
3654
3755 vdd_1v2_reg: REG_DCDC2 {
....@@ -39,6 +57,14 @@
3957 regulator-min-microvolt = <1100000>;
4058 regulator-max-microvolt = <1300000>;
4159 regulator-always-on;
60
+
61
+ regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_FIXED>,
62
+ <ACT8945A_REGULATOR_MODE_LOWPOWER>;
63
+ regulator-initial-mode = <ACT8945A_REGULATOR_MODE_FIXED>;
64
+
65
+ regulator-state-mem {
66
+ regulator-off-in-suspend;
67
+ };
4268 };
4369
4470 vdd_3v3_reg: REG_DCDC3 {
....@@ -53,6 +79,14 @@
5379 regulator-min-microvolt = <2500000>;
5480 regulator-max-microvolt = <2500000>;
5581 regulator-always-on;
82
+
83
+ regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_NORMAL>,
84
+ <ACT8945A_REGULATOR_MODE_LOWPOWER>;
85
+ regulator-initial-mode = <ACT8945A_REGULATOR_MODE_NORMAL>;
86
+
87
+ regulator-state-mem {
88
+ regulator-off-in-suspend;
89
+ };
5690 };
5791
5892 vdd_3v3_lp_reg: REG_LDO2 {