media: dt-bindings: Add missing unevaluatedProperties on child node schemas
authorRob Herring <robh@kernel.org>
Mon, 25 Sep 2023 21:27:58 +0000 (16:27 -0500)
committerRob Herring <robh@kernel.org>
Fri, 6 Oct 2023 18:54:13 +0000 (13:54 -0500)
Just as unevaluatedProperties or additionalProperties are required at
the top level of schemas, they should (and will) also be required for
child node schemas. That ensures only documented properties are
present for any node.

Acked-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20230925212803.1976803-1-robh@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/media/i2c/sony,imx415.yaml
Documentation/devicetree/bindings/media/i2c/toshiba,tc358746.yaml
Documentation/devicetree/bindings/media/samsung,fimc.yaml

index ffccf5f3c9e34a7fca06b49d96ee4a9b13071d75..642f9b15d3597738e33fd7e5a51636e69d5fe8ae 100644 (file)
@@ -54,6 +54,7 @@ properties:
 
   port:
     $ref: /schemas/graph.yaml#/$defs/port-base
+    unevaluatedProperties: false
 
     properties:
       endpoint:
index c5cab549ee8eafb1c03203f70c2c3fb20f24e043..1c476b635b690865cff0882578d72b1db2dc7c50 100644 (file)
@@ -69,6 +69,7 @@ properties:
     properties:
       port@0:
         $ref: /schemas/graph.yaml#/$defs/port-base
+        unevaluatedProperties: false
         description: Input port
 
         properties:
@@ -89,6 +90,7 @@ properties:
 
       port@1:
         $ref: /schemas/graph.yaml#/$defs/port-base
+        unevaluatedProperties: false
         description: Output port
 
         properties:
index 79ff6d83a9fd684c41f5dcd1e758876942fd66d5..b3486c38a05b9ef7cbbcd485fed90f9fd0741670 100644 (file)
@@ -57,6 +57,7 @@ properties:
     patternProperties:
       "^port@[01]$":
         $ref: /schemas/graph.yaml#/$defs/port-base
+        unevaluatedProperties: false
         description:
           Camera A and camera B inputs.