]> git.ipfire.org Git - thirdparty/linux.git/commit
usb: typec: hd3ss3220: Enable VBUS based on role state
authorJan Remmet <j.remmet@phytec.de>
Thu, 15 Jan 2026 13:11:21 +0000 (14:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Jan 2026 16:16:18 +0000 (17:16 +0100)
commit27fbc19e52b9a76b79a1de691b0b978e335c4c35
treeed4c56e3ef6a375d71dbee69cddcd724034b7aa2
parent4298475deecbd12f7d5a83b340f59ae644c37a5e
usb: typec: hd3ss3220: Enable VBUS based on role state

For systems where the ID pin isn't available as gpio use the ATTACHED_STATE
register instead to control vbus.

>From the datasheet:
"This is an additional method to communicate attach other
than the ID pin. These bits can be read by the application to
determine what was attached."

Use this method if id-gpios property is not set, but the connector node
has vbus-supply defined.

Signed-off-by: Jan Remmet <j.remmet@phytec.de>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://patch.msgid.link/20260115-wip-jremmet-hd3ss3220_vbus-v1-1-b7d9adfbe346@phytec.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/hd3ss3220.c