bq24257.txt 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. Binding for TI bq24250/bq24251/bq24257 Li-Ion Charger
  2. Required properties:
  3. - compatible: Should contain one of the following:
  4. * "ti,bq24250"
  5. * "ti,bq24251"
  6. * "ti,bq24257"
  7. - reg: integer, i2c address of the device.
  8. - interrupt-parent: Should be the phandle for the interrupt controller. Use in
  9. conjunction with "interrupts".
  10. - interrupts: Interrupt mapping for GPIO IRQ (configure for both edges). Use in
  11. conjunction with "interrupt-parent".
  12. - ti,battery-regulation-voltage: integer, maximum charging voltage in uV.
  13. - ti,charge-current: integer, maximum charging current in uA.
  14. - ti,termination-current: integer, charge will be terminated when current in
  15. constant-voltage phase drops below this value (in uA).
  16. Optional properties:
  17. - pg-gpios: GPIO used for connecting the bq2425x device PG (Power Good) pin.
  18. This pin is not available on all devices however it should be used if
  19. possible as this is the recommended way to obtain the charger's input PG
  20. state. If this pin is not specified a software-based approach for PG
  21. detection is used.
  22. - ti,current-limit: The maximum current to be drawn from the charger's input
  23. (in uA). If this property is not specified, the input limit current is
  24. set automatically using USB D+/D- signal based charger type detection.
  25. If the hardware does not support the D+/D- based detection, a default
  26. of 500,000 is used (=500mA) instead.
  27. - ti,ovp-voltage: Configures the over voltage protection voltage (in uV). If
  28. not specified a default of 6,5000,000 (=6.5V) is used.
  29. - ti,in-dpm-voltage: Configures the threshold input voltage for the dynamic
  30. power path management (in uV). If not specified a default of 4,360,000
  31. (=4.36V) is used.
  32. Example:
  33. bq24257 {
  34. compatible = "ti,bq24257";
  35. reg = <0x6a>;
  36. interrupt-parent = <&gpio1>;
  37. interrupts = <16 IRQ_TYPE_EDGE_BOTH>;
  38. pg-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
  39. ti,battery-regulation-voltage = <4200000>;
  40. ti,charge-current = <1000000>;
  41. ti,termination-current = <50000>;
  42. };
  43. Example:
  44. bq24250 {
  45. compatible = "ti,bq24250";
  46. reg = <0x6a>;
  47. interrupt-parent = <&gpio1>;
  48. interrupts = <16 IRQ_TYPE_EDGE_BOTH>;
  49. ti,battery-regulation-voltage = <4200000>;
  50. ti,charge-current = <500000>;
  51. ti,termination-current = <50000>;
  52. ti,current-limit = <900000>;
  53. ti,ovp-voltage = <9500000>;
  54. ti,in-dpm-voltage = <4440000>;
  55. };