xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/regulator/max8907.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunMAX8907 regulator
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- compatible: "maxim,max8907"
5*4882a593Smuzhiyun- reg: I2C slave address
6*4882a593Smuzhiyun- interrupts: The interrupt output of the controller
7*4882a593Smuzhiyun- mbatt-supply: The input supply for MBATT, BBAT, SDBY, VRTC.
8*4882a593Smuzhiyun- in-v1-supply: The input supply for SD1.
9*4882a593Smuzhiyun- in-v2-supply: The input supply for SD2.
10*4882a593Smuzhiyun- in-v3-supply: The input supply for SD3.
11*4882a593Smuzhiyun- in1-supply: The input supply for LDO1.
12*4882a593Smuzhiyun...
13*4882a593Smuzhiyun- in20-supply: The input supply for LDO20.
14*4882a593Smuzhiyun- regulators: A node that houses a sub-node for each regulator within the
15*4882a593Smuzhiyun  device. Each sub-node is identified using the node's name (or the deprecated
16*4882a593Smuzhiyun  regulator-compatible property if present), with valid values listed below.
17*4882a593Smuzhiyun  The content of each sub-node is defined by the standard binding for
18*4882a593Smuzhiyun  regulators; see regulator.txt.
19*4882a593Smuzhiyun
20*4882a593SmuzhiyunOptional properties:
21*4882a593Smuzhiyun- maxim,system-power-controller: Boolean property indicating that the PMIC
22*4882a593Smuzhiyun  controls the overall system power.
23*4882a593Smuzhiyun
24*4882a593SmuzhiyunThe valid names for regulators are:
25*4882a593Smuzhiyun
26*4882a593Smuzhiyun  sd1, sd2, sd3, ldo1, ldo2, ldo3, ldo4, ldo5, ldo6, ldo7, ldo8, ldo9, ldo10,
27*4882a593Smuzhiyun  ldo11, ldo12, ldo13, ldo14, ldo15, ldo16, ldo17, ldo18, ldo19, ldo20, out5v,
28*4882a593Smuzhiyun  out33v, bbat, sdby, vrtc.
29*4882a593Smuzhiyun
30*4882a593SmuzhiyunExample:
31*4882a593Smuzhiyun
32*4882a593Smuzhiyun		max8907@3c {
33*4882a593Smuzhiyun			compatible = "maxim,max8907";
34*4882a593Smuzhiyun			reg = <0x3c>;
35*4882a593Smuzhiyun			interrupts = <0 86 0x4>;
36*4882a593Smuzhiyun
37*4882a593Smuzhiyun			maxim,system-power-controller;
38*4882a593Smuzhiyun
39*4882a593Smuzhiyun			mbatt-supply = <&some_reg>;
40*4882a593Smuzhiyun			in-v1-supply = <&mbatt_reg>;
41*4882a593Smuzhiyun			...
42*4882a593Smuzhiyun			in1-supply = <&mbatt_reg>;
43*4882a593Smuzhiyun			...
44*4882a593Smuzhiyun
45*4882a593Smuzhiyun			regulators {
46*4882a593Smuzhiyun				mbatt_reg: mbatt {
47*4882a593Smuzhiyun					regulator-name = "vbat_pmu";
48*4882a593Smuzhiyun					regulator-min-microvolt = <5000000>;
49*4882a593Smuzhiyun					regulator-max-microvolt = <5000000>;
50*4882a593Smuzhiyun					regulator-always-on;
51*4882a593Smuzhiyun				};
52*4882a593Smuzhiyun
53*4882a593Smuzhiyun				sd1 {
54*4882a593Smuzhiyun					regulator-name = "nvvdd_sv1,vdd_cpu_pmu";
55*4882a593Smuzhiyun					regulator-min-microvolt = <1000000>;
56*4882a593Smuzhiyun					regulator-max-microvolt = <1000000>;
57*4882a593Smuzhiyun					regulator-always-on;
58*4882a593Smuzhiyun				};
59*4882a593Smuzhiyun
60*4882a593Smuzhiyun				sd2 {
61*4882a593Smuzhiyun					regulator-name = "nvvdd_sv2,vdd_core";
62*4882a593Smuzhiyun					regulator-min-microvolt = <1200000>;
63*4882a593Smuzhiyun					regulator-max-microvolt = <1200000>;
64*4882a593Smuzhiyun					regulator-always-on;
65*4882a593Smuzhiyun				};
66*4882a593Smuzhiyun...
67*4882a593Smuzhiyun			};
68*4882a593Smuzhiyun		};
69*4882a593Smuzhiyun	};
70