All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: nvmem: u-boot,env: Add missing additionalProperties on child node schemas
@ 2023-09-26 16:45 Rob Herring
  2023-09-27 15:11 ` Conor Dooley
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Rob Herring @ 2023-09-26 16:45 UTC (permalink / raw)
  To: Rafał Miłecki, Srinivas Kandagatla, Krzysztof Kozlowski,
	Conor Dooley
  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/nvmem/u-boot,env.yaml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/nvmem/u-boot,env.yaml b/Documentation/devicetree/bindings/nvmem/u-boot,env.yaml
index 36d97fb87865..9c36afc7084b 100644
--- a/Documentation/devicetree/bindings/nvmem/u-boot,env.yaml
+++ b/Documentation/devicetree/bindings/nvmem/u-boot,env.yaml
@@ -51,6 +51,8 @@ properties:
   ethaddr:
     type: object
     description: Ethernet interfaces base MAC address.
+    additionalProperties: false
+
     properties:
       "#nvmem-cell-cells":
         description: The first argument is a MAC address offset.
-- 
2.40.1


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

end of thread, other threads:[~2023-10-07 10:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-26 16:45 [PATCH] dt-bindings: nvmem: u-boot,env: Add missing additionalProperties on child node schemas Rob Herring
2023-09-27 15:11 ` Conor Dooley
2023-09-28 10:43 ` Rafał Miłecki
2023-10-07 10:23 ` Srinivas Kandagatla

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.