Skip to content

Commit 2ded07a

Browse files
krzkgregkh
authored andcommitted
dt-bindings: usb: usb-device: Replace free-form 'reg' with constraints
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>
1 parent 673655f commit 2ded07a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Documentation/devicetree/bindings/usb/usb-device.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ properties:
3939

4040
reg:
4141
description: the number of the USB hub port or the USB host-controller
42-
port to which this device is attached. The range is 1-255.
43-
maxItems: 1
42+
port to which this device is attached.
43+
items:
44+
- minimum: 1
45+
maximum: 255
4446

4547
"#address-cells":
4648
description: should be 1 for hub nodes with device nodes,

0 commit comments

Comments
 (0)