Skip to content
Snippets Groups Projects
Commit 5f2c5854 authored by Joel Selvaraj's avatar Joel Selvaraj Committed by Jianhua Lu
Browse files

power: supply: Add driver for Qualcomm PMIC fuel gauge


Ths driver supports the fuel gauge hardware available on PMICs such as PMI8994,
as well as gen 3 fuel gauge hardware available on PMI8998.

Co-developed-by: default avatarCaleb Connolly <caleb@connolly.tech>
Co-developed-by: default avatarYassine Oudjana <y.oudjana@protonmail.com>
Signed-off-by: default avatarYassine Oudjana <y.oudjana@protonmail.com>

qcom_fg: expose PROP_STATUS to fix upower not detecting charging status properly

fg: adopt battery info API changes

power: qcom_fg: silence -EPROBE_DEFER error

Sometimes, the devm_power_supply_register function will return
ERR_PTR(-EPROBE_DEFER) to make the driver subsystem probe the fuel guage
later. This is not an error and do not report it as such.

Signed-off-by: Richard Acayan's avatarRichard Acayan <mailingradian@gmail.com>

power/supply: qcom_fg: add present sysfs property

Present property is required for battery drivers from UPower>=1.90.0
onwards to work properly.

Signed-off-by: default avatarAlexander Martinz <amartinz@shiftphones.com>
Signed-off-by: default avatarmap220v <map220v300@gmail.com>
parent f158a0d6
No related branches found
No related tags found
No related merge requests found
......@@ -1037,4 +1037,12 @@ config FUEL_GAUGE_MM8013
the state of charge, temperature, cycle count, actual and design
capacity, etc.
config BATTERY_QCOM_FG
tristate "Qualcomm PMIC fuel gauge driver"
depends on MFD_SPMI_PMIC
help
Say Y here to enable the Qualcomm PMIC Fuel Gauge driver. This
adds support for battery fuel gauging and state of charge of
battery connected to the fuel gauge.
endif # POWER_SUPPLY
......@@ -119,3 +119,4 @@ obj-$(CONFIG_CHARGER_SURFACE) += surface_charger.o
obj-$(CONFIG_BATTERY_UG3105) += ug3105_battery.o
obj-$(CONFIG_CHARGER_QCOM_SMB2) += qcom_pmi8998_charger.o
obj-$(CONFIG_FUEL_GAUGE_MM8013) += mm8013.o
obj-$(CONFIG_BATTERY_QCOM_FG) += qcom_fg.o
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment