1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: "http://devicetree.org/schemas/sound/qcom,q6dsp-lpass-clocks.yaml#"
5$schema: "http://devicetree.org/meta-schemas/core.yaml#"
6
7title: Qualcomm DSP LPASS Clock Controller binding
8
9maintainers:
10  - Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
11
12description: |
13  This binding describes the Qualcomm DSP Clock Controller
14
15properties:
16  compatible:
17    enum:
18      - qcom,q6afe-clocks
19      - qcom,q6prm-lpass-clocks
20
21  '#clock-cells':
22    const: 2
23    description:
24      Clock Id is followed by clock coupling attributes.
25        1 = for no coupled clock
26        2 = for dividend of the coupled clock
27        3 = for divisor of the coupled clock
28        4 = for inverted and no couple clock
29
30required:
31  - compatible
32  - "#clock-cells"
33
34additionalProperties: false
35
36examples:
37  - |
38    #include <dt-bindings/soc/qcom,apr.h>
39    #include <dt-bindings/sound/qcom,q6afe.h>
40    apr {
41        compatible = "qcom,apr-v2";
42        qcom,domain = <APR_DOMAIN_ADSP>;
43        #address-cells = <1>;
44        #size-cells = <0>;
45
46        service@4 {
47            compatible = "qcom,q6afe";
48            reg = <APR_SVC_AFE>;
49            qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd";
50
51            clock-controller {
52                compatible = "qcom,q6afe-clocks";
53                #clock-cells = <2>;
54            };
55        };
56    };
57
58  - |
59    #include <dt-bindings/soc/qcom,gpr.h>
60    gpr {
61        compatible = "qcom,gpr";
62        qcom,domain = <GPR_DOMAIN_ID_ADSP>;
63        #address-cells = <1>;
64        #size-cells = <0>;
65
66        service@2 {
67            reg = <GPR_PRM_MODULE_IID>;
68            compatible = "qcom,q6prm";
69
70            clock-controller {
71                compatible = "qcom,q6prm-lpass-clocks";
72                #clock-cells = <2>;
73            };
74        };
75    };
76