treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / Documentation / devicetree / bindings / regulator / st,stpmic1-regulator.txt
blob6189df71ea98f301288a358c9c139fc82d00e9d8
1 STMicroelectronics STPMIC1 Voltage regulators
3 Regulator Nodes are optional depending on needs.
5 Available Regulators in STPMIC1 device are:
6   - buck1 for Buck BUCK1
7   - buck2 for Buck BUCK2
8   - buck3 for Buck BUCK3
9   - buck4 for Buck BUCK4
10   - ldo1 for LDO LDO1
11   - ldo2 for LDO LDO2
12   - ldo3 for LDO LDO3
13   - ldo4 for LDO LDO4
14   - ldo5 for LDO LDO5
15   - ldo6 for LDO LDO6
16   - vref_ddr for LDO Vref DDR
17   - boost for Buck BOOST
18   - pwr_sw1 for VBUS_OTG switch
19   - pwr_sw2 for SW_OUT switch
21 Switches are fixed voltage regulators with only enable/disable capability.
23 Optional properties:
24 - st,mask-reset: mask reset for this regulator: the regulator configuration
25   is maintained during pmic reset.
26 - regulator-over-current-protection:
27     if set, all regulators are switched off in case of over-current detection
28     on this regulator,
29     if not set, the driver only sends an over-current event.
30 - interrupts: index of current limit detection interrupt
31 - <regulator>-supply: phandle to the parent supply/regulator node
32         each regulator supply can be described except vref_ddr.
33 - regulator-active-discharge: can be used on pwr_sw1 and pwr_sw2.
35 Example:
36 regulators {
37         compatible = "st,stpmic1-regulators";
39         ldo6-supply = <&v3v3>;
41         vdd_core: buck1 {
42                 regulator-name = "vdd_core";
43                 interrupts = <IT_CURLIM_BUCK1 0>;
44                 st,mask-reset;
45                 regulator-pull-down;
46                 regulator-min-microvolt = <700000>;
47                 regulator-max-microvolt = <1200000>;
48         };
50         v3v3: buck4 {
51                 regulator-name = "v3v3";
52                 interrupts = <IT_CURLIM_BUCK4 0>;
54                 regulator-min-microvolt = <3300000>;
55                 regulator-max-microvolt = <3300000>;
56         };
58         v1v8: ldo6 {
59                 regulator-name = "v1v8";
60                 regulator-min-microvolt = <1800000>;
61                 regulator-max-microvolt = <1800000>;
62                 regulator-over-current-protection;
63         };