Letux Kernel

Issue 718: bq27xxx driver

Reported by Nikolaus Schaller, Apr 9, 2016

The Pyra has a bq27621 fuel gauge chip. This assumes a nominal 
capacity by design of 2450 mAh.

The Pyra battery has 6000 mAh which should be defined in the device 
tree node of the bq27621 chip (or a battery subnode).

To fix the calculations of empty/full battery the driver


should reprogram the bq27621 chip during probing (or if it finds a 
mismatch of registers 0x3C and 0x3D).

The procedure to update the DESIGN_CAPACITY register is described 


see section "3.1 Data Memory Parameter Update Example" on 
page 12.

A good solution appears to be to patch


by adding a check if the design capacity matches a DT node entry and 
try a reprogram on mismatch.

Comment 1 by Nikolaus Schaller, Apr 9, 2016

Status: Duplicate

Created: 8 years 3 months ago by Nikolaus Schaller

Updated: 8 years 3 months ago

Status: Duplicate