Skip to content

FROMLIST: usb: typec: hd3ss3220: Enable VBUS based on role state#656

Open
swatagar wants to merge 1 commit intoqualcomm-linux:tech/bus/usb/phyfrom
swatagar:hd3
Open

FROMLIST: usb: typec: hd3ss3220: Enable VBUS based on role state#656
swatagar wants to merge 1 commit intoqualcomm-linux:tech/bus/usb/phyfrom
swatagar:hd3

Conversation

@swatagar
Copy link

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.

Check regulator state as peripheral and detach can disable vbus.

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.

Check regulator state as peripheral and detach can disable vbus.

Signed-off-by: Jan Remmet <j.remmet@phytec.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants