mbox series

[0/8] power: supply: bq24190 updates + new ug3105 driver

Message ID 20220131155730.309513-1-hdegoede@redhat.com
Headers show
Series power: supply: bq24190 updates + new ug3105 driver | expand

Message

Hans de Goede Jan. 31, 2022, 3:57 p.m. UTC
Hi Sebastian,

Here is a series of patches which:

1. Modifies power_supply_get_battery_info() to also work with non
   of/dt device-properties

2. Modifies bq24190_charger to use and apply more settings returned
   by power_supply_get_battery_info()

3. Adds a new driver for the ug3105 battery monitoring chip, note
   this chip is not really a full/standalone fuel-gauge so
   the functionality of the is limited

Regards,

Hans


Hans de Goede (8):
  power: supply: core: Use fwnode_property_*() in
    power_supply_get_battery_info()
  power: supply: core: Add support for generic fwnodes to
    power_supply_get_battery_info()
  power: supply: bq24190_charger: Turn off 5V boost regulator on
    shutdown
  power: supply: bq24190_charger: Always call
    power_supply_get_battery_info()
  power: supply: bq24190_charger: Store ichg-max and vreg-max in
    bq24190_dev_info
  power: supply: bq24190_charger: Program charger with fwnode supplied
    ccc_ireg and cvc_vreg
  power: supply: bq24190_charger: Disallow ccc_ireg and cvc_vreg to be
    higher then the fwnode values
  power: supply: ug3105_battery: Add driver for uPI uG3105 battery
    monitor

 drivers/power/supply/Kconfig             |  14 +
 drivers/power/supply/Makefile            |   1 +
 drivers/power/supply/bq24190_charger.c   | 114 ++++--
 drivers/power/supply/power_supply_core.c |  93 +++--
 drivers/power/supply/ug3105_battery.c    | 486 +++++++++++++++++++++++
 5 files changed, 642 insertions(+), 66 deletions(-)
 create mode 100644 drivers/power/supply/ug3105_battery.c