dt-bindings: timer: Add missing (unevaluated|additional)Properties on child nodes

In order to ensure only documented properties are present, node schemas
must have unevaluatedProperties or additionalProperties set to false
(typically).

Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220823145649.3118479-16-robh@kernel.org
This commit is contained in:
Rob Herring
2022-08-23 09:56:47 -05:00
parent 7b3c2046f6
commit d2153e4cdf
2 changed files with 5 additions and 0 deletions

View File

@ -62,6 +62,7 @@ properties:
patternProperties: patternProperties:
'^frame@[0-9a-z]*$': '^frame@[0-9a-z]*$':
type: object type: object
additionalProperties: false
description: A timer node has up to 8 frame sub-nodes, each with the following properties. description: A timer node has up to 8 frame sub-nodes, each with the following properties.
properties: properties:
frame-number: frame-number:

View File

@ -114,6 +114,8 @@ patternProperties:
"^watchdog@[a-f0-9]+$": "^watchdog@[a-f0-9]+$":
type: object type: object
$ref: /schemas/watchdog/watchdog.yaml# $ref: /schemas/watchdog/watchdog.yaml#
unevaluatedProperties: false
properties: properties:
compatible: compatible:
oneOf: oneOf:
@ -146,6 +148,8 @@ patternProperties:
"^pwm@[a-f0-9]+$": "^pwm@[a-f0-9]+$":
type: object type: object
$ref: /schemas/pwm/pwm.yaml# $ref: /schemas/pwm/pwm.yaml#
unevaluatedProperties: false
properties: properties:
compatible: compatible:
oneOf: oneOf: