[v3,0/4] Add pm8916 VM-BMS and LBC

Message ID 20230915-pm8916-bms-lbc-v3-0-f30881e951a0@trvn.ru
Headers
Series Add pm8916 VM-BMS and LBC |

Message

Nikita Travkin Sept. 15, 2023, 5:01 a.m. UTC
  This series adds charger and "fuel-gauge" found in Qualcomm pm8916 PMIC.

The LBC - Linear Battery Charger is a simple CC/CV charger, that works
autonomously after the current and voltage limits are set.

The VM-BMS - Voltage Mode BMS is a simple hardware block that provides
average voltage on the battery terminals.

These two hardware blocks are used as the battery charging and
management solution in some old Qualcomm devices.

Signed-off-by: Nikita Travkin <nikita@trvn.ru>
---
Changes in v3:
- Use device_property_* instead of of_*
- PROP_INPUT_CURRENT_LIMIT -> PROP_CONSTANT_CHARGE_CURRENT in lbc
- Report OCV with timeout in vm-bms
- Link to v2: https://lore.kernel.org/r/20230731-pm8916-bms-lbc-v2-0-82a4ebb39c16@trvn.ru

Changes in v2:
- Add full interrupt list in the DT bindings. (Conor)
- Link to v1: https://lore.kernel.org/r/20230728-pm8916-bms-lbc-v1-0-56da32467487@trvn.ru

---
Nikita Travkin (4):
      dt-bindings: power: supply: Add pm8916 VM-BMS
      dt-bindings: power: supply: Add pm8916 LBC
      power: supply: Add pm8916 VM-BMS support
      power: supply: Add driver for pm8916 lbc

 .../bindings/power/supply/qcom,pm8916-bms-vm.yaml  |  83 +++++
 .../bindings/power/supply/qcom,pm8916-lbc.yaml     | 128 +++++++
 drivers/power/supply/Kconfig                       |  22 ++
 drivers/power/supply/Makefile                      |   2 +
 drivers/power/supply/pm8916_bms_vm.c               | 305 +++++++++++++++++
 drivers/power/supply/pm8916_lbc.c                  | 381 +++++++++++++++++++++
 6 files changed, 921 insertions(+)
---
base-commit: dfa449a58323de195773cf928d99db4130702bf7
change-id: 20230727-pm8916-bms-lbc-3f80305326a2

Best regards,
  

Comments

Sebastian Reichel Sept. 15, 2023, 7:54 p.m. UTC | #1
On Fri, 15 Sep 2023 10:01:17 +0500, Nikita Travkin wrote:
> This series adds charger and "fuel-gauge" found in Qualcomm pm8916 PMIC.
> 
> The LBC - Linear Battery Charger is a simple CC/CV charger, that works
> autonomously after the current and voltage limits are set.
> 
> The VM-BMS - Voltage Mode BMS is a simple hardware block that provides
> average voltage on the battery terminals.
> 
> [...]

Applied, thanks!

[1/4] dt-bindings: power: supply: Add pm8916 VM-BMS
      commit: 7f590e38317657123fed828d267372a3d6f93260
[2/4] dt-bindings: power: supply: Add pm8916 LBC
      commit: 5cee843d56072135c0d4be4a2d8a20df05155009
[3/4] power: supply: Add pm8916 VM-BMS support
      commit: 098bce1838e0549228c8d426e5de72ec5594b5c4
[4/4] power: supply: Add driver for pm8916 lbc
      commit: f8d7a3d21160a0cab4d15b81231f2a76b0fcee13

Best regards,