]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ASoC: dt-bindings: fsl-esai: Add power-domains for fsl,imx8qm-esai
authorFrank Li <Frank.Li@nxp.com>
Fri, 27 Sep 2024 20:56:18 +0000 (16:56 -0400)
committerMark Brown <broonie@kernel.org>
Sun, 29 Sep 2024 23:10:57 +0000 (01:10 +0200)
i.MX8QM's esai require power-domains property. Keep the same restriction
for other compatible string.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://patch.msgid.link/20240927205618.4093591-1-Frank.Li@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/sound/fsl,esai.yaml

index f99ed20fa684a2c6714b81dda183af10769a4735..d1b4e23f1c95f579646298ab6902d79fe7927403 100644 (file)
@@ -65,6 +65,9 @@ properties:
       - const: rx
       - const: tx
 
+  power-domains:
+    maxItems: 1
+
   fsl,fifo-depth:
     $ref: /schemas/types.yaml#/definitions/uint32
     default: 64
@@ -101,6 +104,17 @@ unevaluatedProperties: false
 
 allOf:
   - $ref: dai-common.yaml#
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: fsl,imx8qm-esai
+    then:
+      required:
+        - power-domains
+    else:
+      properties:
+        power-domains: false
 
 examples:
   - |