-
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
pkg/tinyusb: add ULPI and UTMI+ HS PHY support for STM32 USB OTG HS ports #18776
Merged
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
`CFG_TUD_MAX_SPEED` definition isn't required since tinyUSB derives it from `TUD_RHPORT_MODE` if not defined or uses the maximum speed the MCU supports by default.
gschorcht
requested review from
leandrolanzieri,
jia200x,
MrKevinWeiss,
aabadie,
fjmolinas,
DipSwitch and
vincent-d
as code owners
October 19, 2022 17:26
github-actions
bot
added
Area: boards
Area: Board ports
Area: build system
Area: Build system
Area: cpu
Area: CPU/MCU ports
Area: Kconfig
Area: Kconfig integration
Area: pkg
Area: External package ports
Platform: ARM
Platform: This PR/issue effects ARM-based platforms
labels
Oct 19, 2022
gschorcht
added
Type: enhancement
The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation
CI: ready for build
If set, CI server will compile all applications for all available boards for the labeled PR
labels
Oct 19, 2022
Murdock results✔️ PASSED 3680546 boards/stm32f7508-dk: enable tinyUSB feature
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. |
benpicco
approved these changes
Oct 20, 2022
Sure go ahead |
gschorcht
force-pushed
the
pkg/tinyusb_otg_hs_ulpi
branch
from
October 21, 2022 09:44
d21db67
to
3680546
Compare
gschorcht
added
CI: skip compile test
If set, CI server will run only non-compile jobs, but no compile jobs or their dependent jobs
CI: ready for build
If set, CI server will compile all applications for all available boards for the labeled PR
and removed
CI: ready for build
If set, CI server will compile all applications for all available boards for the labeled PR
labels
Oct 21, 2022
@benpicco Thanks. |
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: cpu
Area: CPU/MCU ports
Area: Kconfig
Area: Kconfig integration
Area: pkg
Area: External package ports
CI: ready for build
If set, CI server will compile all applications for all available boards for the labeled PR
CI: skip compile test
If set, CI server will run only non-compile jobs, but no compile jobs or their dependent jobs
Platform: ARM
Platform: This PR/issue effects ARM-based platforms
Type: enhancement
The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation
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 provides the support of external ULPI and internal UTMI+ HS PHYs for STM32 USB OTG HS ports. The support of these HS PHYs allows the use of the tinyUSB package also for STM32 USB OTG HS ports. The HS PHY is used by enabling either the
periph_usbdev_ulpi_hs
pseudomodule or theperiph_usbdev_ulpi_hs
pseudomodule for boards that have an USB OTG FS as well as an USB OTG HS port and provide the corresponding feature.The PR also enables the tinyUSB feature for boards with USB OTG HS ports.
Testing procedure
Use a board with an USB OTG FS port and an USB OTG HS port with external ULPI HS PHY, for example:
With the
periph_usbdev_ulpi_hs
module, the test should work for the USB OTG HS port. Without theperiph_usbdev_ulpi_hs
module, the test should work for the USB OTG FS port.Use a board with an USB OTG FS port and an USB OTG HS port with internal UTMI HS PHY, for example:
With the
periph_usbdev_utmi_hs
module, the test should work for the USB OTG HS port. Without theperiph_usbdev_ulpi_hs
module, the test should work for the USB OTG FS port.Issues/PRs references