OK, I'm back at my own place and ready to work on this again.
I get the following with four (real, ish) cells wired up, the TX pins on U302 shorted appropriately, and in general things wired up "properly" so the chip should be happy:-
ch> stats
Manufacturer: Texas Inst.
Part name: bq20z95
Firmware version: 0x5009
Charge FET: off
Discharge FET: off
State: normal discharge
Time until full: 65535 minutes
Time until empty: 65535 minutes
Chemistry: LION
Serial number: 0x0001
Charge: 69%
Max capacity: 2866 mAh
Design capacity: 4400 mAh
Temperature: 25.24455 C
Voltage: 15482 mV
Current: -4 mA
Average current: -1 mA
Target voltage: 0 mV
Target current: 0 mA
Number of cells: 4 cells
Cell 1 voltage: 3819 mV
Cell 2 voltage: 3875 mV
Cell 3 voltage: 3993 mV
Cell 4 voltage: 3796 mV
Charge status: 0x0
Charging allowed? yes
Can suspend? no
Can precharge? no
Can maintenance? no
Temperature limit? no
Temperature limit? no
Can fastcharge? no
Pulse charging? no
Pulse disable CHG? no
Cell balancing? no
Precharge timeout? no
Fastcharge timeout? no
Overcharge OV? no
Overcharge OC? no
Overcharge? no
Battery empty? no
Alarms:
TERMINATE CHARGE ALARM
TERMINATE DISCHARGE ALARM
Charge state:
Battery initialized
Battery discharging/relaxing
No errors detected
No safety alerts
No safety status messages
No amount of "gg cells 3", "gg capacity 3 5000" will make it write to the chip well enough to update the output of the stats command. Also, setting the charger directly doesn't seem to work very well either:-
ch> chg
Charger information:
Charge thread: running
Manufacturer ID: 0x0040
Device ID: 0x0007
Current: 0 mA
Voltage: 0 mV
Input: 3840 mA
ch> chg set 1000 16000 4000
Setting charger: 1000mA @ 16000mV (input: 4000mA)... Ok
ch> chg
Charger information:
Charge thread: running
Manufacturer ID: 0x0040
Device ID: 0x0007
Current: 896 mA
Voltage: 16000 mV
Input: 3840 mA
---I wait 10 seconds here---
ch> chg
Charger information:
Charge thread: running
Manufacturer ID: 0x0040
Device ID: 0x0007
Current: 0 mA
Voltage: 0 mV
Input: 3840 mA
At the end of the process the stats output is the same as at the start. The only thing I see of note is the stuff under "Alarms" in the gg status. I can't seem to find a way to reset those, even though the battery status is otherwise fine. gg pfreset and reboot doesn't help either. Forcing the charger output on the gg on (with gg chg +) doesn't seem to affect anything either.
Any ideas?