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        #address-cells = <1>;
42        #size-cells = <0>;
43        apr-service@4 {
44            reg = <APR_SVC_AFE>;
45
46            clock-controller {
47              compatible = "qcom,q6afe-clocks";
48              #clock-cells = <2>;
49            };
50        };
51      };
52
53  - |
54    #include <dt-bindings/soc/qcom,gpr.h>
55    gpr {
56        compatible = "qcom,gpr";
57        qcom,domain = <GPR_DOMAIN_ID_ADSP>;
58        #address-cells = <1>;
59        #size-cells = <0>;
60        service@2 {
61            reg = <GPR_PRM_MODULE_IID>;
62            compatible = "qcom,q6prm";
63
64            clock-controller {
65              compatible = "qcom,q6prm-lpass-clocks";
66              #clock-cells = <2>;
67            };
68        };
69      };
70