summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/sound/renesas,rsnd.yaml
diff options
context:
space:
mode:
authorSameer Pujar <spujar@nvidia.com>2020-11-17 04:33:46 +0300
committerMark Brown <broonie@kernel.org>2020-11-18 21:00:19 +0300
commite52f3f291152042f1759b2b8838e7ca24556997e (patch)
tree52569fa80aa71d4547f2944fbf4bb137aa3d1336 /Documentation/devicetree/bindings/sound/renesas,rsnd.yaml
parent5268e0bf7123c422892fec362f5be2bcae9bbb95 (diff)
downloadlinux-e52f3f291152042f1759b2b8838e7ca24556997e.tar.xz
ASoC: audio-graph-card: Refactor schema
There can be customized sound cards which are based on generic audio graph. In such cases most of the stuff is reused from generic audio graph. To facilitate this, refactor audio graph schema into multiple files and the base schema can be reused for specific sound cards. The graph card nodes and port nodes are separate entities, so they should be separate schemas. Signed-off-by: Sameer Pujar <spujar@nvidia.com> Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> [robh: Split out port schema. Add graph.yaml in subsequent commit] Signed-off-by: Rob Herring <robh@kernel.org> Acked-by: Sameer Pujar <spujar@nvidia.com> Link: https://lore.kernel.org/r/20201117013349.2458416-2-robh@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/sound/renesas,rsnd.yaml')
-rw-r--r--Documentation/devicetree/bindings/sound/renesas,rsnd.yaml12
1 files changed, 5 insertions, 7 deletions
diff --git a/Documentation/devicetree/bindings/sound/renesas,rsnd.yaml b/Documentation/devicetree/bindings/sound/renesas,rsnd.yaml
index 51f4dcaa970d..cbfd5914b432 100644
--- a/Documentation/devicetree/bindings/sound/renesas,rsnd.yaml
+++ b/Documentation/devicetree/bindings/sound/renesas,rsnd.yaml
@@ -9,6 +9,10 @@ title: Renesas R-Car Sound Driver Device Tree Bindings
maintainers:
- Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
+allOf:
+ - $ref: audio-graph.yaml#
+ - $ref: audio-graph-port.yaml#
+
properties:
compatible:
@@ -111,13 +115,7 @@ properties:
- pattern: '^dvc\.[0-1]$'
- pattern: '^clk_(a|b|c|i)$'
- port:
- description: OF-Graph subnode
- $ref: "audio-graph-card.yaml#/properties/port"
-
- ports:
- description: multi OF-Graph subnode
- $ref: "audio-graph-card.yaml#/properties/ports"
+ port: true
# use patternProperties to avoid naming "xxx,yyy" issue
patternProperties: