xref: /linux/Documentation/devicetree/bindings/interrupt-controller/qcom,pdc.yaml (revision 1b8b67503725fa6deb3a4f00ea61f982bd00c152)
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,eliza-pdc
30          - qcom,glymur-pdc
31          - qcom,hawi-pdc
32          - qcom,kaanapali-pdc
33          - qcom,kuno-pdc
34          - qcom,maili-pdc
35          - qcom,milos-pdc
36          - qcom,nord-pdc
37          - qcom,qcs615-pdc
38          - qcom,qcs8300-pdc
39          - qcom,qdu1000-pdc
40          - qcom,sa8255p-pdc
41          - qcom,sa8775p-pdc
42          - qcom,sar2130p-pdc
43          - qcom,sc7180-pdc
44          - qcom,sc7280-pdc
45          - qcom,sc8180x-pdc
46          - qcom,sc8280xp-pdc
47          - qcom,sdm670-pdc
48          - qcom,sdm845-pdc
49          - qcom,sdx55-pdc
50          - qcom,sdx65-pdc
51          - qcom,sdx75-pdc
52          - qcom,sm4450-pdc
53          - qcom,sm6350-pdc
54          - qcom,sm7250-pdc
55          - qcom,sm8150-pdc
56          - qcom,sm8250-pdc
57          - qcom,sm8350-pdc
58          - qcom,sm8450-pdc
59          - qcom,sm8550-pdc
60          - qcom,sm8650-pdc
61          - qcom,sm8750-pdc
62          - qcom,x1e80100-pdc
63          - qcom,x1p42100-pdc
64      - const: qcom,pdc
65
66  reg:
67    minItems: 1
68    items:
69      - description: PDC base register region
70      - description: Edge or Level config register for SPI interrupts
71
72  '#interrupt-cells':
73    const: 2
74
75  interrupt-controller: true
76
77  qcom,pdc-ranges:
78    $ref: /schemas/types.yaml#/definitions/uint32-matrix
79    minItems: 1
80    maxItems: 128 # no hard limit
81    items:
82      items:
83        - description: starting PDC port
84        - description: GIC hwirq number for the PDC port
85        - description: number of interrupts in sequence
86    description: |
87      Specifies the PDC pin offset and the number of PDC ports.
88      The tuples indicates the valid mapping of valid PDC ports
89      and their hwirq mapping.
90
91required:
92  - compatible
93  - reg
94  - '#interrupt-cells'
95  - interrupt-controller
96  - qcom,pdc-ranges
97
98additionalProperties: false
99
100examples:
101  - |
102    #include <dt-bindings/interrupt-controller/irq.h>
103
104    pdc: interrupt-controller@b220000 {
105        compatible = "qcom,sdm845-pdc", "qcom,pdc";
106        reg = <0xb220000 0x30000>;
107        qcom,pdc-ranges = <0 512 94>, <94 641 15>, <115 662 7>;
108        #interrupt-cells = <2>;
109        interrupt-parent = <&intc>;
110        interrupt-controller;
111    };
112
113    wake-device {
114        interrupts-extended = <&pdc 2 IRQ_TYPE_LEVEL_HIGH>;
115    };
116