Path: blob/master/Documentation/devicetree/bindings/cpufreq/airoha,en7581-cpufreq.yaml
26308 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/cpufreq/airoha,en7581-cpufreq.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Airoha EN7581 CPUFreq78maintainers:9- Christian Marangi <ansuelsmth@gmail.com>1011description: |12On newer Airoha SoC, CPU Frequency is scaled indirectly with SMC commands13to ATF.1415A virtual clock is exposed. This virtual clock is a get-only clock and16is used to expose the current global CPU clock. The frequency info comes17by the output of the SMC command that reports the clock in MHz.1819The SMC sets the CPU clock by providing an index, this is modelled as20performance states in a power domain.2122CPUs can't be individually scaled as the CPU frequency is shared across23all CPUs and is global.2425properties:26compatible:27const: airoha,en7581-cpufreq2829'#clock-cells':30const: 03132'#power-domain-cells':33const: 03435operating-points-v2: true3637required:38- compatible39- '#clock-cells'40- '#power-domain-cells'41- operating-points-v24243additionalProperties: false4445examples:46- |47performance-domain {48compatible = "airoha,en7581-cpufreq";4950operating-points-v2 = <&cpu_smcc_opp_table>;5152#power-domain-cells = <0>;53#clock-cells = <0>;54};555657