devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: arm,psci: Add missing unevaluatedProperties on child node schemas
@ 2023-09-26 16:45 Rob Herring
  2023-09-27 15:11 ` Conor Dooley
  2023-09-28 15:34 ` Rob Herring
  0 siblings, 2 replies; 3+ messages in thread
From: Rob Herring @ 2023-09-26 16:45 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Conor Dooley, Lorenzo Pieralisi
  Cc: devicetree, linux-kernel

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.

Signed-off-by: Rob Herring <robh@kernel.org>
---
 Documentation/devicetree/bindings/arm/psci.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/arm/psci.yaml b/Documentation/devicetree/bindings/arm/psci.yaml
index 0c5381e081bd..cbb012e217ab 100644
--- a/Documentation/devicetree/bindings/arm/psci.yaml
+++ b/Documentation/devicetree/bindings/arm/psci.yaml
@@ -101,6 +101,7 @@ properties:
 patternProperties:
   "^power-domain-":
     $ref: /schemas/power/power-domain.yaml#
+    unevaluatedProperties: false
 
     type: object
     description: |
-- 
2.40.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] dt-bindings: arm,psci: Add missing unevaluatedProperties on child node schemas
  2023-09-26 16:45 [PATCH] dt-bindings: arm,psci: Add missing unevaluatedProperties on child node schemas Rob Herring
@ 2023-09-27 15:11 ` Conor Dooley
  2023-09-28 15:34 ` Rob Herring
  1 sibling, 0 replies; 3+ messages in thread
From: Conor Dooley @ 2023-09-27 15:11 UTC (permalink / raw)
  To: Rob Herring
  Cc: Krzysztof Kozlowski, Conor Dooley, Lorenzo Pieralisi, devicetree,
	linux-kernel

[-- Attachment #1: Type: text/plain, Size: 52 bytes --]

Acked-by: Conor Dooley <conor.dooley@microchip.com>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] dt-bindings: arm,psci: Add missing unevaluatedProperties on child node schemas
  2023-09-26 16:45 [PATCH] dt-bindings: arm,psci: Add missing unevaluatedProperties on child node schemas Rob Herring
  2023-09-27 15:11 ` Conor Dooley
@ 2023-09-28 15:34 ` Rob Herring
  1 sibling, 0 replies; 3+ messages in thread
From: Rob Herring @ 2023-09-28 15:34 UTC (permalink / raw)
  To: Rob Herring
  Cc: devicetree, Conor Dooley, Krzysztof Kozlowski, linux-kernel,
	Lorenzo Pieralisi


On Tue, 26 Sep 2023 11:45:44 -0500, Rob Herring wrote:
> 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.
> 
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---
>  Documentation/devicetree/bindings/arm/psci.yaml | 1 +
>  1 file changed, 1 insertion(+)
> 

Applied, thanks!


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-09-28 15:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-26 16:45 [PATCH] dt-bindings: arm,psci: Add missing unevaluatedProperties on child node schemas Rob Herring
2023-09-27 15:11 ` Conor Dooley
2023-09-28 15:34 ` Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).