Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/Documentation/devicetree/bindings/cpufreq/airoha,en7581-cpufreq.yaml
26308 views
1
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2
%YAML 1.2
3
---
4
$id: http://devicetree.org/schemas/cpufreq/airoha,en7581-cpufreq.yaml#
5
$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7
title: Airoha EN7581 CPUFreq
8
9
maintainers:
10
- Christian Marangi <ansuelsmth@gmail.com>
11
12
description: |
13
On newer Airoha SoC, CPU Frequency is scaled indirectly with SMC commands
14
to ATF.
15
16
A virtual clock is exposed. This virtual clock is a get-only clock and
17
is used to expose the current global CPU clock. The frequency info comes
18
by the output of the SMC command that reports the clock in MHz.
19
20
The SMC sets the CPU clock by providing an index, this is modelled as
21
performance states in a power domain.
22
23
CPUs can't be individually scaled as the CPU frequency is shared across
24
all CPUs and is global.
25
26
properties:
27
compatible:
28
const: airoha,en7581-cpufreq
29
30
'#clock-cells':
31
const: 0
32
33
'#power-domain-cells':
34
const: 0
35
36
operating-points-v2: true
37
38
required:
39
- compatible
40
- '#clock-cells'
41
- '#power-domain-cells'
42
- operating-points-v2
43
44
additionalProperties: false
45
46
examples:
47
- |
48
performance-domain {
49
compatible = "airoha,en7581-cpufreq";
50
51
operating-points-v2 = <&cpu_smcc_opp_table>;
52
53
#power-domain-cells = <0>;
54
#clock-cells = <0>;
55
};
56
57