Skip to content

top/polysyn/tusb322i: enable VBUS when enumerating as Accessory/DebugDfp#171

Merged
vk2seb merged 2 commits into
mainfrom
seb/debug-cc2
May 30, 2026
Merged

top/polysyn/tusb322i: enable VBUS when enumerating as Accessory/DebugDfp#171
vk2seb merged 2 commits into
mainfrom
seb/debug-cc2

Conversation

@vk2seb
Copy link
Copy Markdown
Member

@vk2seb vk2seb commented May 27, 2026

Fix for #170 - some USB C devices enumerate as DebugDfp and weren't supplied with VBUS.

From the code --

It seems some USB-C adapters will enumerate as a DebugDfp accessory. Enabling VBUS
is still safe in this situation, as we can only land in DebugDfp if the CC
controller is sure we are a DFP. It's not sufficient to just check
Attached.ACCESSORY as we could also enumerate as an UFP accessory against a host!

As for WHY some devices are enumerating as a DebugDfp, it would be good to have an answer. I need to break out the CY4500 at some point and trace one these 'bad' devices. It may be something to do with how we are driving VBUS, as we have our own state machine outside the tusb322i

UPDATE: results of the CY4500 investigation here: apfaudio/tiliqua-hardware#1

@vk2seb vk2seb marked this pull request as ready for review May 30, 2026 13:31
@vk2seb vk2seb merged commit 1837d41 into main May 30, 2026
27 checks passed
@vk2seb
Copy link
Copy Markdown
Member Author

vk2seb commented May 30, 2026

closes #170

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.

1 participant