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