xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/regulator/slg51000.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* Dialog Semiconductor SLG51000 Voltage Regulator
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- compatible : Should be "dlg,slg51000" for SLG51000
5*4882a593Smuzhiyun- reg : Specifies the I2C slave address.
6*4882a593Smuzhiyun- xxx-supply: Input voltage supply regulator for ldo3 to ldo7.
7*4882a593Smuzhiyun  These entries are required if regulators are enabled for a device.
8*4882a593Smuzhiyun  An absence of these properties can cause the regulator registration to fail.
9*4882a593Smuzhiyun  If some of input supply is powered through battery or always-on supply then
10*4882a593Smuzhiyun  also it is required to have these parameters with proper node handle of always
11*4882a593Smuzhiyun  on power supply.
12*4882a593Smuzhiyun    vin3-supply: Input supply for ldo3
13*4882a593Smuzhiyun    vin4-supply: Input supply for ldo4
14*4882a593Smuzhiyun    vin5-supply: Input supply for ldo5
15*4882a593Smuzhiyun    vin6-supply: Input supply for ldo6
16*4882a593Smuzhiyun    vin7-supply: Input supply for ldo7
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunOptional properties:
19*4882a593Smuzhiyun- interrupt-parent : Specifies the reference to the interrupt controller.
20*4882a593Smuzhiyun- interrupts : IRQ line information.
21*4882a593Smuzhiyun- dlg,cs-gpios : Specify a valid GPIO for chip select
22*4882a593Smuzhiyun
23*4882a593SmuzhiyunSub-nodes:
24*4882a593Smuzhiyun- regulators : This node defines the settings for the regulators.
25*4882a593Smuzhiyun  The content of the sub-node is defined by the standard binding
26*4882a593Smuzhiyun  for regulators; see regulator.txt.
27*4882a593Smuzhiyun
28*4882a593Smuzhiyun  The SLG51000 regulators are bound using their names listed below:
29*4882a593Smuzhiyun    ldo1
30*4882a593Smuzhiyun    ldo2
31*4882a593Smuzhiyun    ldo3
32*4882a593Smuzhiyun    ldo4
33*4882a593Smuzhiyun    ldo5
34*4882a593Smuzhiyun    ldo6
35*4882a593Smuzhiyun    ldo7
36*4882a593Smuzhiyun
37*4882a593SmuzhiyunOptional properties for regulators:
38*4882a593Smuzhiyun- enable-gpios : Specify a valid GPIO for platform control of the regulator.
39*4882a593Smuzhiyun
40*4882a593SmuzhiyunExample:
41*4882a593Smuzhiyun	pmic: slg51000@75 {
42*4882a593Smuzhiyun		compatible = "dlg,slg51000";
43*4882a593Smuzhiyun		reg = <0x75>;
44*4882a593Smuzhiyun
45*4882a593Smuzhiyun		regulators {
46*4882a593Smuzhiyun			ldo1 {
47*4882a593Smuzhiyun			        regulator-name = "ldo1";
48*4882a593Smuzhiyun			        regulator-min-microvolt = <2400000>;
49*4882a593Smuzhiyun			        regulator-max-microvolt = <3300000>;
50*4882a593Smuzhiyun			};
51*4882a593Smuzhiyun
52*4882a593Smuzhiyun			ldo2 {
53*4882a593Smuzhiyun			        regulator-name = "ldo2";
54*4882a593Smuzhiyun			        regulator-min-microvolt = <2400000>;
55*4882a593Smuzhiyun			        regulator-max-microvolt = <3300000>;
56*4882a593Smuzhiyun			};
57*4882a593Smuzhiyun
58*4882a593Smuzhiyun			ldo3 {
59*4882a593Smuzhiyun			        regulator-name = "ldo3";
60*4882a593Smuzhiyun			        regulator-min-microvolt = <1200000>;
61*4882a593Smuzhiyun			        regulator-max-microvolt = <3750000>;
62*4882a593Smuzhiyun			};
63*4882a593Smuzhiyun
64*4882a593Smuzhiyun			ldo4 {
65*4882a593Smuzhiyun			        regulator-name = "ldo4";
66*4882a593Smuzhiyun			        regulator-min-microvolt = <1200000>;
67*4882a593Smuzhiyun			        regulator-max-microvolt = <3750000>;
68*4882a593Smuzhiyun			};
69*4882a593Smuzhiyun
70*4882a593Smuzhiyun			ldo5 {
71*4882a593Smuzhiyun			        regulator-name = "ldo5";
72*4882a593Smuzhiyun			        regulator-min-microvolt = <500000>;
73*4882a593Smuzhiyun			        regulator-max-microvolt = <1200000>;
74*4882a593Smuzhiyun			};
75*4882a593Smuzhiyun
76*4882a593Smuzhiyun			ldo6 {
77*4882a593Smuzhiyun			        regulator-name = "ldo6";
78*4882a593Smuzhiyun			        regulator-min-microvolt = <500000>;
79*4882a593Smuzhiyun			        regulator-max-microvolt = <1200000>;
80*4882a593Smuzhiyun			};
81*4882a593Smuzhiyun
82*4882a593Smuzhiyun			ldo7 {
83*4882a593Smuzhiyun			        regulator-name = "ldo7";
84*4882a593Smuzhiyun			        regulator-min-microvolt = <1200000>;
85*4882a593Smuzhiyun			        regulator-max-microvolt = <3750000>;
86*4882a593Smuzhiyun			};
87*4882a593Smuzhiyun		};
88*4882a593Smuzhiyun	};
89