mbox series

[00/11] AB8500 charging fixes

Message ID 20220127011236.332687-1-linus.walleij@linaro.org
Headers show
Series AB8500 charging fixes | expand

Message

Linus Walleij Jan. 27, 2022, 1:12 a.m. UTC
This is a first round of AB8500 charging patches for v5.18.

This fixes some minor and major bugs - they aren't tagged for
fixes or stable since the charging code is still default
disabled on the platform (Ux500) for a good reason
(it never worked properly).

We drop the custom charger sysfs ABI that we do not use anyway.

The thermal zone we are looking up is defined in a separate
DTS patch that will be merged through ARM SoC. The prerequisite
changes to the hwmon NTC driver were merged for v5.17 already.

Once this is agreed and merged I will follow this up with a
more important series with 6 patches that adds the
Samsung static battery data and actually makes charging
work on these platforms.

Linus Walleij (11):
  power: supply: ab8500: Drop BATCTRL thermal mode
  power: supply: ab8500: Swap max and overvoltage
  power: supply: ab8500: Integrate thermal zone
  power: supply: ab8500_fg: Break loop for measurement
  power: supply: ab8500_fg: Break out load compensated voltage
  power: supply: ab8500_fg: Safeguard compensated voltage
  power: supply: ab8500_fg: Drop useless parameter
  power: supply: ab8500_chargalg: Drop charging step
  power: supply: ab8500_chargalg: Drop enable/disable sysfs
  power: supply: ab8500_charger: Restrict ADC retrieveal
  power: supply: ab8500_charger: Fix VBAT interval check

 drivers/power/supply/Kconfig           |   2 +
 drivers/power/supply/ab8500-bm.h       |  49 ----
 drivers/power/supply/ab8500_bmdata.c   |  34 +--
 drivers/power/supply/ab8500_btemp.c    | 330 +++----------------------
 drivers/power/supply/ab8500_chargalg.c | 318 +-----------------------
 drivers/power/supply/ab8500_charger.c  |  43 ++--
 drivers/power/supply/ab8500_fg.c       |  96 ++++---
 7 files changed, 138 insertions(+), 734 deletions(-)