Skip to content

Add methods for registers Get Discovered SVIDs, Received SOP/SOP' Identity Data, executing Hard Reset#104

Merged
RobertZ2011 merged 23 commits into
OpenDevicePartnership:mainfrom
asasine:discovered-svids
Apr 29, 2026
Merged

Add methods for registers Get Discovered SVIDs, Received SOP/SOP' Identity Data, executing Hard Reset#104
RobertZ2011 merged 23 commits into
OpenDevicePartnership:mainfrom
asasine:discovered-svids

Conversation

@asasine
Copy link
Copy Markdown
Contributor

@asasine asasine commented Apr 28, 2026

Copilot AI review requested due to automatic review settings April 28, 2026 16:04
@asasine asasine requested a review from a team as a code owner April 28, 2026 16:04
@asasine asasine requested review from RobertZ2011 and gjpmsft April 28, 2026 16:04
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for reading/parsing additional TPS6699x registers related to USB PD discovery/identity, and exposes a new hard reset command through the async (Embassy) API.

Changes:

  • Add register wrappers for Discovered SVIDs (0x21) and Received SOP/SOP’ Identity Data Objects (0x48/0x49), including conversion into embedded_usb_pd response types.
  • Add async methods to read the new registers, plus an Embassy wrapper method to execute the new Hard Reset command.
  • Update embedded-usb-pd git revision and align gcdm’s Svid import with the structured VDM type.

Reviewed changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 13 comments.

Show a summary per file
File Description
src/registers/discovered_svids.rs New register wrapper + iterators (and tests) for discovered SVIDs (0x21).
src/registers/received_sop_identity_data.rs New register wrapper + parsing/conversion for SOP Discover Identity response (0x48).
src/registers/received_sop_prime_identity_data.rs New register wrapper + parsing/conversion for SOP’ Discover Identity response (0x49).
src/registers/mod.rs Exposes the new register modules.
src/asynchronous/internal/mod.rs Adds async read helpers for the new large registers.
src/asynchronous/embassy/mod.rs Adds Embassy API wrappers for reading new registers and executing HRST.
src/command/mod.rs Adds HRST command and updates command decoding tests.
src/command/gcdm.rs Switches Svid import to vdm::structured::Svid.
Cargo.lock Bumps embedded-usb-pd git revision.

Comment thread src/registers/discovered_svids.rs
Comment thread src/registers/received_sop_identity_data.rs Outdated
Comment thread src/registers/received_sop_identity_data.rs
Comment thread src/registers/received_sop_prime_identity_data.rs Outdated
Comment thread src/registers/received_sop_identity_data.rs
Comment thread src/registers/received_sop_identity_data.rs
Comment thread src/registers/received_sop_identity_data.rs
Comment thread src/registers/discovered_svids.rs
Comment thread src/registers/received_sop_prime_identity_data.rs Outdated
Comment thread src/registers/discovered_svids.rs
@RobertZ2011 RobertZ2011 requested review from kurtjd and tullom April 28, 2026 20:52
Comment thread src/registers/received_sop_identity_data.rs Outdated
Comment thread src/registers/received_sop_prime_identity_data.rs Outdated
Comment thread src/registers/received_sop_prime_identity_data.rs Outdated
Comment thread src/registers/received_sop_prime_identity_data.rs Outdated
@asasine asasine requested a review from RobertZ2011 April 29, 2026 00:05
@RobertZ2011 RobertZ2011 merged commit 600254b into OpenDevicePartnership:main Apr 29, 2026
13 checks passed
@asasine asasine deleted the discovered-svids branch April 29, 2026 17:02
jerrysxie pushed a commit to jerrysxie/tps6699x that referenced this pull request May 4, 2026
…ntity Data, executing Hard Reset (OpenDevicePartnership#104)

Builds on OpenDevicePartnership/embedded-usb-pd#64

---------

Co-authored-by: Copilot <copilot@github.com>
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.

4 participants