[1/9] ASoC: dt-bindings: create component common schema
Commit Message
All DAIs are component but not all components are DAI.
Move the component properties (sound-name-prefix ATM) to a separate schema
file so it can be used by non-DAI components, such as auxiliary devices.
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
---
.../bindings/sound/component-common.yaml | 21 +++++++++++++++++++
.../devicetree/bindings/sound/dai-common.yaml | 11 +++-------
2 files changed, 24 insertions(+), 8 deletions(-)
create mode 100644 Documentation/devicetree/bindings/sound/component-common.yaml
Comments
On 02/02/2023 19:36, Jerome Brunet wrote:
> All DAIs are component but not all components are DAI.
> Move the component properties (sound-name-prefix ATM) to a separate schema
> file so it can be used by non-DAI components, such as auxiliary devices.
>
> Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
> -properties:
> - sound-name-prefix:
> - $ref: /schemas/types.yaml#/definitions/string
> - description: |
> - Card implementing the routing property define the connection between
> - audio components as list of string pair. Component using the same
> - sink/source names may use this property to prepend the name of their
> - sinks/sources with the provided string.
> +allOf:
> + - $ref: component-common.yaml#
>
> +properties:
> '#sound-dai-cells': true
>
Probably we should require sound-dai-cells at some point, but anyway:
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
new file mode 100644
@@ -0,0 +1,21 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/sound/component-common.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Audio Component Common Properties
+
+maintainers:
+ - Jerome Brunet <jbrunet@baylibre.com>
+
+properties:
+ sound-name-prefix:
+ $ref: /schemas/types.yaml#/definitions/string
+ description: |
+ Card implementing the routing property define the connection between
+ audio components as list of string pair. Component using the same
+ sink/source names may use this property to prepend the name of their
+ sinks/sources with the provided string.
+
+additionalProperties: true
@@ -9,15 +9,10 @@ title: Digital Audio Interface Common Properties
maintainers:
- Jerome Brunet <jbrunet@baylibre.com>
-properties:
- sound-name-prefix:
- $ref: /schemas/types.yaml#/definitions/string
- description: |
- Card implementing the routing property define the connection between
- audio components as list of string pair. Component using the same
- sink/source names may use this property to prepend the name of their
- sinks/sources with the provided string.
+allOf:
+ - $ref: component-common.yaml#
+properties:
'#sound-dai-cells': true
additionalProperties: true