]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
dt-bindings: usb: usb-device: Replace free-form 'reg' with constraints
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Fri, 14 Feb 2025 11:42:35 +0000 (12:42 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Feb 2025 14:14:18 +0000 (15:14 +0100)
Replace free-form text of 'reg' property with proper constraints so
incorrect values can be actually reported.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20250214114235.49476-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/devicetree/bindings/usb/usb-device.yaml

index da890ee60ce6e71a11910c565b6f805470782e4f..c676956810331b81f11f3624340fc3e612c98315 100644 (file)
@@ -39,8 +39,10 @@ properties:
 
   reg:
     description: the number of the USB hub port or the USB host-controller
-      port to which this device is attached. The range is 1-255.
-    maxItems: 1
+      port to which this device is attached.
+    items:
+      - minimum: 1
+        maximum: 255
 
   "#address-cells":
     description: should be 1 for hub nodes with device nodes,