mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
ASoC: dt-bindings: simple-card: correct DAI subnodes pattern
The simple-audio-card,dai-link node does not allow address/size-cells thus children (cpu, codec) should come without unit addresses. For cases with multiple nodes of same type, require a dash before index (e.g. cpu-x) and add trailing $ to the pattern to disallow other characters. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20230109083301.76282-1-krzysztof.kozlowski@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
05d450b06d
commit
cbf74baf02
1 changed files with 6 additions and 6 deletions
|
@ -244,9 +244,9 @@ patternProperties:
|
|||
maxItems: 1
|
||||
|
||||
patternProperties:
|
||||
"^cpu(@[0-9a-f]+)?":
|
||||
"^cpu(-[0-9]+)?$":
|
||||
$ref: "#/definitions/dai"
|
||||
"^codec(@[0-9a-f]+)?":
|
||||
"^codec(-[0-9]+)?$":
|
||||
$ref: "#/definitions/dai"
|
||||
additionalProperties: false
|
||||
|
||||
|
@ -462,16 +462,16 @@ examples:
|
|||
|
||||
convert-channels = <8>; /* TDM Split */
|
||||
|
||||
sndcpu1: cpu0 {
|
||||
sndcpu1: cpu-0 {
|
||||
sound-dai = <&rcar_sound 1>;
|
||||
};
|
||||
cpu1 {
|
||||
cpu-1 {
|
||||
sound-dai = <&rcar_sound 2>;
|
||||
};
|
||||
cpu2 {
|
||||
cpu-2 {
|
||||
sound-dai = <&rcar_sound 3>;
|
||||
};
|
||||
cpu3 {
|
||||
cpu-3 {
|
||||
sound-dai = <&rcar_sound 4>;
|
||||
};
|
||||
codec {
|
||||
|
|
Loading…
Add table
Reference in a new issue