rk312x:rt5025:support pmic rt5025
[firefly-linux-kernel-4.4.55.git] / Documentation / devicetree / bindings / mfd / rt5025.txt
1 Richtek RT5025 Multi-functional device
2
3 The RT5025 are Integrated Power Management Chips.
4 These chips are connected to an i2c bus.
5
6
7 Required properties:
8 - compatible : Must be "rt,rt5025";
9 - interrupts : This i2c device has an IRQ line connected to the main SoC
10 - interrupt-parent : The parent interrupt controller.
11
12 Optional node:
13 - Child nodes contain in the RT5025. The twl family is made of several variants
14   that support a different number of features.
15
16
17 Example:
18 rt5025@35 {
19         compatible = "rt,rt5025";
20         reg = <0x35>;
21         interrupt-parent = <&msmgpio>;
22         interrupts = <73 0>;
23
24         rt5025_dcdc1: regulator_0 {
25                 compatible = "rt,rt5025-dcdc1";
26                 cell-index = <0>;
27                 regulator-name = "rt5025-dcdc1";
28                 regulator-min-microvolt = < 700000>;
29                 regulator-max-microvolt = <2275000>;
30                 rt,ramp_sel = <0x00>;
31                 rt,allow_mode_mask;
32                 qcom,comsumer-supplies = "rt5025-dcdc1", "";
33         };
34
35         rt5025-charger {
36                 compatible = "rt,rt5025-charger";
37                 rt,te_en;
38                 //rt,screenon_adjust;
39                 rt,iprec = <0x00>;
40                 rt,ieoc = <0x00>;
41                 rt,vprec = <0x05>;
42                 rt,vdpm = <0x02>;
43                 rt,chg_volt = <4200>;
44                 rt,acchg_icc = <2000>;
45                 rt,usbtachg_icc = <2000>;
46                 rt,usbchg_icc = <500>;
47                 rt,screenon_icc = <500>;
48                 rt,temp = <0 150 500 600>;
49                 rt,temp_scalar = <0x30 0x2b 0x28 0x22 0x15 0x10 0x10 0x0d>;
50         };
51
52         rt5025_gpiop: rt5025-gpio {
53                 compatible = "rt,rt5025-gpio";
54                 gpio-controller;
55                 #gpio-cells = <2>;
56                 rt,ngpio = <3>;
57         };
58
59         rt5025-irq {
60                 compatible = "rt,rt5025-irq";
61                 rt,irq-gpio = <&msmgpio 73 0x00>;
62         };
63
64         rt5025-misc {
65                 compatible = "rt,rt5025-misc";
66                 rt,system_lv = <0x02>;
67                 rt,shdn_lpress = <0x01>;
68                 rt,start_lpress = <0x00>;
69                 rt,syslv_enshutdown;
70         };
71
72         rt5025-debug {
73                 compatible = "rt,rt5025-debug";
74         };