I have problem with setting up icharge_jeita_x values. I can set up registers to my custom values, but after short time (milliseconds) they keep rolling back to default values. With other registers I don't have such problem (e.g. LTC4162_CHARGER_CONFIG_BITS_REG with changed en_jeita).
You are using the adjustable version, right? LTC4162-LAD? Otherwise you are not able to write to these registers.
Are you increasing the icharge_jeita_x values or decreasing? Does it happen both ways? When this happens, do other registers reset as well, or just the specific register you are writing?
I see. I'm using LTC4162EUFD-L42 version. I thought that only voltage is not adjustable - this information is listed in "ORDER INFORMATION" section in datasheet. Information about not adjustable current should be put there.
Maybe information about non-writable registers for some chip versions should be put in registers description in documentation? It would save me a lot of time.
For other people with similar problem there is temporary solution. Charging current can still be controlled via CHARGE_CURRENT_SETTING. JEITA have to be disabled first by setting up EN_JEITA to 0. This is not the best solution - you have to care about battery temperature and change charging current (and voltage) by using alarms and interrupts.
Of course the best solution is to use proper chip version
There is a description in the documentation. See page 28 on the LTC4162-L datasheet.