]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: typec: hd3ss3220: Enable VBUS based on ID pin state
authorKrishna Kurapati <krishna.kurapati@oss.qualcomm.com>
Tue, 11 Nov 2025 07:20:25 +0000 (12:50 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Nov 2025 14:17:40 +0000 (15:17 +0100)
commitf8d2bf7c0c5d2e9eb1792587c3d29a4c5201634e
tree795d618e48fde78ba7a13194b4bd42fd9029ed97
parentd53bdaae894768eccff55327d379e8c033ce30d8
usb: typec: hd3ss3220: Enable VBUS based on ID pin state

There is a ID pin present on HD3SS3220 controller that can be routed
to SoC. As per the datasheet:

"Upon detecting a UFP device, HD3SS3220 will keep ID pin high if VBUS is
not at VSafe0V. Once VBUS is at VSafe0V, the HD3SS3220 will assert ID pin
low. This is done to enforce Type-C requirement that VBUS must be at
VSafe0V before re-enabling VBUS"

Add support to read the ID pin state and enable VBUS accordingly.

Signed-off-by: Krishna Kurapati <krishna.kurapati@oss.qualcomm.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://patch.msgid.link/20251111072025.2199142-3-krishna.kurapati@oss.qualcomm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/hd3ss3220.c