diff --git a/bindings/interrupt-controller/qcom,show-resume-irqs.yaml b/bindings/interrupt-controller/qcom,show-resume-irqs.yaml new file mode 100644 index 00000000..f5e44f98 --- /dev/null +++ b/bindings/interrupt-controller/qcom,show-resume-irqs.yaml @@ -0,0 +1,39 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interrupt-controller/qcom,show-resume-irqs.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Show Resume IRQs from interrupt controller + +maintainers: + - Maulik Shah + +description: | + Qualcomm Technologies Inc. SoCs can be interrupted in order to come out + of low power modes, knowing the wake up source allows debugging of + unnecessary wake up interrupts that may bring the SoC out of its low power + mode. Driver reads GIC registers to determine the interrupt which triggered + just before the resume loop unrolls. + +properties: + compatible: + items: + - const: qcom,show-resume-irqs + + reg: + items: + - description: GICD base register region + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + show_resume_irqs@17100000 { + compatible = "qcom,show-resume-irqs"; + reg = <0x17100000 0x10000>; + }; diff --git a/qcom/sun.dtsi b/qcom/sun.dtsi index 746c3ea8..c5b1a4f9 100644 --- a/qcom/sun.dtsi +++ b/qcom/sun.dtsi @@ -744,6 +744,11 @@ status = "disabled"; }; + show_resume_irqs@16000000 { + compatible = "qcom,show-resume-irqs"; + reg = <0x16000000 0x10000>; /* GICD */ + }; + intc: interrupt-controller@16000000 { compatible = "arm,gic-v3"; #interrupt-cells = <3>;