rt9455_charger.txt 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. Binding for Richtek rt9455 battery charger
  2. Required properties:
  3. - compatible: it should contain one of the following:
  4. "richtek,rt9455".
  5. - reg: integer, i2c address of the device.
  6. - interrupt-parent: the phandle for the interrupt controller that
  7. services interrupts for this device.
  8. - interrupts: interrupt mapping for GPIO IRQ, it should be
  9. configured with IRQ_TYPE_LEVEL_LOW flag.
  10. - richtek,output-charge-current: integer, output current from the charger to the
  11. battery, in uA.
  12. - richtek,end-of-charge-percentage: integer, percent of the output charge current.
  13. When the current in constant-voltage phase drops
  14. below output_charge_current x end-of-charge-percentage,
  15. charge is terminated.
  16. - richtek,battery-regulation-voltage: integer, maximum battery voltage in uV.
  17. - richtek,boost-output-voltage: integer, maximum voltage provided to consumer
  18. devices, when the charger is in boost mode, in uV.
  19. Optional properties:
  20. - richtek,min-input-voltage-regulation: integer, input voltage level in uV, used to
  21. decrease voltage level when the over current
  22. of the input power source occurs.
  23. This prevents input voltage drop due to insufficient
  24. current provided by the power source.
  25. Default: 4500000 uV (4.5V)
  26. - richtek,avg-input-current-regulation: integer, input current value in uA drained by the
  27. charger from the power source.
  28. Default: 500000 uA (500mA)
  29. Example:
  30. rt9455@22 {
  31. compatible = "richtek,rt9455";
  32. reg = <0x22>;
  33. interrupt-parent = <&gpio1>;
  34. interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
  35. richtek,output-charge-current = <500000>;
  36. richtek,end-of-charge-percentage = <10>;
  37. richtek,battery-regulation-voltage = <4200000>;
  38. richtek,boost-output-voltage = <5050000>;
  39. richtek,min-input-voltage-regulation = <4500000>;
  40. richtek,avg-input-current-regulation = <500000>;
  41. };