]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
dt-bindings: usb: ti,tps6598x: Disallow undefined properties
authorRob Herring <robh@kernel.org>
Mon, 16 Oct 2023 15:55:27 +0000 (10:55 -0500)
committerRob Herring <robh@kernel.org>
Tue, 17 Oct 2023 20:14:36 +0000 (15:14 -0500)
Device specific bindings should not allow undefined properties. This is
accomplished in json-schema with 'additionalProperties: false'. With this,
the 'connector' child node needs to be defined to prevent warnings.

Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20231016155527.2973385-1-robh@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/usb/ti,tps6598x.yaml

index 5497a60cddbc6949699af1bc3d8aeeccc70393c4..6ab674dea4c69a705ce25cd21626fd502d304fa8 100644 (file)
@@ -32,11 +32,14 @@ properties:
     items:
       - const: irq
 
+  connector:
+    $ref: /schemas/connector/usb-connector.yaml#
+
 required:
   - compatible
   - reg
 
-additionalProperties: true
+additionalProperties: false
 
 examples:
   - |