Qualcomm RPM Clock Controller

Schema identifier ($id): "http://devicetree.org/schemas/clock/qcom,rpmcc.yaml#"

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

Maintainers (maintainers): "Bjorn Andersson <bjorn.andersson@linaro.org>", "Krzysztof Kozlowski <krzk@kernel.org>"

The clock enumerators are defined in <dt-bindings/clock/qcom,rpmcc.h> and come in pairs:: FOO_CLK followed by FOO_A_CLK. The latter clock is an "active" clock, which means that the consumer only care that the clock is available when the apps CPU subsystem is active, i.e. not suspended or in deep idle. If it is important that the clock keeps running during system suspend, you need to specify the non-active clock, the one not containing *_A_* in the enumerator name.

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "qcom,rpmcc-apq8060", "qcom,rpmcc-apq8064", "qcom,rpmcc-ipq806x", "qcom,rpmcc-mdm9607", "qcom,rpmcc-msm8226", "qcom,rpmcc-msm8660", "qcom,rpmcc-msm8909", "qcom,rpmcc-msm8916", "qcom,rpmcc-msm8917", "qcom,rpmcc-msm8936", "qcom,rpmcc-msm8937", "qcom,rpmcc-msm8940", "qcom,rpmcc-msm8953", "qcom,rpmcc-msm8974", "qcom,rpmcc-msm8976", "qcom,rpmcc-msm8992", "qcom,rpmcc-msm8994", "qcom,rpmcc-msm8996", "qcom,rpmcc-msm8998", "qcom,rpmcc-qcm2290", "qcom,rpmcc-qcs404", "qcom,rpmcc-sdm429", "qcom,rpmcc-sdm660", "qcom,rpmcc-sm6115", "qcom,rpmcc-sm6125", "qcom,rpmcc-sm6375"

Item 2

Exact value (const): "qcom,rpmcc"

#clock-cells — required here #

Exact value (const): 1

clocks — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

clock-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

Required in this object (required): "compatible", "#clock-cells"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,rpmcc-apq8060", "qcom,rpmcc-ipq806x", "qcom,rpmcc-msm8660"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

pxo clock

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "pxo"

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "qcom,rpmcc-apq8064"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

pxo clock

Item 2

cxo clock

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "pxo"

Item 2

Exact value (const): "cxo"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,rpmcc-mdm9607", "qcom,rpmcc-msm8226", "qcom,rpmcc-msm8916", "qcom,rpmcc-msm8917", "qcom,rpmcc-msm8936", "qcom,rpmcc-msm8937", "qcom,rpmcc-msm8940", "qcom,rpmcc-msm8953", "qcom,rpmcc-msm8974", "qcom,rpmcc-msm8976", "qcom,rpmcc-msm8992", "qcom,rpmcc-msm8994", "qcom,rpmcc-msm8996", "qcom,rpmcc-msm8998", "qcom,rpmcc-qcm2290", "qcom,rpmcc-qcs404", "qcom,rpmcc-sdm429", "qcom,rpmcc-sdm660", "qcom,rpmcc-sm6115", "qcom,rpmcc-sm6125"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

xo clock

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "xo"

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

false

Not allowed by this rule.

Examples (examples) #

rpm {
    rpm-requests {
        compatible = "qcom,rpm-msm8916", "qcom,smd-rpm";
        qcom,smd-channels = "rpm_requests";

        clock-controller {
            compatible = "qcom,rpmcc-msm8916", "qcom,rpmcc";
            #clock-cells = <1>;
        };
    };
};
rpm {
    clock-controller {
        compatible = "qcom,rpmcc-ipq806x", "qcom,rpmcc";
        #clock-cells = <1>;
        clocks = <&pxo_board>;
        clock-names = "pxo";
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page