This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

BQ27220: BQ27220 Data Memory register設定

Part Number: BQ27220
Other Parts Discussed in Thread: BQSTUDIO

請問BQ27220, 我參考以下sample driver來改:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/power/supply/bq27xxx_battery.c

其中dm_reg 的參數, 對應至規格書的什麼參數定義的?

DESIGN_CAPACITY
DESIGN_ENERGE
TERMINATE_VOLTAGE

static struct bq27xxx_dm_reg bq27411_dm_regs[] = {
	[BQ27XXX_DM_DESIGN_CAPACITY]   = { 82, 10, 2,    0, 32767 },
	[BQ27XXX_DM_DESIGN_ENERGY]     = { 82, 12, 2,    0, 32767 },
	[BQ27XXX_DM_TERMINATE_VOLTAGE] = { 82, 16, 2, 2800,  3700 },
};