]> www.infradead.org Git - users/willy/xarray.git/commitdiff
ASoC: dt-bindings: audio-graph-port: enable both flag/phandle for bitclock/frame...
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 16 Dec 2021 00:00:18 +0000 (09:00 +0900)
committerMark Brown <broonie@kernel.org>
Fri, 17 Dec 2021 11:06:20 +0000 (11:06 +0000)
snd_soc_daifmt_parse_clock_provider_raw() is handling both
bitclock/frame-master, and is supporting both flag/phandle.
Current DT is assuming it is flag style.
This patch allows both case.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20211216000018.2641925-1-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/sound/audio-graph-port.yaml

index 43e7f86e3b23567eacb684ca6d7f3cda8acd5878..476dcb49ece63652be442fcb4e3f8fa1547e1e6b 100644 (file)
@@ -42,10 +42,15 @@ patternProperties:
         $ref: /schemas/types.yaml#/definitions/flag
       frame-master:
         description: Indicates dai-link frame master.
-        $ref: /schemas/types.yaml#/definitions/phandle
+        oneOf:
+          - $ref: /schemas/types.yaml#/definitions/flag
+          - $ref: /schemas/types.yaml#/definitions/phandle
       bitclock-master:
         description: Indicates dai-link bit clock master
-        $ref: /schemas/types.yaml#/definitions/phandle
+        oneOf:
+          - $ref: /schemas/types.yaml#/definitions/flag
+          - $ref: /schemas/types.yaml#/definitions/phandle
+
       dai-format:
         description: audio format.
         items: