Skip to content

Commit f26a776

Browse files
krzkbroonie
authored andcommitted
ASoC: dt-bindings: qcom,q6adm: Split to separate schema
The APR/GPR bindings with services got complicated so move out the Q6ADM service to its own binding. Previously the compatible was documented in qcom,apr.yaml. Move most of the examples from its children to this new file. Signed-off-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 6180b32 commit f26a776

File tree

2 files changed

+54
-19
lines changed

2 files changed

+54
-19
lines changed

Documentation/devicetree/bindings/sound/qcom,q6adm-routing.yaml

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -30,23 +30,7 @@ additionalProperties: false
3030

3131
examples:
3232
- |
33-
#include <dt-bindings/soc/qcom,apr.h>
34-
#include <dt-bindings/sound/qcom,q6asm.h>
35-
36-
apr {
37-
compatible = "qcom,apr-v2";
38-
qcom,domain = <APR_DOMAIN_ADSP>;
39-
#address-cells = <1>;
40-
#size-cells = <0>;
41-
42-
service@8 {
43-
compatible = "qcom,q6adm";
44-
reg = <APR_SVC_ADM>;
45-
qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd";
46-
47-
routing {
48-
compatible = "qcom,q6adm-routing";
49-
#sound-dai-cells = <0>;
50-
};
51-
};
33+
routing {
34+
compatible = "qcom,q6adm-routing";
35+
#sound-dai-cells = <0>;
5236
};
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/sound/qcom,q6adm.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Qualcomm Audio Device Manager (Q6ADM)
8+
9+
maintainers:
10+
- Krzysztof Kozlowski <[email protected]>
11+
- Srinivas Kandagatla <[email protected]>
12+
13+
allOf:
14+
- $ref: /schemas/soc/qcom/qcom,apr-services.yaml#
15+
16+
properties:
17+
compatible:
18+
enum:
19+
- qcom,q6adm
20+
21+
routing:
22+
type: object
23+
$ref: /schemas/sound/qcom,q6adm-routing.yaml#
24+
unevaluatedProperties: false
25+
description: Qualcomm DSP LPASS audio routing
26+
27+
required:
28+
- compatible
29+
- routing
30+
31+
unevaluatedProperties: false
32+
33+
examples:
34+
- |
35+
#include <dt-bindings/soc/qcom,apr.h>
36+
37+
apr {
38+
#address-cells = <1>;
39+
#size-cells = <0>;
40+
41+
service@8 {
42+
compatible = "qcom,q6adm";
43+
reg = <APR_SVC_ADM>;
44+
qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd";
45+
46+
routing {
47+
compatible = "qcom,q6adm-routing";
48+
#sound-dai-cells = <0>;
49+
};
50+
};
51+
};

0 commit comments

Comments
 (0)