xref: /linux/Documentation/devicetree/bindings/regulator/as3722-regulator.txt (revision e5451c8f8330e03ad3cfa16048b4daf961af434f)
1*bc407334SLaxman DewanganRegulator of AMS AS3722 PMIC.
2*bc407334SLaxman DewanganName of the regulator subnode must be "regulators".
3*bc407334SLaxman Dewangan
4*bc407334SLaxman DewanganOptional properties:
5*bc407334SLaxman Dewangan--------------------
6*bc407334SLaxman DewanganThe input supply of regulators are the optional properties on the
7*bc407334SLaxman Dewanganregulator node. The AS3722 is having 7 DCDC step-down regulators as
8*bc407334SLaxman Dewangansd[0-6], 10 LDOs as ldo[0-7], ldo[9-11]. The input supply of these
9*bc407334SLaxman Dewanganregulators are provided through following properties:
10*bc407334SLaxman Dewanganvsup-sd2-supply: Input supply for SD2.
11*bc407334SLaxman Dewanganvsup-sd3-supply: Input supply for SD3.
12*bc407334SLaxman Dewanganvsup-sd4-supply: Input supply for SD4.
13*bc407334SLaxman Dewanganvsup-sd5-supply: Input supply for SD5.
14*bc407334SLaxman Dewanganvin-ldo0-supply: Input supply for LDO0.
15*bc407334SLaxman Dewanganvin-ldo1-6-supply: Input supply for LDO1 and LDO6.
16*bc407334SLaxman Dewanganvin-ldo2-5-7-supply: Input supply for LDO2, LDO5 and LDO7.
17*bc407334SLaxman Dewanganvin-ldo3-4-supply: Input supply for LDO3 and LDO4.
18*bc407334SLaxman Dewanganvin-ldo9-10-supply: Input supply for LDO9 and LDO10.
19*bc407334SLaxman Dewanganvin-ldo11-supply: Input supply for LDO11.
20*bc407334SLaxman Dewangan
21*bc407334SLaxman DewanganOptional nodes:
22*bc407334SLaxman Dewangan--------------
23*bc407334SLaxman Dewangan- regulators : Must contain a sub-node per regulator from the list below.
24*bc407334SLaxman Dewangan	       Each sub-node should contain the constraints and initialization
25*bc407334SLaxman Dewangan	       information for that regulator. See regulator.txt for a
26*bc407334SLaxman Dewangan	       description of standard properties for these sub-nodes.
27*bc407334SLaxman Dewangan	       Additional custom properties  are listed below.
28*bc407334SLaxman Dewangan	       sd[0-6], ldo[0-7], ldo[9-11].
29*bc407334SLaxman Dewangan
30*bc407334SLaxman Dewangan	       Optional sub-node properties:
31*bc407334SLaxman Dewangan	       ----------------------------
32*bc407334SLaxman Dewangan		ams,ext-control: External control of the rail. The option of
33*bc407334SLaxman Dewangan			this properties will tell which external input is
34*bc407334SLaxman Dewangan			controlling this rail. Valid values are 0, 1, 2 ad 3.
35*bc407334SLaxman Dewangan			0: There is no external control of this rail.
36*bc407334SLaxman Dewangan			1: Rail is controlled by ENABLE1 input pin.
37*bc407334SLaxman Dewangan			2: Rail is controlled by ENABLE2 input pin.
38*bc407334SLaxman Dewangan			3: Rail is controlled by ENABLE3 input pin.
39*bc407334SLaxman Dewangan		ams,enable-tracking: Enable tracking with SD1, only supported
40*bc407334SLaxman Dewangan			by LDO3.
41*bc407334SLaxman Dewangan
42*bc407334SLaxman DewanganExample:
43*bc407334SLaxman Dewangan-------
44*bc407334SLaxman Dewangan	ams3722: ams3722 {
45*bc407334SLaxman Dewangan		compatible = "ams,as3722";
46*bc407334SLaxman Dewangan		reg = <0x40>;
47*bc407334SLaxman Dewangan		...
48*bc407334SLaxman Dewangan
49*bc407334SLaxman Dewangan		regulators {
50*bc407334SLaxman Dewangan			vsup-sd2-supply = <...>;
51*bc407334SLaxman Dewangan			...
52*bc407334SLaxman Dewangan
53*bc407334SLaxman Dewangan			sd0 {
54*bc407334SLaxman Dewangan				regulator-name = "vdd_cpu";
55*bc407334SLaxman Dewangan				regulator-min-microvolt = <700000>;
56*bc407334SLaxman Dewangan				regulator-max-microvolt = <1400000>;
57*bc407334SLaxman Dewangan				regulator-always-on;
58*bc407334SLaxman Dewangan				ams,ext-control = <2>;
59*bc407334SLaxman Dewangan			};
60*bc407334SLaxman Dewangan
61*bc407334SLaxman Dewangan			sd1 {
62*bc407334SLaxman Dewangan				regulator-name = "vdd_core";
63*bc407334SLaxman Dewangan				regulator-min-microvolt = <700000>;
64*bc407334SLaxman Dewangan				regulator-max-microvolt = <1400000>;
65*bc407334SLaxman Dewangan				regulator-always-on;
66*bc407334SLaxman Dewangan				ams,ext-control = <1>;
67*bc407334SLaxman Dewangan			};
68*bc407334SLaxman Dewangan
69*bc407334SLaxman Dewangan			sd2 {
70*bc407334SLaxman Dewangan				regulator-name = "vddio_ddr";
71*bc407334SLaxman Dewangan				regulator-min-microvolt = <1350000>;
72*bc407334SLaxman Dewangan				regulator-max-microvolt = <1350000>;
73*bc407334SLaxman Dewangan				regulator-always-on;
74*bc407334SLaxman Dewangan			};
75*bc407334SLaxman Dewangan
76*bc407334SLaxman Dewangan			sd4 {
77*bc407334SLaxman Dewangan				regulator-name = "avdd-hdmi-pex";
78*bc407334SLaxman Dewangan				regulator-min-microvolt = <1050000>;
79*bc407334SLaxman Dewangan				regulator-max-microvolt = <1050000>;
80*bc407334SLaxman Dewangan				regulator-always-on;
81*bc407334SLaxman Dewangan			};
82*bc407334SLaxman Dewangan
83*bc407334SLaxman Dewangan			sd5 {
84*bc407334SLaxman Dewangan				regulator-name = "vdd-1v8";
85*bc407334SLaxman Dewangan				regulator-min-microvolt = <1800000>;
86*bc407334SLaxman Dewangan				regulator-max-microvolt = <1800000>;
87*bc407334SLaxman Dewangan				regulator-always-on;
88*bc407334SLaxman Dewangan			};
89*bc407334SLaxman Dewangan			....
90*bc407334SLaxman Dewangan		};
91*bc407334SLaxman Dewangan	};
92