xref: /linux/Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.yaml (revision 5cd2a743ce384a5a4a1b5b09d4983df2592fbe1c)
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/interrupt-controller/qcom,pdc.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: PDC interrupt controller
8
9maintainers:
10  - Bjorn Andersson <bjorn.andersson@linaro.org>
11
12description: |
13  Qualcomm Technologies Inc. SoCs based on the RPM Hardened architecture have a
14  Power Domain Controller (PDC) that is on always-on domain. In addition to
15  providing power control for the power domains, the hardware also has an
16  interrupt controller that can be used to help detect edge low interrupts as
17  well detect interrupts when the GIC is non-operational.
18
19  GIC is parent interrupt controller at the highest level. Platform interrupt
20  controller PDC is next in hierarchy, followed by others. Drivers requiring
21  wakeup capabilities of their device interrupts routed through the PDC, must
22  specify PDC as their interrupt controller and request the PDC port associated
23  with the GIC interrupt. See example below.
24
25properties:
26  compatible:
27    items:
28      - enum:
29          - qcom,glymur-pdc
30          - qcom,kaanapali-pdc
31          - qcom,qcs615-pdc
32          - qcom,qcs8300-pdc
33          - qcom,qdu1000-pdc
34          - qcom,sa8255p-pdc
35          - qcom,sa8775p-pdc
36          - qcom,sar2130p-pdc
37          - qcom,sc7180-pdc
38          - qcom,sc7280-pdc
39          - qcom,sc8180x-pdc
40          - qcom,sc8280xp-pdc
41          - qcom,sdm670-pdc
42          - qcom,sdm845-pdc
43          - qcom,sdx55-pdc
44          - qcom,sdx65-pdc
45          - qcom,sdx75-pdc
46          - qcom,sm4450-pdc
47          - qcom,sm6350-pdc
48          - qcom,sm8150-pdc
49          - qcom,sm8250-pdc
50          - qcom,sm8350-pdc
51          - qcom,sm8450-pdc
52          - qcom,sm8550-pdc
53          - qcom,sm8650-pdc
54          - qcom,sm8750-pdc
55          - qcom,x1e80100-pdc
56      - const: qcom,pdc
57
58  reg:
59    minItems: 1
60    items:
61      - description: PDC base register region
62      - description: Edge or Level config register for SPI interrupts
63
64  '#interrupt-cells':
65    const: 2
66
67  interrupt-controller: true
68
69  qcom,pdc-ranges:
70    $ref: /schemas/types.yaml#/definitions/uint32-matrix
71    minItems: 1
72    maxItems: 128 # no hard limit
73    items:
74      items:
75        - description: starting PDC port
76        - description: GIC hwirq number for the PDC port
77        - description: number of interrupts in sequence
78    description: |
79      Specifies the PDC pin offset and the number of PDC ports.
80      The tuples indicates the valid mapping of valid PDC ports
81      and their hwirq mapping.
82
83required:
84  - compatible
85  - reg
86  - '#interrupt-cells'
87  - interrupt-controller
88  - qcom,pdc-ranges
89
90additionalProperties: false
91
92examples:
93  - |
94    #include <dt-bindings/interrupt-controller/irq.h>
95
96    pdc: interrupt-controller@b220000 {
97        compatible = "qcom,sdm845-pdc", "qcom,pdc";
98        reg = <0xb220000 0x30000>;
99        qcom,pdc-ranges = <0 512 94>, <94 641 15>, <115 662 7>;
100        #interrupt-cells = <2>;
101        interrupt-parent = <&intc>;
102        interrupt-controller;
103    };
104
105    wake-device {
106        interrupts-extended = <&pdc 2 IRQ_TYPE_LEVEL_HIGH>;
107    };
108