lp8727_charger.txt 1.1 KB

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