dt-bindings: pinctrl: nuvoton,npcm845: Add missing additionalProperties on gpio child...
authorRob Herring <robh@kernel.org>
Fri, 20 Oct 2023 17:00:16 +0000 (12:00 -0500)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 23 Oct 2023 08:24:01 +0000 (10:24 +0200)
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. Add the missing addtionalProperties to the 'gpio'
child nodes.

Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20231020170017.3610978-1-robh@kernel.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/devicetree/bindings/pinctrl/nuvoton,npcm845-pinctrl.yaml

index e4b9f3da2cf0ceb9068ab86d68788f0d6b5abab0..3e8472898800c504f93fae3efa2e2b45d7a4282c 100644 (file)
@@ -35,6 +35,7 @@ properties:
 patternProperties:
   '^gpio@':
     type: object
+    additionalProperties: false
 
     description:
       Eight GPIO banks that each contain 32 GPIOs.