xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mfd/rk808.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunRK8XX Power Management Integrated Circuit
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunThe rk8xx family current members:
4*4882a593Smuzhiyunrk805
5*4882a593Smuzhiyunrk808
6*4882a593Smuzhiyunrk809
7*4882a593Smuzhiyunrk817
8*4882a593Smuzhiyunrk818
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunRequired properties:
11*4882a593Smuzhiyun- compatible: "rockchip,rk805"
12*4882a593Smuzhiyun- compatible: "rockchip,rk808"
13*4882a593Smuzhiyun- compatible: "rockchip,rk809"
14*4882a593Smuzhiyun- compatible: "rockchip,rk817"
15*4882a593Smuzhiyun- compatible: "rockchip,rk818"
16*4882a593Smuzhiyun- reg: I2C slave address
17*4882a593Smuzhiyun- interrupts: the interrupt outputs of the controller.
18*4882a593Smuzhiyun- #clock-cells: from common clock binding; shall be set to 1 (multiple clock
19*4882a593Smuzhiyun  outputs). See <dt-bindings/clock/rockchip,rk808.h> for clock IDs.
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunOptional properties:
22*4882a593Smuzhiyun- clock-output-names: From common clock binding to override the
23*4882a593Smuzhiyun  default output clock name
24*4882a593Smuzhiyun- rockchip,system-power-controller: Telling whether or not this pmic is controlling
25*4882a593Smuzhiyun  the system power.
26*4882a593Smuzhiyun
27*4882a593SmuzhiyunOptional RK805 properties:
28*4882a593Smuzhiyun- vcc1-supply:  The input supply for DCDC_REG1
29*4882a593Smuzhiyun- vcc2-supply:  The input supply for DCDC_REG2
30*4882a593Smuzhiyun- vcc3-supply:  The input supply for DCDC_REG3
31*4882a593Smuzhiyun- vcc4-supply:  The input supply for DCDC_REG4
32*4882a593Smuzhiyun- vcc5-supply:  The input supply for LDO_REG1 and LDO_REG2
33*4882a593Smuzhiyun- vcc6-supply:  The input supply for LDO_REG3
34*4882a593Smuzhiyun
35*4882a593SmuzhiyunOptional RK808 properties:
36*4882a593Smuzhiyun- vcc1-supply:  The input supply for DCDC_REG1
37*4882a593Smuzhiyun- vcc2-supply:  The input supply for DCDC_REG2
38*4882a593Smuzhiyun- vcc3-supply:  The input supply for DCDC_REG3
39*4882a593Smuzhiyun- vcc4-supply:  The input supply for DCDC_REG4
40*4882a593Smuzhiyun- vcc6-supply:  The input supply for LDO_REG1 and LDO_REG2
41*4882a593Smuzhiyun- vcc7-supply:  The input supply for LDO_REG3 and LDO_REG7
42*4882a593Smuzhiyun- vcc8-supply:  The input supply for SWITCH_REG1
43*4882a593Smuzhiyun- vcc9-supply:  The input supply for LDO_REG4 and LDO_REG5
44*4882a593Smuzhiyun- vcc10-supply: The input supply for LDO_REG6
45*4882a593Smuzhiyun- vcc11-supply: The input supply for LDO_REG8
46*4882a593Smuzhiyun- vcc12-supply: The input supply for SWITCH_REG2
47*4882a593Smuzhiyun- dvs-gpios:  buck1/2 can be controlled by gpio dvs, this is GPIO specifiers
48*4882a593Smuzhiyun  for 2 host gpio's used for dvs. The format of the gpio specifier depends in
49*4882a593Smuzhiyun  the gpio controller. If DVS GPIOs aren't present, voltage changes will happen
50*4882a593Smuzhiyun  very quickly with no slow ramp time.
51*4882a593Smuzhiyun
52*4882a593SmuzhiyunOptional shared RK809 and RK817 properties:
53*4882a593Smuzhiyun- vcc1-supply:  The input supply for DCDC_REG1
54*4882a593Smuzhiyun- vcc2-supply:  The input supply for DCDC_REG2
55*4882a593Smuzhiyun- vcc3-supply:  The input supply for DCDC_REG3
56*4882a593Smuzhiyun- vcc4-supply:  The input supply for DCDC_REG4
57*4882a593Smuzhiyun- vcc5-supply:  The input supply for LDO_REG1, LDO_REG2, LDO_REG3
58*4882a593Smuzhiyun- vcc6-supply:  The input supply for LDO_REG4, LDO_REG5, LDO_REG6
59*4882a593Smuzhiyun- vcc7-supply:  The input supply for LDO_REG7, LDO_REG8, LDO_REG9
60*4882a593Smuzhiyun
61*4882a593SmuzhiyunOptional RK809 properties:
62*4882a593Smuzhiyun- vcc8-supply:  The input supply for SWITCH_REG1
63*4882a593Smuzhiyun- vcc9-supply:  The input supply for DCDC_REG5, SWITCH_REG2
64*4882a593Smuzhiyun
65*4882a593SmuzhiyunOptional RK817 properties:
66*4882a593Smuzhiyun- vcc8-supply:  The input supply for BOOST
67*4882a593Smuzhiyun- vcc9-supply:  The input supply for OTG_SWITCH
68*4882a593Smuzhiyun
69*4882a593SmuzhiyunOptional RK818 properties:
70*4882a593Smuzhiyun- vcc1-supply:  The input supply for DCDC_REG1
71*4882a593Smuzhiyun- vcc2-supply:  The input supply for DCDC_REG2
72*4882a593Smuzhiyun- vcc3-supply:  The input supply for DCDC_REG3
73*4882a593Smuzhiyun- vcc4-supply:  The input supply for DCDC_REG4
74*4882a593Smuzhiyun- boost-supply: The input supply for DCDC_BOOST
75*4882a593Smuzhiyun- vcc6-supply:  The input supply for LDO_REG1 and LDO_REG2
76*4882a593Smuzhiyun- vcc7-supply:  The input supply for LDO_REG3, LDO_REG5 and LDO_REG7
77*4882a593Smuzhiyun- vcc8-supply:  The input supply for LDO_REG4, LDO_REG6 and LDO_REG8
78*4882a593Smuzhiyun- vcc9-supply:  The input supply for LDO_REG9 and SWITCH_REG
79*4882a593Smuzhiyun- h_5v-supply:  The input supply for HDMI_SWITCH
80*4882a593Smuzhiyun- usb-supply:   The input supply for OTG_SWITCH
81*4882a593Smuzhiyun
82*4882a593SmuzhiyunRegulators: All the regulators of RK8XX to be instantiated shall be
83*4882a593Smuzhiyunlisted in a child node named 'regulators'. Each regulator is represented
84*4882a593Smuzhiyunby a child node of the 'regulators' node.
85*4882a593Smuzhiyun
86*4882a593Smuzhiyun	regulator-name {
87*4882a593Smuzhiyun		/* standard regulator bindings here */
88*4882a593Smuzhiyun	};
89*4882a593Smuzhiyun
90*4882a593SmuzhiyunFollowing regulators of the RK805 PMIC regulators are supported. Note that
91*4882a593Smuzhiyunthe 'n' in regulator name, as in DCDC_REGn or LDOn, represents the DCDC or LDO
92*4882a593Smuzhiyunnumber as described in RK805 datasheet.
93*4882a593Smuzhiyun
94*4882a593Smuzhiyun	- DCDC_REGn
95*4882a593Smuzhiyun		- valid values for n are 1 to 4.
96*4882a593Smuzhiyun	- LDO_REGn
97*4882a593Smuzhiyun		- valid values for n are 1 to 3
98*4882a593Smuzhiyun
99*4882a593SmuzhiyunFollowing regulators of the RK808 PMIC block are supported. Note that
100*4882a593Smuzhiyunthe 'n' in regulator name, as in DCDC_REGn or LDOn, represents the DCDC or LDO
101*4882a593Smuzhiyunnumber as described in RK808 datasheet.
102*4882a593Smuzhiyun
103*4882a593Smuzhiyun	- DCDC_REGn
104*4882a593Smuzhiyun		- valid values for n are 1 to 4.
105*4882a593Smuzhiyun	- LDO_REGn
106*4882a593Smuzhiyun		- valid values for n are 1 to 8.
107*4882a593Smuzhiyun	- SWITCH_REGn
108*4882a593Smuzhiyun		- valid values for n are 1 to 2
109*4882a593Smuzhiyun
110*4882a593SmuzhiyunFollowing regulators of the RK809 and RK817 PMIC blocks are supported. Note that
111*4882a593Smuzhiyunthe 'n' in regulator name, as in DCDC_REGn or LDOn, represents the DCDC or LDO
112*4882a593Smuzhiyunnumber as described in RK809 and RK817 datasheets.
113*4882a593Smuzhiyun
114*4882a593Smuzhiyun	- DCDC_REGn
115*4882a593Smuzhiyun		- valid values for n are 1 to 5 for RK809.
116*4882a593Smuzhiyun		- valid values for n are 1 to 4 for RK817.
117*4882a593Smuzhiyun	- LDO_REGn
118*4882a593Smuzhiyun		- valid values for n are 1 to 9 for RK809.
119*4882a593Smuzhiyun		- valid values for n are 1 to 9 for RK817.
120*4882a593Smuzhiyun	- SWITCH_REGn
121*4882a593Smuzhiyun		- valid values for n are 1 to 2 for RK809.
122*4882a593Smuzhiyun	- BOOST for RK817
123*4882a593Smuzhiyun	- OTG_SWITCH for RK817
124*4882a593Smuzhiyun
125*4882a593SmuzhiyunFollowing regulators of the RK818 PMIC block are supported. Note that
126*4882a593Smuzhiyunthe 'n' in regulator name, as in DCDC_REGn or LDOn, represents the DCDC or LDO
127*4882a593Smuzhiyunnumber as described in RK818 datasheet.
128*4882a593Smuzhiyun
129*4882a593Smuzhiyun	- DCDC_REGn
130*4882a593Smuzhiyun		- valid values for n are 1 to 4.
131*4882a593Smuzhiyun	- LDO_REGn
132*4882a593Smuzhiyun		- valid values for n are 1 to 9.
133*4882a593Smuzhiyun	- SWITCH_REG
134*4882a593Smuzhiyun	- HDMI_SWITCH
135*4882a593Smuzhiyun	- OTG_SWITCH
136*4882a593Smuzhiyun
137*4882a593SmuzhiyunIt is necessary to configure three pins for both the RK809 and RK817, the three
138*4882a593Smuzhiyunpins are "gpio_ts" "gpio_gt" "gpio_slp".
139*4882a593Smuzhiyun	The gpio_gt and gpio_ts pins support the gpio function.
140*4882a593Smuzhiyun	The gpio_slp pin is for controlling the pmic states, as below:
141*4882a593Smuzhiyun		- reset
142*4882a593Smuzhiyun		- power down
143*4882a593Smuzhiyun		- sleep
144*4882a593Smuzhiyun
145*4882a593SmuzhiyunStandard regulator bindings are used inside regulator subnodes. Check
146*4882a593Smuzhiyun  Documentation/devicetree/bindings/regulator/regulator.txt
147*4882a593Smuzhiyunfor more details
148*4882a593Smuzhiyun
149*4882a593SmuzhiyunExample:
150*4882a593Smuzhiyun	rk808: pmic@1b {
151*4882a593Smuzhiyun		compatible = "rockchip,rk808";
152*4882a593Smuzhiyun		clock-output-names = "xin32k", "rk808-clkout2";
153*4882a593Smuzhiyun		interrupt-parent = <&gpio0>;
154*4882a593Smuzhiyun		interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
155*4882a593Smuzhiyun		pinctrl-names = "default";
156*4882a593Smuzhiyun		pinctrl-0 = <&pmic_int &dvs_1 &dvs_2>;
157*4882a593Smuzhiyun		dvs-gpios = <&gpio7 11 GPIO_ACTIVE_HIGH>,
158*4882a593Smuzhiyun			    <&gpio7 15 GPIO_ACTIVE_HIGH>;
159*4882a593Smuzhiyun		reg = <0x1b>;
160*4882a593Smuzhiyun		rockchip,system-power-controller;
161*4882a593Smuzhiyun		wakeup-source;
162*4882a593Smuzhiyun		#clock-cells = <1>;
163*4882a593Smuzhiyun
164*4882a593Smuzhiyun		vcc8-supply = <&vcc_18>;
165*4882a593Smuzhiyun		vcc9-supply = <&vcc_io>;
166*4882a593Smuzhiyun		vcc10-supply = <&vcc_io>;
167*4882a593Smuzhiyun		vcc12-supply = <&vcc_io>;
168*4882a593Smuzhiyun		vddio-supply = <&vccio_pmu>;
169*4882a593Smuzhiyun
170*4882a593Smuzhiyun		regulators {
171*4882a593Smuzhiyun			vdd_cpu: DCDC_REG1 {
172*4882a593Smuzhiyun				regulator-always-on;
173*4882a593Smuzhiyun				regulator-boot-on;
174*4882a593Smuzhiyun				regulator-min-microvolt = <750000>;
175*4882a593Smuzhiyun				regulator-max-microvolt = <1300000>;
176*4882a593Smuzhiyun				regulator-name = "vdd_arm";
177*4882a593Smuzhiyun			};
178*4882a593Smuzhiyun
179*4882a593Smuzhiyun			vdd_gpu: DCDC_REG2 {
180*4882a593Smuzhiyun				regulator-always-on;
181*4882a593Smuzhiyun				regulator-boot-on;
182*4882a593Smuzhiyun				regulator-min-microvolt = <850000>;
183*4882a593Smuzhiyun				regulator-max-microvolt = <1250000>;
184*4882a593Smuzhiyun				regulator-name = "vdd_gpu";
185*4882a593Smuzhiyun			};
186*4882a593Smuzhiyun
187*4882a593Smuzhiyun			vcc_ddr: DCDC_REG3 {
188*4882a593Smuzhiyun				regulator-always-on;
189*4882a593Smuzhiyun				regulator-boot-on;
190*4882a593Smuzhiyun				regulator-name = "vcc_ddr";
191*4882a593Smuzhiyun			};
192*4882a593Smuzhiyun
193*4882a593Smuzhiyun			vcc_io: DCDC_REG4 {
194*4882a593Smuzhiyun				regulator-always-on;
195*4882a593Smuzhiyun				regulator-boot-on;
196*4882a593Smuzhiyun				regulator-min-microvolt = <3300000>;
197*4882a593Smuzhiyun				regulator-max-microvolt = <3300000>;
198*4882a593Smuzhiyun				regulator-name = "vcc_io";
199*4882a593Smuzhiyun			};
200*4882a593Smuzhiyun
201*4882a593Smuzhiyun			vccio_pmu: LDO_REG1 {
202*4882a593Smuzhiyun				regulator-always-on;
203*4882a593Smuzhiyun				regulator-boot-on;
204*4882a593Smuzhiyun				regulator-min-microvolt = <3300000>;
205*4882a593Smuzhiyun				regulator-max-microvolt = <3300000>;
206*4882a593Smuzhiyun				regulator-name = "vccio_pmu";
207*4882a593Smuzhiyun			};
208*4882a593Smuzhiyun
209*4882a593Smuzhiyun			vcc_tp: LDO_REG2 {
210*4882a593Smuzhiyun				regulator-always-on;
211*4882a593Smuzhiyun				regulator-boot-on;
212*4882a593Smuzhiyun				regulator-min-microvolt = <3300000>;
213*4882a593Smuzhiyun				regulator-max-microvolt = <3300000>;
214*4882a593Smuzhiyun				regulator-name = "vcc_tp";
215*4882a593Smuzhiyun			};
216*4882a593Smuzhiyun
217*4882a593Smuzhiyun			vdd_10: LDO_REG3 {
218*4882a593Smuzhiyun				regulator-always-on;
219*4882a593Smuzhiyun				regulator-boot-on;
220*4882a593Smuzhiyun				regulator-min-microvolt = <1000000>;
221*4882a593Smuzhiyun				regulator-max-microvolt = <1000000>;
222*4882a593Smuzhiyun				regulator-name = "vdd_10";
223*4882a593Smuzhiyun			};
224*4882a593Smuzhiyun
225*4882a593Smuzhiyun			vcc18_lcd: LDO_REG4 {
226*4882a593Smuzhiyun				regulator-always-on;
227*4882a593Smuzhiyun				regulator-boot-on;
228*4882a593Smuzhiyun				regulator-min-microvolt = <1800000>;
229*4882a593Smuzhiyun				regulator-max-microvolt = <1800000>;
230*4882a593Smuzhiyun				regulator-name = "vcc18_lcd";
231*4882a593Smuzhiyun			};
232*4882a593Smuzhiyun
233*4882a593Smuzhiyun			vccio_sd: LDO_REG5 {
234*4882a593Smuzhiyun				regulator-always-on;
235*4882a593Smuzhiyun				regulator-boot-on;
236*4882a593Smuzhiyun				regulator-min-microvolt = <1800000>;
237*4882a593Smuzhiyun				regulator-max-microvolt = <3300000>;
238*4882a593Smuzhiyun				regulator-name = "vccio_sd";
239*4882a593Smuzhiyun			};
240*4882a593Smuzhiyun
241*4882a593Smuzhiyun			vdd10_lcd: LDO_REG6 {
242*4882a593Smuzhiyun				regulator-always-on;
243*4882a593Smuzhiyun				regulator-boot-on;
244*4882a593Smuzhiyun				regulator-min-microvolt = <1000000>;
245*4882a593Smuzhiyun				regulator-max-microvolt = <1000000>;
246*4882a593Smuzhiyun				regulator-name = "vdd10_lcd";
247*4882a593Smuzhiyun			};
248*4882a593Smuzhiyun
249*4882a593Smuzhiyun			vcc_18: LDO_REG7 {
250*4882a593Smuzhiyun				regulator-always-on;
251*4882a593Smuzhiyun				regulator-boot-on;
252*4882a593Smuzhiyun				regulator-min-microvolt = <1800000>;
253*4882a593Smuzhiyun				regulator-max-microvolt = <1800000>;
254*4882a593Smuzhiyun				regulator-name = "vcc_18";
255*4882a593Smuzhiyun			};
256*4882a593Smuzhiyun
257*4882a593Smuzhiyun			vcca_codec: LDO_REG8 {
258*4882a593Smuzhiyun				regulator-always-on;
259*4882a593Smuzhiyun				regulator-boot-on;
260*4882a593Smuzhiyun				regulator-min-microvolt = <3300000>;
261*4882a593Smuzhiyun				regulator-max-microvolt = <3300000>;
262*4882a593Smuzhiyun				regulator-name = "vcca_codec";
263*4882a593Smuzhiyun			};
264*4882a593Smuzhiyun
265*4882a593Smuzhiyun			vcc_wl: SWITCH_REG1 {
266*4882a593Smuzhiyun				regulator-always-on;
267*4882a593Smuzhiyun				regulator-boot-on;
268*4882a593Smuzhiyun				regulator-name = "vcc_wl";
269*4882a593Smuzhiyun			};
270*4882a593Smuzhiyun
271*4882a593Smuzhiyun			vcc_lcd: SWITCH_REG2 {
272*4882a593Smuzhiyun				regulator-always-on;
273*4882a593Smuzhiyun				regulator-boot-on;
274*4882a593Smuzhiyun				regulator-name = "vcc_lcd";
275*4882a593Smuzhiyun			};
276*4882a593Smuzhiyun		};
277*4882a593Smuzhiyun	};
278