Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
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
7title: Airoha EN7581 CPUFreq
8
9maintainers:
10 - Christian Marangi <ansuelsmth@gmail.com>
11
12description: |
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
26properties:
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
38required:
39 - compatible
40 - '#clock-cells'
41 - '#power-domain-cells'
42 - operating-points-v2
43
44additionalProperties: false
45
46examples:
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 };