ASoC: dt-bindings: microchip,sama7g5-pdmc: Simplify "microchip,mic-pos" constraints
authorRob Herring <robh@kernel.org>
Wed, 21 Jun 2023 23:10:44 +0000 (17:10 -0600)
committerMark Brown <broonie@kernel.org>
Thu, 22 Jun 2023 17:02:05 +0000 (18:02 +0100)
"enum" values should be integers or strings, not arrays (though json-schema
does allow arrays, we do not). In this case, all possible combinations are
allowed anyways, so there's little point in expressing as an array.

Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/Message-Id:
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/sound/microchip,sama7g5-pdmc.yaml

index 9b40268537cb2a56f33f36e6e64ba282b71e2082..9aa65c975c4e35b4f9e660f3fd41a30b197c9a87 100644 (file)
@@ -56,13 +56,9 @@ properties:
     items:
       items:
         - description: value for DS line
+          enum: [0, 1]
         - description: value for sampling edge
-      anyOf:
-        - enum:
-            - [0, 0]
-            - [0, 1]
-            - [1, 0]
-            - [1, 1]
+          enum: [0, 1]
     minItems: 1
     maxItems: 4
     uniqueItems: true