From a694956df4ca75d74bcd422908ddcd8e2ea3042e Mon Sep 17 00:00:00 2001 From: Animesh Agarwal Date: Thu, 6 Jun 2024 09:42:00 +0530 Subject: ASoC: dt-bindings: linux,spdif: Convert spdif-reciever.txt to dtschema Convert the dummy SPDIF receiver bindings to DT schema. Signed-off-by: Animesh Agarwal Cc: Daniel Baluta Reviewed-by: Rob Herring (Arm) Acked-by: Neil Armstrong Link: https://lore.kernel.org/r/20240606041212.78428-1-animeshagarwal28@gmail.com Signed-off-by: Mark Brown --- .../devicetree/bindings/sound/linux,spdif-dit.yaml | 37 -------------------- .../devicetree/bindings/sound/linux,spdif.yaml | 39 ++++++++++++++++++++++ .../devicetree/bindings/sound/spdif-receiver.txt | 10 ------ 3 files changed, 39 insertions(+), 47 deletions(-) delete mode 100644 Documentation/devicetree/bindings/sound/linux,spdif-dit.yaml create mode 100644 Documentation/devicetree/bindings/sound/linux,spdif.yaml delete mode 100644 Documentation/devicetree/bindings/sound/spdif-receiver.txt diff --git a/Documentation/devicetree/bindings/sound/linux,spdif-dit.yaml b/Documentation/devicetree/bindings/sound/linux,spdif-dit.yaml deleted file mode 100644 index fe5f0756af2f..000000000000 --- a/Documentation/devicetree/bindings/sound/linux,spdif-dit.yaml +++ /dev/null @@ -1,37 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0 -%YAML 1.2 ---- -$id: http://devicetree.org/schemas/sound/linux,spdif-dit.yaml# -$schema: http://devicetree.org/meta-schemas/core.yaml# - -title: Dummy SPDIF Transmitter - -maintainers: - - Mark Brown - -allOf: - - $ref: dai-common.yaml# - -properties: - compatible: - const: linux,spdif-dit - - "#sound-dai-cells": - const: 0 - - sound-name-prefix: true - -required: - - "#sound-dai-cells" - - compatible - -additionalProperties: false - -examples: - - | - spdif-out { - #sound-dai-cells = <0>; - compatible = "linux,spdif-dit"; - }; - -... diff --git a/Documentation/devicetree/bindings/sound/linux,spdif.yaml b/Documentation/devicetree/bindings/sound/linux,spdif.yaml new file mode 100644 index 000000000000..0f4893e11ec4 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/linux,spdif.yaml @@ -0,0 +1,39 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/linux,spdif.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Dummy SPDIF Transmitter/Receiver + +maintainers: + - Mark Brown + +allOf: + - $ref: dai-common.yaml# + +properties: + compatible: + enum: + - linux,spdif-dit + - linux,spdif-dir + + "#sound-dai-cells": + const: 0 + + sound-name-prefix: true + +required: + - "#sound-dai-cells" + - compatible + +additionalProperties: false + +examples: + - | + spdif-out { + #sound-dai-cells = <0>; + compatible = "linux,spdif-dit"; + }; + +... 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"; - }; -- cgit