Skip to content

Commit ab16dfb

Browse files
Ansuelvireshk
authored andcommitted
dt-bindings: cpufreq: Document support for Airoha EN7581 CPUFreq
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. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
1 parent f1f010c commit ab16dfb

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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+
};

0 commit comments

Comments
 (0)