act8945a-charger.txt 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. Device-Tree bindings for charger of Active-semi ACT8945A Multi-Function Device
  2. Required properties:
  3. - compatible: "active-semi,act8945a-charger".
  4. - active-semi,chglev-gpios: charge current level phandle with args
  5. as described in ../gpio/gpio.txt.
  6. - active-semi,lbo-gpios: specify the low battery voltage detect phandle
  7. with args as as described in ../gpio/gpio.txt.
  8. - interrupts: <a b> where a is the interrupt number and b is a
  9. field that represents an encoding of the sense and level
  10. information for the interrupt.
  11. Optional properties:
  12. - active-semi,input-voltage-threshold-microvolt: unit: mV;
  13. Specifies the charger's input over-voltage threshold value;
  14. The value can be: 6600, 7000, 7500, 8000; default: 6600
  15. - active-semi,precondition-timeout: unit: minutes;
  16. Specifies the charger's PRECONDITION safety timer setting value;
  17. The value can be: 40, 60, 80, 0; If 0, it means to disable this timer;
  18. default: 40.
  19. - active-semi,total-timeout: unit: hours;
  20. Specifies the charger's total safety timer setting value;
  21. The value can be: 3, 4, 5, 0; If 0, it means to disable this timer;
  22. default: 3.
  23. Example:
  24. pmic@5b {
  25. compatible = "active-semi,act8945a";
  26. reg = <0x5b>;
  27. charger {
  28. compatible = "active-semi,act8945a-charger";
  29. pinctrl-names = "default";
  30. pinctrl-0 = <&pinctrl_charger_chglev &pinctrl_charger_lbo &pinctrl_charger_irq>;
  31. interrupt-parent = <&pioA>;
  32. interrupts = <45 GPIO_ACTIVE_LOW>;
  33. active-semi,chglev-gpios = <&pioA 12 GPIO_ACTIVE_HIGH>;
  34. active-semi,lbo-gpios = <&pioA 72 GPIO_ACTIVE_LOW>;
  35. active-semi,input-voltage-threshold-microvolt = <6600>;
  36. active-semi,precondition-timeout = <40>;
  37. active-semi,total-timeout = <3>;
  38. };
  39. };