mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] dt-bindings: usb: downstream host ports for hcd and dwc3
@ 2026-10-14  8:20 Chen-Yu Tsai
  2026-10-14  8:20 ` [PATCH 1/2] dt-bindings: usb: hcd: Add downstream USB ports Chen-Yu Tsai
  2026-10-14  8:20 ` [PATCH 2/2] dt-bindings: usb: snps,dwc3: Fix downstream port numbering Chen-Yu Tsai
  0 siblings, 2 replies; 9+ messages in thread
From: Chen-Yu Tsai @ 2026-10-14  8:20 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Felipe Balbi, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley
  Cc: Chen-Yu Tsai, linux-usb, devicetree, Neil Armstrong,
	Kevin Hilman, Jerome Brunet, Martin Blumenstingl, Sven Peter,
	Janne Grunau, Neal Gompa, Joel Stanley, Andrew Jeffery,
	Ryan Chen, Billy Tsai, Michal Simek, Frank Li, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, Peter Griffin,
	André Draszik, Tudor Ambarus, Heiko Stuebner, Alim Akhtar,
	Kunihiko Hayashi, Masami Hiramatsu, Yixun Lan, Troy Mitchell,
	Minda Chen, Shyam Pandey, Wei Yang, Senchuan Zhang, Hang Cao,
	Li Jun, Peng Fan, Roy Luo, Yang Xiwen, Ahmad Zainie,
	Robert Marko, Xu Yang, Wesley Cheng, Stanley Chang, Ze Huang,
	Aswath Govindraju, Roger Quadros, linux-arm-kernel,
	linux-amlogic, linux-kernel, asahi, linux-aspeed, imx,
	linux-samsung-soc, linux-arm-msm, linux-rockchip, linux-riscv,
	spacemit


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-10-14 16:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-14  8:20 [PATCH 0/2] dt-bindings: usb: downstream host ports for hcd and dwc3 Chen-Yu Tsai
2026-10-14  8:20 ` [PATCH 1/2] dt-bindings: usb: hcd: Add downstream USB ports Chen-Yu Tsai
2026-10-14  8:20 ` [PATCH 2/2] dt-bindings: usb: snps,dwc3: Fix downstream port numbering Chen-Yu Tsai
2026-10-14  8:28   ` Neil Armstrong
2026-10-14  9:29     ` Chen-Yu Tsai
2026-10-14  9:44       ` Neil Armstrong
2026-10-14 10:14         ` Chen-Yu Tsai
2026-10-14 12:15           ` Neil Armstrong
2026-10-14 16:36         ` Konrad Dybcio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®