aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/power/supply/bq27xxx_battery_i2c.c
diff options
context:
space:
mode:
authorDan Murphy <dmurphy@ti.com>2020-07-29 13:31:45 -0500
committerSebastian Reichel <sebastian.reichel@collabora.com>2020-07-29 22:33:10 +0200
commit707d678a5c7c5e80d1caac6c6b021171f5ecde58 (patch)
tree836be7fbb0aeab80c2da9a2352be920afd49d287 /drivers/power/supply/bq27xxx_battery_i2c.c
parentdt-bindings: power: Add BQ28z610 compatible (diff)
downloadlinux-dev-707d678a5c7c5e80d1caac6c6b021171f5ecde58.tar.xz
linux-dev-707d678a5c7c5e80d1caac6c6b021171f5ecde58.zip
power: supply: bq27xxx_battery: Add the BQ28z610 Battery monitor
Add the Texas Instruments BQ28z610 battery monitor. The register address map is laid out the same as compared to other devices within the file. The battery status register bits are similar to the bq27z561 but they are different compared to other fuel gauge devices within this file. 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 15f4e75786ab..ab02456d69e5 100644
--- a/drivers/power/supply/bq27xxx_battery_i2c.c
+++ b/drivers/power/supply/bq27xxx_battery_i2c.c
@@ -254,6 +254,7 @@ static const struct i2c_device_id bq27xxx_i2c_id_table[] = {
{ "bq27441", BQ27441 },
{ "bq27621", BQ27621 },
{ "bq27z561", BQ27Z561 },
+ { "bq28z610", BQ28Z610 },
{},
};
MODULE_DEVICE_TABLE(i2c, bq27xxx_i2c_id_table);
@@ -288,6 +289,7 @@ static const struct of_device_id bq27xxx_battery_i2c_of_match_table[] = {
{ .compatible = "ti,bq27441" },
{ .compatible = "ti,bq27621" },
{ .compatible = "ti,bq27z561" },
+ { .compatible = "ti,bq28z610" },
{},
};
MODULE_DEVICE_TABLE(of, bq27xxx_battery_i2c_of_match_table);