8000 USB Control port selection by zartavr · Pull Request #5 · everypinio/PwrBlock-sw · GitHub
[go: up one dir, main page]

Skip to content

USB Control port selection - #5

Open
zartavr wants to merge 6 commits into
everypinio:mainfrom
zartavr:feature/usbctl_select
Open

zartavr wants to merge 6 commits into
everypinio:mainfrom
zartavr:feature/usbctl_select

Conversation

@zartavr
@zartavr zartavr commented Oct 22, 2026 •
Copy link
Copy Markdown
Contributor

Changes:

  • Add usbctl port selection
    • Candidates are probed in priority order: PC, PLD, PWR (CTRL type-c port, PLD external port, PWR type-c port)
    • A port is considered available when host send descriptor request
  • USB LED indicates port state:
    • off: no port selected
    • yellow: port selected, host not active (not enumerated, suspended)
    • magenta: port selected, host active

Limitations:

The port is not re-selected at runtime. If the host is connected to a different port
after initialization, a reset is required.

Testing:

  • Plug/unplug CTRL, PLD port when powered by PWR port to check USB port status by indication
  • Plug CTRL, PLD, PWR port, reset to check priority order

@zartavr zartavr self-assigned this Oct 22, 2026
@zartavr zartavr added the enhancement New feature or request label Oct 22, 2026
@zartavr
zartavr requested a review from ioanlarionov October 22, 2026 18:39
@zartavr zartavr changed the title Feature/usbctl select USB Control port selection Oct 23, 2026
@zartavr
zartavr marked this pull request as draft October 23, 2026 17:30
@zartavr
zartavr marked this pull request as ready for review October 26, 2026 10:53
@zartavr zartavr mentioned this pull request Oct 26, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0