Path: blob/main/sys/contrib/device-tree/Bindings/cpufreq/apple,cluster-cpufreq.yaml
48375 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- const: apple,t6000-cluster-cpufreq27- const: apple,t8103-cluster-cpufreq28- const: apple,cluster-cpufreq2930reg:31maxItems: 13233'#performance-domain-cells':34const: 03536required:37- compatible38- reg39- '#performance-domain-cells'4041additionalProperties: false4243examples:44- |45// This example shows a single CPU per domain and 2 domains,46// with two p-states per domain.47// Shipping hardware has 2-4 CPUs per domain and 2-6 domains.48cpus {49#address-cells = <2>;50#size-cells = <0>;5152cpu@0 {53compatible = "apple,icestorm";54device_type = "cpu";55reg = <0x0 0x0>;56operating-points-v2 = <&ecluster_opp>;57performance-domains = <&cpufreq_e>;58};5960cpu@10100 {61compatible = "apple,firestorm";62device_type = "cpu";63reg = <0x0 0x10100>;64operating-points-v2 = <&pcluster_opp>;65performance-domains = <&cpufreq_p>;66};67};6869ecluster_opp: opp-table-0 {70compatible = "operating-points-v2";71opp-shared;7273opp01 {74opp-hz = /bits/ 64 <600000000>;75opp-level = <1>;76clock-latency-ns = <7500>;77};78opp02 {79opp-hz = /bits/ 64 <972000000>;80opp-level = <2>;81clock-latency-ns = <22000>;82};83};8485pcluster_opp: opp-table-1 {86compatible = "operating-points-v2";87opp-shared;8889opp01 {90opp-hz = /bits/ 64 <600000000>;91opp-level = <1>;92clock-latency-ns = <8000>;93};94opp02 {95opp-hz = /bits/ 64 <828000000>;96opp-level = <2>;97clock-latency-ns = <19000>;98};99};100101soc {102#address-cells = <2>;103#size-cells = <2>;104105cpufreq_e: performance-controller@210e20000 {106compatible = "apple,t8103-cluster-cpufreq", "apple,cluster-cpufreq";107reg = <0x2 0x10e20000 0 0x1000>;108#performance-domain-cells = <0>;109};110111cpufreq_p: performance-controller@211e20000 {112compatible = "apple,t8103-cluster-cpufreq", "apple,cluster-cpufreq";113reg = <0x2 0x11e20000 0 0x1000>;114#performance-domain-cells = <0>;115};116};117118119