1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/soc/qcom/qcom,aoss-qmp.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Qualcomm Always-On Subsystem side channel binding
8
9maintainers:
10  - Bjorn Andersson <bjorn.andersson@linaro.org>
11
12description:
13  This binding describes the hardware component responsible for side channel
14  requests to the always-on subsystem (AOSS), used for certain power management
15  requests that is not handled by the standard RPMh interface. Each client in the
16  SoC has it's own block of message RAM and IRQ for communication with the AOSS.
17  The protocol used to communicate in the message RAM is known as Qualcomm
18  Messaging Protocol (QMP)
19
20  The AOSS side channel exposes control over a set of resources, used to control
21  a set of debug related clocks and to affect the low power state of resources
22  related to the secondary subsystems. These resources are exposed as a set of
23  power-domains.
24
25properties:
26  compatible:
27    items:
28      - enum:
29          - qcom,sc7180-aoss-qmp
30          - qcom,sc7280-aoss-qmp
31          - qcom,sc8180x-aoss-qmp
32          - qcom,sdm845-aoss-qmp
33          - qcom,sm6350-aoss-qmp
34          - qcom,sm8150-aoss-qmp
35          - qcom,sm8250-aoss-qmp
36          - qcom,sm8350-aoss-qmp
37      - const: qcom,aoss-qmp
38
39  reg:
40    maxItems: 1
41    description:
42      The base address and size of the message RAM for this client's
43      communication with the AOSS
44
45  interrupts:
46    maxItems: 1
47    description:
48      Should specify the AOSS message IRQ for this client
49
50  mboxes:
51    maxItems: 1
52    description:
53      Reference to the mailbox representing the outgoing doorbell in APCS for
54      this client, as described in mailbox/mailbox.txt
55
56  "#clock-cells":
57    const: 0
58    description:
59      The single clock represents the QDSS clock.
60
61  "#power-domain-cells":
62    const: 1
63    description: |
64        The provided power-domains are:
65        CDSP state (0), LPASS state (1), modem state (2), SLPI
66        state (3), SPSS state (4) and Venus state (5).
67
68required:
69  - compatible
70  - reg
71  - interrupts
72  - mboxes
73  - "#clock-cells"
74
75additionalProperties: false
76
77patternProperties:
78  "^(cx|mx|ebi)$":
79    type: object
80    description:
81      The AOSS side channel also provides the controls for three cooling devices,
82      these are expressed as subnodes of the QMP node. The name of the node is
83      used to identify the resource and must therefor be "cx", "mx" or "ebi".
84
85    properties:
86      "#cooling-cells":
87        const: 2
88
89    required:
90      - "#cooling-cells"
91
92    additionalProperties: false
93
94examples:
95  - |
96    #include <dt-bindings/interrupt-controller/arm-gic.h>
97
98    aoss_qmp: qmp@c300000 {
99      compatible = "qcom,sdm845-aoss-qmp", "qcom,aoss-qmp";
100      reg = <0x0c300000 0x100000>;
101      interrupts = <GIC_SPI 389 IRQ_TYPE_EDGE_RISING>;
102      mboxes = <&apss_shared 0>;
103
104      #clock-cells = <0>;
105      #power-domain-cells = <1>;
106
107      cx_cdev: cx {
108        #cooling-cells = <2>;
109      };
110
111      mx_cdev: mx {
112        #cooling-cells = <2>;
113      };
114    };
115...
116