-
Notifications
You must be signed in to change notification settings - Fork 8.3k
[WIP] uhc_dwc2: Initial support for nRF54LM20-DK #97573
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
Conversation
Add USB-OTG peripheral support to ESP32S3. Signed-off-by: Raffael Rostagno <[email protected]>
Signed-off-by: Roman Leonov <[email protected]>
Signed-off-by: Roman Leonov <[email protected]>
Added register bitmask description with low-level abstraction Signed-off-by: Roman Leonov <[email protected]>
Signed-off-by: Roman Leonov <[email protected]>
|
Removing all reviewers until this makes sense to look at the content. |
|
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 <[email protected]>
afda61b to
520bbac
Compare
|
|
I just realized I already opened that in #95723 so closing this one. |



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.