]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: dt-bindings: linux,spdif: Convert spdif-reciever.txt to dtschema
authorAnimesh Agarwal <animeshagarwal28@gmail.com>
Thu, 6 Jun 2024 04:12:00 +0000 (09:42 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 11 Jun 2024 16:14:01 +0000 (17:14 +0100)
Convert the dummy SPDIF receiver bindings to DT schema.

Signed-off-by: Animesh Agarwal <animeshagarwal28@gmail.com>
Cc: Daniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Acked-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20240606041212.78428-1-animeshagarwal28@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/sound/linux,spdif.yaml [moved from Documentation/devicetree/bindings/sound/linux,spdif-dit.yaml with 75% similarity]
Documentation/devicetree/bindings/sound/spdif-receiver.txt [deleted file]

similarity index 75%
rename from Documentation/devicetree/bindings/sound/linux,spdif-dit.yaml
rename to Documentation/devicetree/bindings/sound/linux,spdif.yaml
index fe5f0756af2f461029b6bbb84cf402c1105d4abb..0f4893e11ec44b173f801431b0682d1767b79dc9 100644 (file)
@@ -1,10 +1,10 @@
 # SPDX-License-Identifier: GPL-2.0
 %YAML 1.2
 ---
-$id: http://devicetree.org/schemas/sound/linux,spdif-dit.yaml#
+$id: http://devicetree.org/schemas/sound/linux,spdif.yaml#
 $schema: http://devicetree.org/meta-schemas/core.yaml#
 
-title: Dummy SPDIF Transmitter
+title: Dummy SPDIF Transmitter/Receiver
 
 maintainers:
   - Mark Brown <broonie@kernel.org>
@@ -14,7 +14,9 @@ allOf:
 
 properties:
   compatible:
-    const: linux,spdif-dit
+    enum:
+      - linux,spdif-dit
+      - linux,spdif-dir
 
   "#sound-dai-cells":
     const: 0
diff --git a/Documentation/devicetree/bindings/sound/spdif-receiver.txt b/Documentation/devicetree/bindings/sound/spdif-receiver.txt
deleted file mode 100644 (file)
index 80f807b..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-Device-Tree bindings for dummy spdif receiver
-
-Required properties:
-       - compatible: should be "linux,spdif-dir".
-
-Example node:
-
-       codec: spdif-receiver {
-               compatible = "linux,spdif-dir";
-       };