forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/Documentation/devicetree/bindings/regulator/act8865-regulator.txt
....@@ -34,6 +34,9 @@
3434 - inl67-supply: The input supply for LDO_REG3 and LDO_REG4
3535
3636 Any standard regulator properties can be used to configure the single regulator.
37
+regulator-initial-mode, regulator-allowed-modes and regulator-mode could be specified
38
+for act8865 using mode values from dt-bindings/regulator/active-semi,8865-regulator.h
39
+file.
3740
3841 The valid names for regulators are:
3942 - for act8846:
....@@ -46,6 +49,8 @@
4649
4750 Example:
4851 --------
52
+
53
+#include <dt-bindings/regulator/active-semi,8865-regulator.h>
4954
5055 i2c1: i2c@f0018000 {
5156 pmic: act8865@5b {
....@@ -65,9 +70,19 @@
6570 regulator-name = "VCC_1V2";
6671 regulator-min-microvolt = <1100000>;
6772 regulator-max-microvolt = <1300000>;
68
- regulator-suspend-mem-microvolt = <1150000>;
69
- regulator-suspend-standby-microvolt = <1150000>;
7073 regulator-always-on;
74
+
75
+ regulator-allowed-modes = <ACT8865_REGULATOR_MODE_FIXED>,
76
+ <ACT8865_REGULATOR_MODE_LOWPOWER>;
77
+ regulator-initial-mode = <ACT8865_REGULATOR_MODE_FIXED>;
78
+
79
+ regulator-state-mem {
80
+ regulator-on-in-suspend;
81
+ regulator-suspend-min-microvolt = <1150000>;
82
+ regulator-suspend-max-microvolt = <1150000>;
83
+ regulator-changeable-in-suspend;
84
+ regulator-mode = <ACT8865_REGULATOR_MODE_LOWPOWER>;
85
+ };
7186 };
7287
7388 vcc_3v3_reg: DCDC_REG3 {
....@@ -82,6 +97,14 @@
8297 regulator-min-microvolt = <3300000>;
8398 regulator-max-microvolt = <3300000>;
8499 regulator-always-on;
100
+
101
+ regulator-allowed-modes = <ACT8865_REGULATOR_MODE_NORMAL>,
102
+ <ACT8865_REGULATOR_MODE_LOWPOWER>;
103
+ regulator-initial-mode = <ACT8865_REGULATOR_MODE_NORMAL>;
104
+
105
+ regulator-state-mem {
106
+ regulator-off-in-suspend;
107
+ };
85108 };
86109
87110 vddfuse_reg: LDO_REG2 {