aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/sound/sound-dai.yaml
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2022-01-26 17:14:27 -0600
committerRob Herring <robh@kernel.org>2022-02-04 09:43:43 -0600
commit97709d365bbd68056ace43ef47ad8aaf40f44855 (patch)
treeca2879d354880a4567057051e6eb0936054f7ecf /Documentation/devicetree/bindings/sound/sound-dai.yaml
parentdt-bindings: arm,cci-400: Add interrupt controller to example (diff)
downloadlinux-dev-97709d365bbd68056ace43ef47ad8aaf40f44855.tar.xz
linux-dev-97709d365bbd68056ace43ef47ad8aaf40f44855.zip
ASoC: dt-bindings: Centralize the 'sound-dai' definition
'sound-dai' is a common property, but has duplicate type definitions. Create a new common definition to define the type and then update all the other occurrences to just define how many entries there are just like other phandle+arg properties. The constraints on the number of entries is based on the examples and could be wrong. Cc: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> Signed-off-by: Rob Herring <robh@kernel.org> Acked-by: Jerome Brunet <jbrunet@baylibre.com> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> Acked-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/20220126231427.1638089-1-robh@kernel.org
Diffstat (limited to 'Documentation/devicetree/bindings/sound/sound-dai.yaml')
-rw-r--r--Documentation/devicetree/bindings/sound/sound-dai.yaml20
1 files changed, 20 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/sound/sound-dai.yaml b/Documentation/devicetree/bindings/sound/sound-dai.yaml
new file mode 100644
index 000000000000..61c6f7abc4e7
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/sound-dai.yaml
@@ -0,0 +1,20 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/sound/sound-dai.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Digital Audio Interface consumer Device Tree Bindings
+
+maintainers:
+ - Rob Herring <robh@kernel.org>
+
+select: true
+
+properties:
+ sound-dai:
+ $ref: /schemas/types.yaml#/definitions/phandle-array
+ description: A phandle plus args to digital audio interface provider(s)
+
+additionalProperties: true
+...