[PATCH 1/2] dt-bindings: usb: snps,dwc3: Correctly restrict number of resets
Krzysztof Kozlowski <[email protected]>
| Newsgroups | org.kernel.vger.linux-usb,org.infradead.lists.linux-amlogic,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
Add missing upper bound of number of resets for DWC3 node, because "minItems" alone does not imply one and any number of resets would be allowed. Ideally this would be restricted to "maxItems: 1" (as in a few other bindings referencing snps,dwc3.yaml) but arch/arm64/boot/dts/hisilicon/hi3660.dtsi defines node with four resets and a generic compatible, thus make this one an upper limit. Signed-off-by: Krzysztof Kozlowski <[email protected]> --- Documentation/devicetree/bindings/usb/snps,dwc3.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml index 4380bb6fa2f0..6eb6a823bd56 100644 --- a/Documentation/devicetree/bindings/usb/snps,dwc3.yaml +++ b/Documentation/devicetree/bindings/usb/snps,dwc3.yaml @@ -74,6 +74,7 @@ properties: resets: minItems: 1 + maxItems: 4 unevaluatedProperties: false -- 2.53.0