[PATCH 1/4] dt-bindings: usb: vialab,vl817: Use usb-hub.yaml

Igor Velkov via B4 Relay devnull+iav.iav.lv at kernel.org
Thu Dec 3 12:50:59 PST 2026


From: Igor Velkov <iav at iav.lv>

Reference usb-hub.yaml instead of usb-device.yaml, so that a board can
describe the downstream ports of the hub and the devices wired to them.
Drop the peer-hub definition, which usb-hub.yaml already provides.
Limit the port numbers to the four downstream ports.

Signed-off-by: Igor Velkov <iav at iav.lv>
---
 .../devicetree/bindings/usb/vialab,vl817.yaml       | 21 +++++++++++++++------
 1 file changed, 15 insertions(+), 6 deletions(-)

diff --git a/Documentation/devicetree/bindings/usb/vialab,vl817.yaml b/Documentation/devicetree/bindings/usb/vialab,vl817.yaml
index c815010ba9c2..01c4acb810ab 100644
--- a/Documentation/devicetree/bindings/usb/vialab,vl817.yaml
+++ b/Documentation/devicetree/bindings/usb/vialab,vl817.yaml
@@ -10,7 +10,7 @@ maintainers:
   - Anand Moon <linux.amoon at gmail.com>
 
 allOf:
-  - $ref: usb-device.yaml#
+  - $ref: usb-hub.yaml#
 
 properties:
   compatible:
@@ -29,10 +29,19 @@ properties:
     description:
       phandle to the regulator that provides power to the hub.
 
-  peer-hub:
-    $ref: /schemas/types.yaml#/definitions/phandle
-    description:
-      phandle to the peer hub on the controller.
+  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
@@ -40,7 +49,7 @@ required:
   - vdd-supply
   - peer-hub
 
-additionalProperties: false
+unevaluatedProperties: false
 
 examples:
   - |

-- 
2.43.0





More information about the linux-arm-kernel mailing list