[PATCH 0/2] dt-bindings: usb: downstream host ports for hcd and dwc3
Chen-Yu Tsai
wenst at chromium.org
Wed Oct 14 01:20:34 PDT 2026
Hi folks,
I mentioned to a couple people at LPC that the USB host controller
bindings were missing downstream port definitions, and that the ones
used for dwc3 don't align with USB hardware port numbering.
The dwc3 discrepancy was originally noticed by Wei [1] and Konrad [2]
while adapting my M.2 E-key USB support series [3][4] to Qualcomm devices.
Here are the binding changes. If you were CC-ed, then you were listed as
the maintainer of any one of the dwc3 implementations or platforms using
it. So this change would affect you.
Patch 1 adds the "ports" definitions to the common USB host controller
binding. This just follows what is used in usb-hub.yaml. Nothing
special.
Patch 2 "fixes" the port numbering used in the common dwc3 binding. The
dwc3 includes an XHCI for host mode operation, and its port numbering
should follow the common usb-hcd.yaml binding. This clashes with the
existing arbitrary port numbering found in dwc3. I checked all the
big projects, and it seems that only Linux is using them, and it doesn't
care about the numbering anyway.
So while the patches looks small, there are actually 26 other dwc3
implementation bindings that are affected.
And this series currently only has the binding changes. There are
probably close to 500 dts files that need to be fixed as well. I asked
LLM to help me fix the arm64 ones already, and it seemed to do a good
job with some hand holding.
Please have a look. I fully expect there to be a lot of hair pulling.
Thanks
ChenYu
[1] https://lore.kernel.org/all/20260731073306.1895428-1-wei.deng@oss.qualcomm.com/
[2] https://lore.kernel.org/all/c6526ba0-be08-46c6-a501-1b161939657c@oss.qualcomm.com/
[3] v6: https://lore.kernel.org/all/20260721065413.2306137-1-wenst@chromium.org/
[4] v9 (latest): https://lore.kernel.org/all/20260916075745.3549953-1-wenst@chromium.org/
Chen-Yu Tsai (2):
dt-bindings: usb: hcd: Add downstream USB ports
dt-bindings: usb: snps,dwc3: Fix downstream port numbering
.../devicetree/bindings/usb/snps,dwc3-common.yaml | 4 ++--
Documentation/devicetree/bindings/usb/usb-hcd.yaml | 10 +++++++++-
2 files changed, 11 insertions(+), 3 deletions(-)
--
2.56.0.212.g129ede20d9-goog
More information about the linux-riscv
mailing list