[WIP] uhc_dwc2: Initial support for nRF54LM20-DK#97573
Closed
josuah wants to merge 6 commits intozephyrproject-rtos:mainfrom
Closed
[WIP] uhc_dwc2: Initial support for nRF54LM20-DK#97573josuah wants to merge 6 commits intozephyrproject-rtos:mainfrom
josuah wants to merge 6 commits intozephyrproject-rtos:mainfrom
Conversation
Add USB-OTG peripheral support to ESP32S3. Signed-off-by: Raffael Rostagno <raffael.rostagno@espressif.com>
Signed-off-by: Roman Leonov <roman.leonov@espressif.com>
Signed-off-by: Roman Leonov <roman.leonov@espressif.com>
Added register bitmask description with low-level abstraction Signed-off-by: Roman Leonov <roman.leonov@espressif.com>
Signed-off-by: Roman Leonov <roman.leonov@espressif.com>
Contributor
Author
|
Removing all reviewers until this makes sense to look at the content. |
Contributor
Author
|
I noticed the DK has VBUS which is the "system 5V rail" rather than the VBUS provided to the device as part of the 4 USB pins [GND, VBUS, D+, D-] (of course more in Type-C). The VBUS provided to the device, probed at TP21, stays near 0V and I suspect I need to read the PHY doc more. I will look further how to control this. |
e36c361 to
afda61b
Compare
nRF54LM20's DWC2 core is powered through the PHY, which requires to power-up the PHY before making any register access. Import and modify the registers from UDC DWC2 driver taking this in consideration. Signed-off-by: Josuah Demangeon <josuah.demangeon@nordicsemi.no>
afda61b to
520bbac
Compare
|
Contributor
Author
|
I just realized I already opened that in #95723 so closing this one. |
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.



Dependencies:
This is an extremely early state and not expected to work so far.
There is only some work on the PHY and import of nRF54LM20 device driver (UDC) vendor quirks on top of the PR #94266.
To test:
Then on the shell:
Then plug/unplug an USB device while powering the VBUS externally (i.e. charger/data adapter and an USB dongle), and observe interrupts arriving:
For now this is all it does.
Next on the roadmap is to get interrupts working while running in host mode and verify the chain of registers matches what is on the databook, to try to get an USB device detected on the bus.