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:Umang Agrawal <uagrawal@codeaurora.org> Signed-off-by:
Guru Das Srinagesh <gurus@codeaurora.org>
Loading
Please register or sign in to comment