]> rtime.felk.cvut.cz Git - linux-imx.git/blob - Documentation/devicetree/bindings/regulator/palmas-pmic.txt
Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc
[linux-imx.git] / Documentation / devicetree / bindings / regulator / palmas-pmic.txt
1 * palmas regulator IP block devicetree bindings
2
3 Required properties:
4 - compatible : Should be from the list
5   ti,twl6035-pmic
6   ti,twl6036-pmic
7   ti,twl6037-pmic
8   ti,tps65913-pmic
9   ti,tps65914-pmic
10 and also the generic series names
11   ti,palmas-pmic
12 - interrupt-parent : The parent interrupt controller which is palmas.
13 - interrupts : The interrupt number and the type which can be looked up here:
14                arch/arm/boot/dts/include/dt-bindings/interrupt-controller/irq.h
15 - interrupts-name: The names of the individual interrupts.
16
17 Optional properties:
18 - ti,ldo6-vibrator : ldo6 is in vibrator mode
19
20 Optional nodes:
21 - regulators : Must contain a sub-node per regulator from the list below.
22                Each sub-node should contain the constraints and initialization
23                information for that regulator. See regulator.txt for a
24                description of standard properties for these sub-nodes.
25                Additional custom properties  are listed below.
26
27                For ti,palmas-pmic - smps12, smps123, smps3 depending on OTP,
28                smps45, smps457, smps7 depending on variant, smps6, smps[8-10],
29                ldo[1-9], ldoln, ldousb.
30
31                Optional sub-node properties:
32                ti,warm-reset - maintain voltage during warm reset(boolean)
33                ti,roof-floor - control voltage selection by pin(boolean)
34                ti,mode-sleep - mode to adopt in pmic sleep 0 - off, 1 - auto,
35                2 - eco, 3 - forced pwm
36                ti,smps-range - OTP has the wrong range set for the hardware so override
37                0 - low range, 1 - high range.
38
39 Example:
40
41 #include <dt-bindings/interrupt-controller/irq.h>
42
43 pmic {
44         compatible = "ti,twl6035-pmic", "ti,palmas-pmic";
45         interrupt-parent = <&palmas>;
46         interrupts = <14 IRQ_TYPE_NONE>;
47         interrupts-name = "short-irq";
48
49         ti,ldo6-vibrator;
50
51         regulators {
52                 smps12_reg : smps12 {
53                         regulator-name = "smps12";
54                         regulator-min-microvolt = < 600000>;
55                         regulator-max-microvolt = <1500000>;
56                         regulator-always-on;
57                         regulator-boot-on;
58                         ti,warm-reset;
59                         ti,roof-floor;
60                         ti,mode-sleep = <0>;
61                         ti,smps-range = <1>;
62                 };
63
64                 ldo1_reg: ldo1 {
65                         regulator-name = "ldo1";
66                         regulator-min-microvolt = <2800000>;
67                         regulator-max-microvolt = <2800000>;
68                 };
69         };
70 };