1PDC interrupt controller 2 3Qualcomm Technologies Inc. SoCs based on the RPM Hardened architecture have a 4Power Domain Controller (PDC) that is on always-on domain. In addition to 5providing power control for the power domains, the hardware also has an 6interrupt controller that can be used to help detect edge low interrupts as 7well detect interrupts when the GIC is non-operational. 8 9GIC is parent interrupt controller at the highest level. Platform interrupt 10controller PDC is next in hierarchy, followed by others. Drivers requiring 11wakeup capabilities of their device interrupts routed through the PDC, must 12specify PDC as their interrupt controller and request the PDC port associated 13with the GIC interrupt. See example below. 14 15Properties: 16 17- compatible: 18 Usage: required 19 Value type: <string> 20 Definition: Should contain "qcom,<soc>-pdc" and "qcom,pdc" 21 - "qcom,sc7180-pdc": For SC7180 22 - "qcom,sdm845-pdc": For SDM845 23 24- reg: 25 Usage: required 26 Value type: <prop-encoded-array> 27 Definition: Specifies the base physical address for PDC hardware. 28 29- interrupt-cells: 30 Usage: required 31 Value type: <u32> 32 Definition: Specifies the number of cells needed to encode an interrupt 33 source. 34 Must be 2. 35 The first element of the tuple is the PDC pin for the 36 interrupt. 37 The second element is the trigger type. 38 39- interrupt-controller: 40 Usage: required 41 Value type: <bool> 42 Definition: Identifies the node as an interrupt controller. 43 44- qcom,pdc-ranges: 45 Usage: required 46 Value type: <u32 array> 47 Definition: Specifies the PDC pin offset and the number of PDC ports. 48 The tuples indicates the valid mapping of valid PDC ports 49 and their hwirq mapping. 50 The first element of the tuple is the starting PDC port. 51 The second element is the GIC hwirq number for the PDC port. 52 The third element is the number of interrupts in sequence. 53 54Example: 55 56 pdc: interrupt-controller@b220000 { 57 compatible = "qcom,sdm845-pdc"; 58 reg = <0xb220000 0x30000>; 59 qcom,pdc-ranges = <0 512 94>, <94 641 15>, <115 662 7>; 60 #interrupt-cells = <2>; 61 interrupt-parent = <&intc>; 62 interrupt-controller; 63 }; 64 65DT binding of a device that wants to use the GIC SPI 514 as a wakeup 66interrupt, must do - 67 68 wake-device { 69 interrupts-extended = <&pdc 2 IRQ_TYPE_LEVEL_HIGH>; 70 }; 71 72In this case interrupt 514 would be mapped to port 2 on the PDC as defined by 73the qcom,pdc-ranges property. 74