xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mfd/tps6507x.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunTPS6507x Power Management Integrated Circuit
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- compatible: "ti,tps6507x"
5*4882a593Smuzhiyun- reg: I2C slave address
6*4882a593Smuzhiyun- regulators: This is the list of child nodes that specify the regulator
7*4882a593Smuzhiyun  initialization data for defined regulators. Not all regulators for the
8*4882a593Smuzhiyun  given device need to be present. The definition for each of these nodes
9*4882a593Smuzhiyun  is defined using the standard binding for regulators found at
10*4882a593Smuzhiyun  Documentation/devicetree/bindings/regulator/regulator.txt.
11*4882a593Smuzhiyun  The regulator is matched with the regulator-compatible.
12*4882a593Smuzhiyun
13*4882a593Smuzhiyun  The valid regulator-compatible values are:
14*4882a593Smuzhiyun  tps6507x: vdcdc1, vdcdc2, vdcdc3, vldo1, vldo2
15*4882a593Smuzhiyun- xxx-supply: Input voltage supply regulator.
16*4882a593Smuzhiyun  These entries are required if regulators are enabled for a device.
17*4882a593Smuzhiyun  Missing of these properties can cause the regulator registration
18*4882a593Smuzhiyun  fails.
19*4882a593Smuzhiyun  If some of input supply is powered through battery or always-on
20*4882a593Smuzhiyun  supply then also it is require to have these parameters with proper
21*4882a593Smuzhiyun  node handle of always on power supply.
22*4882a593Smuzhiyun  tps6507x:
23*4882a593Smuzhiyun       vindcdc1_2-supply: VDCDC1 and VDCDC2 input.
24*4882a593Smuzhiyun       vindcdc3-supply  : VDCDC3 input.
25*4882a593Smuzhiyun       vldo1_2-supply   : VLDO1 and VLDO2 input.
26*4882a593Smuzhiyun
27*4882a593SmuzhiyunRegulator Optional properties:
28*4882a593Smuzhiyun- defdcdc_default: It's property of DCDC2 and DCDC3 regulators.
29*4882a593Smuzhiyun			0: If defdcdc pin of DCDC2/DCDC3 is pulled to GND.
30*4882a593Smuzhiyun			1: If defdcdc pin of DCDC2/DCDC3 is driven HIGH.
31*4882a593Smuzhiyun  If this property is not defined, it defaults to 0 (not enabled).
32*4882a593Smuzhiyun
33*4882a593SmuzhiyunExample:
34*4882a593Smuzhiyun
35*4882a593Smuzhiyun	pmu: tps6507x@48 {
36*4882a593Smuzhiyun		compatible = "ti,tps6507x";
37*4882a593Smuzhiyun		reg = <0x48>;
38*4882a593Smuzhiyun
39*4882a593Smuzhiyun		vindcdc1_2-supply = <&vbat>;
40*4882a593Smuzhiyun		vindcdc3-supply = <...>;
41*4882a593Smuzhiyun		vinldo1_2-supply = <...>;
42*4882a593Smuzhiyun
43*4882a593Smuzhiyun		regulators {
44*4882a593Smuzhiyun			#address-cells = <1>;
45*4882a593Smuzhiyun			#size-cells = <0>;
46*4882a593Smuzhiyun
47*4882a593Smuzhiyun			vdcdc1_reg: regulator@0 {
48*4882a593Smuzhiyun				regulator-compatible = "VDCDC1";
49*4882a593Smuzhiyun				reg = <0>;
50*4882a593Smuzhiyun				regulator-min-microvolt = <3150000>;
51*4882a593Smuzhiyun				regulator-max-microvolt = <3450000>;
52*4882a593Smuzhiyun				regulator-always-on;
53*4882a593Smuzhiyun				regulator-boot-on;
54*4882a593Smuzhiyun			};
55*4882a593Smuzhiyun			vdcdc2_reg: regulator@1 {
56*4882a593Smuzhiyun				regulator-compatible = "VDCDC2";
57*4882a593Smuzhiyun				reg = <1>;
58*4882a593Smuzhiyun				regulator-min-microvolt = <1710000>;
59*4882a593Smuzhiyun				regulator-max-microvolt = <3450000>;
60*4882a593Smuzhiyun				regulator-always-on;
61*4882a593Smuzhiyun				regulator-boot-on;
62*4882a593Smuzhiyun				defdcdc_default = <1>;
63*4882a593Smuzhiyun			};
64*4882a593Smuzhiyun			vdcdc3_reg: regulator@2 {
65*4882a593Smuzhiyun				regulator-compatible = "VDCDC3";
66*4882a593Smuzhiyun				reg = <2>;
67*4882a593Smuzhiyun				regulator-min-microvolt = <950000>
68*4882a593Smuzhiyun				regulator-max-microvolt = <1350000>;
69*4882a593Smuzhiyun				regulator-always-on;
70*4882a593Smuzhiyun				regulator-boot-on;
71*4882a593Smuzhiyun				defdcdc_default = <1>;
72*4882a593Smuzhiyun			};
73*4882a593Smuzhiyun			ldo1_reg: regulator@3 {
74*4882a593Smuzhiyun				regulator-compatible = "LDO1";
75*4882a593Smuzhiyun				reg = <3>;
76*4882a593Smuzhiyun				regulator-min-microvolt = <1710000>;
77*4882a593Smuzhiyun				regulator-max-microvolt = <1890000>;
78*4882a593Smuzhiyun				regulator-always-on;
79*4882a593Smuzhiyun				regulator-boot-on;
80*4882a593Smuzhiyun			};
81*4882a593Smuzhiyun			ldo2_reg: regulator@4 {
82*4882a593Smuzhiyun				regulator-compatible = "LDO2";
83*4882a593Smuzhiyun				reg = <4>;
84*4882a593Smuzhiyun				regulator-min-microvolt = <1140000>;
85*4882a593Smuzhiyun				regulator-max-microvolt = <1320000>;
86*4882a593Smuzhiyun				regulator-always-on;
87*4882a593Smuzhiyun				regulator-boot-on;
88*4882a593Smuzhiyun			};
89*4882a593Smuzhiyun		};
90*4882a593Smuzhiyun
91*4882a593Smuzhiyun	};
92