xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/regulator/mcp16502-regulator.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunMCP16502 PMIC
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- compatible: "microchip,mcp16502"
5*4882a593Smuzhiyun- reg: I2C slave address
6*4882a593Smuzhiyun- lpm-gpios: GPIO for LPM pin. Note that this GPIO *must* remain high during
7*4882a593Smuzhiyun	     suspend-to-ram, keeping the PMIC into HIBERNATE mode.
8*4882a593Smuzhiyun- regulators: A node that houses a sub-node for each regulator within
9*4882a593Smuzhiyun              the device. Each sub-node is identified using the node's
10*4882a593Smuzhiyun              name. The content of each sub-node is defined by the
11*4882a593Smuzhiyun              standard binding for regulators; see regulator.txt.
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunRegualtors of MCP16502 PMIC:
14*4882a593Smuzhiyun1) VDD_IO	- Buck (1.2 - 3.7 V)
15*4882a593Smuzhiyun2) VDD_DDR	- Buck (0.6 - 1.85 V)
16*4882a593Smuzhiyun3) VDD_CORE	- Buck (0.6 - 1.85 V)
17*4882a593Smuzhiyun4) VDD_OTHER	- BUCK (0.6 - 1.85 V)
18*4882a593Smuzhiyun5) LDO1		- LDO  (1.2 - 3.7 V)
19*4882a593Smuzhiyun6) LDO2		- LDO  (1.2 - 3.7 V)
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunRegulator modes:
22*4882a593Smuzhiyun2 - FPWM: higher precision, higher consumption
23*4882a593Smuzhiyun4 - AutoPFM: lower precision, lower consumption
24*4882a593Smuzhiyun
25*4882a593SmuzhiyunEach regulator is defined using the standard binding for regulators.
26*4882a593Smuzhiyun
27*4882a593SmuzhiyunExample:
28*4882a593Smuzhiyun
29*4882a593Smuzhiyunmcp16502@5b {
30*4882a593Smuzhiyun	compatible = "microchip,mcp16502";
31*4882a593Smuzhiyun	reg = <0x5b>;
32*4882a593Smuzhiyun	status = "okay";
33*4882a593Smuzhiyun	lpm-gpios = <&pioBU 7 GPIO_ACTIVE_HIGH>;
34*4882a593Smuzhiyun
35*4882a593Smuzhiyun	regulators {
36*4882a593Smuzhiyun		VDD_IO {
37*4882a593Smuzhiyun			regulator-name = "VDD_IO";
38*4882a593Smuzhiyun			regulator-min-microvolt = <1200000>;
39*4882a593Smuzhiyun			regulator-max-microvolt = <3700000>;
40*4882a593Smuzhiyun			regulator-initial-mode = <2>;
41*4882a593Smuzhiyun			regulator-allowed-modes = <2>, <4>;
42*4882a593Smuzhiyun			regulator-always-on;
43*4882a593Smuzhiyun
44*4882a593Smuzhiyun			regulator-state-standby {
45*4882a593Smuzhiyun				regulator-on-in-suspend;
46*4882a593Smuzhiyun				regulator-mode = <4>;
47*4882a593Smuzhiyun			};
48*4882a593Smuzhiyun
49*4882a593Smuzhiyun			regulator-state-mem {
50*4882a593Smuzhiyun				regulator-off-in-suspend;
51*4882a593Smuzhiyun				regulator-mode = <4>;
52*4882a593Smuzhiyun			};
53*4882a593Smuzhiyun		};
54*4882a593Smuzhiyun
55*4882a593Smuzhiyun		VDD_DDR {
56*4882a593Smuzhiyun			regulator-name = "VDD_DDR";
57*4882a593Smuzhiyun			regulator-min-microvolt = <600000>;
58*4882a593Smuzhiyun			regulator-max-microvolt = <1850000>;
59*4882a593Smuzhiyun			regulator-initial-mode = <2>;
60*4882a593Smuzhiyun			regulator-allowed-modes = <2>, <4>;
61*4882a593Smuzhiyun			regulator-always-on;
62*4882a593Smuzhiyun
63*4882a593Smuzhiyun			regulator-state-standby {
64*4882a593Smuzhiyun				regulator-on-in-suspend;
65*4882a593Smuzhiyun				regulator-mode = <4>;
66*4882a593Smuzhiyun			};
67*4882a593Smuzhiyun
68*4882a593Smuzhiyun			regulator-state-mem {
69*4882a593Smuzhiyun				regulator-on-in-suspend;
70*4882a593Smuzhiyun				regulator-mode = <4>;
71*4882a593Smuzhiyun			};
72*4882a593Smuzhiyun		};
73*4882a593Smuzhiyun
74*4882a593Smuzhiyun		VDD_CORE {
75*4882a593Smuzhiyun			regulator-name = "VDD_CORE";
76*4882a593Smuzhiyun			regulator-min-microvolt = <600000>;
77*4882a593Smuzhiyun			regulator-max-microvolt = <1850000>;
78*4882a593Smuzhiyun			regulator-initial-mode = <2>;
79*4882a593Smuzhiyun			regulator-allowed-modes = <2>, <4>;
80*4882a593Smuzhiyun			regulator-always-on;
81*4882a593Smuzhiyun
82*4882a593Smuzhiyun			regulator-state-standby {
83*4882a593Smuzhiyun				regulator-on-in-suspend;
84*4882a593Smuzhiyun				regulator-mode = <4>;
85*4882a593Smuzhiyun			};
86*4882a593Smuzhiyun
87*4882a593Smuzhiyun			regulator-state-mem {
88*4882a593Smuzhiyun				regulator-off-in-suspend;
89*4882a593Smuzhiyun				regulator-mode = <4>;
90*4882a593Smuzhiyun			};
91*4882a593Smuzhiyun		};
92*4882a593Smuzhiyun
93*4882a593Smuzhiyun		VDD_OTHER {
94*4882a593Smuzhiyun			regulator-name = "VDD_OTHER";
95*4882a593Smuzhiyun			regulator-min-microvolt = <600000>;
96*4882a593Smuzhiyun			regulator-max-microvolt = <1850000>;
97*4882a593Smuzhiyun			regulator-initial-mode = <2>;
98*4882a593Smuzhiyun			regulator-allowed-modes = <2>, <4>;
99*4882a593Smuzhiyun			regulator-always-on;
100*4882a593Smuzhiyun
101*4882a593Smuzhiyun			regulator-state-standby {
102*4882a593Smuzhiyun				regulator-on-in-suspend;
103*4882a593Smuzhiyun				regulator-mode = <4>;
104*4882a593Smuzhiyun			};
105*4882a593Smuzhiyun
106*4882a593Smuzhiyun			regulator-state-mem {
107*4882a593Smuzhiyun				regulator-off-in-suspend;
108*4882a593Smuzhiyun				regulator-mode = <4>;
109*4882a593Smuzhiyun			};
110*4882a593Smuzhiyun		};
111*4882a593Smuzhiyun
112*4882a593Smuzhiyun		LDO1 {
113*4882a593Smuzhiyun			regulator-name = "LDO1";
114*4882a593Smuzhiyun			regulator-min-microvolt = <1200000>;
115*4882a593Smuzhiyun			regulator-max-microvolt = <3700000>;
116*4882a593Smuzhiyun			regulator-always-on;
117*4882a593Smuzhiyun
118*4882a593Smuzhiyun			regulator-state-standby {
119*4882a593Smuzhiyun				regulator-on-in-suspend;
120*4882a593Smuzhiyun			};
121*4882a593Smuzhiyun
122*4882a593Smuzhiyun			regulator-state-mem {
123*4882a593Smuzhiyun				regulator-off-in-suspend;
124*4882a593Smuzhiyun			};
125*4882a593Smuzhiyun		};
126*4882a593Smuzhiyun
127*4882a593Smuzhiyun		LDO2 {
128*4882a593Smuzhiyun			regulator-name = "LDO2";
129*4882a593Smuzhiyun			regulator-min-microvolt = <1200000>;
130*4882a593Smuzhiyun			regulator-max-microvolt = <3700000>;
131*4882a593Smuzhiyun			regulator-always-on;
132*4882a593Smuzhiyun
133*4882a593Smuzhiyun			regulator-state-standby {
134*4882a593Smuzhiyun				regulator-on-in-suspend;
135*4882a593Smuzhiyun			};
136*4882a593Smuzhiyun
137*4882a593Smuzhiyun			regulator-state-mem {
138*4882a593Smuzhiyun				regulator-off-in-suspend;
139*4882a593Smuzhiyun			};
140*4882a593Smuzhiyun		};
141*4882a593Smuzhiyun
142*4882a593Smuzhiyun	};
143*4882a593Smuzhiyun};
144