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,sc7180-pdc 30 - qcom,sc7280-pdc 31 - qcom,sdm845-pdc 32 - qcom,sm6350-pdc 33 - qcom,sm8150-pdc 34 - qcom,sm8250-pdc 35 - qcom,sm8350-pdc 36 - const: qcom,pdc 37 38 reg: 39 minItems: 1 40 items: 41 - description: PDC base register region 42 - description: Edge or Level config register for SPI interrupts 43 44 '#interrupt-cells': 45 const: 2 46 47 interrupt-controller: true 48 49 qcom,pdc-ranges: 50 $ref: /schemas/types.yaml#/definitions/uint32-matrix 51 minItems: 1 52 maxItems: 32 # no hard limit 53 items: 54 items: 55 - description: starting PDC port 56 - description: GIC hwirq number for the PDC port 57 - description: number of interrupts in sequence 58 description: | 59 Specifies the PDC pin offset and the number of PDC ports. 60 The tuples indicates the valid mapping of valid PDC ports 61 and their hwirq mapping. 62 63required: 64 - compatible 65 - reg 66 - '#interrupt-cells' 67 - interrupt-controller 68 - qcom,pdc-ranges 69 70additionalProperties: false 71 72examples: 73 - | 74 #include <dt-bindings/interrupt-controller/irq.h> 75 76 pdc: interrupt-controller@b220000 { 77 compatible = "qcom,sdm845-pdc", "qcom,pdc"; 78 reg = <0xb220000 0x30000>; 79 qcom,pdc-ranges = <0 512 94>, <94 641 15>, <115 662 7>; 80 #interrupt-cells = <2>; 81 interrupt-parent = <&intc>; 82 interrupt-controller; 83 }; 84 85 wake-device { 86 interrupts-extended = <&pdc 2 IRQ_TYPE_LEVEL_HIGH>; 87 }; 88