diff mbox series

[v3,01/16] ASoC: test-component: add Test Component YAML bindings

Message ID 87sfyduswu.wl-kuninori.morimoto.gx@renesas.com (mailing list archive)
State New, archived
Headers show
Series ASoC: Add Rich Graph Card support | expand

Commit Message

Kuninori Morimoto Sept. 10, 2021, 1:21 a.m. UTC
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

This patch adds test-component sound device YAML bindings.
It can be used for Sound Test/Debug.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 .../bindings/sound/test-component.yaml        | 33 +++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/sound/test-component.yaml

Comments

Mark Brown Oct. 1, 2021, 8:11 p.m. UTC | #1
On Fri, Sep 10, 2021 at 10:21:37AM +0900, Kuninori Morimoto wrote:

> +    enum:
> +      - test-cpu
> +      - test-cpu-vv
> +      - test-cpu-vn
> +      - test-cpu-nv
> +      - test-codec
> +      - test-codec-vv
> +      - test-codec-vn
> +      - test-codec-nv

I do think we need some words in the binding document about what these
are.
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/sound/test-component.yaml b/Documentation/devicetree/bindings/sound/test-component.yaml
new file mode 100644
index 000000000000..62a6ecad0e88
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/test-component.yaml
@@ -0,0 +1,33 @@ 
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/sound/test-component.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Test Component Device Tree Bindings
+
+maintainers:
+  - Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
+
+properties:
+  compatible:
+    enum:
+      - test-cpu
+      - test-cpu-vv
+      - test-cpu-vn
+      - test-cpu-nv
+      - test-codec
+      - test-codec-vv
+      - test-codec-vn
+      - test-codec-nv
+
+required:
+  - compatible
+
+additionalProperties: true
+
+examples:
+  - |
+    test_cpu {
+        compatible = "test-cpu";
+    };