act8945a-charger.txt 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. - interrupt-parent: the phandle for the interrupt controller that
  12. services interrupts for this device.
  13. Optional properties:
  14. - active-semi,input-voltage-threshold-microvolt: unit: mV;
  15. Specifies the charger's input over-voltage threshold value;
  16. The value can be: 6600, 7000, 7500, 8000; default: 6600
  17. - active-semi,precondition-timeout: unit: minutes;
  18. Specifies the charger's PRECONDITION safety timer setting value;
  19. The value can be: 40, 60, 80, 0; If 0, it means to disable this timer;
  20. default: 40.
  21. - active-semi,total-timeout: unit: hours;
  22. Specifies the charger's total safety timer setting value;
  23. The value can be: 3, 4, 5, 0; If 0, it means to disable this timer;
  24. default: 3.
  25. Example:
  26. pmic@5b {
  27. compatible = "active-semi,act8945a";
  28. reg = <0x5b>;
  29. status = "okay";
  30. charger {
  31. compatible = "active-semi,act8945a-charger";
  32. pinctrl-names = "default";
  33. pinctrl-0 = <&pinctrl_charger_chglev &pinctrl_charger_lbo &pinctrl_charger_irq>;
  34. interrupt-parent = <&pioA>;
  35. interrupts = <45 GPIO_ACTIVE_LOW>;
  36. active-semi,chglev-gpios = <&pioA 12 GPIO_ACTIVE_HIGH>;
  37. active-semi,lbo-gpios = <&pioA 72 GPIO_ACTIVE_LOW>;
  38. active-semi,input-voltage-threshold-microvolt = <6600>;
  39. active-semi,precondition-timeout = <40>;
  40. active-semi,total-timeout = <3>;
  41. status = "okay";
  42. };
  43. };