Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: dt-bindings: create component common schema

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>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230202183653.486216-2-jbrunet@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Jerome Brunet and committed by
Mark Brown
e398bbb9 c5a61db9

+24 -8
+21
Documentation/devicetree/bindings/sound/component-common.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/sound/component-common.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Audio Component Common Properties 8 + 9 + maintainers: 10 + - Jerome Brunet <jbrunet@baylibre.com> 11 + 12 + properties: 13 + sound-name-prefix: 14 + $ref: /schemas/types.yaml#/definitions/string 15 + description: | 16 + Card implementing the routing property define the connection between 17 + audio components as list of string pair. Component using the same 18 + sink/source names may use this property to prepend the name of their 19 + sinks/sources with the provided string. 20 + 21 + additionalProperties: true
+3 -8
Documentation/devicetree/bindings/sound/dai-common.yaml
··· 9 9 maintainers: 10 10 - Jerome Brunet <jbrunet@baylibre.com> 11 11 12 - properties: 13 - sound-name-prefix: 14 - $ref: /schemas/types.yaml#/definitions/string 15 - description: | 16 - Card implementing the routing property define the connection between 17 - audio components as list of string pair. Component using the same 18 - sink/source names may use this property to prepend the name of their 19 - sinks/sources with the provided string. 12 + allOf: 13 + - $ref: component-common.yaml# 20 14 15 + properties: 21 16 '#sound-dai-cells': true 22 17 23 18 additionalProperties: true