ASoC: dt-bindings: Add missing (unevaluated|additional)Properties on child node schemas
authorRob Herring <robh@kernel.org>
Mon, 25 Sep 2023 22:09:28 +0000 (17:09 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 26 Sep 2023 07:49:58 +0000 (09:49 +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 unevaluatedProperties or additionalProperties as appropriate.

Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Herve Codina <herve.codina@bootlin.com>
Link: https://lore.kernel.org/r/20230925220947.2031536-1-robh@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/sound/dialog,da7219.yaml
Documentation/devicetree/bindings/sound/fsl,qmc-audio.yaml
Documentation/devicetree/bindings/sound/ti,pcm3168a.yaml

index eb7d219e2c86c2d6d2a05796661a90f741940ae9..19137abdba3e5dc82b6787bc11fb436270a9e3a7 100644 (file)
@@ -89,6 +89,7 @@ properties:
 
   da7219_aad:
     type: object
+    additionalProperties: false
     description:
       Configuration of advanced accessory detection.
     properties:
index ff5cd9241941bcf2e1e63e53aff244c3edf22756..b522ed7dcc51bf33b832c092811fa2e8cdb9615e 100644 (file)
@@ -33,6 +33,7 @@ patternProperties:
     description:
       A DAI managed by this controller
     type: object
+    additionalProperties: false
 
     properties:
       reg:
index b6a4360ab845dd2e2ed37c5e4f2d95a284e00a36..0b4f003989a461c1c14371ae21852349879b4e21 100644 (file)
@@ -60,6 +60,7 @@ properties:
 
   ports:
     $ref: audio-graph-port.yaml#/definitions/port-base
+    unevaluatedProperties: false
     properties:
       port@0:
         $ref: audio-graph-port.yaml#