xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/regulator/samsung,s2mpa01.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunBinding for Samsung S2MPA01 regulator block
2*4882a593Smuzhiyun===========================================
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunThis is a part of device tree bindings for S2M family multi-function devices.
5*4882a593SmuzhiyunMore information can be found in bindings/mfd/sec-core.txt file.
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunThe S2MPA01 device provide buck and LDO regulators.
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunTo register these with regulator framework instantiate under main device node
10*4882a593Smuzhiyuna sub-node named "regulators" with more sub-nodes for each regulator using the
11*4882a593Smuzhiyuncommon regulator binding documented in:
12*4882a593Smuzhiyun - Documentation/devicetree/bindings/regulator/regulator.txt
13*4882a593Smuzhiyun
14*4882a593Smuzhiyun
15*4882a593SmuzhiyunNames of regulators supported by S2MPA01 device:
16*4882a593Smuzhiyun	- LDOn
17*4882a593Smuzhiyun		  - valid values for n are 1 to 26
18*4882a593Smuzhiyun		  - Example: LDO1, LD02, LDO26
19*4882a593Smuzhiyun	- BUCKn
20*4882a593Smuzhiyun		  - valid values for n are 1 to 10.
21*4882a593Smuzhiyun		  - Example: BUCK1, BUCK2, BUCK9
22*4882a593SmuzhiyunNote: The 'n' in LDOn and BUCKn represents the LDO or BUCK number
23*4882a593Smuzhiyunas per the datasheet of device.
24*4882a593Smuzhiyun
25*4882a593Smuzhiyun
26*4882a593SmuzhiyunOptional properties of buck regulator nodes under "regulators" sub-node:
27*4882a593Smuzhiyun - regulator-ramp-delay: ramp delay in uV/us. May be 6250, 12500
28*4882a593Smuzhiyun   (default), 25000, or 50000. May be 0 for disabling the ramp delay on
29*4882a593Smuzhiyun   BUCK{1,2,3,4}.
30*4882a593Smuzhiyun
31*4882a593Smuzhiyun   In the absence of the regulator-ramp-delay property, the default ramp
32*4882a593Smuzhiyun   delay will be used.
33*4882a593Smuzhiyun
34*4882a593Smuzhiyun   Note: Some bucks share the ramp rate setting i.e. same ramp value
35*4882a593Smuzhiyun   will be set for a particular group of bucks so provide the same
36*4882a593Smuzhiyun   regulator-ramp-delay value for them.
37*4882a593Smuzhiyun   Groups sharing ramp rate:
38*4882a593Smuzhiyun    - buck{1,6},
39*4882a593Smuzhiyun    - buck{2,4},
40*4882a593Smuzhiyun    - buck{8,9,10}.
41*4882a593Smuzhiyun
42*4882a593SmuzhiyunExample:
43*4882a593Smuzhiyun
44*4882a593Smuzhiyun	s2mpa01_pmic@66 {
45*4882a593Smuzhiyun		compatible = "samsung,s2mpa01-pmic";
46*4882a593Smuzhiyun		reg = <0x66>;
47*4882a593Smuzhiyun
48*4882a593Smuzhiyun		regulators {
49*4882a593Smuzhiyun			ldo1_reg: LDO1 {
50*4882a593Smuzhiyun				regulator-name = "VDD_ALIVE";
51*4882a593Smuzhiyun				regulator-min-microvolt = <1000000>;
52*4882a593Smuzhiyun				regulator-max-microvolt = <1000000>;
53*4882a593Smuzhiyun			};
54*4882a593Smuzhiyun
55*4882a593Smuzhiyun			ldo2_reg: LDO2 {
56*4882a593Smuzhiyun				regulator-name = "VDDQ_MMC2";
57*4882a593Smuzhiyun				regulator-min-microvolt = <2800000>;
58*4882a593Smuzhiyun				regulator-max-microvolt = <2800000>;
59*4882a593Smuzhiyun				regulator-always-on;
60*4882a593Smuzhiyun			};
61*4882a593Smuzhiyun
62*4882a593Smuzhiyun			buck1_reg: BUCK1 {
63*4882a593Smuzhiyun				regulator-name = "vdd_mif";
64*4882a593Smuzhiyun				regulator-min-microvolt = <950000>;
65*4882a593Smuzhiyun				regulator-max-microvolt = <1350000>;
66*4882a593Smuzhiyun				regulator-always-on;
67*4882a593Smuzhiyun				regulator-boot-on;
68*4882a593Smuzhiyun			};
69*4882a593Smuzhiyun
70*4882a593Smuzhiyun			buck2_reg: BUCK2 {
71*4882a593Smuzhiyun				regulator-name = "vdd_arm";
72*4882a593Smuzhiyun				regulator-min-microvolt = <950000>;
73*4882a593Smuzhiyun				regulator-max-microvolt = <1350000>;
74*4882a593Smuzhiyun				regulator-always-on;
75*4882a593Smuzhiyun				regulator-boot-on;
76*4882a593Smuzhiyun				regulator-ramp-delay = <50000>;
77*4882a593Smuzhiyun			};
78*4882a593Smuzhiyun		};
79*4882a593Smuzhiyun	};
80