[PATCH v2 00/11] power: supply: bq275xx: implement individual chip revision support

From: Chris Lapa
Date: Thu Dec 22 2016 - 19:05:19 EST


From: Chris Lapa <chris@xxxxxxxxxxx>

This patch series separates out support for each revision chip in
the bq27500, bq27510 and bq27520 family. Each revision has enough
register address changes to justify individual register mappings.

It also cleans up the large if statement checking the overtemp flags.

I had a chance to test the deprecated bq27500/10/20 support which still
behaves the same. I also tested the new specific bq27510g3 support
on a custom board I have here and it worked correctly.

Chris Lapa (11):
power: supplies: bq275xx: rename BQ27500 allow for deprecation in
future.
power: supplies: bq275xx: adds specific support for bq27500/1
revision.
power: supplies: bq275xx: adds specific support for bq27510-g1
revision.
power: supplies: bq275xx: adds specific support for bq27510-g2
revision.
power: supplies: bq275xx: adds specific support for bq27510-g3
revision.
power: supplies: bq275xx: adds specific support for bq27520-g1
revision.
power: supplies: bq275xx: adds specific support for bq27520-g2
revision.
power: supplies: bq275xx: adds specific support for bq27520-g3
revision.
power: supplies: bq275xx: adds specific support for bq27520-g4
revision.
power: supply: bq275xx: cleanup over temperature flag check.
power: supplies: bq275xx: adds device tree binding documentation.

.../devicetree/bindings/power/supply/bq275xx.txt | 27 ++
drivers/power/supply/bq27xxx_battery.c | 340 ++++++++++++++++++++-
drivers/power/supply/bq27xxx_battery_i2c.c | 22 +-
include/linux/power/bq27xxx_battery.h | 10 +-
4 files changed, 393 insertions(+), 6 deletions(-)
create mode 100644 Documentation/devicetree/bindings/power/supply/bq275xx.txt

--
2.1.4