TI CPU OPP (Operating Performance Points)

Schema identifier ($id): "http://devicetree.org/schemas/opp/operating-points-v2-ti-cpu.yaml#"

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

TI SoCs, like those in the AM335x, AM437x, AM57xx, AM62x, and DRA7xx families, the CPU frequencies subset and the voltage value of each OPP vary based on the silicon variant used. The data sheet sections corresponding to "Operating Performance Points" describe the frequency and voltage values based on device type and speed bin information blown in corresponding eFuse bits as referred to by the Technical Reference Manual. This document extends the operating-points-v2 binding by providing the hardware description for the scheme mentioned above.

Maintainers (maintainers): "Dhruva Gole <d-gole@ti.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): opp-v2-base.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "operating-points-v2-ti-cpu"

syscon — required here #

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

points to syscon node representing the control module register space of the SoC.

opp-shared — not listed as required here #

true — No constraints added by this property rule.

Properties matching a name pattern (patternProperties) #

^opp(-?[0-9]+)*$ — name matches this regular expression #

Value type (type): "object"

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

false

Not allowed by this rule.

Properties and child nodes (properties) #

clock-latency-ns — not listed as required here

true — No constraints added by this property rule.

opp-hz — required here

true — No constraints added by this property rule.

opp-microvolt — not listed as required here

true — No constraints added by this property rule.

opp-supported-hw — required here

Array item rules (items)

Array item rules (items)

Item 1

The revision of the SoC the OPP is supported by. This can be easily obtained from the datasheet of the part being ordered/used. For example, it will be 0x01 for SR1.0

Item 2

The eFuse bits that indicate the particular OPP is available. The device datasheet has a table talking about Device Speed Grades. This table is to be sorted with only the unique elements of the MAXIMUM OPERATING FREQUENCY starting from the first row which tells the lowest OPP, to the highest. The corresponding bits need to be set based on N elements of speed grade the device supports. So, if there are 3 possible unique MAXIMUM OPERATING FREQUENCY in the table, then BIT(0) | (1) | (2) will be set, which means the value shall be 0x7.

opp-suspend — not listed as required here

true — No constraints added by this property rule.

turbo-mode — not listed as required here

true — No constraints added by this property rule.

Required in this object (required): "opp-hz", "opp-supported-hw"

Required in this object (required): "compatible", "syscon"

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

false

Not allowed by this rule.

Examples (examples) #

opp-table {
    compatible = "operating-points-v2-ti-cpu";
    syscon = <&scm_conf>;

    opp-300000000 {
        opp-hz = /bits/ 64 <300000000>;
        opp-microvolt = <1100000 1078000 1122000>;
        opp-supported-hw = <0x06 0x0020>;
        opp-suspend;
    };

    opp-500000000 {
        opp-hz = /bits/ 64 <500000000>;
        opp-microvolt = <1100000 1078000 1122000>;
        opp-supported-hw = <0x01 0xFFFF>;
    };

    opp-600000000 {
        opp-hz = /bits/ 64 <600000000>;
        opp-microvolt = <1100000 1078000 1122000>;
        opp-supported-hw = <0x06 0x0040>;
    };

    opp-1000000000 {
        opp-hz = /bits/ 64 <1000000000>;
        opp-microvolt = <1325000 1298500 1351500>;
        opp-supported-hw = <0x04 0x0200>;
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page