[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240605112301.8171-1-animeshagarwal28@gmail.com>
Date: Wed, 5 Jun 2024 16:52:55 +0530
From: Animesh Agarwal <animeshagarwal28@...il.com>
To:
Cc: animeshagarwal28@...il.com,
Daniel Baluta <daniel.baluta@....com>,
Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
linux-sound@...r.kernel.org,
devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] ASoC: dt-bindings: linux,spdif-dir: Convert to dtschema
Convert the dummy SPDIF receiver bindings to DT schema. Make bindings
complete by adding property "#sound-dai-cells"
Signed-off-by: Animesh Agarwal <animeshagarwal28@...il.com>
Cc: Daniel Baluta <daniel.baluta@....com>
---
.../bindings/sound/linux,spdif-dir.yaml | 34 +++++++++++++++++++
.../bindings/sound/spdif-receiver.txt | 10 ------
2 files changed, 34 insertions(+), 10 deletions(-)
create mode 100644 Documentation/devicetree/bindings/sound/linux,spdif-dir.yaml
delete mode 100644 Documentation/devicetree/bindings/sound/spdif-receiver.txt
diff --git a/Documentation/devicetree/bindings/sound/linux,spdif-dir.yaml b/Documentation/devicetree/bindings/sound/linux,spdif-dir.yaml
new file mode 100644
index 000000000000..61767873200f
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/linux,spdif-dir.yaml
@@ -0,0 +1,34 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/sound/linux,spdif-dir.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Dummy SPDIF receiver
+
+maintainers:
+ - Liam Girdwood <lgirdwood@...il.com>
+ - Mark Brown <broonie@...nel.org>
+
+allOf:
+ - $ref: dai-common.yaml#
+
+properties:
+ compatible:
+ const: linux,spdif-dir
+
+ "#sound-dai-cells":
+ const: 0
+
+required:
+ - compatible
+ - "#sound-dai-cells"
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ spdif-in {
+ compatible = "linux,spdif-dir";
+ #sound-dai-cells = <0>;
+ };
diff --git a/Documentation/devicetree/bindings/sound/spdif-receiver.txt b/Documentation/devicetree/bindings/sound/spdif-receiver.txt
deleted file mode 100644
index 80f807bf8a1d..000000000000
--- a/Documentation/devicetree/bindings/sound/spdif-receiver.txt
+++ /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";
- };
--
2.45.1
Powered by blists - more mailing lists