summaryrefslogtreecommitdiffstats
path: root/drivers/power/supply/bq27xxx_battery_i2c.c
diff options
context:
space:
mode:
authorDan Murphy <dmurphy@ti.com>2020-07-29 20:31:43 +0200
committerSebastian Reichel <sebastian.reichel@collabora.com>2020-07-29 22:33:10 +0200
commit6f24ff97e3231a5303841c5196a6f460f8485eb4 (patch)
treeaf68462cea43a98e7f7cb21f27f7772e74ca20ce /drivers/power/supply/bq27xxx_battery_i2c.c
parentdt-bindings: power: Add BQ27Z561 compatible (diff)
downloadlinux-6f24ff97e3231a5303841c5196a6f460f8485eb4.tar.xz
linux-6f24ff97e3231a5303841c5196a6f460f8485eb4.zip
power: supply: bq27xxx_battery: Add the BQ27Z561 Battery monitor
Add the Texas Instruments BQ27Z561 battery monitor. The register address map is laid out the same as compared to other devices within the file. The battery status register has differing bits to determine if the battery is full, discharging or dead. Signed-off-by: Dan Murphy <dmurphy@ti.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power/supply/bq27xxx_battery_i2c.c')
-rw-r--r--drivers/power/supply/bq27xxx_battery_i2c.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/power/supply/bq27xxx_battery_i2c.c b/drivers/power/supply/bq27xxx_battery_i2c.c
index 8e114a7abfc9..15f4e75786ab 100644
--- a/drivers/power/supply/bq27xxx_battery_i2c.c
+++ b/drivers/power/supply/bq27xxx_battery_i2c.c
@@ -253,6 +253,7 @@ static const struct i2c_device_id bq27xxx_i2c_id_table[] = {
{ "bq27426", BQ27426 },
{ "bq27441", BQ27441 },
{ "bq27621", BQ27621 },
+ { "bq27z561", BQ27Z561 },
{},
};
MODULE_DEVICE_TABLE(i2c, bq27xxx_i2c_id_table);
@@ -286,6 +287,7 @@ static const struct of_device_id bq27xxx_battery_i2c_of_match_table[] = {
{ .compatible = "ti,bq27426" },
{ .compatible = "ti,bq27441" },
{ .compatible = "ti,bq27621" },
+ { .compatible = "ti,bq27z561" },
{},
};
MODULE_DEVICE_TABLE(of, bq27xxx_battery_i2c_of_match_table);