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:
Harry Yang <harryy@codeaurora.org>
Loading
Please register or sign in to comment