[PATCH 0/5] power: supply: bq27xxx: add bq27z746, and fix some regs

Henrik Grimler posted 5 patches 1 month, 2 weeks ago
Documentation/devicetree/bindings/power/supply/bq27xxx.yaml |  1 +
drivers/power/supply/bq27xxx_battery.c                      | 12 +++++++++---
drivers/power/supply/bq27xxx_battery_i2c.c                  |  2 ++
include/linux/power/bq27xxx_battery.h                       |  1 +
4 files changed, 13 insertions(+), 3 deletions(-)
[PATCH 0/5] power: supply: bq27xxx: add bq27z746, and fix some regs
Posted by Henrik Grimler 1 month, 2 weeks ago
bq27z746 is similar to bq27z561 but with additional protection
functionality. The standard register set is identical, but the
extended registers accessed through AltManufacturerAccess has
differences.

While working with bq27z746 I looked at some of the technical
reference manuals for the other bq27xxx devices, and noticed some
discrepancies with the driver. Fix these issues while we are at it.

For reference the TRMs for the affected bq chips can be found at these
direct links:

- bq27z746:  https://ti.com/lit/ug/sluuca6/sluuca6.pdf
- bq27520g4: https://ti.com/lit/ug/sluua35/sluua35.pdf
- bq28z610:  https://ti.com/lit/ug/sluua65e/sluua65e.pdf
- bq27z561:  https://ti.com/lit/ug/sluubo7/sluubo7.pdf

Signed-off-by: Henrik Grimler <henrik.grimler@axis.com>
---
Henrik Grimler (5):
      dt-bindings: power: bq27xxx: document bq27z746
      power: supply: bq27xxx: add support for bq27z746
      power: supply: bq27xxx: bq27520g4: fix REG_TTES address
      power: supply: bq27xxx: bq28z610: fix invalid AverageEnergy address
      power: supply: bq27xxx: bq27z561: fix invalid AverageEnergy address

 Documentation/devicetree/bindings/power/supply/bq27xxx.yaml |  1 +
 drivers/power/supply/bq27xxx_battery.c                      | 12 +++++++++---
 drivers/power/supply/bq27xxx_battery_i2c.c                  |  2 ++
 include/linux/power/bq27xxx_battery.h                       |  1 +
 4 files changed, 13 insertions(+), 3 deletions(-)
---
base-commit: 99b38cda3f4c486cfbc40f3c8ede1703594e9f13
change-id: 20260709-bq27z746-8dc4c2ec0948

Best regards,
-- 
Henrik Grimler <henrik.grimler@axis.com>
Re: (subset) [PATCH 0/5] power: supply: bq27xxx: add bq27z746, and fix some regs
Posted by Sebastian Reichel 1 month, 2 weeks ago
On Tue, 11 Aug 2026 13:47:42 +0200, Henrik Grimler wrote:
> bq27z746 is similar to bq27z561 but with additional protection
> functionality. The standard register set is identical, but the
> extended registers accessed through AltManufacturerAccess has
> differences.
> 
> While working with bq27z746 I looked at some of the technical
> reference manuals for the other bq27xxx devices, and noticed some
> discrepancies with the driver. Fix these issues while we are at it.
> 
> [...]

Applied, thanks!

[3/5] power: supply: bq27xxx: bq27520g4: fix REG_TTES address
      commit: c774a623c821a173c950e1297f8e8c85a89455be
[4/5] power: supply: bq27xxx: bq28z610: fix invalid AverageEnergy address
      commit: e9387e9ab5121f330d313afb90430c02200f9782
[5/5] power: supply: bq27xxx: bq27z561: fix invalid AverageEnergy address
      (no commit info)

Best regards,
-- 
Sebastian Reichel <sebastian.reichel@collabora.com>