Merge tag '9p-for-5.3' of git://github.com/martinetd/linux
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / mfd / st,stpmic1.txt
1 * STMicroelectronics STPMIC1 Power Management IC
2
3 Required properties:
4 - compatible:           : "st,stpmic1"
5 - reg:                  : The I2C slave address for the STPMIC1 chip.
6 - interrupts:           : The interrupt line the device is connected to.
7 - #interrupt-cells:     : Should be 1.
8 - interrupt-controller: : Marks the device node as an interrupt controller.
9                             Interrupt numbers are defined at
10                             dt-bindings/mfd/st,stpmic1.h.
11
12 STPMIC1 consists in a varied group of sub-devices.
13 Each sub-device binding is be described in own documentation file.
14
15 Device                   Description
16 ------                  ------------
17 st,stpmic1-onkey        : Power on key, see ../input/st,stpmic1-onkey.txt
18 st,stpmic1-regulators   : Regulators, see ../regulator/st,stpmic1-regulator.txt
19 st,stpmic1-wdt          : Watchdog, see ../watchdog/st,stpmic1-wdt.txt
20
21 Example:
22
23 #include <dt-bindings/mfd/st,stpmic1.h>
24
25 pmic: pmic@33 {
26         compatible = "st,stpmic1";
27         reg = <0x33>;
28         interrupt-parent = <&gpioa>;
29         interrupts = <0 2>;
30
31         interrupt-controller;
32         #interrupt-cells = <2>;
33
34         onkey {
35                 compatible = "st,stpmic1-onkey";
36                 interrupts = <IT_PONKEY_F 0>,<IT_PONKEY_R 1>;
37                 interrupt-names = "onkey-falling", "onkey-rising";
38                 power-off-time-sec = <10>;
39         };
40
41         watchdog {
42                 compatible = "st,stpmic1-wdt";
43         };
44
45         regulators {
46                 compatible = "st,stpmic1-regulators";
47
48                 vdd_core: buck1 {
49                         regulator-name = "vdd_core";
50                         regulator-boot-on;
51                         regulator-min-microvolt = <700000>;
52                         regulator-max-microvolt = <1200000>;
53                 };
54                 vdd: buck3 {
55                         regulator-name = "vdd";
56                         regulator-min-microvolt = <3300000>;
57                         regulator-max-microvolt = <3300000>;
58                         regulator-boot-on;
59                         regulator-pull-down;
60                 };
61         };