Qualcom MPM Interrupt Controller

Schema identifier ($id): "http://devicetree.org/schemas/interrupt-controller/qcom,mpm.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Shawn Guo <shawn.guo@linaro.org>"

Qualcomm Technologies Inc. SoCs based on the RPM architecture have a MSM Power Manager (MPM) that is in always-on domain. In addition to managing resources during sleep, the hardware also has an interrupt controller that monitors the interrupts when the system is asleep, wakes up the APSS when one of these interrupts occur and replays it to GIC interrupt controller after GIC becomes operational.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/interrupt-controller.yaml#

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Exact value (const): "qcom,mpm"

reg — not listed as required here #

Maximum number of items (maxItems): 1

Specifies the base address and size of vMPM registers in RPM MSG RAM.

Deprecated (deprecated): true

qcom,rpm-msg-ram — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

Phandle to the APSS MPM slice of the RPM Message RAM

interrupts — required here #

Maximum number of items (maxItems): 1

Specify the IRQ used by RPM to wakeup APSS.

mboxes — required here #

Maximum number of items (maxItems): 1

Specify the mailbox used to notify RPM for writing vMPM registers.

interrupt-controller — required here #

true — No constraints added by this property rule.

#interrupt-cells — required here #

Exact value (const): 2

The first cell is the MPM pin number for the interrupt, and the second is the trigger type.

qcom,mpm-pin-count — required here #

Specify the total MPM pin count that a SoC supports.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

qcom,mpm-pin-map — required here #

A set of MPM pin numbers and the corresponding GIC SPIs.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-matrix

Array item rules (items) #

Array item rules (items)

Item 1

MPM pin number

Item 2

GIC SPI number for the MPM pin

#power-domain-cells — not listed as required here #

Exact value (const): 0

Required in this object (required): "compatible", "interrupts", "mboxes", "interrupt-controller", "#interrupt-cells", "qcom,mpm-pin-count", "qcom,mpm-pin-map", "qcom,rpm-msg-ram"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>

remoteproc-rpm {
    compatible = "qcom,msm8998-rpm-proc", "qcom,rpm-proc";

    glink-edge {
        compatible = "qcom,glink-rpm";

        interrupts = <GIC_SPI 168 IRQ_TYPE_EDGE_RISING>;
        qcom,rpm-msg-ram = <&rpm_msg_ram>;
        mboxes = <&apcs_glb 0>;
    };

    mpm: interrupt-controller {
        compatible = "qcom,mpm";
        qcom,rpm-msg-ram = <&apss_mpm>;
        interrupts = <GIC_SPI 197 IRQ_TYPE_EDGE_RISING>;
        mboxes = <&apcs_glb 1>;
        interrupt-controller;
        #interrupt-cells = <2>;
        interrupt-parent = <&intc>;
        qcom,mpm-pin-count = <96>;
        qcom,mpm-pin-map = <2 275>,
                           <5 296>,
                           <12 422>,
                           <24 79>,
                           <86 183>,
                           <91 260>;
        #power-domain-cells = <0>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page