Skip to content

Commit 6644c62

Browse files
robherringdlezcano
authored andcommitted
dt-bindings: thermal: nvidia,tegra124-soctherm: Add missing unevaluatedProperties on child node schemas
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
1 parent 585e92e commit 6644c62

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Documentation/devicetree/bindings/thermal/nvidia,tegra124-soctherm.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,12 @@ properties:
6868
patternProperties:
6969
"^(light|heavy|oc1)$":
7070
type: object
71+
additionalProperties: false
72+
7173
properties:
74+
"#cooling-cells":
75+
const: 2
76+
7277
nvidia,priority:
7378
$ref: /schemas/types.yaml#/definitions/uint32
7479
minimum: 1

0 commit comments

Comments
 (0)