dt-bindings: thermal: nvidia,tegra124-soctherm: Add missing unevaluatedProperties...
authorRob Herring <robh@kernel.org>
Tue, 26 Sep 2023 16:44:52 +0000 (11:44 -0500)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Sun, 15 Oct 2023 21:40:09 +0000 (23:40 +0200)
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.

Add unevaluatedProperties as needed, and then add any missing properties
flagged by the addition.

Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20230926164500.101593-1-robh@kernel.org
Documentation/devicetree/bindings/thermal/nvidia,tegra124-soctherm.yaml

index 04a2ba1aa94671aef96d2479e6114c7f9ee1b04c..b0237d2360216ef748d37d1e22752be9b60b2794 100644 (file)
@@ -68,7 +68,12 @@ properties:
     patternProperties:
       "^(light|heavy|oc1)$":
         type: object
+        additionalProperties: false
+
         properties:
+          "#cooling-cells":
+            const: 2
+
           nvidia,priority:
             $ref: /schemas/types.yaml#/definitions/uint32
             minimum: 1