xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/regulator/ltc3676.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunLinear Technology LTC3676 8-output regulators
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- compatible: "lltc,ltc3676"
5*4882a593Smuzhiyun- reg: I2C slave address
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunRequired child node:
8*4882a593Smuzhiyun- regulators: Contains eight regulator child nodes sw1, sw2, sw3, sw4,
9*4882a593Smuzhiyun  ldo1, ldo2, ldo3, and ldo4, specifying the initialization data as
10*4882a593Smuzhiyun  documented in Documentation/devicetree/bindings/regulator/regulator.txt.
11*4882a593Smuzhiyun
12*4882a593SmuzhiyunEach regulator is defined using the standard binding for regulators. The
13*4882a593Smuzhiyunnodes for sw1, sw2, sw3, sw4, ldo1, ldo2 and ldo4 additionally need to specify
14*4882a593Smuzhiyunthe resistor values of their external feedback voltage dividers:
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunRequired properties (not on ldo3):
17*4882a593Smuzhiyun- lltc,fb-voltage-divider: An array of two integers containing the resistor
18*4882a593Smuzhiyun  values R1 and R2 of the feedback voltage divider in ohms.
19*4882a593Smuzhiyun
20*4882a593SmuzhiyunRegulators sw1, sw2, sw3, sw4 can regulate the feedback reference from:
21*4882a593Smuzhiyun412.5mV to 800mV in 12.5 mV steps. The output voltage thus ranges between
22*4882a593Smuzhiyun0.4125 * (1 + R1/R2) V and 0.8 * (1 + R1/R2) V.
23*4882a593Smuzhiyun
24*4882a593SmuzhiyunRegulators ldo1, ldo2, and ldo4 have a fixed 0.725 V reference and thus output
25*4882a593Smuzhiyun0.725 * (1 + R1/R2) V. The ldo3 regulator is fixed to 1.8 V.  The ldo1 standby
26*4882a593Smuzhiyunregulator can not be disabled and thus should have the regulator-always-on
27*4882a593Smuzhiyunproperty set.
28*4882a593Smuzhiyun
29*4882a593SmuzhiyunExample:
30*4882a593Smuzhiyun
31*4882a593Smuzhiyun	ltc3676: pmic@3c {
32*4882a593Smuzhiyun		compatible = "lltc,ltc3676";
33*4882a593Smuzhiyun		reg = <0x3c>;
34*4882a593Smuzhiyun
35*4882a593Smuzhiyun		regulators {
36*4882a593Smuzhiyun			sw1_reg: sw1 {
37*4882a593Smuzhiyun				regulator-min-microvolt = <674400>;
38*4882a593Smuzhiyun				regulator-max-microvolt = <1308000>;
39*4882a593Smuzhiyun				lltc,fb-voltage-divider = <127000 200000>;
40*4882a593Smuzhiyun				regulator-ramp-delay = <7000>;
41*4882a593Smuzhiyun				regulator-boot-on;
42*4882a593Smuzhiyun				regulator-always-on;
43*4882a593Smuzhiyun			};
44*4882a593Smuzhiyun
45*4882a593Smuzhiyun			sw2_reg: sw2 {
46*4882a593Smuzhiyun				regulator-min-microvolt = <1033310>;
47*4882a593Smuzhiyun				regulator-max-microvolt = <200400>;
48*4882a593Smuzhiyun				lltc,fb-voltage-divider = <301000 200000>;
49*4882a593Smuzhiyun				regulator-ramp-delay = <7000>;
50*4882a593Smuzhiyun				regulator-boot-on;
51*4882a593Smuzhiyun				regulator-always-on;
52*4882a593Smuzhiyun			};
53*4882a593Smuzhiyun
54*4882a593Smuzhiyun			sw3_reg: sw3 {
55*4882a593Smuzhiyun				regulator-min-microvolt = <674400>;
56*4882a593Smuzhiyun				regulator-max-microvolt = <130800>;
57*4882a593Smuzhiyun				lltc,fb-voltage-divider = <127000 200000>;
58*4882a593Smuzhiyun				regulator-ramp-delay = <7000>;
59*4882a593Smuzhiyun				regulator-boot-on;
60*4882a593Smuzhiyun				regulator-always-on;
61*4882a593Smuzhiyun			};
62*4882a593Smuzhiyun
63*4882a593Smuzhiyun			sw4_reg: sw4 {
64*4882a593Smuzhiyun				regulator-min-microvolt = <868310>;
65*4882a593Smuzhiyun				regulator-max-microvolt = <168400>;
66*4882a593Smuzhiyun				lltc,fb-voltage-divider = <221000 200000>;
67*4882a593Smuzhiyun				regulator-ramp-delay = <7000>;
68*4882a593Smuzhiyun				regulator-boot-on;
69*4882a593Smuzhiyun				regulator-always-on;
70*4882a593Smuzhiyun			};
71*4882a593Smuzhiyun
72*4882a593Smuzhiyun			ldo2_reg: ldo2 {
73*4882a593Smuzhiyun				regulator-min-microvolt = <2490375>;
74*4882a593Smuzhiyun				regulator-max-microvolt = <2490375>;
75*4882a593Smuzhiyun				lltc,fb-voltage-divider = <487000 200000>;
76*4882a593Smuzhiyun				regulator-boot-on;
77*4882a593Smuzhiyun				regulator-always-on;
78*4882a593Smuzhiyun			};
79*4882a593Smuzhiyun
80*4882a593Smuzhiyun			ldo3_reg: ldo3 {
81*4882a593Smuzhiyun				regulator-min-microvolt = <1800000>;
82*4882a593Smuzhiyun				regulator-max-microvolt = <1800000>;
83*4882a593Smuzhiyun				regulator-boot-on;
84*4882a593Smuzhiyun			};
85*4882a593Smuzhiyun
86*4882a593Smuzhiyun			ldo4_reg: ldo4 {
87*4882a593Smuzhiyun				regulator-min-microvolt = <3023250>;
88*4882a593Smuzhiyun				regulator-max-microvolt = <3023250>;
89*4882a593Smuzhiyun				lltc,fb-voltage-divider = <634000 200000>;
90*4882a593Smuzhiyun				regulator-boot-on;
91*4882a593Smuzhiyun				regulator-always-on;
92*4882a593Smuzhiyun			};
93*4882a593Smuzhiyun		};
94*4882a593Smuzhiyun	};
95