-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drivers/usbdev_synopsys_dwc2: add USB OTG HS peripheral support for external ULPI HS PHYs #18679
Merged
benpicco
merged 6 commits into
RIOT-OS:master
from
gschorcht:drivers/usbdev_synopsys_dwc2_hs
Oct 6, 2022
Merged
drivers/usbdev_synopsys_dwc2: add USB OTG HS peripheral support for external ULPI HS PHYs #18679
benpicco
merged 6 commits into
RIOT-OS:master
from
gschorcht:drivers/usbdev_synopsys_dwc2_hs
Oct 6, 2022
Conversation
This file contains 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
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
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Area: boards
Area: Board ports
Area: build system
Area: Build system
Area: doc
Area: Documentation
Area: drivers
Area: Device drivers
Area: Kconfig
Area: Kconfig integration
CI: ready for build
If set, CI server will compile all applications for all available boards for the labeled PR
Type: new feature
The issue requests / The PR implemements a new feature for RIOT
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_ulpi
module, which requires theperiph_usbdev_hs_ulpi
feature.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_ulpi
feature. The application can then enable the USB OTG HS port by enabling theperiph_usbdev_hs_ulpi
module.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_hid
tests/usbus_hid
with moduleperiph_usbdev_hs_ulpi
stm32f429i-disc1
should still work.Issues/PRs references