drivers: usb: common: Added uhc dwc2 initial files [part2]#102963
drivers: usb: common: Added uhc dwc2 initial files [part2]#102963roma-jam wants to merge 1 commit intozephyrproject-rtos:mainfrom
Conversation
0e30ba3 to
eb3f94a
Compare
|
It seems like these instructions do not really work until |
|
Hi @josuah
This is strange, I did it while I prepared the description and tried it again one more time right now. I introduced this overlay in current [part4], because it make sense as there is some code to test. Here is just that the build is fine. Anyway, it is not that many changes in here, and there are much more to review in [part4]. Am I right, that when development will be finished, I need to delete this overlay file? |
eb3f94a to
c7f78ce
Compare
c7f78ce to
ec9ffe2
Compare
josuah
left a comment
There was a problem hiding this comment.
I forgot to hit "Submit review" a few days ago, so here it is...
No I did not try it out. I did not expect it to work, but I realize that there are placeholders for all the ESP32 vendor quirks, so my bad no problem.
Although here (if we want to test it), we need to create an overlay manually (as I described in steps). Considering this, maybe I can move adding the overlay to this PR, just to make it easier. There should not need an overlay to test with |
josuah
left a comment
There was a problem hiding this comment.
Would you like me to force-push to this branch (and part3) to take the bureaucracy part away and let you focus on what you planned to do?
|
Hi @josuah, thanks for moving the notes from the fork to the upstream PR to keep them all in one place.
I would prefer to make it myself, because otherwise that means that you or someone else should do this every time. So, give me a moment, I will address all the notes soon. |
|
Understood, no rush and thank you for the effort. I will try to stay reactive all I can. |
|
Here are 2 variants for part2, which might also affect part3 but I think other parts would just need rebase, some few conflicts but no big refactor as function names remain the same.
The goal being not moving code bits of DWC2 from It might be possible to first merge part2, then consider the above two PRs "future improvement" so that it does not impact the timeline on DWC2, or directly merge those above (if preferred) to reduce PR churn. |
|
@roma-jam anything you planned to modify/add before review? Thank you |
|
Hi @josuah,
not, don't think so. Might be marked as "ready for review". Thanks for the poking. |
|
@roma-jam I see now all PRs are kind of incrementing.. So the comments in the other parts apply here as well. |
5d42b36 to
fa0c009
Compare
24a9a49 to
459ec1d
Compare
Added: - Driver API signatures without implementation - DT miltiinstance definition of uhc dwc2 - Stubbed vendor quirks calls for esp32 - Added the esp32s3 overlay for usb shell example for testing purpose Signed-off-by: Roman Leonov <jam_roma@yahoo.com>
459ec1d to
008ce92
Compare
|
|
Hi PTAL, this is a common initial API for uhc dwc2. Let me know what you think and how I can push it forward. Thanks. |
jfischer-no
left a comment
There was a problem hiding this comment.
Let me know what you think and how I can push it forward. Thanks.
Sorry, I started looking at these PRs, but was interrupted by an urgent task. I wanted to comment on all of them, but perhaps this is not necessary.
We do not add unfinished drivers. Basically, a PR should contain a working driver on at least one platform. Please choose a PR with significant progress and include all the necessary commits. I will add it to the milestone of the next release. Then, please close all other PRs with a reference to the one where the work will be done. There will be increasing interest in this driver, so people can start looking at it for their adaptions/contributions. If you need my attention, please ping me directly on Discord. Thank you.
|
Hi @jfischer-no, thanks for returning back to me. |
|
Closed because this PR doesn't introduce the working driver state, but just a prerequisites for it. For the first working state of the driver, please refer #102967. |



Description
Added uhc dwc2 files with:
usb_otgperipheral)Testing
/samples/subsys/usb/shellfolder, runand get:
and get:
usbhwithIf the line
uhc_dwc2: uhc_dwc2_init has not been implementedis present in the output, then the source files were build successfully and the driver is reachable.Changes
Added
samples/subsys/usb/shell/boards/esp32s3_devkitc_procpu.overlay- ESP32-S3 project overlay for testing purposedrivers/usb/uhc/KConfig.dwc2- Specific host-related configurationdrivers/usb/uhc/uhc_dwc2.cdrivers/usb/uhc/uhc_dwc2.hdrivers/usb/uhc/uhc_dwc2_vendor_quirks.hUpdated
drivers/usb/uhc/CMakeLists.txtdrivers/usb/uhc/KConfigRelated