drivers/usbdev_synopsys_dwc2: add USB OTG HS peripheral support for external ULPI HS PHYs#18679
Merged
benpicco merged 6 commits intoRIOT-OS:masterfrom Oct 6, 2022
Merged
Conversation
e142db4 to
3723e7f
Compare
Murdock results✔️ PASSED 4384403 boards/common/esp32{s2,s3}: update USB OTG configuration
ArtifactsThis only reflects a subset of all builds from https://ci-prod.riot-os.org. Please refer to https://ci.riot-os.org for a complete build for now. |
bc6fb55 to
409e9b5
Compare
Contributor
|
Looks pretty straightforward - nice addition! |
The `fs` in the file name means that on-chip FS PHY is configured for USB OTG HS. The file is renamed to `cfg_usb_otg_hs_phy_fs.h` - to clarify that USB OTG HS is just configured with PHY FS and not HS and FS, - to allow a configuration of USB OTG FS and HS in one file called `cfg_usb_otg_hs_fs.h` or whatever, and - to allow a configuration of USB OTG HS with ULPI PHY in a file called `cfg_usb_otg_hs_phy_ulpi.h`. f
409e9b5 to
4384403
Compare
benpicco
approved these changes
Oct 6, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contribution description
This PR adds the support for external ULPI HS PHYs.
Boards whose USB OTG HS peripherals use an external HS-PHY via the ULPI interface, such as the board
stm32f746g-disco, can be used with this PR in USB HS mode. For this purpose, the USB OTG configuration structure has been extended by the ULPI interface configuration. ULPI HS PHY support is enabled by theperiph_usbdev_hs_ulpimodule, which requires theperiph_usbdev_hs_ulpifeature.Boards whose USB OTG HS peripherals use an external HS-PHY via the ULPI interface must define the ULPI interface configuration and provide the
periph_usbdev_hs_ulpifeature. The application can then enable the USB OTG HS port by enabling theperiph_usbdev_hs_ulpimodule.Testing procedure
The best way to test the PR is to use a board with two USB OTG ports (one FS port and one HS port connected to a ULPI PHY, such as the board "stm32f746g-disco") connected to the host with two USB cables.
tests/usbus_hidtests/usbus_hidwith moduleperiph_usbdev_hs_ulpistm32f429i-disc1should still work.Issues/PRs references