Commit 3fda8532 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Mark Brown

ASoC: dt-bindings: Extend name-prefix.yaml into common DAI properties

Rename name-prefix.yaml into common DAI schema and document
'#sound-dai-cells' for completeness.  The '#sound-dai-cells' cannot be
really constrained, as there are users with value of 0, 1 and 2, but at
least it brings definition to one common place.
Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20221203160442.69594-1-krzysztof.kozlowski@linaro.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent b5d50519
...@@ -11,7 +11,7 @@ maintainers: ...@@ -11,7 +11,7 @@ maintainers:
- Neil Armstrong <neil.armstrong@linaro.org> - Neil Armstrong <neil.armstrong@linaro.org>
allOf: allOf:
- $ref: /schemas/sound/name-prefix.yaml# - $ref: /schemas/sound/dai-common.yaml#
description: | description: |
The Amlogic Meson Synopsys Designware Integration is composed of The Amlogic Meson Synopsys Designware Integration is composed of
......
...@@ -10,7 +10,7 @@ maintainers: ...@@ -10,7 +10,7 @@ maintainers:
- Jerome Brunet <jbrunet@baylibre.com> - Jerome Brunet <jbrunet@baylibre.com>
allOf: allOf:
- $ref: name-prefix.yaml# - $ref: dai-common.yaml#
properties: properties:
$nodename: $nodename:
......
...@@ -10,7 +10,7 @@ maintainers: ...@@ -10,7 +10,7 @@ maintainers:
- Jerome Brunet <jbrunet@baylibre.com> - Jerome Brunet <jbrunet@baylibre.com>
allOf: allOf:
- $ref: name-prefix.yaml# - $ref: dai-common.yaml#
properties: properties:
$nodename: $nodename:
......
...@@ -10,7 +10,7 @@ maintainers: ...@@ -10,7 +10,7 @@ maintainers:
- Jerome Brunet <jbrunet@baylibre.com> - Jerome Brunet <jbrunet@baylibre.com>
allOf: allOf:
- $ref: name-prefix.yaml# - $ref: dai-common.yaml#
properties: properties:
$nodename: $nodename:
......
...@@ -15,7 +15,7 @@ description: ...@@ -15,7 +15,7 @@ description:
function (primarily the power limit for the amplifier). function (primarily the power limit for the amplifier).
allOf: allOf:
- $ref: name-prefix.yaml# - $ref: dai-common.yaml#
properties: properties:
compatible: compatible:
......
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2 %YAML 1.2
--- ---
$id: http://devicetree.org/schemas/sound/name-prefix.yaml# $id: http://devicetree.org/schemas/sound/dai-common.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml#
title: Component sound name prefix title: Digital Audio Interface Common Properties
maintainers: maintainers:
- Jerome Brunet <jbrunet@baylibre.com> - Jerome Brunet <jbrunet@baylibre.com>
...@@ -18,4 +18,6 @@ properties: ...@@ -18,4 +18,6 @@ properties:
sink/source names may use this property to prepend the name of their sink/source names may use this property to prepend the name of their
sinks/sources with the provided string. sinks/sources with the provided string.
'#sound-dai-cells': true
additionalProperties: true additionalProperties: true
...@@ -10,7 +10,7 @@ maintainers: ...@@ -10,7 +10,7 @@ maintainers:
- Arnaud Pouliquen <arnaud.pouliquen@foss.st.com> - Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
allOf: allOf:
- $ref: name-prefix.yaml# - $ref: dai-common.yaml#
properties: properties:
compatible: compatible:
......
...@@ -10,7 +10,7 @@ maintainers: ...@@ -10,7 +10,7 @@ maintainers:
- Mark Brown <broonie@kernel.org> - Mark Brown <broonie@kernel.org>
allOf: allOf:
- $ref: name-prefix.yaml# - $ref: dai-common.yaml#
properties: properties:
compatible: compatible:
......
...@@ -23,7 +23,7 @@ maintainers: ...@@ -23,7 +23,7 @@ maintainers:
- Sameer Pujar <spujar@nvidia.com> - Sameer Pujar <spujar@nvidia.com>
allOf: allOf:
- $ref: name-prefix.yaml# - $ref: dai-common.yaml#
properties: properties:
$nodename: $nodename:
......
...@@ -18,7 +18,7 @@ maintainers: ...@@ -18,7 +18,7 @@ maintainers:
- Sameer Pujar <spujar@nvidia.com> - Sameer Pujar <spujar@nvidia.com>
allOf: allOf:
- $ref: name-prefix.yaml# - $ref: dai-common.yaml#
properties: properties:
$nodename: $nodename:
......
...@@ -19,7 +19,7 @@ maintainers: ...@@ -19,7 +19,7 @@ maintainers:
- Sameer Pujar <spujar@nvidia.com> - Sameer Pujar <spujar@nvidia.com>
allOf: allOf:
- $ref: name-prefix.yaml# - $ref: dai-common.yaml#
properties: properties:
$nodename: $nodename:
......
...@@ -18,7 +18,7 @@ maintainers: ...@@ -18,7 +18,7 @@ maintainers:
- Sameer Pujar <spujar@nvidia.com> - Sameer Pujar <spujar@nvidia.com>
allOf: allOf:
- $ref: name-prefix.yaml# - $ref: dai-common.yaml#
properties: properties:
$nodename: $nodename:
......
...@@ -17,7 +17,7 @@ maintainers: ...@@ -17,7 +17,7 @@ maintainers:
- Sameer Pujar <spujar@nvidia.com> - Sameer Pujar <spujar@nvidia.com>
allOf: allOf:
- $ref: name-prefix.yaml# - $ref: dai-common.yaml#
properties: properties:
$nodename: $nodename:
......
...@@ -17,7 +17,7 @@ maintainers: ...@@ -17,7 +17,7 @@ maintainers:
- Sameer Pujar <spujar@nvidia.com> - Sameer Pujar <spujar@nvidia.com>
allOf: allOf:
- $ref: name-prefix.yaml# - $ref: dai-common.yaml#
properties: properties:
$nodename: $nodename:
......
...@@ -17,7 +17,7 @@ maintainers: ...@@ -17,7 +17,7 @@ maintainers:
- Sameer Pujar <spujar@nvidia.com> - Sameer Pujar <spujar@nvidia.com>
allOf: allOf:
- $ref: name-prefix.yaml# - $ref: dai-common.yaml#
properties: properties:
$nodename: $nodename:
......
...@@ -20,7 +20,7 @@ maintainers: ...@@ -20,7 +20,7 @@ maintainers:
- Sameer Pujar <spujar@nvidia.com> - Sameer Pujar <spujar@nvidia.com>
allOf: allOf:
- $ref: name-prefix.yaml# - $ref: dai-common.yaml#
properties: properties:
$nodename: $nodename:
......
...@@ -17,7 +17,7 @@ maintainers: ...@@ -17,7 +17,7 @@ maintainers:
- Sameer Pujar <spujar@nvidia.com> - Sameer Pujar <spujar@nvidia.com>
allOf: allOf:
- $ref: name-prefix.yaml# - $ref: dai-common.yaml#
properties: properties:
compatible: compatible:
......
...@@ -17,7 +17,7 @@ maintainers: ...@@ -17,7 +17,7 @@ maintainers:
- Sameer Pujar <spujar@nvidia.com> - Sameer Pujar <spujar@nvidia.com>
allOf: allOf:
- $ref: name-prefix.yaml# - $ref: dai-common.yaml#
properties: properties:
$nodename: $nodename:
......
...@@ -10,7 +10,7 @@ maintainers: ...@@ -10,7 +10,7 @@ maintainers:
- Stephan Gerhold <stephan@gerhold.net> - Stephan Gerhold <stephan@gerhold.net>
allOf: allOf:
- $ref: name-prefix.yaml# - $ref: dai-common.yaml#
properties: properties:
compatible: compatible:
......
...@@ -42,7 +42,7 @@ Optional properties: ...@@ -42,7 +42,7 @@ Optional properties:
- realtek,ldo1-en-gpios : The GPIO that controls the CODEC's LDO1_EN pin. - realtek,ldo1-en-gpios : The GPIO that controls the CODEC's LDO1_EN pin.
- realtek,reset-gpios : The GPIO that controls the CODEC's RESET pin. - realtek,reset-gpios : The GPIO that controls the CODEC's RESET pin.
- sound-name-prefix: Please refer to name-prefix.yaml - sound-name-prefix: Please refer to dai-common.yaml
- ports: A Codec may have a single or multiple I2S interfaces. These - ports: A Codec may have a single or multiple I2S interfaces. These
interfaces on Codec side can be described under 'ports' or 'port'. interfaces on Codec side can be described under 'ports' or 'port'.
......
...@@ -10,7 +10,7 @@ maintainers: ...@@ -10,7 +10,7 @@ maintainers:
- Jerome Brunet <jbrunet@baylibre.com> - Jerome Brunet <jbrunet@baylibre.com>
allOf: allOf:
- $ref: name-prefix.yaml# - $ref: dai-common.yaml#
properties: properties:
compatible: compatible:
......
...@@ -14,7 +14,7 @@ description: | ...@@ -14,7 +14,7 @@ description: |
their input line is connected to the output line. their input line is connected to the output line.
allOf: allOf:
- $ref: name-prefix.yaml# - $ref: dai-common.yaml#
properties: properties:
compatible: compatible:
......
...@@ -14,7 +14,7 @@ maintainers: ...@@ -14,7 +14,7 @@ maintainers:
- Matt Flax <flatmax@flatmax.com> - Matt Flax <flatmax@flatmax.com>
allOf: allOf:
- $ref: name-prefix.yaml# - $ref: dai-common.yaml#
properties: properties:
compatible: compatible:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment