/Documentation/devicetree/bindings/power/smb137c-charger.txt

https://gitlab.com/webhaikal/SenseiFerrari · Plain Text · 86 lines · 81 code · 5 blank · 0 comment · 0 complexity · c69980d773dc85585ce3f499cb7d9e42 MD5 · raw file

  1. Summit SMB137C Battery Charger
  2. The SMB137C is controlled via an I2C bus. Its 7-bit I2C slave address is
  3. programmed during manufacturing.
  4. Required properties:
  5. - compatible: Must be "summit,smb137c".
  6. - reg: The device's 7-bit I2C address.
  7. Optional properties:
  8. - summit,chg-current-ma Maximum battery charging current in milliamps.
  9. Supported values are: 500, 650, 750, 850, 950,
  10. 1100, 1300, and 1500.
  11. - summit,term-current-ma Charging terminaton current in milliamps.
  12. Supported values are: 0, 35, 50, 100, and 150.
  13. A value of 0 means no termination current is
  14. used.
  15. - summit,pre-chg-current-ma Maximum battery pre-charging current in
  16. milliamps. This current limit is applied while
  17. the battery voltage is below the pre-charge /
  18. fast-charge threshold. Supported values are:
  19. 50, 100, 150, and 200.
  20. - summit,float-voltage-mv Battery voltage threshold in millivolts at which
  21. point charging switches from constant current to
  22. constant voltage. Supported values are: 3460 up
  23. through 4730 in 10 mV steps.
  24. - summit,thresh-voltage-mv Threshold voltage in millivolts which is used to
  25. switch between pre-charge and fast-charge
  26. current limits. Supported values are: 2400 up
  27. to 3100 in 100 mV steps.
  28. - summit,recharge-thresh-mv Specifies the minimum voltage drop in millivolts
  29. below the float voltage that is required in
  30. order to initiate a new charging cycle.
  31. Supported values are: 75 and 120.
  32. - summit,system-voltage-mv Regulated voltage output on the VOUTL pin in
  33. millivolts. Supported values are 4250 and 4460.
  34. - summit,charging-timeout Maximum duration in minutes that a single charge
  35. cycle may last. Supported values are: 0, 382,
  36. 764, and 1527. A value of 0 means that no
  37. charge cycle timeout is used and charging can
  38. continue indefinitely.
  39. - summit,pre-charge-timeout Maximum time in minutes spent in the pre-charge
  40. state in any given charge cycle. Supports
  41. values are: 0, 48, 95, and 191. A value of 0
  42. means that there is no limit to the amount of
  43. time that may be spent in the pre-charge state.
  44. - summit,therm-current-ua Thermistor current in microamps to be used for
  45. battery temperature monitoring. Supported
  46. values are 10, 20, 40, and 100. These values
  47. correspond to 100, 50, 25, and 10 kohm NTC
  48. thermistors respectively.
  49. - summit,temperature-min Specifies the minimum temperature at which
  50. charging is allowed. Supported values are
  51. 0 to 7. These values correspond to -20 C to
  52. +15 C in 5 C increments for an NTC thermistor
  53. with beta = 4400.
  54. - summit,temperature-max Specifies the maximum temperature at which
  55. charging is allowed. Supported values are
  56. 0 to 7. These values correspond to +30 C to
  57. +65 C in 5 C increments for an NTC thermistor
  58. with beta = 4400.
  59. Note: If an optional property is not specified, then the hardware default value
  60. will be used.
  61. Example:
  62. / {
  63. i2c@f9925000 {
  64. charger@57 {
  65. compatible = "summit,smb137c";
  66. reg = <0x57>;
  67. summit,chg-current-ma = <1500>;
  68. summit,term-current-ma = <50>;
  69. summit,pre-chg-current-ma = <100>;
  70. summit,float-voltage-mv = <4200>;
  71. summit,thresh-voltage-mv = <3000>;
  72. summit,recharge-thresh-mv = <75>;
  73. summit,system-voltage-mv = <4250>;
  74. summit,charging-timeout = <382>;
  75. summit,pre-charge-timeout = <48>;
  76. summit,therm-current-ua = <10>;
  77. summit,temperature-min = <4>; /* 0 C */
  78. summit,temperature-max = <3>; /* 45 C */
  79. };
  80. };
  81. };