Qualcomm Resource Power Manager (RPM) Processor/Subsystem

Schema identifier ($id): "http://devicetree.org/schemas/remoteproc/qcom,rpm-proc.yaml#"

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

Maintainers (maintainers): "Bjorn Andersson <andersson@kernel.org>", "Konrad Dybcio <konradybcio@kernel.org>", "Stephan Gerhold <stephan@gerhold.net>"

Resource Power Manager (RPM) subsystem found in various Qualcomm platforms:

                +--------------------------------------------+
                |       RPM subsystem (qcom,rpm-proc)        |
                |                                            |
          reset | +---------------+     +-----+  +-----+     |
        --------->|               |     | MPM |  | CPR | ... |
 IPC interrupts | | ARM Cortex-M3 |---  +-----+  +-----+     |
----------------->|               |  |     |        |        |
                | +---------------+  |---------------------- |
                | +---------------+  |                       |
                | |   Code RAM    |--|  +------------------+ |
                | +---------------+  |  |                  | |
                | +---------------+  |--|   Message RAM    | |
                | |   Data RAM    |--|  |                  | |
                | +---------------+  |  +------------------+ |
                +--------------------|-----------------------+
                                     v
                                    NoC

The firmware running on the processor inside the RPM subsystem allows each component in the system to vote for state of the system resources, such as clocks, regulators and bus frequencies. It implements multiple separate communication interfaces that are described in subnodes, e.g. SMD and MPM:

           +------------------------------+
           |        ARM Cortex-M3         |
           |                              |   +------------------------------+
           | +--------------------------+ |   |          Message RAM         |
           | |  RPM firmware            | |   |                              |
 IPC IRQ 0 | | +----------------------+ | |   | +--------------------------+ |
-------------->| SMD server           |<------->| SMD data structures      | |
           | | | +--------------+     | | |   | | +--------------+         | |
           | | | | rpm_requests | ... | | |   | | | rpm_requests |   ...   | |
           | | | +--------------+     | | |   | | +--------------+         | |
 IPC IRQ 1 | | +----------------------+ | |   | +--------------------------+ |
-------------->| MPM virtualization   |<--------| MPM register copy (vMPM) | |
           | | +----------------------+ | |   | +--------------------------+ |
           | |           ...      |     | |   |              ...             |
           | +--------------------|-----+ |   +------------------------------+
           +----------------------|-------+
                                  v
                           +--------------+
                           | MPM Hardware |
                           +--------------+

The services provided by the firmware are only available after the firmware has been loaded and the processor has been released from reset. Usually this happens early in the boot process before the operating system is started.

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "qcom,apq8084-rpm-proc", "qcom,ipq6018-rpm-proc", "qcom,ipq9574-rpm-proc", "qcom,mdm9607-rpm-proc", "qcom,msm8226-rpm-proc", "qcom,msm8610-rpm-proc", "qcom,msm8909-rpm-proc", "qcom,msm8916-rpm-proc", "qcom,msm8917-rpm-proc", "qcom,msm8936-rpm-proc", "qcom,msm8937-rpm-proc", "qcom,msm8952-rpm-proc", "qcom,msm8953-rpm-proc", "qcom,msm8974-rpm-proc", "qcom,msm8976-rpm-proc", "qcom,msm8994-rpm-proc", "qcom,msm8996-rpm-proc", "qcom,msm8998-rpm-proc", "qcom,qcm2290-rpm-proc", "qcom,qcs404-rpm-proc", "qcom,sdm660-rpm-proc", "qcom,sm6115-rpm-proc", "qcom,sm6125-rpm-proc", "qcom,sm6375-rpm-proc"

Item 2

Exact value (const): "qcom,rpm-proc"

smd-edge — not listed as required here #

Shared schema rule ($ref): /schemas/remoteproc/qcom,smd-edge.yaml#

Qualcomm Shared Memory subnode which represents communication edge, channels and devices related to the RPM subsystem.

Shared schema rule ($ref): /schemas/remoteproc/qcom,glink-rpm-edge.yaml#

Qualcomm G-Link subnode which represents communication edge, channels and devices related to the RPM subsystem.

interrupt-controller — not listed as required here #

Value type (type): "object"

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

MSM Power Manager (MPM) interrupt controller that monitors interrupts when the system is asleep.

master-stats — not listed as required here #

Shared schema rule ($ref): /schemas/soc/qcom/qcom,rpm-master-stats.yaml#

Subsystem-level low-power mode statistics provided by RPM.

Required in this object (required): "compatible"

Exactly one of these rules must match (oneOf) #

Rule 1 #

Required in this object (required): "smd-edge"

Rule 2 #

Required in this object (required): "glink-edge"

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>
#include <dt-bindings/interrupt-controller/irq.h>

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

  smd-edge {
    interrupts = <GIC_SPI 168 IRQ_TYPE_EDGE_RISING>;
    qcom,ipc = <&apcs 8 0>;
    qcom,smd-edge = <15>;

    rpm-requests {
      compatible = "qcom,rpm-msm8916", "qcom,smd-rpm";
      qcom,smd-channels = "rpm_requests";
      /* ... */
    };
  };
};
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>

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

  glink-edge {
    compatible = "qcom,glink-rpm";
    interrupts = <GIC_SPI 194 IRQ_TYPE_EDGE_RISING>;
    qcom,rpm-msg-ram = <&rpm_msg_ram>;
    mboxes = <&apcs_glb 0>;

    rpm-requests {
      compatible = "qcom,rpm-qcm2290", "qcom,glink-smd-rpm";
      qcom,glink-channels = "rpm_requests";
      /* ... */
    };
  };
};

Source notes #

Annotations retained from the schema source

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

Line 131: SMD

Line 151: GLINK

Edit this page