Linux 4.1.18
[linux/fpc-iii.git] / Documentation / devicetree / bindings / power_supply / lp8727_charger.txt
blob2246bc5c874b7a8c5e1523682e98b9d848fccc00
1 Binding for TI/National Semiconductor LP8727 Charger
3 Required properties:
4 - compatible: "ti,lp8727"
5 - reg: I2C slave address 27h
7 Optional properties:
8 - interrupt-parent: interrupt controller node (see interrupt binding[0])
9 - interrupts: interrupt specifier (see interrupt binding[0])
10 - debounce-ms: interrupt debounce time. (u32)
12 AC and USB charging parameters
13 - charger-type: "ac" or "usb" (string)
14 - eoc-level: value of 'enum lp8727_eoc_level' (u8)
15 - charging-current: value of 'enum lp8727_ichg' (u8)
17 [0]: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
19 Example)
21 lp8727@27 {
22         compatible = "ti,lp8727";
23         reg = <0x27>;
25         /* GPIO 134 is used for LP8728 interrupt pin */
26         interrupt-parent = <&gpio5>;    /* base = 128 */
27         interrupts = <6 0x2>;           /* offset = 6, falling edge type */
29         debounce-ms = <300>;
31         /* AC charger: 5% EOC and 500mA charging current */
32         ac {
33                 charger-type = "ac";
34                 eoc-level = /bits/ 8 <0>;
35                 charging-current = /bits/ 8 <4>;
36         };
38         /* USB charger: 10% EOC and 400mA charging current */
39         usb {
40                 charger-type = "usb";
41                 eoc-level = /bits/ 8 <1>;
42                 charging-current = /bits/ 8 <2>;
43         };