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

Commit 57d28b8a authored by Harry Yang's avatar Harry Yang Committed by Divya Sharma
Browse files

power: smb5-lib: support liquid presence detection



For PMIC5 Chargers, circuits are added for Type-C water submerge detection.
Here is the general approach:

 1. While in DRP, CC pin source crude sensor generates an interrupt when
    detecting some resistance on CC pins.
 2. Use VADC to measure SBUx to GND resistance.
 3. Combined with CC Logic detection result, determine whether liquid is
    detected.
 4. If Yes, configure CC Logic to SNK mode and stop DRP toggling to prevent
    CC pins from getting corroded.

Change-Id: I5a49f99598f2063b63620da87be2f972961a7809
Signed-off-by: default avatarHarry Yang <harryy@codeaurora.org>
Signed-off-by: default avatarDivya Sharma <divyash@codeaurora.org>
parent b0110cd8
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