[PATCH v1 0/7] BQ24190 support for power_supply_battery_info and DT binding

Liam Breck
2017-03-21T22:17:20Z

Overview:
BQ24190 needs settings for pre-charge & end-charge current and system min voltage to function
correctly. Pre- and end-charge current belong in power_supply_battery_info as they are based on
battery capacity. We add _PRECHARGE & _ENDCHARGE elements to enum power_supply_property.

Issues in v1:
* power_supply_prop_precharge & endcharge are added at end of enum to avoid sysfs breakage
* "Set bq24190-battery device .type=unknown" is a temporary workaround to be fixed in v2

Liam Breck (7):
devicetree: power: battery: Add properties for pre-charge and end-charge current
devicetree: power: Add docs for TI BQ24190 battery charger
power: power_supply_core: Add *_battery_info fields for pre- and end-charge current
power: bq24190_charger: Uniform pm_runtime_get() failure handling
power: bq24190_charger: Reorder init sequence in probe()
power: bq24190_charger: Add power_supply_battery_info and devicetree support
power: bq24190_charger: Set bq24190-battery device .type=unknown

.../devicetree/bindings/power/supply/battery.txt | 4 +
.../devicetree/bindings/power/supply/bq24190.txt | 47 +++++++
drivers/power/supply/bq24190_charger.c | 152 ++++++++++++++++-----
drivers/power/supply/power_supply_core.c | 6 +
include/linux/power_supply.h | 5 +
5 files changed, 179 insertions(+), 35 deletions(-)
create mode 100644 Documentation/devicetree/bindings/power/supply/bq24190.txt

--
2.9.3