bq24257.txt 2.2 KB

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