]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
dt-bindings: usb: genesys,gl850g: add downstream facing ports
authorDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Sun, 8 Jun 2025 16:07:31 +0000 (19:07 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 28 Jun 2025 15:23:52 +0000 (17:23 +0200)
In order to describe connections between Genesys GL850G hub and
corresponding Type-C connectors, follow example of RTS5411 and describe
downstream facing ports. Unline normal case of ports being connected to
a USB device, hotplug ports use OF graph representation.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Reviewed-by: "Rob Herring (Arm)" <robh@kernel.org>
Link: https://lore.kernel.org/r/20250608-genesys-ports-v1-2-09ca19f6838e@oss.qualcomm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/devicetree/bindings/usb/genesys,gl850g.yaml

index 7f74f181b75c5924f18d3a1b09f713ca03cf9d8c..9a94b2a74a1eb26025a183583702e9ea02372a74 100644 (file)
@@ -28,6 +28,18 @@ properties:
 
   peer-hub: true
 
+  ports:
+    $ref: /schemas/graph.yaml#/properties/ports
+
+    patternProperties:
+      '^port@':
+        $ref: /schemas/graph.yaml#/properties/port
+
+        properties:
+          reg:
+            minimum: 1
+            maximum: 4
+
 required:
   - compatible
   - reg