Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / power / supply / rt9455_charger.txt
1 Binding for Richtek rt9455 battery charger
2
3 Required properties:
4 - compatible:                           it should contain one of the following:
5                                         "richtek,rt9455".
6 - reg:                                  integer, i2c address of the device.
7 - interrupts:                           interrupt mapping for GPIO IRQ, it should be
8                                         configured with IRQ_TYPE_LEVEL_LOW flag.
9 - richtek,output-charge-current:        integer, output current from the charger to the
10                                         battery, in uA.
11 - richtek,end-of-charge-percentage:     integer, percent of the output charge current.
12                                         When the current in constant-voltage phase drops
13                                         below output_charge_current x end-of-charge-percentage,
14                                         charge is terminated.
15 - richtek,battery-regulation-voltage:   integer, maximum battery voltage in uV.
16 - richtek,boost-output-voltage:         integer, maximum voltage provided to consumer
17                                         devices, when the charger is in boost mode, in uV.
18
19 Optional properties:
20 - richtek,min-input-voltage-regulation: integer, input voltage level in uV, used to
21                                         decrease voltage level when the over current
22                                         of the input power source occurs.
23                                         This prevents input voltage drop due to insufficient
24                                         current provided by the power source.
25                                         Default: 4500000 uV (4.5V)
26 - richtek,avg-input-current-regulation: integer, input current value in uA drained by the
27                                         charger from the power source.
28                                         Default: 500000 uA (500mA)
29
30 Example:
31
32 rt9455@22 {
33         compatible = "richtek,rt9455";
34         reg = <0x22>;
35
36         interrupt-parent = <&gpio1>;
37         interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
38
39         richtek,output-charge-current       = <500000>;
40         richtek,end-of-charge-percentage    = <10>;
41         richtek,battery-regulation-voltage  = <4200000>;
42         richtek,boost-output-voltage        = <5050000>;
43
44         richtek,min-input-voltage-regulation = <4500000>;
45         richtek,avg-input-current-regulation = <500000>;
46 };