Merge git://1984.lsi.us.es/nf-next
[cascardo/linux.git] / Documentation / devicetree / bindings / regulator / tps6586x.txt
1 TPS6586x family of regulators
2
3 Required properties:
4 - compatible: "ti,tps6586x"
5 - reg: I2C slave address
6 - interrupts: the interrupt outputs of the controller
7 - #gpio-cells: number of cells to describe a GPIO
8 - gpio-controller: mark the device as a GPIO controller
9 - regulators: list of regulators provided by this controller, must have
10   property "regulator-compatible" to match their hardware counterparts:
11   sm[0-2], ldo[0-9] and ldo_rtc
12 - vin-sm0-supply: The input supply for the SM0.
13 - vin-sm1-supply: The input supply for the SM1.
14 - vin-sm2-supply: The input supply for the SM2.
15 - vinldo01-supply: The input supply for the LDO1 and LDO2
16 - vinldo23-supply: The input supply for the LDO2 and LDO3
17 - vinldo4-supply: The input supply for the LDO4
18 - vinldo678-supply: The input supply for the LDO6, LDO7 and LDO8
19 - vinldo9-supply: The input supply for the LDO9
20
21 Each regulator is defined using the standard binding for regulators.
22
23 Example:
24
25         pmu: tps6586x@34 {
26                 compatible = "ti,tps6586x";
27                 reg = <0x34>;
28                 interrupts = <0 88 0x4>;
29
30                 #gpio-cells = <2>;
31                 gpio-controller;
32
33                 vin-sm0-supply = <&some_reg>;
34                 vin-sm1-supply = <&some_reg>;
35                 vin-sm2-supply = <&some_reg>;
36                 vinldo01-supply = <...>;
37                 vinldo23-supply = <...>;
38                 vinldo4-supply = <...>;
39                 vinldo678-supply = <...>;
40                 vinldo9-supply = <...>;
41
42                 regulators {
43                         #address-cells = <1>;
44                         #size-cells = <0>;
45
46                         sm0_reg: regulator@0 {
47                                 reg = <0>;
48                                 regulator-compatible = "sm0";
49                                 regulator-min-microvolt = < 725000>;
50                                 regulator-max-microvolt = <1500000>;
51                                 regulator-boot-on;
52                                 regulator-always-on;
53                         };
54
55                         sm1_reg: regulator@1 {
56                                 reg = <1>;
57                                 regulator-compatible = "sm1";
58                                 regulator-min-microvolt = < 725000>;
59                                 regulator-max-microvolt = <1500000>;
60                                 regulator-boot-on;
61                                 regulator-always-on;
62                         };
63
64                         sm2_reg: regulator@2 {
65                                 reg = <2>;
66                                 regulator-compatible = "sm2";
67                                 regulator-min-microvolt = <3000000>;
68                                 regulator-max-microvolt = <4550000>;
69                                 regulator-boot-on;
70                                 regulator-always-on;
71                         };
72
73                         ldo0_reg: regulator@3 {
74                                 reg = <3>;
75                                 regulator-compatible = "ldo0";
76                                 regulator-name = "PCIE CLK";
77                                 regulator-min-microvolt = <3300000>;
78                                 regulator-max-microvolt = <3300000>;
79                         };
80
81                         ldo1_reg: regulator@4 {
82                                 reg = <4>;
83                                 regulator-compatible = "ldo1";
84                                 regulator-min-microvolt = < 725000>;
85                                 regulator-max-microvolt = <1500000>;
86                         };
87
88                         ldo2_reg: regulator@5 {
89                                 reg = <5>;
90                                 regulator-compatible = "ldo2";
91                                 regulator-min-microvolt = < 725000>;
92                                 regulator-max-microvolt = <1500000>;
93                         };
94
95                         ldo3_reg: regulator@6 {
96                                 reg = <6>;
97                                 regulator-compatible = "ldo3";
98                                 regulator-min-microvolt = <1250000>;
99                                 regulator-max-microvolt = <3300000>;
100                         };
101
102                         ldo4_reg: regulator@7 {
103                                 reg = <7>;
104                                 regulator-compatible = "ldo4";
105                                 regulator-min-microvolt = <1700000>;
106                                 regulator-max-microvolt = <2475000>;
107                         };
108
109                         ldo5_reg: regulator@8 {
110                                 reg = <8>;
111                                 regulator-compatible = "ldo5";
112                                 regulator-min-microvolt = <1250000>;
113                                 regulator-max-microvolt = <3300000>;
114                         };
115
116                         ldo6_reg: regulator@9 {
117                                 reg = <9>;
118                                 regulator-compatible = "ldo6";
119                                 regulator-min-microvolt = <1250000>;
120                                 regulator-max-microvolt = <3300000>;
121                         };
122
123                         ldo7_reg: regulator@10 {
124                                 reg = <10>;
125                                 regulator-compatible = "ldo7";
126                                 regulator-min-microvolt = <1250000>;
127                                 regulator-max-microvolt = <3300000>;
128                         };
129
130                         ldo8_reg: regulator@11 {
131                                 reg = <11>;
132                                 regulator-compatible = "ldo8";
133                                 regulator-min-microvolt = <1250000>;
134                                 regulator-max-microvolt = <3300000>;
135                         };
136
137                         ldo9_reg: regulator@12 {
138                                 reg = <12>;
139                                 regulator-compatible = "ldo9";
140                                 regulator-min-microvolt = <1250000>;
141                                 regulator-max-microvolt = <3300000>;
142                         };
143                 };
144         };