Merge tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / power / supply / bq24190.txt
1 TI BQ24190 Li-Ion Battery Charger
2
3 Required properties:
4 - compatible: contains one of the following:
5     * "ti,bq24190"
6     * "ti,bq24192i"
7 - reg: integer, I2C address of the charger.
8 - interrupts[-extended]: configuration for charger INT pin.
9
10 Optional properties:
11 - monitored-battery: phandle of battery characteristics devicetree node
12   The charger uses the following battery properties:
13     + precharge-current-microamp: maximum charge current during precharge
14       phase (typically 20% of battery capacity).
15     + charge-term-current-microamp: a charge cycle terminates when the
16       battery voltage is above recharge threshold, and the current is below
17       this setting (typically 10% of battery capacity).
18   See also Documentation/devicetree/bindings/power/supply/battery.txt
19 - ti,system-minimum-microvolt: when power is connected and the battery is below
20   minimum system voltage, the system will be regulated above this setting.
21
22 Notes:
23 - Some circuit boards wire the chip's "OTG" pin high (enabling 500mA default
24   charge current on USB SDP ports, among other features). To simulate this on
25   boards that wire the pin to a GPIO, set a gpio-hog.
26
27 Example:
28
29         bat: battery {
30                 compatible = "simple-battery";
31                 precharge-current-microamp = <256000>;
32                 charge-term-current-microamp = <128000>;
33                 // etc.
34         };
35
36         bq24190: charger@6a {
37                 compatible = "ti,bq24190";
38                 reg = <0x6a>;
39                 interrupts-extended = <&gpiochip 10 IRQ_TYPE_EDGE_FALLING>;
40                 monitored-battery = <&bat>;
41                 ti,system-minimum-microvolt = <3200000>;
42         };
43
44         &twl_gpio {
45                 otg {
46                         gpio-hog;
47                         gpios = <6 0>;
48                         output-high;
49                         line-name = "otg-gpio";
50                 };
51         };