bq24190.txt 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. TI BQ24190 Li-Ion Battery Charger
  2. Required properties:
  3. - compatible: contains one of the following:
  4. * "ti,bq24190"
  5. * "ti,bq24192i"
  6. - reg: integer, I2C address of the charger.
  7. - interrupts[-extended]: configuration for charger INT pin.
  8. Optional properties:
  9. - monitored-battery: phandle of battery characteristics devicetree node
  10. The charger uses the following battery properties:
  11. + precharge-current-microamp: maximum charge current during precharge
  12. phase (typically 20% of battery capacity).
  13. + charge-term-current-microamp: a charge cycle terminates when the
  14. battery voltage is above recharge threshold, and the current is below
  15. this setting (typically 10% of battery capacity).
  16. See also Documentation/devicetree/bindings/power/supply/battery.txt
  17. - ti,system-minimum-microvolt: when power is connected and the battery is below
  18. minimum system voltage, the system will be regulated above this setting.
  19. Notes:
  20. - Some circuit boards wire the chip's "OTG" pin high (enabling 500mA default
  21. charge current on USB SDP ports, among other features). To simulate this on
  22. boards that wire the pin to a GPIO, set a gpio-hog.
  23. Example:
  24. bat: battery {
  25. compatible = "simple-battery";
  26. precharge-current-microamp = <256000>;
  27. charge-term-current-microamp = <128000>;
  28. // etc.
  29. };
  30. bq24190: charger@6a {
  31. compatible = "ti,bq24190";
  32. reg = <0x6a>;
  33. interrupts-extended = <&gpiochip 10 IRQ_TYPE_EDGE_FALLING>;
  34. monitored-battery = <&bat>;
  35. ti,system-minimum-microvolt = <3200000>;
  36. };
  37. &twl_gpio {
  38. otg {
  39. gpio-hog;
  40. gpios = <6 0>;
  41. output-high;
  42. line-name = "otg-gpio";
  43. };
  44. };