xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/regulator/max8952.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunMaxim MAX8952 voltage regulator
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- compatible: must be equal to "maxim,max8952"
5*4882a593Smuzhiyun- reg: I2C slave address, usually 0x60
6*4882a593Smuzhiyun- max8952,dvs-mode-microvolt: array of 4 integer values defining DVS voltages
7*4882a593Smuzhiyun  in microvolts. All values must be from range <770000, 1400000>
8*4882a593Smuzhiyun- any required generic properties defined in regulator.txt
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunOptional properties:
11*4882a593Smuzhiyun- max8952,vid-gpios: array of two GPIO pins used for DVS voltage selection
12*4882a593Smuzhiyun- max8952,en-gpio: GPIO used to control enable status of regulator
13*4882a593Smuzhiyun- max8952,default-mode: index of default DVS voltage, from <0, 3> range
14*4882a593Smuzhiyun- max8952,sync-freq: sync frequency, must be one of following values:
15*4882a593Smuzhiyun    - 0: 26 MHz
16*4882a593Smuzhiyun    - 1: 13 MHz
17*4882a593Smuzhiyun    - 2: 19.2 MHz
18*4882a593Smuzhiyun  Defaults to 26 MHz if not specified.
19*4882a593Smuzhiyun- max8952,ramp-speed: voltage ramp speed, must be one of following values:
20*4882a593Smuzhiyun    - 0: 32mV/us
21*4882a593Smuzhiyun    - 1: 16mV/us
22*4882a593Smuzhiyun    - 2: 8mV/us
23*4882a593Smuzhiyun    - 3: 4mV/us
24*4882a593Smuzhiyun    - 4: 2mV/us
25*4882a593Smuzhiyun    - 5: 1mV/us
26*4882a593Smuzhiyun    - 6: 0.5mV/us
27*4882a593Smuzhiyun    - 7: 0.25mV/us
28*4882a593Smuzhiyun  Defaults to 32mV/us if not specified.
29*4882a593Smuzhiyun- any available generic properties defined in regulator.txt
30*4882a593Smuzhiyun
31*4882a593SmuzhiyunExample:
32*4882a593Smuzhiyun
33*4882a593Smuzhiyun	vdd_arm_reg: pmic@60 {
34*4882a593Smuzhiyun		compatible = "maxim,max8952";
35*4882a593Smuzhiyun		reg = <0x60>;
36*4882a593Smuzhiyun
37*4882a593Smuzhiyun		/* max8952-specific properties */
38*4882a593Smuzhiyun		max8952,vid-gpios = <&gpx0 3 0>, <&gpx0 4 0>;
39*4882a593Smuzhiyun		max8952,en-gpio = <&gpx0 1 0>;
40*4882a593Smuzhiyun		max8952,default-mode = <0>;
41*4882a593Smuzhiyun		max8952,dvs-mode-microvolt = <1250000>, <1200000>,
42*4882a593Smuzhiyun						<1050000>, <950000>;
43*4882a593Smuzhiyun		max8952,sync-freq = <0>;
44*4882a593Smuzhiyun		max8952,ramp-speed = <0>;
45*4882a593Smuzhiyun
46*4882a593Smuzhiyun		/* generic regulator properties */
47*4882a593Smuzhiyun		regulator-name = "vdd_arm";
48*4882a593Smuzhiyun		regulator-min-microvolt = <770000>;
49*4882a593Smuzhiyun		regulator-max-microvolt = <1400000>;
50*4882a593Smuzhiyun		regulator-always-on;
51*4882a593Smuzhiyun		regulator-boot-on;
52*4882a593Smuzhiyun	};
53