lp8727_charger.txt 1.0 KB

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