ASoC: dt-bindings: tas5805m: Disallow undefined properties
authorRob Herring <robh@kernel.org>
Mon, 16 Oct 2023 15:55:47 +0000 (10:55 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 17 Oct 2023 11:59:16 +0000 (12:59 +0100)
Device specific bindings should not allow undefined properties. This is
accomplished in json-schema with 'additionalProperties: false'.

Examples should be last in the schema, so move additionalProperties up
while we're here.

Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20231016155547.2973853-1-robh@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/sound/tas5805m.yaml

index 63edf52f061c1c313e352935f8c54f7ae65a6b31..12c41974274e7f52752956fb34c1278d2a392722 100644 (file)
@@ -37,6 +37,8 @@ properties:
       generated from TI's PPC3 tool.
     $ref: /schemas/types.yaml#/definitions/string
 
+additionalProperties: false
+
 examples:
   - |
     i2c {
@@ -52,5 +54,4 @@ examples:
                 ti,dsp-config-name = "mono_pbtl_48khz";
         };
     };
-
-additionalProperties: true
+...