Hi,
We have connected Bq27425-g2a to 400mAh battery for one of our wearable device.
We are using driver https://github.com/aneeshv/linux-bq27xxx/blob/master/drivers/power/bq27x00_battery.c to validate fuel gauge.
Firmware version is read as 0x205.
By reading registers 0x3c and 0x3d, we came to know that Design capacity is set as 1340mAh by default.
We tried to reconfigure Design capacity value by writing Gas gauging in Data block.
By default, Device registers were in unsealed access mode. So we programmed design capacity value to 400mAh and changed the register access to sealed mode as in above driver code.
After next power cycle of the device, we could not able to change to UNSEAL access mode and read/write registers.
Please confirm whether the code for unsealing in driver is proper.
Also we are seeing that DISCHARGE bit in FLAGS (0x06) registers is not updated properly. What could be the reason for this.
Thanks,
Kastoori S