Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit a3e55d93 authored by Ashay Jaiswal's avatar Ashay Jaiswal Committed by Gerrit - the friendly Code Review server
Browse files

power: smb1390/battery: add support for CP input/output topologies



Add support for smb1390 input/output topologies, configuration of
smb1390 ILIM for each topology is as follows:

MID(input)-VPH(output):
Adapter CC mode: Not Supported.
Adapter CV mode: smb1390 ILIM is configured based on current advertised
		by adapter(in PPS case) or settled AICL(in QC3 case).

MID(input)-VBAT(output):
Adapter CC mode: smb1390 ILIM is configured to its maximum value.
Adapter CV mode: smb1390 ILIM is configured to minimum of ICL or FCC.
		smb1390 ILIM = min(ICL, (Total_FCC - Main_FCC) / 2)

USBIN(input)-VBAT(output):
Adapter CC mode: smb1390 ILIM is configured to its maximum value.
Adapter CV mode: smb1390 ILIM is configured based on FCC.
		smb1390 ILIM = (Total_FCC - Main_FCC) / 2.

Add support for USBIN input connection topology.
Also add support to report smb1390's input connection topology
via power_supply property.

Change-Id: Ib3ed47d326b0dcb98302138774c96256048268c0
Signed-off-by: default avatarAshay Jaiswal <ashayj@codeaurora.org>
parent eac6c82e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment