Peios Learn
Documentation

Peios

Peios Peios Kernel Universal Directory Project

Developer Tools

Trail Acta Provium clackatoo CAF GCSL Pekit

Applications

Framewright

Standards and Conventions

Standards and Conventions Peios Specifications
Peios Kernel

Dvfs bindings

Single-page view · as markdown

Generic performance domains

Peios Kernel / Hardware and drivers / Device-tree binding reference / Dvfs bindings

Schema identifier ($id): "http://devicetree.org/schemas/dvfs/performance-domain.yaml#"

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

Maintainers (maintainers): "Sudeep Holla <sudeep.holla@arm.com>"

This binding is intended for performance management of groups of devices or CPUs that run in the same performance domain. Performance domains must not be confused with power domains. A performance domain is defined by a set of devices that always have to run at the same performance level. For a given performance domain, there is a single point of control that affects all the devices in the domain, making it impossible to set the performance level of an individual device in the domain independently from other devices in that domain. For example, a set of CPUs that share a voltage domain, and have a common frequency control, is said to be in the same performance domain.

This device tree binding can be used to bind performance domain consumer devices with their performance domains provided by performance domain providers. A performance domain provider can be represented by any node in the device tree and can provide one or more performance domains. A consumer node can refer to the provider by a phandle and a set of phandle arguments (so called performance domain specifiers) of length specified by the \#performance-domain-cells property in the performance domain provider node.

Automatic schema selection (select) #

true

This selection rule always matches.

Properties and child nodes (properties) #

#performance-domain-cells — not listed as required here #

Number of cells in a performance domain specifier. Typically 0 for nodes representing a single performance domain and 1 for nodes providing multiple performance domains (e.g. performance controllers), but can be any value as specified by device tree binding documentation of particular provider.

Allowed values (enum): 0, 1

performance-domains — not listed as required here #

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

A phandle and performance domain specifier as defined by bindings of the performance controller/provider specified by phandle.

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

true

Allowed by this rule.

Examples (examples) #

soc {
    #address-cells = <2>;
    #size-cells = <2>;

    performance: performance-controller@11bc00 {
        compatible = "mediatek,cpufreq-hw";
        reg = <0 0x0011bc10 0 0x120>, <0 0x0011bd30 0 0x120>;

        #performance-domain-cells = <1>;
    };
};

// The node above defines a performance controller that is a performance
// domain provider and expects one cell as its phandle argument.

cpus {
    #address-cells = <2>;
    #size-cells = <0>;

    cpu@0 {
        device_type = "cpu";
        compatible = "arm,cortex-a57";
        reg = <0x0 0x0>;
        performance-domains = <&performance 1>;
    };
};

Source notes #

Annotations retained from the schema source

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

Peios Learn — documentation for Peios software.

Built with Trail.