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

Skip to content
Commit 63066f2d authored by Harry Yang's avatar Harry Yang
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 on
    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: If0f1fb4866986b29fcdd1a274a461ea423a47b09
Signed-off-by: default avatarHarry Yang <harryy@codeaurora.org>
parent 9ae54a8e
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