qcom_smbb.txt 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. Qualcomm Switch-Mode Battery Charger and Boost
  2. PROPERTIES
  3. - compatible:
  4. Usage: required
  5. Value type: <stringlist>
  6. Description: Must be one of:
  7. - "qcom,pm8941-charger"
  8. - reg:
  9. Usage: required
  10. Value type: <prop-encoded-array>
  11. Description: Base address of registers for SMBB block
  12. - interrupts:
  13. Usage: required
  14. Value type: <prop-encoded-array>
  15. Description: The format of the specifier is defined by the binding document
  16. describing the node's interrupt parent. Must contain one
  17. specifier for each of the following interrupts, in order:
  18. - charge done
  19. - charge fast mode
  20. - charge trickle mode
  21. - battery temperature ok
  22. - battery present
  23. - charger disconnected
  24. - USB-in valid
  25. - DC-in valid
  26. - interrupt-names:
  27. Usage: required
  28. Value type: <stringlist>
  29. Description: Must contain the following list, strictly ordered:
  30. "chg-done",
  31. "chg-fast",
  32. "chg-trkl",
  33. "bat-temp-ok",
  34. "bat-present",
  35. "chg-gone",
  36. "usb-valid",
  37. "dc-valid"
  38. - qcom,fast-charge-current-limit:
  39. Usage: optional (default: 1A, or pre-configured value)
  40. Value type: <u32>; uA; range [100mA : 3A]
  41. Description: Maximum charge current; May be clamped to safety limits.
  42. - qcom,fast-charge-low-threshold-voltage:
  43. Usage: optional (default: 3.2V, or pre-configured value)
  44. Value type: <u32>; uV; range [2.1V : 3.6V]
  45. Description: Battery voltage limit above which fast charging may operate;
  46. Below this value linear or switch-mode auto-trickle-charging
  47. will operate.
  48. - qcom,fast-charge-high-threshold-voltage:
  49. Usage: optional (default: 4.2V, or pre-configured value)
  50. Value type: <u32>; uV; range [3.24V : 5V]
  51. Description: Battery voltage limit below which fast charging may operate;
  52. The fast charger will attempt to charge the battery to this
  53. voltage. May be clamped to safety limits.
  54. - qcom,fast-charge-safe-voltage:
  55. Usage: optional (default: 4.2V, or pre-configured value)
  56. Value type: <u32>; uV; range [3.24V : 5V]
  57. Description: Maximum safe battery voltage; May be pre-set by bootloader, in
  58. which case, setting this will harmlessly fail. The property
  59. 'fast-charge-high-watermark' will be clamped by this value.
  60. - qcom,fast-charge-safe-current:
  61. Usage: optional (default: 1A, or pre-configured value)
  62. Value type: <u32>; uA; range [100mA : 3A]
  63. Description: Maximum safe battery charge current; May pre-set by bootloader,
  64. in which case, setting this will harmlessly fail. The property
  65. 'qcom,fast-charge-current-limit' will be clamped by this value.
  66. - qcom,auto-recharge-threshold-voltage:
  67. Usage: optional (default: 4.1V, or pre-configured value)
  68. Value type: <u32>; uV; range [3.24V : 5V]
  69. Description: Battery voltage limit below which auto-recharge functionality
  70. will restart charging after end-of-charge; The high cutoff
  71. limit for auto-recharge is 5% above this value.
  72. - qcom,minimum-input-voltage:
  73. Usage: optional (default: 4.3V, or pre-configured value)
  74. Value type: <u32>; uV; range [4.2V : 9.6V]
  75. Description: Input voltage level above which charging may operate
  76. - qcom,dc-current-limit:
  77. Usage: optional (default: 100mA, or pre-configured value)
  78. Value type: <u32>; uA; range [100mA : 2.5A]
  79. Description: Default DC charge current limit
  80. - qcom,disable-dc:
  81. Usage: optional (default: false)
  82. Value type: boolean: <u32> or <empty>
  83. Description: Disable DC charger
  84. - qcom,jeita-extended-temp-range:
  85. Usage: optional (default: false)
  86. Value type: boolean: <u32> or <empty>
  87. Description: Enable JEITA extended temperature range; This does *not*
  88. adjust the maximum charge voltage or current in the extended
  89. temperature range. It only allows charging when the battery
  90. is in the extended temperature range. Voltage/current
  91. regulation must be done externally to fully comply with
  92. the JEITA safety guidelines if this flag is set.
  93. EXAMPLE
  94. charger@1000 {
  95. compatible = "qcom,pm8941-charger";
  96. reg = <0x1000 0x700>;
  97. interrupts = <0x0 0x10 7 IRQ_TYPE_EDGE_BOTH>,
  98. <0x0 0x10 5 IRQ_TYPE_EDGE_BOTH>,
  99. <0x0 0x10 4 IRQ_TYPE_EDGE_BOTH>,
  100. <0x0 0x12 1 IRQ_TYPE_EDGE_BOTH>,
  101. <0x0 0x12 0 IRQ_TYPE_EDGE_BOTH>,
  102. <0x0 0x13 2 IRQ_TYPE_EDGE_BOTH>,
  103. <0x0 0x13 1 IRQ_TYPE_EDGE_BOTH>,
  104. <0x0 0x14 1 IRQ_TYPE_EDGE_BOTH>;
  105. interrupt-names = "chg-done",
  106. "chg-fast",
  107. "chg-trkl",
  108. "bat-temp-ok",
  109. "bat-present",
  110. "chg-gone",
  111. "usb-valid",
  112. "dc-valid";
  113. qcom,fast-charge-current-limit = <1000000>;
  114. qcom,dc-charge-current-limit = <1000000>;
  115. };