dt-bindings: timer: Add missing (unevaluated|additional)Properties on child nodes
Subsystems (2)
Rob Herring
maintainerPATCH 1/1 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 <[email protected]>
--- .../devicetree/bindings/timer/arm,arch_timer_mmio.yaml | 1 + Documentation/devicetree/bindings/timer/ingenic,tcu.yaml | 4 ++++ 2 files changed, 5 insertions(+)
Documentation/devicetree/bindings/timer/arm,arch_timer_mmio.yaml +1 -0
@@ -62,6 +62,7 @@ properties: patternProperties: '^frame@[0-9a-z]*$': type: object + additionalProperties: false description: A timer node has up to 8 frame sub-nodes, each with the following properties. properties: frame-number:
Documentation/devicetree/bindings/timer/ingenic,tcu.yaml +4 -0
@@ -114,6 +114,8 @@ patternProperties: "^watchdog@[a-f0-9]+$": type: object $ref: /schemas/watchdog/watchdog.yaml# + unevaluatedProperties: false + properties: compatible: oneOf:
@@ -146,6 +148,8 @@ patternProperties: "^pwm@[a-f0-9]+$": type: object $ref: /schemas/pwm/pwm.yaml# + unevaluatedProperties: false + properties: compatible: oneOf:
Signature · 1 line
2.34.1
Quoted 6 lines · Rob Herring
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 <[email protected]>---
Reviewed-by Krzysztof Kozlowski <[email protected]>
Best regards,
Krzysztof
Quoted 10 lines · Rob Herring
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 <[email protected]>--- .../devicetree/bindings/timer/arm,arch_timer_mmio.yaml | 1 + Documentation/devicetree/bindings/timer/ingenic,tcu.yaml | 4 ++++ 2 files changed, 5 insertions(+)
Applied, thanks!