Airoha EN7581 CPUFreq
Schema identifier ($id): "http://devicetree.org/schemas/cpufreq/airoha,en7581-cpufreq.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Christian Marangi <ansuelsmth@gmail.com>"
On newer Airoha SoC, CPU Frequency is scaled indirectly with SMC commands to ATF.
A virtual clock is exposed. This virtual clock is a get-only clock and is used to expose the current global CPU clock. The frequency info comes by the output of the SMC command that reports the clock in MHz.
The SMC sets the CPU clock by providing an index, this is modelled as performance states in a power domain.
CPUs can't be individually scaled as the CPU frequency is shared across all CPUs and is global.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "airoha,en7581-cpufreq"
#clock-cells — required here #
Exact value (const): 0
#power-domain-cells — required here #
Exact value (const): 0
operating-points-v2 — required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "#clock-cells", "#power-domain-cells", "operating-points-v2"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
performance-domain {
compatible = "airoha,en7581-cpufreq";
operating-points-v2 = <&cpu_smcc_opp_table>;
#power-domain-cells = <0>;
#clock-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)