xref: /freebsd/sys/contrib/device-tree/Bindings/regulator/max77802.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotBinding for Maxim MAX77802 regulators
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotThis is a part of device tree bindings of MAX77802 multi-function device.
4*c66ec88fSEmmanuel VadotMore information can be found in bindings/mfd/max77802.txt file.
5*c66ec88fSEmmanuel Vadot
6*c66ec88fSEmmanuel VadotThe MAX77802 PMIC has 10 high-efficiency Buck and 32 Low-dropout (LDO)
7*c66ec88fSEmmanuel Vadotregulators that can be controlled over I2C.
8*c66ec88fSEmmanuel Vadot
9*c66ec88fSEmmanuel VadotFollowing properties should be present in main device node of the MFD chip.
10*c66ec88fSEmmanuel Vadot
11*c66ec88fSEmmanuel VadotOptional properties:
12*c66ec88fSEmmanuel Vadot- inb1-supply:  The input supply for BUCK1
13*c66ec88fSEmmanuel Vadot- inb2-supply:  The input supply for BUCK2
14*c66ec88fSEmmanuel Vadot- inb3-supply:  The input supply for BUCK3
15*c66ec88fSEmmanuel Vadot- inb4-supply:  The input supply for BUCK4
16*c66ec88fSEmmanuel Vadot- inb5-supply:  The input supply for BUCK5
17*c66ec88fSEmmanuel Vadot- inb6-supply:  The input supply for BUCK6
18*c66ec88fSEmmanuel Vadot- inb7-supply:  The input supply for BUCK7
19*c66ec88fSEmmanuel Vadot- inb8-supply:  The input supply for BUCK8
20*c66ec88fSEmmanuel Vadot- inb9-supply:  The input supply for BUCK9
21*c66ec88fSEmmanuel Vadot- inb10-supply: The input supply for BUCK10
22*c66ec88fSEmmanuel Vadot- inl1-supply:  The input supply for LDO8 and LDO15
23*c66ec88fSEmmanuel Vadot- inl2-supply:  The input supply for LDO17, LDO27, LDO30 and LDO35
24*c66ec88fSEmmanuel Vadot- inl3-supply:  The input supply for LDO3, LDO5, LDO6 and LDO7
25*c66ec88fSEmmanuel Vadot- inl4-supply:  The input supply for LDO10, LDO11, LDO13 and LDO14
26*c66ec88fSEmmanuel Vadot- inl5-supply:  The input supply for LDO9 and LDO19
27*c66ec88fSEmmanuel Vadot- inl6-supply:  The input supply for LDO4, LDO21, LDO24 and LDO33
28*c66ec88fSEmmanuel Vadot- inl7-supply:  The input supply for LDO18, LDO20, LDO28 and LDO29
29*c66ec88fSEmmanuel Vadot- inl9-supply:  The input supply for LDO12, LDO23, LDO25, LDO26, LDO32 and LDO34
30*c66ec88fSEmmanuel Vadot- inl10-supply: The input supply for LDO1 and LDO2
31*c66ec88fSEmmanuel Vadot
32*c66ec88fSEmmanuel VadotOptional nodes:
33*c66ec88fSEmmanuel Vadot- regulators : The regulators of max77802 have to be instantiated
34*c66ec88fSEmmanuel Vadot  under subnode named "regulators" using the following format.
35*c66ec88fSEmmanuel Vadot
36*c66ec88fSEmmanuel Vadot	regulator-name {
37*c66ec88fSEmmanuel Vadot		standard regulator constraints....
38*c66ec88fSEmmanuel Vadot	};
39*c66ec88fSEmmanuel Vadot	refer Documentation/devicetree/bindings/regulator/regulator.txt
40*c66ec88fSEmmanuel Vadot
41*c66ec88fSEmmanuel VadotThe regulator node name should be initialized with a string to get matched
42*c66ec88fSEmmanuel Vadotwith their hardware counterparts as follow. The valid names are:
43*c66ec88fSEmmanuel Vadot
44*c66ec88fSEmmanuel Vadot	-LDOn 	:	for LDOs, where n can lie in ranges 1-15, 17-21, 23-30
45*c66ec88fSEmmanuel Vadot			and 32-35.
46*c66ec88fSEmmanuel Vadot			example: LDO1, LDO2, LDO35.
47*c66ec88fSEmmanuel Vadot	-BUCKn 	:	for BUCKs, where n can lie in range 1 to 10.
48*c66ec88fSEmmanuel Vadot			example: BUCK1, BUCK5, BUCK10.
49*c66ec88fSEmmanuel Vadot
50*c66ec88fSEmmanuel VadotThe max77802 regulator supports two different operating modes: Normal and Low
51*c66ec88fSEmmanuel VadotPower Mode. Some regulators support the modes to be changed at startup or by
52*c66ec88fSEmmanuel Vadotthe consumers during normal operation while others only support to change the
53*c66ec88fSEmmanuel Vadotmode during system suspend. The standard regulator suspend states binding can
54*c66ec88fSEmmanuel Vadotbe used to configure the regulator operating mode.
55*c66ec88fSEmmanuel Vadot
56*c66ec88fSEmmanuel VadotThe regulators that support the standard "regulator-initial-mode" property,
57*c66ec88fSEmmanuel Vadotchanging their mode during normal operation are: LDOs 1, 3, 20 and 21.
58*c66ec88fSEmmanuel Vadot
59*c66ec88fSEmmanuel VadotThe possible values for "regulator-initial-mode" and "regulator-mode" are:
60*c66ec88fSEmmanuel Vadot	1: Normal regulator voltage output mode.
61*c66ec88fSEmmanuel Vadot	3: Low Power which reduces the quiescent current down to only 1uA
62*c66ec88fSEmmanuel Vadot
63*c66ec88fSEmmanuel VadotThe valid modes list is defined in the dt-bindings/regulator/maxim,max77802.h
64*c66ec88fSEmmanuel Vadotheader and can be included by device tree source files.
65*c66ec88fSEmmanuel Vadot
66*c66ec88fSEmmanuel VadotThe standard "regulator-mode" property can only be used for regulators that
67*c66ec88fSEmmanuel Vadotsupport changing their mode to Low Power Mode during suspend. These regulators
68*c66ec88fSEmmanuel Vadotare: BUCKs 2-4 and LDOs 1-35. Also, it only takes effect if the regulator has
69*c66ec88fSEmmanuel Vadotbeen enabled for the given suspend state using "regulator-on-in-suspend" and
70*c66ec88fSEmmanuel Vadothas not been disabled for that state using "regulator-off-in-suspend".
71*c66ec88fSEmmanuel Vadot
72*c66ec88fSEmmanuel VadotExample:
73*c66ec88fSEmmanuel Vadot
74*c66ec88fSEmmanuel Vadot	max77802@9 {
75*c66ec88fSEmmanuel Vadot		compatible = "maxim,max77802";
76*c66ec88fSEmmanuel Vadot		interrupt-parent = <&wakeup_eint>;
77*c66ec88fSEmmanuel Vadot		interrupts = <26 0>;
78*c66ec88fSEmmanuel Vadot		reg = <0x09>;
79*c66ec88fSEmmanuel Vadot		#address-cells = <1>;
80*c66ec88fSEmmanuel Vadot		#size-cells = <0>;
81*c66ec88fSEmmanuel Vadot
82*c66ec88fSEmmanuel Vadot		inb1-supply = <&parent_reg>;
83*c66ec88fSEmmanuel Vadot
84*c66ec88fSEmmanuel Vadot		regulators {
85*c66ec88fSEmmanuel Vadot			ldo1_reg: LDO1 {
86*c66ec88fSEmmanuel Vadot				regulator-name = "vdd_1v0";
87*c66ec88fSEmmanuel Vadot				regulator-min-microvolt = <1000000>;
88*c66ec88fSEmmanuel Vadot				regulator-max-microvolt = <1000000>;
89*c66ec88fSEmmanuel Vadot				regulator-always-on;
90*c66ec88fSEmmanuel Vadot				regulator-initial-mode = <MAX77802_OPMODE_LP>;
91*c66ec88fSEmmanuel Vadot			};
92*c66ec88fSEmmanuel Vadot
93*c66ec88fSEmmanuel Vadot			ldo11_reg: LDO11 {
94*c66ec88fSEmmanuel Vadot				regulator-name = "vdd_ldo11";
95*c66ec88fSEmmanuel Vadot				regulator-min-microvolt = <1900000>;
96*c66ec88fSEmmanuel Vadot				regulator-max-microvolt = <1900000>;
97*c66ec88fSEmmanuel Vadot				regulator-always-on;
98*c66ec88fSEmmanuel Vadot				regulator-state-mem {
99*c66ec88fSEmmanuel Vadot					regulator-on-in-suspend;
100*c66ec88fSEmmanuel Vadot					regulator-mode = <MAX77802_OPMODE_LP>;
101*c66ec88fSEmmanuel Vadot				};
102*c66ec88fSEmmanuel Vadot			};
103*c66ec88fSEmmanuel Vadot
104*c66ec88fSEmmanuel Vadot			buck1_reg: BUCK1 {
105*c66ec88fSEmmanuel Vadot				regulator-name = "vdd_mif";
106*c66ec88fSEmmanuel Vadot				regulator-min-microvolt = <950000>;
107*c66ec88fSEmmanuel Vadot				regulator-max-microvolt = <1300000>;
108*c66ec88fSEmmanuel Vadot				regulator-always-on;
109*c66ec88fSEmmanuel Vadot				regulator-boot-on;
110*c66ec88fSEmmanuel Vadot			};
111*c66ec88fSEmmanuel Vadot	};
112