]> git.karo-electronics.de Git - linux-beck.git/blob - Documentation/devicetree/bindings/mfd/tps65910.txt
ARM: socfpga: initial support for Altera's SOCFPGA platform
[linux-beck.git] / Documentation / devicetree / bindings / mfd / tps65910.txt
1 TPS65910 Power Management Integrated Circuit
2
3 Required properties:
4 - compatible: "ti,tps65910" or "ti,tps65911"
5 - reg: I2C slave address
6 - interrupts: the interrupt outputs of the controller
7 - #gpio-cells: number of cells to describe a GPIO, this should be 2.
8   The first cell is the GPIO number.
9   The second cell is used to specify additional options <unused>.
10 - gpio-controller: mark the device as a GPIO controller
11 - #interrupt-cells: the number of cells to describe an IRQ, this should be 2.
12   The first cell is the IRQ number.
13   The second cell is the flags, encoded as the trigger masks from
14   Documentation/devicetree/bindings/interrupts.txt
15 - regulators: This is the list of child nodes that specify the regulator
16   initialization data for defined regulators. Not all regulators for the given
17   device need to be present. The definition for each of these nodes is defined
18   using the standard binding for regulators found at
19   Documentation/devicetree/bindings/regulator/regulator.txt.
20
21   The valid names for regulators are:
22   tps65910: vrtc, vio, vdd1, vdd2, vdd3, vdig1, vdig2, vpll, vdac, vaux1,
23             vaux2, vaux33, vmmc
24   tps65911: vrtc, vio, vdd1, vdd3, vddctrl, ldo1, ldo2, ldo3, ldo4, ldo5,
25             ldo6, ldo7, ldo8
26
27 Optional properties:
28 - ti,vmbch-threshold: (tps65911) main battery charged threshold
29   comparator. (see VMBCH_VSEL in TPS65910 datasheet)
30 - ti,vmbch2-threshold: (tps65911) main battery discharged threshold
31   comparator. (see VMBCH_VSEL in TPS65910 datasheet)
32 - ti,en-gpio-sleep: enable sleep control for gpios
33   There should be 9 entries here, one for each gpio.
34
35 Regulator Optional properties:
36 - ti,regulator-ext-sleep-control: enable external sleep
37   control through external inputs [0 (not enabled), 1 (EN1), 2 (EN2) or 4(EN3)]
38   If this property is not defined, it defaults to 0 (not enabled).
39
40 Example:
41
42         pmu: tps65910@d2 {
43                 compatible = "ti,tps65910";
44                 reg = <0xd2>;
45                 interrupt-parent = <&intc>;
46                 interrupts = < 0 118 0x04 >;
47
48                 #gpio-cells = <2>;
49                 gpio-controller;
50
51                 #interrupt-cells = <2>;
52                 interrupt-controller;
53
54                 ti,vmbch-threshold = 0;
55                 ti,vmbch2-threshold = 0;
56
57                 ti,en-gpio-sleep = <0 0 1 0 0 0 0 0 0>;
58
59                 regulators {
60                         vdd1_reg: vdd1 {
61                                 regulator-min-microvolt = < 600000>;
62                                 regulator-max-microvolt = <1500000>;
63                                 regulator-always-on;
64                                 regulator-boot-on;
65                                 ti,regulator-ext-sleep-control = <0>;
66                         };
67                         vdd2_reg: vdd2 {
68                                 regulator-min-microvolt = < 600000>;
69                                 regulator-max-microvolt = <1500000>;
70                                 regulator-always-on;
71                                 regulator-boot-on;
72                                 ti,regulator-ext-sleep-control = <4>;
73                         };
74                         vddctrl_reg: vddctrl {
75                                 regulator-min-microvolt = < 600000>;
76                                 regulator-max-microvolt = <1400000>;
77                                 regulator-always-on;
78                                 regulator-boot-on;
79                                 ti,regulator-ext-sleep-control = <0>;
80                         };
81                         vio_reg: vio {
82                                 regulator-min-microvolt = <1500000>;
83                                 regulator-max-microvolt = <1800000>;
84                                 regulator-always-on;
85                                 regulator-boot-on;
86                                 ti,regulator-ext-sleep-control = <1>;
87                         };
88                         ldo1_reg: ldo1 {
89                                 regulator-min-microvolt = <1000000>;
90                                 regulator-max-microvolt = <3300000>;
91                                 ti,regulator-ext-sleep-control = <0>;
92                         };
93                         ldo2_reg: ldo2 {
94                                 regulator-min-microvolt = <1050000>;
95                                 regulator-max-microvolt = <1050000>;
96                                 ti,regulator-ext-sleep-control = <0>;
97                         };
98                         ldo3_reg: ldo3 {
99                                 regulator-min-microvolt = <1000000>;
100                                 regulator-max-microvolt = <3300000>;
101                                 ti,regulator-ext-sleep-control = <0>;
102                         };
103                         ldo4_reg: ldo4 {
104                                 regulator-min-microvolt = <1000000>;
105                                 regulator-max-microvolt = <3300000>;
106                                 regulator-always-on;
107                                 ti,regulator-ext-sleep-control = <0>;
108                         };
109                         ldo5_reg: ldo5 {
110                                 regulator-min-microvolt = <1000000>;
111                                 regulator-max-microvolt = <3300000>;
112                                 ti,regulator-ext-sleep-control = <0>;
113                         };
114                         ldo6_reg: ldo6 {
115                                 regulator-min-microvolt = <1200000>;
116                                 regulator-max-microvolt = <1200000>;
117                                 ti,regulator-ext-sleep-control = <0>;
118                         };
119                         ldo7_reg: ldo7 {
120                                 regulator-min-microvolt = <1200000>;
121                                 regulator-max-microvolt = <1200000>;
122                                 regulator-always-on;
123                                 regulator-boot-on;
124                                 ti,regulator-ext-sleep-control = <1>;
125                         };
126                         ldo8_reg: ldo8 {
127                                 regulator-min-microvolt = <1000000>;
128                                 regulator-max-microvolt = <3300000>;
129                                 regulator-always-on;
130                                 ti,regulator-ext-sleep-control = <1>;
131                         };
132                 };
133         };