diff options
| author | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2025-02-14 14:42:35 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-02-19 17:14:18 +0300 |
| commit | 2ded07a8a21bfb6e48e49d293ae96a9705751feb (patch) | |
| tree | 67c758ec4b0b1c3b0240c4a4559b422978b02c7a | |
| parent | 673655f7944faa377744e707e5c7f46be0a0bc7f (diff) | |
| download | linux-2ded07a8a21bfb6e48e49d293ae96a9705751feb.tar.xz | |
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>
| -rw-r--r-- | Documentation/devicetree/bindings/usb/usb-device.yaml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Documentation/devicetree/bindings/usb/usb-device.yaml b/Documentation/devicetree/bindings/usb/usb-device.yaml index da890ee60ce6..c67695681033 100644 --- a/Documentation/devicetree/bindings/usb/usb-device.yaml +++ b/Documentation/devicetree/bindings/usb/usb-device.yaml @@ -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, |
