[PATCH v3] dt-bindings: usb: dwc3: Allow connector in USB controller node

From: Matthias Schiffer
Date: Tue Mar 25 2025 - 09:37:34 EST


Allow specifying the connector directly in the USB controller node, as
allow in other USB controller bindings and commonly used for
"gpio-usb-b-connector". Linux already supports this without driver
changes.

Signed-off-by: Matthias Schiffer <matthias.schiffer@xxxxxxxxxxxxxxx>
Acked-by: Conor Dooley <conor.dooley@xxxxxxxxxxxxx>
---

Changes in v3:
- Rebased onto linux-next (moved to the new snps,dwc3-common.yaml)
- Extended commit message
- Pull patch out of "TQ-Systems TQMa62xx SoM and MBa62xx board" series,
as the series will need some more rework, and this patch should be
good to go independently (and should go through the USB tree, unlike
the rest of the series)
In the submissions of the previous versions, the linux-usb list was
forgotten by accident.

Changes in v2:
- Collected ack
- Rebased onto v6.13-rc1

Documentation/devicetree/bindings/usb/snps,dwc3-common.yaml | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/Documentation/devicetree/bindings/usb/snps,dwc3-common.yaml b/Documentation/devicetree/bindings/usb/snps,dwc3-common.yaml
index 71249b6ba6168..6c0b8b6538246 100644
--- a/Documentation/devicetree/bindings/usb/snps,dwc3-common.yaml
+++ b/Documentation/devicetree/bindings/usb/snps,dwc3-common.yaml
@@ -390,6 +390,12 @@ properties:
maximum: 8
default: 1

+ connector:
+ $ref: /schemas/connector/usb-connector.yaml#
+ description: Connector for dual role switch
+ type: object
+ unevaluatedProperties: false
+
port:
$ref: /schemas/graph.yaml#/properties/port
description:
--
TQ-Systems GmbH | Mühlstraße 2, Gut Delling | 82229 Seefeld, Germany
Amtsgericht München, HRB 105018
Geschäftsführer: Detlef Schneider, Rüdiger Stahl, Stefan Schneider
https://www.tq-group.com/