smb358-charger.txt 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. Summit smb358 battery charger
  2. SMB358 is a single-cell battery charger. It can charge
  3. the battery and power the system via the USB/AC adapter input.
  4. The smb358 interface is via I2C bus.
  5. Required Properties:
  6. - compatible Must be "qcom,smb358-charger".
  7. - reg The device 7-bit I2C address.
  8. - interrupt-parent parent of interrupt.
  9. - interrupts This indicates the IRQ number of the GPIO
  10. connected to the STAT pin.
  11. - qcom,irq-gpio GPIO which receives interrupts from STAT output.
  12. - qcom,bms-psy-name This is a string and it points to the bms
  13. power supply name.
  14. - qcom,float-voltage-mv Float Voltage in mV - the maximum voltage up to which
  15. the battery is charged. Supported range 3500mV to 4500mV
  16. - qcom,vcc-i2c-supply Power source required to power up i2c bus.
  17. - qcom,chg-vadc Corresponding VADC device's phandle.
  18. Optional Properties:
  19. - qcom,fastchg-current-max-ma Fast Charging current in mA. Supported range is
  20. from 200mA to 2000mA.
  21. - qcom,chg-valid-gpio GPIO which indicates the charger presence.
  22. This GPIO is connected to the SYSOK pin.
  23. - qcom,chg-autonomous-mode This is a bool property and it indicates that the
  24. charger is configured for autonomous operation and
  25. does not require any software configuration.
  26. - qcom,disable-apsd This is a bool property which disables automatic
  27. power source detection (APSD). If this is set
  28. charger detection is done by DCIN UV irq.
  29. - qcom,charger-disabled This is a bool property which disables charging.
  30. - qcom,using-pmic-therm This property indicates thermal pin connected to pmic or smb.
  31. - qcom,iterm-ma Specifies the termination current to indicate end-of-charge.
  32. Possible values in mA - 30, 40, 60, 80, 100, 125, 150, 200.
  33. - qcom,iterm-disabled Disables the termination current feature. This is a bool
  34. property.
  35. - qcom,recharge-mv Recharge threshold in mV - the offset from the float-volatge
  36. as which the charger restarts charging. Possible
  37. values are 50mV to 300mV.
  38. - qcom,recharge-disabled Boolean value which disables the auto-recharge.
  39. - qcom,chg-adc_tm phandle to the corresponding VADC device to read the ADC channels.
  40. - qcom,cold-bat-decidegc Cold battery temperature in decidegC.
  41. - qcom,hot-bat-decidegc Hot battery temperature in decidegC.
  42. - qcom,bat-present-decidegc This is a property indicating battery present temperature, if
  43. higher than it, battery should exist. Default value is negative,
  44. if this property is 200, it stands for -200 decidegC.
  45. Example:
  46. i2c@f9967000 {
  47. smb358-charger@1b {
  48. compatible = "qcom,smb358-charger";
  49. reg = <0x1b>;
  50. interrupt-parent = <&msmgpio>;
  51. interrupts = <17 0x0>;
  52. qcom,irq-gpio = <&msmgpio 17 0x00>;
  53. qcom,vcc-i2c-supply = <&pm8226_lvs1>;
  54. qcom,float-voltage-mv = <4350>;
  55. qcom,disable-apsd;
  56. qcom,fastchg-current-max-ma = <1500>;
  57. qcom,bms-psy-name = "bms";
  58. qcom,chg-vadc = <&pm8226_vadc>;
  59. qcom,chg-adc_tm = <&pm8226_adc_tm>;
  60. qcom,hot-bat-decidegc = <500>;
  61. qcom,cold-bat-decidegc = <0>;
  62. qcom,bat-present-decidegc = <200>;
  63. };
  64. };