dt-bindings: firmware: arm,scmi: Restrict protocol child node properties
authorRob Herring <robh@kernel.org>
Tue, 24 Jan 2023 22:20:23 +0000 (16:20 -0600)
committerRob Herring <robh@kernel.org>
Fri, 3 Feb 2023 18:58:45 +0000 (12:58 -0600)
commitdf4fdd0db4756f8d08285e4a93fa40056aefefbe
tree74d04728212253e64ab9b905217c71c0cc4ba2a5
parentf3531d1acb4b7177c049211994807b74b231e870
dt-bindings: firmware: arm,scmi: Restrict protocol child node properties

The SCMI protocol child nodes are missing any constraints on unknown
properties. Specifically, either 'unevaluatedProperties' or
'additionalProperties' is needed. The current structure with a regex
match for all child nodes doesn't work for this purpose, so let's move
the common properties '$defs' entry which each specific protocol node
can reference and set 'unevaluatedProperties: false'.

Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Link: https://lore.kernel.org/r/20230124222023.316089-1-robh@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Documentation/devicetree/bindings/firmware/arm,scmi.yaml