Qualcomm Core Power Reduction (CPR)

Schema identifier ($id): "http://devicetree.org/schemas/power/avs/qcom,cpr.yaml#"

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

Maintainers (maintainers): "Niklas Cassel <nks@flawful.org>"

CPR (Core Power Reduction) is a technology to reduce core power on a CPU or other device. Each OPP of a device corresponds to a "corner" that has a range of valid voltages for a particular frequency. While the device is running at a particular frequency, CPR monitors dynamic factors such as temperature, etc. and suggests adjustments to the voltage to save power and meet silicon characteristic requirements.

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "qcom,qcs404-cpr"

Item 2

Exact value (const): "qcom,cpr"

reg — required here #

Base address and size of the RBCPR register region.

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

Reference clock.

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "ref"

vdd-apc-supply — required here #

APC regulator supply.

#power-domain-cells — required here #

Exact value (const): 0

operating-points-v2 — required here #

A phandle to the OPP table containing the performance states supported by the CPR power domain.

acc-syscon — not listed as required here #

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

A phandle to the syscon used for writing ACC settings.

nvmem-cells — required here #

Array item rules (items) #

Item 1

Corner 1 quotient offset

Item 2

Corner 2 quotient offset

Item 3

Corner 3 quotient offset

Item 4

Corner 1 initial voltage

Item 5

Corner 2 initial voltage

Item 6

Corner 3 initial voltage

Item 7

Corner 1 quotient

Item 8

Corner 2 quotient

Item 9

Corner 3 quotient

Item 10

Corner 1 ring oscillator

Item 11

Corner 2 ring oscillator

Item 12

Corner 3 ring oscillator

Item 13

Fuse revision

nvmem-cell-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "cpr_quotient_offset1"

Item 2

Exact value (const): "cpr_quotient_offset2"

Item 3

Exact value (const): "cpr_quotient_offset3"

Item 4

Exact value (const): "cpr_init_voltage1"

Item 5

Exact value (const): "cpr_init_voltage2"

Item 6

Exact value (const): "cpr_init_voltage3"

Item 7

Exact value (const): "cpr_quotient1"

Item 8

Exact value (const): "cpr_quotient2"

Item 9

Exact value (const): "cpr_quotient3"

Item 10

Exact value (const): "cpr_ring_osc1"

Item 11

Exact value (const): "cpr_ring_osc2"

Item 12

Exact value (const): "cpr_ring_osc3"

Item 13

Exact value (const): "cpr_fuse_revision"

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "vdd-apc-supply", "#power-domain-cells", "operating-points-v2", "nvmem-cells", "nvmem-cell-names"

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>

cpr_opp_table: opp-table-cpr {
    compatible = "operating-points-v2-qcom-level";

    cpr_opp1: opp1 {
        opp-level = <1>;
        qcom,opp-fuse-level = <1>;
    };
    cpr_opp2: opp2 {
        opp-level = <2>;
        qcom,opp-fuse-level = <2>;
    };
    cpr_opp3: opp3 {
        opp-level = <3>;
        qcom,opp-fuse-level = <3>;
    };
};

power-controller@b018000 {
    compatible = "qcom,qcs404-cpr", "qcom,cpr";
    reg = <0x0b018000 0x1000>;
    interrupts = <0 15 IRQ_TYPE_EDGE_RISING>;
    clocks = <&xo_board>;
    clock-names = "ref";
    vdd-apc-supply = <&pms405_s3>;
    #power-domain-cells = <0>;
    operating-points-v2 = <&cpr_opp_table>;
    acc-syscon = <&tcsr>;

    nvmem-cells = <&cpr_efuse_quot_offset1>,
        <&cpr_efuse_quot_offset2>,
        <&cpr_efuse_quot_offset3>,
        <&cpr_efuse_init_voltage1>,
        <&cpr_efuse_init_voltage2>,
        <&cpr_efuse_init_voltage3>,
        <&cpr_efuse_quot1>,
        <&cpr_efuse_quot2>,
        <&cpr_efuse_quot3>,
        <&cpr_efuse_ring1>,
        <&cpr_efuse_ring2>,
        <&cpr_efuse_ring3>,
        <&cpr_efuse_revision>;
    nvmem-cell-names = "cpr_quotient_offset1",
        "cpr_quotient_offset2",
        "cpr_quotient_offset3",
        "cpr_init_voltage1",
        "cpr_init_voltage2",
        "cpr_init_voltage3",
        "cpr_quotient1",
        "cpr_quotient2",
        "cpr_quotient3",
        "cpr_ring_osc1",
        "cpr_ring_osc2",
        "cpr_ring_osc3",
        "cpr_fuse_revision";
};

Source notes #

Annotations retained from the schema source

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

Edit this page