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