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

Skip to content
Commit a1f1cfe0 authored by Guru Das Srinagesh's avatar Guru Das Srinagesh
Browse files

power: smb5: Add moisture detection support for uUSB connector



Presence of moisture expedites the corrosion of Type-C/uUSB ID pins
due to constant DRP toggling. To reduce the effect of corrosion,
set DRP toggling duty cycle to 1% and suspend USB input on water
detection.

Use property MOISTURE_DETECTED to reflect moisture detection status.

This patch has been updated to reduce the cyclomatic complexity of
smb5_parse_dt() and smb5_usb_get_prop().

Change-Id: I3bb41564cf67127ae2c0bb27089a1e8b5d722df6
Signed-off-by: default avatarUmang Agrawal <uagrawal@codeaurora.org>
Signed-off-by: default avatarGuru Das Srinagesh <gurus@codeaurora.org>
parent 568550b4
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