Qualcomm Resource Power Manager (RPM)
Schema identifier ($id): "http://devicetree.org/schemas/soc/qcom/qcom,rpm.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
This driver is used to interface with the Resource Power Manager (RPM) found in various Qualcomm platforms. The RPM allows each component in the system to vote for state of the system resources, such as clocks, regulators and bus frequencies.
Maintainers (maintainers): "Bjorn Andersson <andersson@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "qcom,rpm-apq8064", "qcom,rpm-msm8660", "qcom,rpm-msm8960", "qcom,rpm-ipq8064", "qcom,rpm-mdm9615"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 3
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"ack"
Item 2
Exact value (
const):"err"
Item 3
Exact value (
const):"wakeup"
clocks — not listed as required here #
Maximum number of items (maxItems): 1
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"ram"
qcom,ipc — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Array item rules (items) #
Item 1
Array item rules (
items)Item 1
phandle to a syscon node representing the APCS registers
Item 2
u32 representing offset to the register within the syscon
Item 3
u32 representing the ipc bit within the register
Three entries specifying the outgoing ipc bit used for signaling the RPM.
clock-controller — not listed as required here #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Properties and child nodes (properties) #
compatible — not listed as required here
Rule for matching array elements (contains)
Exact value (
const):"qcom,rpmcc"
Properties matching a name pattern (patternProperties) #
^regulators(-[01])?$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): /schemas/regulator/qcom,rpm-regulator.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "qcom,ipc"
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>
#include <dt-bindings/mfd/qcom-rpm.h>
rpm@108000 {
compatible = "qcom,rpm-msm8960";
reg = <0x108000 0x1000>;
qcom,ipc = <&apcs 0x8 2>;
interrupts = <GIC_SPI 19 IRQ_TYPE_NONE>, <GIC_SPI 21 IRQ_TYPE_NONE>, <GIC_SPI 22 IRQ_TYPE_NONE>;
interrupt-names = "ack", "err", "wakeup";
regulators {
compatible = "qcom,rpm-pm8921-regulators";
vdd_l1_l2_l12_l18-supply = <&pm8921_s4>;
s1 {
regulator-min-microvolt = <1225000>;
regulator-max-microvolt = <1225000>;
bias-pull-down;
qcom,switch-mode-frequency = <3200000>;
};
pm8921_s4: s4 {
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
qcom,switch-mode-frequency = <1600000>;
bias-pull-down;
qcom,force-mode = <QCOM_RPM_FORCE_MODE_AUTO>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)