Commit bbda859e authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown

ASoC: dt-bindings: audio-graph-port: use definitions for port/endpoint

Audio Graph base driver might need to add its own properties.
In such case, having definitions for port/endpoint is easy to handle it.
This patch adds definitions for port/endpoint.
Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87r0vl7rj4.wl-kuninori.morimoto.gx@renesas.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent ffe4c0f0
...@@ -11,25 +11,22 @@ maintainers: ...@@ -11,25 +11,22 @@ maintainers:
select: false select: false
allOf: definitions:
- $ref: /schemas/graph.yaml#/$defs/port-base port-base:
$ref: /schemas/graph.yaml#/$defs/port-base
properties: properties:
prefix: prefix:
description: "device name prefix" description: "device name prefix"
$ref: /schemas/types.yaml#/definitions/string $ref: /schemas/types.yaml#/definitions/string
convert-rate: convert-rate:
$ref: "/schemas/sound/dai-params.yaml#/$defs/dai-sample-rate" $ref: "/schemas/sound/dai-params.yaml#/$defs/dai-sample-rate"
convert-channels: convert-channels:
$ref: "/schemas/sound/dai-params.yaml#/$defs/dai-channels" $ref: "/schemas/sound/dai-params.yaml#/$defs/dai-channels"
convert-sample-format: convert-sample-format:
$ref: "/schemas/sound/dai-params.yaml#/$defs/dai-sample-format" $ref: "/schemas/sound/dai-params.yaml#/$defs/dai-sample-format"
patternProperties: endpoint-base:
"^endpoint(@[0-9a-f]+)?":
$ref: /schemas/graph.yaml#/$defs/endpoint-base $ref: /schemas/graph.yaml#/$defs/endpoint-base
unevaluatedProperties: false
properties: properties:
mclk-fs: mclk-fs:
description: | description: |
...@@ -100,4 +97,12 @@ patternProperties: ...@@ -100,4 +97,12 @@ patternProperties:
minimum: 1 minimum: 1
maximum: 64 maximum: 64
allOf:
- $ref: "#/definitions/port-base"
patternProperties:
"^endpoint(@[0-9a-f]+)?":
$ref: "#/definitions/endpoint-base"
unevaluatedProperties: false
additionalProperties: true additionalProperties: true
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