From 262e263dae4c3f3bdbd73acd6d4aed66f304e159 Mon Sep 17 00:00:00 2001 From: Erik Bourget Date: Thu, 26 Nov 2026 18:40:42 -0500 Subject: [PATCH 1/2] arm64: dts: apple: mark T8103 and T600x CPU OPP tables opp-shared All cores within each E- or P-cluster on T8103 and T600x share a single clock/voltage domain. Add opp-shared to their CPU OPP tables to match the newer Apple Silicon DTSIs and avoid duplicating per-CPU OPP tables. Signed-off-by: Erik Bourget --- arch/arm64/boot/dts/apple/t600x-common.dtsi | 2 ++ arch/arm64/boot/dts/apple/t8103.dtsi | 2 ++ 2 files changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/apple/t600x-common.dtsi b/arch/arm64/boot/dts/apple/t600x-common.dtsi index f41cc72b38d17..f05ba5029373b 100644 --- a/arch/arm64/boot/dts/apple/t600x-common.dtsi +++ b/arch/arm64/boot/dts/apple/t600x-common.dtsi @@ -227,6 +227,7 @@ icestorm_opp: opp-table-0 { compatible = "operating-points-v2"; + opp-shared; opp01 { opp-hz = /bits/ 64 <600000000>; @@ -262,6 +263,7 @@ firestorm_opp: opp-table-1 { compatible = "operating-points-v2"; + opp-shared; opp01 { opp-hz = /bits/ 64 <600000000>; diff --git a/arch/arm64/boot/dts/apple/t8103.dtsi b/arch/arm64/boot/dts/apple/t8103.dtsi index 6e420d4c5ffab..91a1721d8abd0 100644 --- a/arch/arm64/boot/dts/apple/t8103.dtsi +++ b/arch/arm64/boot/dts/apple/t8103.dtsi @@ -206,6 +206,7 @@ ecluster_opp: opp-table-0 { compatible = "operating-points-v2"; + opp-shared; opp01 { opp-hz = /bits/ 64 <600000000>; @@ -241,6 +242,7 @@ pcluster_opp: opp-table-1 { compatible = "operating-points-v2"; + opp-shared; opp01 { opp-hz = /bits/ 64 <600000000>; From 6b5fe9738c26cc6dd0dd265c4ced508ff1cd6c70 Mon Sep 17 00:00:00 2001 From: Erik Bourget Date: Fri, 27 Nov 2026 13:27:11 -0500 Subject: [PATCH 2/2] arm64: dts: apple: t600x: split CPU OPP tables per DVFS domain In t600x-common.dtsi and t6002.dtsi, independent E- and P-cluster DVFS domains pointed at the same icestorm_opp and firestorm_opp nodes. Because opp-shared asserts that all consumers of a table node switch DVFS state together, sharing one node across independent clusters violates the opp-v2 binding. Move the shared Icestorm and Firestorm OPP entry definitions into t600x-icestorm-opp.dtsi and t600x-firestorm-opp.dtsi, and give each coupled cluster DVFS domain (E0, P0, P1, plus E1, P2, P3 on t6002) its own opp-shared table node. Signed-off-by: Erik Bourget --- arch/arm64/boot/dts/apple/t6002.dtsi | 38 +++-- arch/arm64/boot/dts/apple/t600x-common.dtsi | 155 +++--------------- .../boot/dts/apple/t600x-firestorm-opp.dtsi | 100 +++++++++++ .../boot/dts/apple/t600x-icestorm-opp.dtsi | 37 +++++ 4 files changed, 184 insertions(+), 146 deletions(-) create mode 100644 arch/arm64/boot/dts/apple/t600x-firestorm-opp.dtsi create mode 100644 arch/arm64/boot/dts/apple/t600x-icestorm-opp.dtsi diff --git a/arch/arm64/boot/dts/apple/t6002.dtsi b/arch/arm64/boot/dts/apple/t6002.dtsi index 18518c0be3b41..74f5bb214d819 100644 --- a/arch/arm64/boot/dts/apple/t6002.dtsi +++ b/arch/arm64/boot/dts/apple/t6002.dtsi @@ -79,7 +79,7 @@ next-level-cache = <&l2_cache_3>; i-cache-size = <0x20000>; d-cache-size = <0x10000>; - operating-points-v2 = <&icestorm_opp>; + operating-points-v2 = <&icestorm_e1_opp>; capacity-dmips-mhz = <714>; performance-domains = <&cpufreq_e_die1>; }; @@ -93,7 +93,7 @@ next-level-cache = <&l2_cache_3>; i-cache-size = <0x20000>; d-cache-size = <0x10000>; - operating-points-v2 = <&icestorm_opp>; + operating-points-v2 = <&icestorm_e1_opp>; capacity-dmips-mhz = <714>; performance-domains = <&cpufreq_e_die1>; }; @@ -107,7 +107,7 @@ next-level-cache = <&l2_cache_4>; i-cache-size = <0x30000>; d-cache-size = <0x20000>; - operating-points-v2 = <&firestorm_opp>; + operating-points-v2 = <&firestorm_p2_opp>; capacity-dmips-mhz = <1024>; performance-domains = <&cpufreq_p0_die1>; }; @@ -121,7 +121,7 @@ next-level-cache = <&l2_cache_4>; i-cache-size = <0x30000>; d-cache-size = <0x20000>; - operating-points-v2 = <&firestorm_opp>; + operating-points-v2 = <&firestorm_p2_opp>; capacity-dmips-mhz = <1024>; performance-domains = <&cpufreq_p0_die1>; }; @@ -135,7 +135,7 @@ next-level-cache = <&l2_cache_4>; i-cache-size = <0x30000>; d-cache-size = <0x20000>; - operating-points-v2 = <&firestorm_opp>; + operating-points-v2 = <&firestorm_p2_opp>; capacity-dmips-mhz = <1024>; performance-domains = <&cpufreq_p0_die1>; }; @@ -149,7 +149,7 @@ next-level-cache = <&l2_cache_4>; i-cache-size = <0x30000>; d-cache-size = <0x20000>; - operating-points-v2 = <&firestorm_opp>; + operating-points-v2 = <&firestorm_p2_opp>; capacity-dmips-mhz = <1024>; performance-domains = <&cpufreq_p0_die1>; }; @@ -163,7 +163,7 @@ next-level-cache = <&l2_cache_5>; i-cache-size = <0x30000>; d-cache-size = <0x20000>; - operating-points-v2 = <&firestorm_opp>; + operating-points-v2 = <&firestorm_p3_opp>; capacity-dmips-mhz = <1024>; performance-domains = <&cpufreq_p1_die1>; }; @@ -177,7 +177,7 @@ next-level-cache = <&l2_cache_5>; i-cache-size = <0x30000>; d-cache-size = <0x20000>; - operating-points-v2 = <&firestorm_opp>; + operating-points-v2 = <&firestorm_p3_opp>; capacity-dmips-mhz = <1024>; performance-domains = <&cpufreq_p1_die1>; }; @@ -191,7 +191,7 @@ next-level-cache = <&l2_cache_5>; i-cache-size = <0x30000>; d-cache-size = <0x20000>; - operating-points-v2 = <&firestorm_opp>; + operating-points-v2 = <&firestorm_p3_opp>; capacity-dmips-mhz = <1024>; performance-domains = <&cpufreq_p1_die1>; }; @@ -205,7 +205,7 @@ next-level-cache = <&l2_cache_5>; i-cache-size = <0x30000>; d-cache-size = <0x20000>; - operating-points-v2 = <&firestorm_opp>; + operating-points-v2 = <&firestorm_p3_opp>; capacity-dmips-mhz = <1024>; performance-domains = <&cpufreq_p1_die1>; }; @@ -232,6 +232,24 @@ }; }; + icestorm_e1_opp: opp-table-e1 { + compatible = "operating-points-v2"; + opp-shared; +#include "t600x-icestorm-opp.dtsi" + }; + + firestorm_p2_opp: opp-table-p2 { + compatible = "operating-points-v2"; + opp-shared; +#include "t600x-firestorm-opp.dtsi" + }; + + firestorm_p3_opp: opp-table-p3 { + compatible = "operating-points-v2"; + opp-shared; +#include "t600x-firestorm-opp.dtsi" + }; + die0: soc@200000000 { compatible = "simple-bus"; #address-cells = <2>; diff --git a/arch/arm64/boot/dts/apple/t600x-common.dtsi b/arch/arm64/boot/dts/apple/t600x-common.dtsi index f05ba5029373b..4d620c00f9313 100644 --- a/arch/arm64/boot/dts/apple/t600x-common.dtsi +++ b/arch/arm64/boot/dts/apple/t600x-common.dtsi @@ -72,7 +72,7 @@ next-level-cache = <&l2_cache_0>; i-cache-size = <0x20000>; d-cache-size = <0x10000>; - operating-points-v2 = <&icestorm_opp>; + operating-points-v2 = <&icestorm_e0_opp>; capacity-dmips-mhz = <714>; performance-domains = <&cpufreq_e>; }; @@ -86,7 +86,7 @@ next-level-cache = <&l2_cache_0>; i-cache-size = <0x20000>; d-cache-size = <0x10000>; - operating-points-v2 = <&icestorm_opp>; + operating-points-v2 = <&icestorm_e0_opp>; capacity-dmips-mhz = <714>; performance-domains = <&cpufreq_e>; }; @@ -100,7 +100,7 @@ next-level-cache = <&l2_cache_1>; i-cache-size = <0x30000>; d-cache-size = <0x20000>; - operating-points-v2 = <&firestorm_opp>; + operating-points-v2 = <&firestorm_p0_opp>; capacity-dmips-mhz = <1024>; performance-domains = <&cpufreq_p0>; }; @@ -114,7 +114,7 @@ next-level-cache = <&l2_cache_1>; i-cache-size = <0x30000>; d-cache-size = <0x20000>; - operating-points-v2 = <&firestorm_opp>; + operating-points-v2 = <&firestorm_p0_opp>; capacity-dmips-mhz = <1024>; performance-domains = <&cpufreq_p0>; }; @@ -128,7 +128,7 @@ next-level-cache = <&l2_cache_1>; i-cache-size = <0x30000>; d-cache-size = <0x20000>; - operating-points-v2 = <&firestorm_opp>; + operating-points-v2 = <&firestorm_p0_opp>; capacity-dmips-mhz = <1024>; performance-domains = <&cpufreq_p0>; }; @@ -142,7 +142,7 @@ next-level-cache = <&l2_cache_1>; i-cache-size = <0x30000>; d-cache-size = <0x20000>; - operating-points-v2 = <&firestorm_opp>; + operating-points-v2 = <&firestorm_p0_opp>; capacity-dmips-mhz = <1024>; performance-domains = <&cpufreq_p0>; }; @@ -156,7 +156,7 @@ next-level-cache = <&l2_cache_2>; i-cache-size = <0x30000>; d-cache-size = <0x20000>; - operating-points-v2 = <&firestorm_opp>; + operating-points-v2 = <&firestorm_p1_opp>; capacity-dmips-mhz = <1024>; performance-domains = <&cpufreq_p1>; }; @@ -170,7 +170,7 @@ next-level-cache = <&l2_cache_2>; i-cache-size = <0x30000>; d-cache-size = <0x20000>; - operating-points-v2 = <&firestorm_opp>; + operating-points-v2 = <&firestorm_p1_opp>; capacity-dmips-mhz = <1024>; performance-domains = <&cpufreq_p1>; }; @@ -184,7 +184,7 @@ next-level-cache = <&l2_cache_2>; i-cache-size = <0x30000>; d-cache-size = <0x20000>; - operating-points-v2 = <&firestorm_opp>; + operating-points-v2 = <&firestorm_p1_opp>; capacity-dmips-mhz = <1024>; performance-domains = <&cpufreq_p1>; }; @@ -198,7 +198,7 @@ next-level-cache = <&l2_cache_2>; i-cache-size = <0x30000>; d-cache-size = <0x20000>; - operating-points-v2 = <&firestorm_opp>; + operating-points-v2 = <&firestorm_p1_opp>; capacity-dmips-mhz = <1024>; performance-domains = <&cpufreq_p1>; }; @@ -225,139 +225,22 @@ }; }; - icestorm_opp: opp-table-0 { + icestorm_e0_opp: opp-table-e0 { compatible = "operating-points-v2"; opp-shared; - - opp01 { - opp-hz = /bits/ 64 <600000000>; - opp-level = <1>; - clock-latency-ns = <7500>; - opp-microwatt = <47296>; - }; - opp02 { - opp-hz = /bits/ 64 <972000000>; - opp-level = <2>; - clock-latency-ns = <23000>; - opp-microwatt = <99715>; - }; - opp03 { - opp-hz = /bits/ 64 <1332000000>; - opp-level = <3>; - clock-latency-ns = <29000>; - opp-microwatt = <188860>; - }; - opp04 { - opp-hz = /bits/ 64 <1704000000>; - opp-level = <4>; - clock-latency-ns = <40000>; - opp-microwatt = <288891>; - }; - opp05 { - opp-hz = /bits/ 64 <2064000000>; - opp-level = <5>; - clock-latency-ns = <50000>; - opp-microwatt = <412979>; - }; +#include "t600x-icestorm-opp.dtsi" }; - firestorm_opp: opp-table-1 { + firestorm_p0_opp: opp-table-p0 { compatible = "operating-points-v2"; opp-shared; +#include "t600x-firestorm-opp.dtsi" + }; - opp01 { - opp-hz = /bits/ 64 <600000000>; - opp-level = <1>; - clock-latency-ns = <8000>; - opp-microwatt = <290230>; - }; - opp02 { - opp-hz = /bits/ 64 <828000000>; - opp-level = <2>; - clock-latency-ns = <18000>; - opp-microwatt = <449013>; - }; - opp03 { - opp-hz = /bits/ 64 <1056000000>; - opp-level = <3>; - clock-latency-ns = <19000>; - opp-microwatt = <647097>; - }; - opp04 { - opp-hz = /bits/ 64 <1296000000>; - opp-level = <4>; - clock-latency-ns = <23000>; - opp-microwatt = <865620>; - }; - opp05 { - opp-hz = /bits/ 64 <1524000000>; - opp-level = <5>; - clock-latency-ns = <24000>; - opp-microwatt = <1112838>; - }; - opp06 { - opp-hz = /bits/ 64 <1752000000>; - opp-level = <6>; - clock-latency-ns = <28000>; - opp-microwatt = <1453271>; - }; - opp07 { - opp-hz = /bits/ 64 <1980000000>; - opp-level = <7>; - clock-latency-ns = <31000>; - opp-microwatt = <1776667>; - }; - opp08 { - opp-hz = /bits/ 64 <2208000000>; - opp-level = <8>; - clock-latency-ns = <45000>; - opp-microwatt = <2366690>; - }; - opp09 { - opp-hz = /bits/ 64 <2448000000>; - opp-level = <9>; - clock-latency-ns = <49000>; - opp-microwatt = <2892193>; - }; - opp10 { - opp-hz = /bits/ 64 <2676000000>; - opp-level = <10>; - clock-latency-ns = <53000>; - opp-microwatt = <3475417>; - }; - opp11 { - opp-hz = /bits/ 64 <2904000000>; - opp-level = <11>; - clock-latency-ns = <56000>; - opp-microwatt = <3959410>; - }; - opp12 { - opp-hz = /bits/ 64 <3036000000>; - opp-level = <12>; - clock-latency-ns = <56000>; - opp-microwatt = <4540620>; - }; - opp13 { - opp-hz = /bits/ 64 <3132000000>; - opp-level = <13>; - clock-latency-ns = <56000>; - opp-microwatt = <4745031>; - turbo-mode; - }; - opp14 { - opp-hz = /bits/ 64 <3168000000>; - opp-level = <14>; - clock-latency-ns = <56000>; - opp-microwatt = <4822390>; - turbo-mode; - }; - opp15 { - opp-hz = /bits/ 64 <3228000000>; - opp-level = <15>; - clock-latency-ns = <56000>; - opp-microwatt = <4951324>; - turbo-mode; - }; + firestorm_p1_opp: opp-table-p1 { + compatible = "operating-points-v2"; + opp-shared; +#include "t600x-firestorm-opp.dtsi" }; gpu_opp: opp-table-gpu { diff --git a/arch/arm64/boot/dts/apple/t600x-firestorm-opp.dtsi b/arch/arm64/boot/dts/apple/t600x-firestorm-opp.dtsi new file mode 100644 index 0000000000000..982afa58b8f45 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t600x-firestorm-opp.dtsi @@ -0,0 +1,100 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Operating points for Apple T600x Firestorm (P-cluster) cores. + * + * Copyright The Asahi Linux Contributors + */ + + opp01 { + opp-hz = /bits/ 64 <600000000>; + opp-level = <1>; + clock-latency-ns = <8000>; + opp-microwatt = <290230>; + }; + opp02 { + opp-hz = /bits/ 64 <828000000>; + opp-level = <2>; + clock-latency-ns = <18000>; + opp-microwatt = <449013>; + }; + opp03 { + opp-hz = /bits/ 64 <1056000000>; + opp-level = <3>; + clock-latency-ns = <19000>; + opp-microwatt = <647097>; + }; + opp04 { + opp-hz = /bits/ 64 <1296000000>; + opp-level = <4>; + clock-latency-ns = <23000>; + opp-microwatt = <865620>; + }; + opp05 { + opp-hz = /bits/ 64 <1524000000>; + opp-level = <5>; + clock-latency-ns = <24000>; + opp-microwatt = <1112838>; + }; + opp06 { + opp-hz = /bits/ 64 <1752000000>; + opp-level = <6>; + clock-latency-ns = <28000>; + opp-microwatt = <1453271>; + }; + opp07 { + opp-hz = /bits/ 64 <1980000000>; + opp-level = <7>; + clock-latency-ns = <31000>; + opp-microwatt = <1776667>; + }; + opp08 { + opp-hz = /bits/ 64 <2208000000>; + opp-level = <8>; + clock-latency-ns = <45000>; + opp-microwatt = <2366690>; + }; + opp09 { + opp-hz = /bits/ 64 <2448000000>; + opp-level = <9>; + clock-latency-ns = <49000>; + opp-microwatt = <2892193>; + }; + opp10 { + opp-hz = /bits/ 64 <2676000000>; + opp-level = <10>; + clock-latency-ns = <53000>; + opp-microwatt = <3475417>; + }; + opp11 { + opp-hz = /bits/ 64 <2904000000>; + opp-level = <11>; + clock-latency-ns = <56000>; + opp-microwatt = <3959410>; + }; + opp12 { + opp-hz = /bits/ 64 <3036000000>; + opp-level = <12>; + clock-latency-ns = <56000>; + opp-microwatt = <4540620>; + }; + opp13 { + opp-hz = /bits/ 64 <3132000000>; + opp-level = <13>; + clock-latency-ns = <56000>; + opp-microwatt = <4745031>; + turbo-mode; + }; + opp14 { + opp-hz = /bits/ 64 <3168000000>; + opp-level = <14>; + clock-latency-ns = <56000>; + opp-microwatt = <4822390>; + turbo-mode; + }; + opp15 { + opp-hz = /bits/ 64 <3228000000>; + opp-level = <15>; + clock-latency-ns = <56000>; + opp-microwatt = <4951324>; + turbo-mode; + }; diff --git a/arch/arm64/boot/dts/apple/t600x-icestorm-opp.dtsi b/arch/arm64/boot/dts/apple/t600x-icestorm-opp.dtsi new file mode 100644 index 0000000000000..1f9500e9ab728 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t600x-icestorm-opp.dtsi @@ -0,0 +1,37 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Operating points for Apple T600x Icestorm (E-cluster) cores. + * + * Copyright The Asahi Linux Contributors + */ + + opp01 { + opp-hz = /bits/ 64 <600000000>; + opp-level = <1>; + clock-latency-ns = <7500>; + opp-microwatt = <47296>; + }; + opp02 { + opp-hz = /bits/ 64 <972000000>; + opp-level = <2>; + clock-latency-ns = <23000>; + opp-microwatt = <99715>; + }; + opp03 { + opp-hz = /bits/ 64 <1332000000>; + opp-level = <3>; + clock-latency-ns = <29000>; + opp-microwatt = <188860>; + }; + opp04 { + opp-hz = /bits/ 64 <1704000000>; + opp-level = <4>; + clock-latency-ns = <40000>; + opp-microwatt = <288891>; + }; + opp05 { + opp-hz = /bits/ 64 <2064000000>; + opp-level = <5>; + clock-latency-ns = <50000>; + opp-microwatt = <412979>; + };