Power Management
Todo:
-
CNFG_CHG_{A,B,C,D,E,F,G}
Configuration inlib/card10/pmic.c
-
CNFG_CHG_A
:- Configure NTC Parameters
- THM_HOT[1:0]: 0x0 (45°C)
- THM_WARM[1:0]: 0x0 (35°C)
- THM_COOL[1:0]: 0x3 (15°C)
- THM_COLD[1:0]: 0x3 (5°C)
-
CNFG_CHG_B
:- VCHGIN_MIN[2:0]: 0x0 (4.0V) //Minimum Charge-In: 4V
- ICHGIN_LIM[2:0]: 0x4 (475mA) //Charge Limit: 475mA
- I_PQ: 0x0 (10%)
- CHG_EN: 0x1 (At the very end:
CHG_EN
to 1 to enable the charger block)
-
CNFG_CHG_C
:- CHG_PQ[1:0]: 0x7 (Prequalification Voltage: 3.0V)
- I_TERM[0:1]: 0x3 (Charger Termination Current: 15% (default))
- T_TOPPOFF[2:0]: 0x0 (Topoff Timer: 0min)
-
CNFG_CHG_D
:- TJ_REG[2:0]: 0x0 (Junction Temp Regulation: 60°C)
- VSYS_REG[4:0]: 0x10 (4.5V)
-
CNFG_CHG_E
:- CHG_CC[5:0]: 0x0b (90mA) //Constant Current
- T_FAST_CHG[1:0]: 0x1 (3h) //Fast Charge Saftey Timer: 3h (
0x01
)
-
CNFG_CHG_F
:- CHG_CC_JEITA[5:0]: 0x07 (60mA) //reduce charger current when battery is warm or cool
- THM_EN: 0x1 //Thermistor Enable: on
-
CNFG_CHG_G
:- CHG_CV[5:0]: 0x18 (4.2V) //Constant Charging Voltage
- USBS: 0x0 //
USBS
(USB Suspend): 0
-
CNFG_CHG_H
:- CHG_CV_JEITA[5:0]: 0x10 (4.0V) //
CHG_CV_JEITA
: /
- CHG_CV_JEITA[5:0]: 0x10 (4.0V) //
-
CNFG_CHG_I
:- IMON_DISCHG_SCALE[3:0]: 0x0a (300mA)
- MUX_SEL[3:0]: 0x0 //
MUX_SEL
(ADC MUX): 0 by default, value for measurements
-
-
House Keeping Tasks -
Battery Voltage (60s for now) - Check how PMIC reacts to poweroff
-
Edited by Ole Dreessen