1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: "http://devicetree.org/schemas/mailbox/qcom,apcs-kpss-global.yaml#"
5$schema: "http://devicetree.org/meta-schemas/core.yaml#"
6
7title: Qualcomm APCS global block bindings
8
9description:
10  This binding describes the APCS "global" block found in various Qualcomm
11  platforms.
12
13maintainers:
14  - Sivaprakash Murugesan <sivaprak@codeaurora.org>
15
16properties:
17  compatible:
18    enum:
19      - qcom,ipq6018-apcs-apps-global
20      - qcom,ipq8074-apcs-apps-global
21      - qcom,msm8916-apcs-kpss-global
22      - qcom,msm8994-apcs-kpss-global
23      - qcom,msm8996-apcs-hmss-global
24      - qcom,msm8998-apcs-hmss-global
25      - qcom,qcs404-apcs-apps-global
26      - qcom,sc7180-apss-shared
27      - qcom,sc8180x-apss-shared
28      - qcom,sdm660-apcs-hmss-global
29      - qcom,sdm845-apss-shared
30      - qcom,sm8150-apss-shared
31
32  reg:
33    maxItems: 1
34
35  clocks:
36    description: phandles to the parent clocks of the clock driver
37    minItems: 2
38    items:
39      - description: primary pll parent of the clock driver
40      - description: auxiliary parent
41      - description: reference clock
42
43  '#mbox-cells':
44    const: 1
45
46  '#clock-cells':
47    const: 0
48
49  clock-names:
50    minItems: 2
51    items:
52      - const: pll
53      - const: aux
54      - const: ref
55
56required:
57  - compatible
58  - reg
59  - '#mbox-cells'
60
61additionalProperties: false
62
63allOf:
64  - if:
65      properties:
66        compatible:
67          enum:
68            - qcom,ipq6018-apcs-apps-global
69            - qcom,ipq8074-apcs-apps-global
70            - qcom,msm8916-apcs-kpss-global
71            - qcom,msm8994-apcs-kpss-global
72            - qcom,msm8996-apcs-hmss-global
73            - qcom,msm8998-apcs-hmss-global
74            - qcom,qcs404-apcs-apps-global
75            - qcom,sc7180-apss-shared
76            - qcom,sdm660-apcs-hmss-global
77            - qcom,sdm845-apss-shared
78            - qcom,sm8150-apss-shared
79    then:
80      properties:
81        clocks:
82          maxItems: 2
83  - if:
84      properties:
85        compatible:
86          enum:
87            - qcom,sdx55-apcs-gcc
88    then:
89      properties:
90        clocks:
91          maxItems: 3
92examples:
93
94  # Example apcs with msm8996
95  - |
96    #include <dt-bindings/interrupt-controller/arm-gic.h>
97    apcs_glb: mailbox@9820000 {
98        compatible = "qcom,msm8996-apcs-hmss-global";
99        reg = <0x9820000 0x1000>;
100
101        #mbox-cells = <1>;
102    };
103
104    rpm-glink {
105        compatible = "qcom,glink-rpm";
106        interrupts = <GIC_SPI 168 IRQ_TYPE_EDGE_RISING>;
107        qcom,rpm-msg-ram = <&rpm_msg_ram>;
108        mboxes = <&apcs_glb 0>;
109        mbox-names = "rpm_hlos";
110    };
111
112  # Example apcs with qcs404
113  - |
114    #define GCC_APSS_AHB_CLK_SRC  1
115    #define GCC_GPLL0_AO_OUT_MAIN 123
116    apcs: mailbox@b011000 {
117        compatible = "qcom,qcs404-apcs-apps-global";
118        reg = <0x0b011000 0x1000>;
119        #mbox-cells = <1>;
120        clocks = <&apcs_hfpll>, <&gcc GCC_GPLL0_AO_OUT_MAIN>;
121        clock-names = "pll", "aux";
122        #clock-cells = <0>;
123    };
124