Path: blob/master/Documentation/devicetree/bindings/cpufreq/apple,cluster-cpufreq.yaml
29282 views
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause1%YAML 1.22---3$id: http://devicetree.org/schemas/cpufreq/apple,cluster-cpufreq.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Apple SoC cluster cpufreq device78maintainers:9- Hector Martin <marcan@marcan.st>1011description: |12Apple SoCs (e.g. M1) have a per-cpu-cluster DVFS controller that is part of13the cluster management register block. This binding uses the standard14operating-points-v2 table to define the CPU performance states, with the15opp-level property specifying the hardware p-state index for that level.1617properties:18compatible:19oneOf:20- items:21- enum:22- apple,t8103-cluster-cpufreq23- apple,t8112-cluster-cpufreq24- const: apple,cluster-cpufreq25- items:26- enum:27- apple,s8000-cluster-cpufreq28- apple,t8010-cluster-cpufreq29- apple,t8015-cluster-cpufreq30- apple,t6000-cluster-cpufreq31- const: apple,t8103-cluster-cpufreq32- const: apple,cluster-cpufreq33- items:34- const: apple,t7000-cluster-cpufreq35- const: apple,s5l8960x-cluster-cpufreq36- const: apple,s5l8960x-cluster-cpufreq37- items:38- const: apple,t6020-cluster-cpufreq39- const: apple,t8112-cluster-cpufreq4041reg:42maxItems: 14344'#performance-domain-cells':45const: 04647required:48- compatible49- reg50- '#performance-domain-cells'5152additionalProperties: false5354examples:55- |56// This example shows a single CPU per domain and 2 domains,57// with two p-states per domain.58// Shipping hardware has 2-4 CPUs per domain and 2-6 domains.59cpus {60#address-cells = <2>;61#size-cells = <0>;6263cpu@0 {64compatible = "apple,icestorm";65device_type = "cpu";66reg = <0x0 0x0>;67operating-points-v2 = <&ecluster_opp>;68performance-domains = <&cpufreq_e>;69};7071cpu@10100 {72compatible = "apple,firestorm";73device_type = "cpu";74reg = <0x0 0x10100>;75operating-points-v2 = <&pcluster_opp>;76performance-domains = <&cpufreq_p>;77};78};7980ecluster_opp: opp-table-0 {81compatible = "operating-points-v2";82opp-shared;8384opp01 {85opp-hz = /bits/ 64 <600000000>;86opp-level = <1>;87clock-latency-ns = <7500>;88};89opp02 {90opp-hz = /bits/ 64 <972000000>;91opp-level = <2>;92clock-latency-ns = <22000>;93};94};9596pcluster_opp: opp-table-1 {97compatible = "operating-points-v2";98opp-shared;99100opp01 {101opp-hz = /bits/ 64 <600000000>;102opp-level = <1>;103clock-latency-ns = <8000>;104};105opp02 {106opp-hz = /bits/ 64 <828000000>;107opp-level = <2>;108clock-latency-ns = <19000>;109};110};111112soc {113#address-cells = <2>;114#size-cells = <2>;115116cpufreq_e: performance-controller@210e20000 {117compatible = "apple,t8103-cluster-cpufreq", "apple,cluster-cpufreq";118reg = <0x2 0x10e20000 0 0x1000>;119#performance-domain-cells = <0>;120};121122cpufreq_p: performance-controller@211e20000 {123compatible = "apple,t8103-cluster-cpufreq", "apple,cluster-cpufreq";124reg = <0x2 0x11e20000 0 0x1000>;125#performance-domain-cells = <0>;126};127};128129130