* [PATCH 0/4] arm64: dts: apple: Add CPU frequency scaling and OPPs for M3 family
@ 2026-11-21 11:42 Michael Reeves via B4 Relay
2026-11-21 11:42 ` [PATCH 1/4] dt-bindings: cpufreq: apple,cluster-cpufreq: Add M3 family compatibles Michael Reeves via B4 Relay
` (4 more replies)
0 siblings, 5 replies; 9+ messages in thread
From: Michael Reeves via B4 Relay @ 2026-11-21 11:42 UTC (permalink / raw)
To: Sven Peter, Janne Grunau, Neal Gompa, Rafael J. Wysocki,
Viresh Kumar, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Hector Martin
Cc: asahi, linux-arm-kernel, linux-pm, devicetree, linux-kernel,
Michael Reeves, Yureka Lilian
Hi folks,
This series adds CPU frequency scaling support, operating performance
point tables, and asymmetric CPU capacity values for the following
Apple M3 family SoCs:
- T8122 (M3)
- T6030 (M3 Pro)
- T6031 / T6034 (M3 Max)
On T6032 (M3 Ultra), the cores on the first die inherit this support
from M3 Max, however those on the second are not supported yet.
This series is based on apple-soc/dt-7.5.
Thanks,
Michael
Signed-off-by: Michael Reeves <michael.reeves077@gmail.com>
---
Janne Grunau (2):
arm64: dts: apple: t8122: Add CPU frequency scaling and OPPs
arm64: dts: apple: t6030: Add CPU frequency scaling and OPPs
Michael Reeves (1):
dt-bindings: cpufreq: apple,cluster-cpufreq: Add M3 family compatibles
Yureka Lilian (1):
arm64: dts: apple: t6031: Add CPU frequency scaling and OPPs
.../bindings/cpufreq/apple,cluster-cpufreq.yaml | 6 +-
arch/arm64/boot/dts/apple/t6030.dtsi | 228 +++++++++++++++++++++
arch/arm64/boot/dts/apple/t6031-base.dtsi | 213 +++++++++++++++++++
arch/arm64/boot/dts/apple/t6031-dieX.dtsi | 21 ++
arch/arm64/boot/dts/apple/t8122.dtsi | 210 +++++++++++++++++++
5 files changed, 677 insertions(+), 1 deletion(-)
---
base-commit: 477f3d0f46b0d885f162a64d13ca51e2f7afa542
change-id: 20261121-m3-cpufreq-opp-e6d93a871c2b
Best regards,
--
Michael Reeves <michael.reeves077@gmail.com>
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 1/4] dt-bindings: cpufreq: apple,cluster-cpufreq: Add M3 family compatibles
2026-11-21 11:42 [PATCH 0/4] arm64: dts: apple: Add CPU frequency scaling and OPPs for M3 family Michael Reeves via B4 Relay
@ 2026-11-21 11:42 ` Michael Reeves via B4 Relay
2026-11-21 11:42 ` [PATCH 2/4] arm64: dts: apple: t8122: Add CPU frequency scaling and OPPs Michael Reeves via B4 Relay
` (3 subsequent siblings)
4 siblings, 0 replies; 9+ messages in thread
From: Michael Reeves via B4 Relay @ 2026-11-21 11:42 UTC (permalink / raw)
To: Sven Peter, Janne Grunau, Neal Gompa, Rafael J. Wysocki,
Viresh Kumar, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Hector Martin
Cc: asahi, linux-arm-kernel, linux-pm, devicetree, linux-kernel,
Michael Reeves
From: Michael Reeves <michael.reeves077@gmail.com>
Add compatible strings for the Apple M3 family cluster cpufreq
controllers:
- apple,t8122-cluster-cpufreq (M3)
- apple,t6030-cluster-cpufreq (M3 Pro)
- apple,t6031-cluster-cpufreq (M3 Max / M3 Ultra)
All three are compatible with the M2 (T8112) cluster cpufreq controller
and fall back to "apple,t8112-cluster-cpufreq".
Signed-off-by: Michael Reeves <michael.reeves077@gmail.com>
---
.../devicetree/bindings/cpufreq/apple,cluster-cpufreq.yaml | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/cpufreq/apple,cluster-cpufreq.yaml b/Documentation/devicetree/bindings/cpufreq/apple,cluster-cpufreq.yaml
index b51913a81791..516216cb6ad6 100644
--- a/Documentation/devicetree/bindings/cpufreq/apple,cluster-cpufreq.yaml
+++ b/Documentation/devicetree/bindings/cpufreq/apple,cluster-cpufreq.yaml
@@ -36,7 +36,11 @@ properties:
- const: apple,s5l8960x-cluster-cpufreq
- const: apple,s5l8960x-cluster-cpufreq
- items:
- - const: apple,t6020-cluster-cpufreq
+ - enum:
+ - apple,t6020-cluster-cpufreq
+ - apple,t6030-cluster-cpufreq
+ - apple,t6031-cluster-cpufreq
+ - apple,t8122-cluster-cpufreq
- const: apple,t8112-cluster-cpufreq
reg:
--
2.56.0
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 2/4] arm64: dts: apple: t8122: Add CPU frequency scaling and OPPs
2026-11-21 11:42 [PATCH 0/4] arm64: dts: apple: Add CPU frequency scaling and OPPs for M3 family Michael Reeves via B4 Relay
2026-11-21 11:42 ` [PATCH 1/4] dt-bindings: cpufreq: apple,cluster-cpufreq: Add M3 family compatibles Michael Reeves via B4 Relay
@ 2026-11-21 11:42 ` Michael Reeves via B4 Relay
2026-11-21 11:42 ` [PATCH 3/4] arm64: dts: apple: t6030: " Michael Reeves via B4 Relay
` (2 subsequent siblings)
4 siblings, 0 replies; 9+ messages in thread
From: Michael Reeves via B4 Relay @ 2026-11-21 11:42 UTC (permalink / raw)
To: Sven Peter, Janne Grunau, Neal Gompa, Rafael J. Wysocki,
Viresh Kumar, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Hector Martin
Cc: asahi, linux-arm-kernel, linux-pm, devicetree, linux-kernel,
Michael Reeves
From: Janne Grunau <j@jannau.net>
Add the cluster cpufreq controller nodes, operating performance point
tables, and CPU capacity values for the Apple T8122 (M3) Sawtooth
efficiency and Everest performance clusters.
The capacity-dmips-mhz values were determined by measuring single-core
CoreMark [1] Iterations/Sec/MHz at fixed frequencies under the
performance governor.
[1] https://github.com/eembc/coremark
Signed-off-by: Janne Grunau <j@jannau.net>
Co-developed-by: Michael Reeves <michael.reeves077@gmail.com>
Signed-off-by: Michael Reeves <michael.reeves077@gmail.com>
---
arch/arm64/boot/dts/apple/t8122.dtsi | 210 +++++++++++++++++++++++++++++++++++
1 file changed, 210 insertions(+)
diff --git a/arch/arm64/boot/dts/apple/t8122.dtsi b/arch/arm64/boot/dts/apple/t8122.dtsi
index 959ddf36efa1..3d41d32331a8 100644
--- a/arch/arm64/boot/dts/apple/t8122.dtsi
+++ b/arch/arm64/boot/dts/apple/t8122.dtsi
@@ -76,9 +76,12 @@ cpu_e0: cpu@0 {
cpu-release-addr = <0 0>; /* To be filled by loader */
enable-method = "spin-table";
+ capacity-dmips-mhz = <804>;
d-cache-size = <0x10000>;
i-cache-size = <0x20000>;
next-level-cache = <&l2_cache_0>;
+ operating-points-v2 = <&sawtooth_opp>;
+ performance-domains = <&cpufreq_e>;
};
cpu_e1: cpu@1 {
@@ -88,9 +91,12 @@ cpu_e1: cpu@1 {
cpu-release-addr = <0 0>; /* To be filled by loader */
enable-method = "spin-table";
+ capacity-dmips-mhz = <804>;
d-cache-size = <0x10000>;
i-cache-size = <0x20000>;
next-level-cache = <&l2_cache_0>;
+ operating-points-v2 = <&sawtooth_opp>;
+ performance-domains = <&cpufreq_e>;
};
cpu_e2: cpu@2 {
@@ -100,9 +106,12 @@ cpu_e2: cpu@2 {
cpu-release-addr = <0 0>; /* To be filled by loader */
enable-method = "spin-table";
+ capacity-dmips-mhz = <804>;
d-cache-size = <0x10000>;
i-cache-size = <0x20000>;
next-level-cache = <&l2_cache_0>;
+ operating-points-v2 = <&sawtooth_opp>;
+ performance-domains = <&cpufreq_e>;
};
cpu_e3: cpu@3 {
@@ -112,9 +121,12 @@ cpu_e3: cpu@3 {
cpu-release-addr = <0 0>; /* To be filled by loader */
enable-method = "spin-table";
+ capacity-dmips-mhz = <804>;
d-cache-size = <0x10000>;
i-cache-size = <0x20000>;
next-level-cache = <&l2_cache_0>;
+ operating-points-v2 = <&sawtooth_opp>;
+ performance-domains = <&cpufreq_e>;
};
cpu_p0: cpu@10100 {
@@ -124,9 +136,12 @@ cpu_p0: cpu@10100 {
cpu-release-addr = <0 0>; /* To be filled by loader */
enable-method = "spin-table";
+ capacity-dmips-mhz = <1024>;
d-cache-size = <0x20000>;
i-cache-size = <0x30000>;
next-level-cache = <&l2_cache_1>;
+ operating-points-v2 = <&everest_opp>;
+ performance-domains = <&cpufreq_p>;
};
cpu_p1: cpu@10101 {
@@ -136,9 +151,12 @@ cpu_p1: cpu@10101 {
cpu-release-addr = <0 0>; /* To be filled by loader */
enable-method = "spin-table";
+ capacity-dmips-mhz = <1024>;
d-cache-size = <0x20000>;
i-cache-size = <0x30000>;
next-level-cache = <&l2_cache_1>;
+ operating-points-v2 = <&everest_opp>;
+ performance-domains = <&cpufreq_p>;
};
cpu_p2: cpu@10102 {
@@ -148,9 +166,12 @@ cpu_p2: cpu@10102 {
cpu-release-addr = <0 0>; /* To be filled by loader */
enable-method = "spin-table";
+ capacity-dmips-mhz = <1024>;
d-cache-size = <0x20000>;
i-cache-size = <0x30000>;
next-level-cache = <&l2_cache_1>;
+ operating-points-v2 = <&everest_opp>;
+ performance-domains = <&cpufreq_p>;
};
cpu_p3: cpu@10103 {
@@ -160,9 +181,12 @@ cpu_p3: cpu@10103 {
cpu-release-addr = <0 0>; /* To be filled by loader */
enable-method = "spin-table";
+ capacity-dmips-mhz = <1024>;
d-cache-size = <0x20000>;
i-cache-size = <0x30000>;
next-level-cache = <&l2_cache_1>;
+ operating-points-v2 = <&everest_opp>;
+ performance-domains = <&cpufreq_p>;
};
l2_cache_0: l2-cache-0 {
@@ -180,6 +204,178 @@ l2_cache_1: l2-cache-1 {
};
};
+ sawtooth_opp: opp-table-0 {
+ compatible = "operating-points-v2";
+ opp-shared;
+
+ opp01 {
+ opp-hz = /bits/ 64 <744000000>;
+ opp-level = <1>;
+ clock-latency-ns = <7800>;
+ };
+
+ opp02 {
+ opp-hz = /bits/ 64 <1044000000>;
+ opp-level = <2>;
+ clock-latency-ns = <19400>;
+ };
+
+ opp03 {
+ opp-hz = /bits/ 64 <1476000000>;
+ opp-level = <3>;
+ clock-latency-ns = <24800>;
+ };
+
+ opp04 {
+ opp-hz = /bits/ 64 <2004000000>;
+ opp-level = <4>;
+ clock-latency-ns = <43600>;
+ };
+
+ opp05 {
+ opp-hz = /bits/ 64 <2268000000>;
+ opp-level = <5>;
+ clock-latency-ns = <49200>;
+ };
+
+ opp06 {
+ opp-hz = /bits/ 64 <2556000000>;
+ opp-level = <6>;
+ clock-latency-ns = <53400>;
+ };
+
+ opp07 {
+ opp-hz = /bits/ 64 <2748000000>;
+ opp-level = <7>;
+ clock-latency-ns = <56800>;
+ };
+ };
+
+ everest_opp: opp-table-1 {
+ compatible = "operating-points-v2";
+ opp-shared;
+
+ opp01 {
+ opp-hz = /bits/ 64 <696000000>;
+ opp-level = <1>;
+ clock-latency-ns = <9400>;
+ };
+
+ opp02 {
+ opp-hz = /bits/ 64 <1092000000>;
+ opp-level = <2>;
+ clock-latency-ns = <19800>;
+ };
+
+ opp03 {
+ opp-hz = /bits/ 64 <1356000000>;
+ opp-level = <3>;
+ clock-latency-ns = <23700>;
+ };
+
+ opp04 {
+ opp-hz = /bits/ 64 <1596000000>;
+ opp-level = <4>;
+ clock-latency-ns = <25000>;
+ };
+
+ opp05 {
+ opp-hz = /bits/ 64 <1884000000>;
+ opp-level = <5>;
+ clock-latency-ns = <28200>;
+ };
+
+ opp06 {
+ opp-hz = /bits/ 64 <2172000000>;
+ opp-level = <6>;
+ clock-latency-ns = <32300>;
+ };
+
+ opp07 {
+ opp-hz = /bits/ 64 <2424000000>;
+ opp-level = <7>;
+ clock-latency-ns = <35600>;
+ };
+
+ opp08 {
+ opp-hz = /bits/ 64 <2616000000>;
+ opp-level = <8>;
+ clock-latency-ns = <38200>;
+ };
+
+ opp09 {
+ opp-hz = /bits/ 64 <2808000000>;
+ opp-level = <9>;
+ clock-latency-ns = <39700>;
+ };
+
+ opp10 {
+ opp-hz = /bits/ 64 <2988000000>;
+ opp-level = <10>;
+ clock-latency-ns = <41700>;
+ };
+
+ opp11 {
+ opp-hz = /bits/ 64 <3144000000>;
+ opp-level = <11>;
+ clock-latency-ns = <43700>;
+ };
+
+ opp12 {
+ opp-hz = /bits/ 64 <3288000000>;
+ opp-level = <12>;
+ clock-latency-ns = <45000>;
+ };
+
+ opp13 {
+ opp-hz = /bits/ 64 <3420000000>;
+ opp-level = <13>;
+ clock-latency-ns = <48700>;
+ };
+
+ opp14 {
+ opp-hz = /bits/ 64 <3540000000>;
+ opp-level = <14>;
+ clock-latency-ns = <55700>;
+ };
+
+ opp15 {
+ opp-hz = /bits/ 64 <3636000000>;
+ opp-level = <15>;
+ clock-latency-ns = <55900>;
+ };
+
+ opp16 {
+ opp-hz = /bits/ 64 <3720000000>;
+ opp-level = <16>;
+ clock-latency-ns = <55900>;
+ };
+
+ opp17 {
+ opp-hz = /bits/ 64 <3780000000>;
+ opp-level = <17>;
+ clock-latency-ns = <56000>;
+ };
+
+ opp18 {
+ opp-hz = /bits/ 64 <3864000000>;
+ opp-level = <18>;
+ clock-latency-ns = <56000>;
+ };
+
+ opp19 {
+ opp-hz = /bits/ 64 <3960000000>;
+ opp-level = <19>;
+ clock-latency-ns = <61800>;
+ };
+
+ opp20 {
+ opp-hz = /bits/ 64 <4056000000>;
+ opp-level = <20>;
+ clock-latency-ns = <61900>;
+ };
+ };
+
soc {
compatible = "simple-bus";
ranges;
@@ -190,6 +386,20 @@ soc {
nonposted-mmio;
#size-cells = <2>;
+ cpufreq_e: performance-controller@210e20000 {
+ compatible = "apple,t8122-cluster-cpufreq",
+ "apple,t8112-cluster-cpufreq";
+ reg = <0x2 0x10e20000 0x0 0x1000>;
+ #performance-domain-cells = <0>;
+ };
+
+ cpufreq_p: performance-controller@211e20000 {
+ compatible = "apple,t8122-cluster-cpufreq",
+ "apple,t8112-cluster-cpufreq";
+ reg = <0x2 0x11e20000 0x0 0x1000>;
+ #performance-domain-cells = <0>;
+ };
+
i2c0: i2c@2a1010000 {
compatible = "apple,t8122-i2c", "apple,t8103-i2c";
reg = <0x2 0xa1010000 0x0 0x4000>;
--
2.56.0
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 3/4] arm64: dts: apple: t6030: Add CPU frequency scaling and OPPs
2026-11-21 11:42 [PATCH 0/4] arm64: dts: apple: Add CPU frequency scaling and OPPs for M3 family Michael Reeves via B4 Relay
2026-11-21 11:42 ` [PATCH 1/4] dt-bindings: cpufreq: apple,cluster-cpufreq: Add M3 family compatibles Michael Reeves via B4 Relay
2026-11-21 11:42 ` [PATCH 2/4] arm64: dts: apple: t8122: Add CPU frequency scaling and OPPs Michael Reeves via B4 Relay
@ 2026-11-21 11:42 ` Michael Reeves via B4 Relay
2026-11-21 11:42 ` [PATCH 4/4] arm64: dts: apple: t6031: " Michael Reeves via B4 Relay
2026-11-21 11:52 ` [PATCH 0/4] arm64: dts: apple: Add CPU frequency scaling and OPPs for M3 family Janne Grunau
4 siblings, 0 replies; 9+ messages in thread
From: Michael Reeves via B4 Relay @ 2026-11-21 11:42 UTC (permalink / raw)
To: Sven Peter, Janne Grunau, Neal Gompa, Rafael J. Wysocki,
Viresh Kumar, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Hector Martin
Cc: asahi, linux-arm-kernel, linux-pm, devicetree, linux-kernel,
Michael Reeves
From: Janne Grunau <j@jannau.net>
Add the cluster cpufreq controller nodes, operating performance point
tables, and CPU capacity values for the Apple T6030 (M3 Pro) Sawtooth
efficiency and Everest performance clusters.
The capacity-dmips-mhz values were determined by measuring single-core
CoreMark [1] Iterations/Sec/MHz at fixed frequencies under the
performance governor.
[1] https://github.com/eembc/coremark
Signed-off-by: Janne Grunau <j@jannau.net>
Co-developed-by: Michael Reeves <michael.reeves077@gmail.com>
Signed-off-by: Michael Reeves <michael.reeves077@gmail.com>
---
arch/arm64/boot/dts/apple/t6030.dtsi | 228 +++++++++++++++++++++++++++++++++++
1 file changed, 228 insertions(+)
diff --git a/arch/arm64/boot/dts/apple/t6030.dtsi b/arch/arm64/boot/dts/apple/t6030.dtsi
index 85a16d03e22f..a5c2fadae6cc 100644
--- a/arch/arm64/boot/dts/apple/t6030.dtsi
+++ b/arch/arm64/boot/dts/apple/t6030.dtsi
@@ -87,9 +87,12 @@ cpu_e00: cpu@0 {
cpu-release-addr = <0 0>; /* to be filled by loader */
enable-method = "spin-table";
+ capacity-dmips-mhz = <851>;
d-cache-size = <0x10000>;
i-cache-size = <0x20000>;
next-level-cache = <&l2_cache_0>;
+ operating-points-v2 = <&sawtooth_opp>;
+ performance-domains = <&cpufreq_e>;
};
cpu_e01: cpu@1 {
@@ -99,9 +102,12 @@ cpu_e01: cpu@1 {
cpu-release-addr = <0 0>; /* to be filled by loader */
enable-method = "spin-table";
+ capacity-dmips-mhz = <851>;
d-cache-size = <0x10000>;
i-cache-size = <0x20000>;
next-level-cache = <&l2_cache_0>;
+ operating-points-v2 = <&sawtooth_opp>;
+ performance-domains = <&cpufreq_e>;
};
cpu_e02: cpu@2 {
@@ -111,9 +117,12 @@ cpu_e02: cpu@2 {
cpu-release-addr = <0 0>; /* to be filled by loader */
enable-method = "spin-table";
+ capacity-dmips-mhz = <851>;
d-cache-size = <0x10000>;
i-cache-size = <0x20000>;
next-level-cache = <&l2_cache_0>;
+ operating-points-v2 = <&sawtooth_opp>;
+ performance-domains = <&cpufreq_e>;
};
cpu_e03: cpu@3 {
@@ -123,9 +132,12 @@ cpu_e03: cpu@3 {
cpu-release-addr = <0 0>; /* to be filled by loader */
enable-method = "spin-table";
+ capacity-dmips-mhz = <851>;
d-cache-size = <0x10000>;
i-cache-size = <0x20000>;
next-level-cache = <&l2_cache_0>;
+ operating-points-v2 = <&sawtooth_opp>;
+ performance-domains = <&cpufreq_e>;
};
cpu_e04: cpu@4 {
@@ -135,9 +147,12 @@ cpu_e04: cpu@4 {
cpu-release-addr = <0 0>; /* to be filled by loader */
enable-method = "spin-table";
+ capacity-dmips-mhz = <851>;
d-cache-size = <0x10000>;
i-cache-size = <0x20000>;
next-level-cache = <&l2_cache_0>;
+ operating-points-v2 = <&sawtooth_opp>;
+ performance-domains = <&cpufreq_e>;
};
cpu_e05: cpu@5 {
@@ -147,9 +162,12 @@ cpu_e05: cpu@5 {
cpu-release-addr = <0 0>; /* to be filled by loader */
enable-method = "spin-table";
+ capacity-dmips-mhz = <851>;
d-cache-size = <0x10000>;
i-cache-size = <0x20000>;
next-level-cache = <&l2_cache_0>;
+ operating-points-v2 = <&sawtooth_opp>;
+ performance-domains = <&cpufreq_e>;
};
cpu_p00: cpu@10100 {
@@ -159,9 +177,12 @@ cpu_p00: cpu@10100 {
cpu-release-addr = <0 0>; /* To be filled by loader */
enable-method = "spin-table";
+ capacity-dmips-mhz = <1024>;
d-cache-size = <0x20000>;
i-cache-size = <0x30000>;
next-level-cache = <&l2_cache_1>;
+ operating-points-v2 = <&everest_opp>;
+ performance-domains = <&cpufreq_p>;
};
cpu_p01: cpu@10101 {
@@ -171,9 +192,12 @@ cpu_p01: cpu@10101 {
cpu-release-addr = <0 0>; /* To be filled by loader */
enable-method = "spin-table";
+ capacity-dmips-mhz = <1024>;
d-cache-size = <0x20000>;
i-cache-size = <0x30000>;
next-level-cache = <&l2_cache_1>;
+ operating-points-v2 = <&everest_opp>;
+ performance-domains = <&cpufreq_p>;
};
cpu_p02: cpu@10102 {
@@ -183,9 +207,12 @@ cpu_p02: cpu@10102 {
cpu-release-addr = <0 0>; /* To be filled by loader */
enable-method = "spin-table";
+ capacity-dmips-mhz = <1024>;
d-cache-size = <0x20000>;
i-cache-size = <0x30000>;
next-level-cache = <&l2_cache_1>;
+ operating-points-v2 = <&everest_opp>;
+ performance-domains = <&cpufreq_p>;
};
cpu_p03: cpu@10103 {
@@ -195,9 +222,12 @@ cpu_p03: cpu@10103 {
cpu-release-addr = <0 0>; /* To be filled by loader */
enable-method = "spin-table";
+ capacity-dmips-mhz = <1024>;
d-cache-size = <0x20000>;
i-cache-size = <0x30000>;
next-level-cache = <&l2_cache_1>;
+ operating-points-v2 = <&everest_opp>;
+ performance-domains = <&cpufreq_p>;
};
cpu_p04: cpu@10104 {
@@ -207,9 +237,12 @@ cpu_p04: cpu@10104 {
cpu-release-addr = <0 0>; /* To be filled by loader */
enable-method = "spin-table";
+ capacity-dmips-mhz = <1024>;
d-cache-size = <0x20000>;
i-cache-size = <0x30000>;
next-level-cache = <&l2_cache_1>;
+ operating-points-v2 = <&everest_opp>;
+ performance-domains = <&cpufreq_p>;
};
cpu_p05: cpu@10105 {
@@ -219,9 +252,12 @@ cpu_p05: cpu@10105 {
cpu-release-addr = <0 0>; /* To be filled by loader */
enable-method = "spin-table";
+ capacity-dmips-mhz = <1024>;
d-cache-size = <0x20000>;
i-cache-size = <0x30000>;
next-level-cache = <&l2_cache_1>;
+ operating-points-v2 = <&everest_opp>;
+ performance-domains = <&cpufreq_p>;
};
l2_cache_0: l2-cache-0 {
@@ -239,6 +275,184 @@ l2_cache_1: l2-cache-1 {
};
};
+ sawtooth_opp: opp-table-0 {
+ compatible = "operating-points-v2";
+ opp-shared;
+
+ opp01 {
+ opp-hz = /bits/ 64 <744000000>;
+ opp-level = <1>;
+ clock-latency-ns = <7700>;
+ };
+
+ opp02 {
+ opp-hz = /bits/ 64 <1044000000>;
+ opp-level = <2>;
+ clock-latency-ns = <21200>;
+ };
+
+ opp03 {
+ opp-hz = /bits/ 64 <1476000000>;
+ opp-level = <3>;
+ clock-latency-ns = <26400>;
+ };
+
+ opp04 {
+ opp-hz = /bits/ 64 <2004000000>;
+ opp-level = <4>;
+ clock-latency-ns = <40500>;
+ };
+
+ opp05 {
+ opp-hz = /bits/ 64 <2268000000>;
+ opp-level = <5>;
+ clock-latency-ns = <44400>;
+ };
+
+ opp06 {
+ opp-hz = /bits/ 64 <2448000000>;
+ opp-level = <6>;
+ clock-latency-ns = <47200>;
+ };
+
+ opp07 {
+ opp-hz = /bits/ 64 <2640000000>;
+ opp-level = <7>;
+ clock-latency-ns = <52000>;
+ };
+
+ opp08 {
+ opp-hz = /bits/ 64 <2748000000>;
+ opp-level = <8>;
+ clock-latency-ns = <52000>;
+ };
+ };
+
+ everest_opp: opp-table-1 {
+ compatible = "operating-points-v2";
+ opp-shared;
+
+ opp01 {
+ opp-hz = /bits/ 64 <696000000>;
+ opp-level = <1>;
+ clock-latency-ns = <8600>;
+ };
+
+ opp02 {
+ opp-hz = /bits/ 64 <1092000000>;
+ opp-level = <2>;
+ clock-latency-ns = <18700>;
+ };
+
+ opp03 {
+ opp-hz = /bits/ 64 <1356000000>;
+ opp-level = <3>;
+ clock-latency-ns = <20700>;
+ };
+
+ opp04 {
+ opp-hz = /bits/ 64 <1596000000>;
+ opp-level = <4>;
+ clock-latency-ns = <24800>;
+ };
+
+ opp05 {
+ opp-hz = /bits/ 64 <1884000000>;
+ opp-level = <5>;
+ clock-latency-ns = <30700>;
+ };
+
+ opp06 {
+ opp-hz = /bits/ 64 <2172000000>;
+ opp-level = <6>;
+ clock-latency-ns = <34400>;
+ };
+
+ opp07 {
+ opp-hz = /bits/ 64 <2424000000>;
+ opp-level = <7>;
+ clock-latency-ns = <39600>;
+ };
+
+ opp08 {
+ opp-hz = /bits/ 64 <2616000000>;
+ opp-level = <8>;
+ clock-latency-ns = <40000>;
+ };
+
+ opp09 {
+ opp-hz = /bits/ 64 <2808000000>;
+ opp-level = <9>;
+ clock-latency-ns = <41800>;
+ };
+
+ opp10 {
+ opp-hz = /bits/ 64 <2988000000>;
+ opp-level = <10>;
+ clock-latency-ns = <45300>;
+ };
+
+ opp11 {
+ opp-hz = /bits/ 64 <3144000000>;
+ opp-level = <11>;
+ clock-latency-ns = <46700>;
+ };
+
+ opp12 {
+ opp-hz = /bits/ 64 <3288000000>;
+ opp-level = <12>;
+ clock-latency-ns = <49200>;
+ };
+
+ opp13 {
+ opp-hz = /bits/ 64 <3420000000>;
+ opp-level = <13>;
+ clock-latency-ns = <53900>;
+ };
+
+ opp14 {
+ opp-hz = /bits/ 64 <3576000000>;
+ opp-level = <14>;
+ clock-latency-ns = <53700>;
+ };
+
+ opp15 {
+ opp-hz = /bits/ 64 <3624000000>;
+ opp-level = <15>;
+ clock-latency-ns = <54000>;
+ };
+
+ opp16 {
+ opp-hz = /bits/ 64 <3708000000>;
+ opp-level = <16>;
+ clock-latency-ns = <54000>;
+ };
+
+ opp17 {
+ opp-hz = /bits/ 64 <3780000000>;
+ opp-level = <17>;
+ clock-latency-ns = <54100>;
+ };
+
+ opp18 {
+ opp-hz = /bits/ 64 <3864000000>;
+ opp-level = <18>;
+ clock-latency-ns = <54300>;
+ };
+
+ opp19 {
+ opp-hz = /bits/ 64 <3960000000>;
+ opp-level = <19>;
+ clock-latency-ns = <58400>;
+ };
+
+ opp20 {
+ opp-hz = /bits/ 64 <4056000000>;
+ opp-level = <20>;
+ clock-latency-ns = <58700>;
+ };
+ };
+
reserved-memory {
ranges;
#address-cells = <2>;
@@ -254,6 +468,20 @@ soc: soc {
nonposted-mmio;
#size-cells = <2>;
+ cpufreq_e: performance-controller@210e20000 {
+ compatible = "apple,t6030-cluster-cpufreq",
+ "apple,t8112-cluster-cpufreq";
+ reg = <0x2 0x10e20000 0x0 0x1000>;
+ #performance-domain-cells = <0>;
+ };
+
+ cpufreq_p: performance-controller@211e20000 {
+ compatible = "apple,t6030-cluster-cpufreq",
+ "apple,t8112-cluster-cpufreq";
+ reg = <0x2 0x11e20000 0x0 0x1000>;
+ #performance-domain-cells = <0>;
+ };
+
i2c1: i2c@289014000 {
compatible = "apple,t6030-i2c", "apple,t8103-i2c";
reg = <0x2 0x89014000 0x0 0x4000>;
--
2.56.0
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 4/4] arm64: dts: apple: t6031: Add CPU frequency scaling and OPPs
2026-11-21 11:42 [PATCH 0/4] arm64: dts: apple: Add CPU frequency scaling and OPPs for M3 family Michael Reeves via B4 Relay
` (2 preceding siblings ...)
2026-11-21 11:42 ` [PATCH 3/4] arm64: dts: apple: t6030: " Michael Reeves via B4 Relay
@ 2026-11-21 11:42 ` Michael Reeves via B4 Relay
2026-11-21 11:52 ` Michael Reeves
2026-11-21 11:53 ` sashiko-bot
2026-11-21 11:52 ` [PATCH 0/4] arm64: dts: apple: Add CPU frequency scaling and OPPs for M3 family Janne Grunau
4 siblings, 2 replies; 9+ messages in thread
From: Michael Reeves via B4 Relay @ 2026-11-21 11:42 UTC (permalink / raw)
To: Sven Peter, Janne Grunau, Neal Gompa, Rafael J. Wysocki,
Viresh Kumar, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Hector Martin
Cc: asahi, linux-arm-kernel, linux-pm, devicetree, linux-kernel,
Michael Reeves, Yureka Lilian
From: Yureka Lilian <yureka@cyberchaos.dev>
Add the cluster cpufreq controller nodes, operating performance point
tables, and CPU capacity values for the Apple T6031/T6034 (M3 Max)
Sawtooth efficiency and Everest performance clusters.
The capacity-dmips-mhz values were determined by measuring single-core
CoreMark [1] Iterations/Sec/MHz at fixed frequencies under the
performance governor.
[1] https://github.com/eembc/coremark
Signed-off-by: Yureka Lilian <yureka@cyberchaos.dev>
Co-developed-by: Michael Reeves <michael.reeves077@gmail.com>
Signed-off-by: Michael Reeves <michael.reeves077@gmail.com>
---
arch/arm64/boot/dts/apple/t6031-base.dtsi | 213 ++++++++++++++++++++++++++++++
arch/arm64/boot/dts/apple/t6031-dieX.dtsi | 21 +++
2 files changed, 234 insertions(+)
diff --git a/arch/arm64/boot/dts/apple/t6031-base.dtsi b/arch/arm64/boot/dts/apple/t6031-base.dtsi
index f62ce0690182..772af1ea37b6 100644
--- a/arch/arm64/boot/dts/apple/t6031-base.dtsi
+++ b/arch/arm64/boot/dts/apple/t6031-base.dtsi
@@ -101,9 +101,12 @@ cpu_e00: cpu@0 {
cpu-release-addr = <0 0>; /* to be filled by loader */
enable-method = "spin-table";
+ capacity-dmips-mhz = <870>;
d-cache-size = <0x10000>;
i-cache-size = <0x20000>;
next-level-cache = <&l2_cache_0>;
+ operating-points-v2 = <&sawtooth_opp>;
+ performance-domains = <&cpufreq_e>;
};
cpu_e01: cpu@1 {
@@ -113,9 +116,12 @@ cpu_e01: cpu@1 {
cpu-release-addr = <0 0>; /* to be filled by loader */
enable-method = "spin-table";
+ capacity-dmips-mhz = <870>;
d-cache-size = <0x10000>;
i-cache-size = <0x20000>;
next-level-cache = <&l2_cache_0>;
+ operating-points-v2 = <&sawtooth_opp>;
+ performance-domains = <&cpufreq_e>;
};
cpu_e02: cpu@2 {
@@ -125,9 +131,12 @@ cpu_e02: cpu@2 {
cpu-release-addr = <0 0>; /* to be filled by loader */
enable-method = "spin-table";
+ capacity-dmips-mhz = <870>;
d-cache-size = <0x10000>;
i-cache-size = <0x20000>;
next-level-cache = <&l2_cache_0>;
+ operating-points-v2 = <&sawtooth_opp>;
+ performance-domains = <&cpufreq_e>;
};
cpu_e03: cpu@3 {
@@ -137,9 +146,12 @@ cpu_e03: cpu@3 {
cpu-release-addr = <0 0>; /* to be filled by loader */
enable-method = "spin-table";
+ capacity-dmips-mhz = <870>;
d-cache-size = <0x10000>;
i-cache-size = <0x20000>;
next-level-cache = <&l2_cache_0>;
+ operating-points-v2 = <&sawtooth_opp>;
+ performance-domains = <&cpufreq_e>;
};
cpu_p00: cpu@10100 {
@@ -149,9 +161,12 @@ cpu_p00: cpu@10100 {
cpu-release-addr = <0 0>; /* To be filled by loader */
enable-method = "spin-table";
+ capacity-dmips-mhz = <1024>;
d-cache-size = <0x20000>;
i-cache-size = <0x30000>;
next-level-cache = <&l2_cache_1>;
+ operating-points-v2 = <&everest_opp>;
+ performance-domains = <&cpufreq_p0>;
};
cpu_p01: cpu@10101 {
@@ -161,9 +176,12 @@ cpu_p01: cpu@10101 {
cpu-release-addr = <0 0>; /* To be filled by loader */
enable-method = "spin-table";
+ capacity-dmips-mhz = <1024>;
d-cache-size = <0x20000>;
i-cache-size = <0x30000>;
next-level-cache = <&l2_cache_1>;
+ operating-points-v2 = <&everest_opp>;
+ performance-domains = <&cpufreq_p0>;
};
cpu_p02: cpu@10102 {
@@ -173,9 +191,12 @@ cpu_p02: cpu@10102 {
cpu-release-addr = <0 0>; /* To be filled by loader */
enable-method = "spin-table";
+ capacity-dmips-mhz = <1024>;
d-cache-size = <0x20000>;
i-cache-size = <0x30000>;
next-level-cache = <&l2_cache_1>;
+ operating-points-v2 = <&everest_opp>;
+ performance-domains = <&cpufreq_p0>;
};
cpu_p03: cpu@10103 {
@@ -185,9 +206,12 @@ cpu_p03: cpu@10103 {
cpu-release-addr = <0 0>; /* To be filled by loader */
enable-method = "spin-table";
+ capacity-dmips-mhz = <1024>;
d-cache-size = <0x20000>;
i-cache-size = <0x30000>;
next-level-cache = <&l2_cache_1>;
+ operating-points-v2 = <&everest_opp>;
+ performance-domains = <&cpufreq_p0>;
};
cpu_p04: cpu@10104 {
@@ -197,9 +221,12 @@ cpu_p04: cpu@10104 {
cpu-release-addr = <0 0>; /* To be filled by loader */
enable-method = "spin-table";
+ capacity-dmips-mhz = <1024>;
d-cache-size = <0x20000>;
i-cache-size = <0x30000>;
next-level-cache = <&l2_cache_1>;
+ operating-points-v2 = <&everest_opp>;
+ performance-domains = <&cpufreq_p0>;
};
cpu_p05: cpu@10105 {
@@ -209,9 +236,12 @@ cpu_p05: cpu@10105 {
cpu-release-addr = <0 0>; /* To be filled by loader */
enable-method = "spin-table";
+ capacity-dmips-mhz = <1024>;
d-cache-size = <0x20000>;
i-cache-size = <0x30000>;
next-level-cache = <&l2_cache_1>;
+ operating-points-v2 = <&everest_opp>;
+ performance-domains = <&cpufreq_p0>;
};
cpu_p10: cpu@10200 {
@@ -221,9 +251,12 @@ cpu_p10: cpu@10200 {
cpu-release-addr = <0 0>; /* To be filled by loader */
enable-method = "spin-table";
+ capacity-dmips-mhz = <1024>;
d-cache-size = <0x20000>;
i-cache-size = <0x30000>;
next-level-cache = <&l2_cache_2>;
+ operating-points-v2 = <&everest_opp>;
+ performance-domains = <&cpufreq_p1>;
};
cpu_p11: cpu@10201 {
@@ -233,9 +266,12 @@ cpu_p11: cpu@10201 {
cpu-release-addr = <0 0>; /* To be filled by loader */
enable-method = "spin-table";
+ capacity-dmips-mhz = <1024>;
d-cache-size = <0x20000>;
i-cache-size = <0x30000>;
next-level-cache = <&l2_cache_2>;
+ operating-points-v2 = <&everest_opp>;
+ performance-domains = <&cpufreq_p1>;
};
cpu_p12: cpu@10202 {
@@ -245,9 +281,12 @@ cpu_p12: cpu@10202 {
cpu-release-addr = <0 0>; /* To be filled by loader */
enable-method = "spin-table";
+ capacity-dmips-mhz = <1024>;
d-cache-size = <0x20000>;
i-cache-size = <0x30000>;
next-level-cache = <&l2_cache_2>;
+ operating-points-v2 = <&everest_opp>;
+ performance-domains = <&cpufreq_p1>;
};
cpu_p13: cpu@10203 {
@@ -257,9 +296,12 @@ cpu_p13: cpu@10203 {
cpu-release-addr = <0 0>; /* To be filled by loader */
enable-method = "spin-table";
+ capacity-dmips-mhz = <1024>;
d-cache-size = <0x20000>;
i-cache-size = <0x30000>;
next-level-cache = <&l2_cache_2>;
+ operating-points-v2 = <&everest_opp>;
+ performance-domains = <&cpufreq_p1>;
};
cpu_p14: cpu@10204 {
@@ -272,6 +314,8 @@ cpu_p14: cpu@10204 {
d-cache-size = <0x20000>;
i-cache-size = <0x30000>;
next-level-cache = <&l2_cache_2>;
+ operating-points-v2 = <&everest_opp>;
+ performance-domains = <&cpufreq_p1>;
};
cpu_p15: cpu@10205 {
@@ -284,6 +328,8 @@ cpu_p15: cpu@10205 {
d-cache-size = <0x20000>;
i-cache-size = <0x30000>;
next-level-cache = <&l2_cache_2>;
+ operating-points-v2 = <&everest_opp>;
+ performance-domains = <&cpufreq_p1>;
};
l2_cache_0: l2-cache-0 {
@@ -308,6 +354,173 @@ l2_cache_2: l2-cache-2 {
};
};
+ sawtooth_opp: opp-table-0 {
+ compatible = "operating-points-v2";
+ opp-shared;
+
+ opp01 {
+ opp-hz = /bits/ 64 <1020000000>;
+ opp-level = <1>;
+ clock-latency-ns = <7200>;
+ };
+
+ opp02 {
+ opp-hz = /bits/ 64 <1320000000>;
+ opp-level = <2>;
+ clock-latency-ns = <22000>;
+ };
+
+ opp03 {
+ opp-hz = /bits/ 64 <1704000000>;
+ opp-level = <3>;
+ clock-latency-ns = <28000>;
+ };
+
+ opp04 {
+ opp-hz = /bits/ 64 <2088000000>;
+ opp-level = <4>;
+ clock-latency-ns = <38000>;
+ };
+
+ opp05 {
+ opp-hz = /bits/ 64 <2484000000>;
+ opp-level = <5>;
+ clock-latency-ns = <46000>;
+ };
+
+ opp06 {
+ opp-hz = /bits/ 64 <2568000000>;
+ opp-level = <6>;
+ clock-latency-ns = <46000>;
+ };
+ };
+
+ everest_opp: opp-table-1 {
+ compatible = "operating-points-v2";
+ opp-shared;
+
+ /* pstate #1 is a dummy clone of #2 */
+ opp02 {
+ opp-hz = /bits/ 64 <1092000000>;
+ opp-level = <2>;
+ clock-latency-ns = <7200>;
+ };
+
+ opp03 {
+ opp-hz = /bits/ 64 <1356000000>;
+ opp-level = <3>;
+ clock-latency-ns = <19000>;
+ };
+
+ opp04 {
+ opp-hz = /bits/ 64 <1596000000>;
+ opp-level = <4>;
+ clock-latency-ns = <20000>;
+ };
+
+ opp05 {
+ opp-hz = /bits/ 64 <1884000000>;
+ opp-level = <5>;
+ clock-latency-ns = <22000>;
+ };
+
+ opp06 {
+ opp-hz = /bits/ 64 <2172000000>;
+ opp-level = <6>;
+ clock-latency-ns = <30000>;
+ };
+
+ opp07 {
+ opp-hz = /bits/ 64 <2424000000>;
+ opp-level = <7>;
+ clock-latency-ns = <34000>;
+ };
+
+ opp08 {
+ opp-hz = /bits/ 64 <2616000000>;
+ opp-level = <8>;
+ clock-latency-ns = <37000>;
+ };
+
+ opp09 {
+ opp-hz = /bits/ 64 <2808000000>;
+ opp-level = <9>;
+ clock-latency-ns = <38000>;
+ };
+
+ opp10 {
+ opp-hz = /bits/ 64 <2988000000>;
+ opp-level = <10>;
+ clock-latency-ns = <40000>;
+ };
+
+ opp11 {
+ opp-hz = /bits/ 64 <3144000000>;
+ opp-level = <11>;
+ clock-latency-ns = <41000>;
+ };
+
+ opp12 {
+ opp-hz = /bits/ 64 <3288000000>;
+ opp-level = <12>;
+ clock-latency-ns = <43000>;
+ };
+
+ opp13 {
+ opp-hz = /bits/ 64 <3420000000>;
+ opp-level = <13>;
+ clock-latency-ns = <44000>;
+ };
+
+ opp14 {
+ opp-hz = /bits/ 64 <3516000000>;
+ opp-level = <14>;
+ clock-latency-ns = <46000>;
+ };
+
+ opp15 {
+ opp-hz = /bits/ 64 <3576000000>;
+ opp-level = <15>;
+ clock-latency-ns = <46000>;
+ };
+
+ opp16 {
+ opp-hz = /bits/ 64 <3624000000>;
+ opp-level = <16>;
+ clock-latency-ns = <46000>;
+ };
+
+ opp17 {
+ opp-hz = /bits/ 64 <3708000000>;
+ opp-level = <17>;
+ clock-latency-ns = <46000>;
+ };
+
+ opp18 {
+ opp-hz = /bits/ 64 <3780000000>;
+ opp-level = <18>;
+ clock-latency-ns = <45000>;
+ };
+
+ opp19 {
+ opp-hz = /bits/ 64 <3864000000>;
+ opp-level = <19>;
+ clock-latency-ns = <45000>;
+ };
+
+ opp20 {
+ opp-hz = /bits/ 64 <3960000000>;
+ opp-level = <20>;
+ clock-latency-ns = <54000>;
+ };
+
+ opp21 {
+ opp-hz = /bits/ 64 <4056000000>;
+ opp-level = <21>;
+ clock-latency-ns = <54000>;
+ };
+ };
+
reserved-memory {
ranges;
#address-cells = <2>;
diff --git a/arch/arm64/boot/dts/apple/t6031-dieX.dtsi b/arch/arm64/boot/dts/apple/t6031-dieX.dtsi
index 1624651c1d92..bce4d677ae4c 100644
--- a/arch/arm64/boot/dts/apple/t6031-dieX.dtsi
+++ b/arch/arm64/boot/dts/apple/t6031-dieX.dtsi
@@ -7,6 +7,27 @@
*/
&SOC_NODE {
+ DIE_NODE(cpufreq_e): performance-controller@210e20000 {
+ compatible = "apple,t6031-cluster-cpufreq",
+ "apple,t8112-cluster-cpufreq";
+ reg = <0x2 0x10e20000 0x0 0x1000>;
+ #performance-domain-cells = <0>;
+ };
+
+ DIE_NODE(cpufreq_p0): performance-controller@211e20000 {
+ compatible = "apple,t6031-cluster-cpufreq",
+ "apple,t8112-cluster-cpufreq";
+ reg = <0x2 0x11e20000 0x0 0x1000>;
+ #performance-domain-cells = <0>;
+ };
+
+ DIE_NODE(cpufreq_p1): performance-controller@212e20000 {
+ compatible = "apple,t6031-cluster-cpufreq",
+ "apple,t8112-cluster-cpufreq";
+ reg = <0x2 0x12e20000 0x0 0x1000>;
+ #performance-domain-cells = <0>;
+ };
+
DIE_NODE(pmgr): power-management@292280000 {
compatible = "apple,t6031-pmgr", "apple,t8103-pmgr",
"syscon", "simple-mfd";
--
2.56.0
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH 4/4] arm64: dts: apple: t6031: Add CPU frequency scaling and OPPs
2026-11-21 11:42 ` [PATCH 4/4] arm64: dts: apple: t6031: " Michael Reeves via B4 Relay
@ 2026-11-21 11:52 ` Michael Reeves
2026-11-21 12:11 ` Michael Reeves
2026-11-21 11:53 ` sashiko-bot
1 sibling, 1 reply; 9+ messages in thread
From: Michael Reeves @ 2026-11-21 11:52 UTC (permalink / raw)
To: michael.reeves077
Cc: Sven Peter, Janne Grunau, Neal Gompa, Rafael J. Wysocki,
Viresh Kumar, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Hector Martin, asahi, linux-arm-kernel, linux-pm, devicetree,
linux-kernel, Yureka Lilian
Hi,
On Sat, Nov 21, 2026 at 10:44 PM Michael Reeves via B4 Relay
<devnull+michael.reeves077.gmail.com@kernel.org> wrote:
> cpu_p14: cpu@10204 {
> @@ -272,6 +314,8 @@ cpu_p14: cpu@10204 {
> d-cache-size = <0x20000>;
> i-cache-size = <0x30000>;
> next-level-cache = <&l2_cache_2>;
> + operating-points-v2 = <&everest_opp>;
> + performance-domains = <&cpufreq_p1>;
> };
>
> cpu_p15: cpu@10205 {
> @@ -284,6 +328,8 @@ cpu_p15: cpu@10205 {
> d-cache-size = <0x20000>;
> i-cache-size = <0x30000>;
> next-level-cache = <&l2_cache_2>;
> + operating-points-v2 = <&everest_opp>;
> + performance-domains = <&cpufreq_p1>;
> };
Oops, I accidentally forgot the capacity-dmips-mhz for these ones.
It's just 1024 like all the others. Can you apply that when picking
this up, or would you prefer I send v2?
Thanks,
Michael
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 0/4] arm64: dts: apple: Add CPU frequency scaling and OPPs for M3 family
2026-11-21 11:42 [PATCH 0/4] arm64: dts: apple: Add CPU frequency scaling and OPPs for M3 family Michael Reeves via B4 Relay
` (3 preceding siblings ...)
2026-11-21 11:42 ` [PATCH 4/4] arm64: dts: apple: t6031: " Michael Reeves via B4 Relay
@ 2026-11-21 11:52 ` Janne Grunau
4 siblings, 0 replies; 9+ messages in thread
From: Janne Grunau @ 2026-11-21 11:52 UTC (permalink / raw)
To: michael.reeves077
Cc: Sven Peter, Neal Gompa, Rafael J. Wysocki, Viresh Kumar,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Hector Martin,
asahi, linux-arm-kernel, linux-pm, devicetree, linux-kernel,
Yureka Lilian
On Sat, Nov 21, 2026 at 11:42:45AM +0000, Michael Reeves via B4 Relay wrote:
> Hi folks,
>
> This series adds CPU frequency scaling support, operating performance
> point tables, and asymmetric CPU capacity values for the following
> Apple M3 family SoCs:
>
> - T8122 (M3)
> - T6030 (M3 Pro)
> - T6031 / T6034 (M3 Max)
>
> On T6032 (M3 Ultra), the cores on the first die inherit this support
> from M3 Max, however those on the second are not supported yet.
Please duplicate the values from die0 int6032.dtsi.
Janne
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 4/4] arm64: dts: apple: t6031: Add CPU frequency scaling and OPPs
2026-11-21 11:42 ` [PATCH 4/4] arm64: dts: apple: t6031: " Michael Reeves via B4 Relay
2026-11-21 11:52 ` Michael Reeves
@ 2026-11-21 11:53 ` sashiko-bot
1 sibling, 0 replies; 9+ messages in thread
From: sashiko-bot @ 2026-11-21 11:53 UTC (permalink / raw)
To: Michael Reeves; +Cc: devicetree, robh, conor+dt
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [High] arm64: dts: apple: missing capacity-dmips-mhz on cpu_p14 and
cpu_p15
- [High] arm64: dts: apple: missing cpufreq and capacity properties on
t6032 die1 CPUs
--
commit bda66cc6e2f0fc13ab6cfd1d52b88625bed8a506
Author: Yureka Lilian <yureka@cyberchaos.dev>
arm64: dts: apple: t6031: Add CPU frequency scaling and OPPs
This commit adds cluster cpufreq controller nodes, operating performance
point tables, and CPU capacity values for the Apple T6031/T6034 Sawtooth
and Everest CPU clusters.
> diff --git a/arch/arm64/boot/dts/apple/t6031-base.dtsi b/arch/arm64/boot/dts/apple/t6031-base.dtsi
> index f62ce0690182b..772af1ea37b62 100644
> --- a/arch/arm64/boot/dts/apple/t6031-base.dtsi
> +++ b/arch/arm64/boot/dts/apple/t6031-base.dtsi
[ ... ]
> @@ -257,9 +296,12 @@ cpu_p13: cpu@10203 {
> cpu-release-addr = <0 0>; /* To be filled by loader */
> enable-method = "spin-table";
>
> + capacity-dmips-mhz = <1024>;
> d-cache-size = <0x20000>;
> i-cache-size = <0x30000>;
> next-level-cache = <&l2_cache_2>;
> + operating-points-v2 = <&everest_opp>;
> + performance-domains = <&cpufreq_p1>;
> };
>
> cpu_p14: cpu@10204 {
> @@ -272,6 +314,8 @@ cpu_p14: cpu@10204 {
> d-cache-size = <0x20000>;
> i-cache-size = <0x30000>;
> next-level-cache = <&l2_cache_2>;
> + operating-points-v2 = <&everest_opp>;
> + performance-domains = <&cpufreq_p1>;
> };
>
> cpu_p15: cpu@10205 {
> @@ -284,6 +328,8 @@ cpu_p15: cpu@10205 {
> d-cache-size = <0x20000>;
> i-cache-size = <0x30000>;
> next-level-cache = <&l2_cache_2>;
> + operating-points-v2 = <&everest_opp>;
> + performance-domains = <&cpufreq_p1>;
> };
[Severity: High]
Are cpu_p14 and cpu_p15 missing capacity-dmips-mhz = <1024>?
When topology_parse_cpu_capacity() sees capacity-dmips-mhz on earlier
CPUs and then encounters cpu_p14 without it, it logs a partial
information error, frees raw_capacity, and falls back to a uniform
capacity of 1024 for all CPUs, disabling asymmetric CPU capacity scaling
between the Sawtooth and Everest clusters on 16-core T6031 systems.
[ ... ]
> diff --git a/arch/arm64/boot/dts/apple/t6031-dieX.dtsi b/arch/arm64/boot/dts/apple/t6031-dieX.dtsi
> index 1624651c1d92c..bce4d677ae4c0 100644
> --- a/arch/arm64/boot/dts/apple/t6031-dieX.dtsi
> +++ b/arch/arm64/boot/dts/apple/t6031-dieX.dtsi
> @@ -7,6 +7,27 @@
> */
>
> &SOC_NODE {
> + DIE_NODE(cpufreq_e): performance-controller@210e20000 {
> + compatible = "apple,t6031-cluster-cpufreq",
> + "apple,t8112-cluster-cpufreq";
> + reg = <0x2 0x10e20000 0x0 0x1000>;
> + #performance-domain-cells = <0>;
> + };
> +
> + DIE_NODE(cpufreq_p0): performance-controller@211e20000 {
> + compatible = "apple,t6031-cluster-cpufreq",
> + "apple,t8112-cluster-cpufreq";
> + reg = <0x2 0x11e20000 0x0 0x1000>;
> + #performance-domain-cells = <0>;
> + };
> +
> + DIE_NODE(cpufreq_p1): performance-controller@212e20000 {
> + compatible = "apple,t6031-cluster-cpufreq",
> + "apple,t8112-cluster-cpufreq";
> + reg = <0x2 0x12e20000 0x0 0x1000>;
> + #performance-domain-cells = <0>;
> + };
[Severity: High]
Should the die 1 CPU nodes (cpu_e10..cpu_p35) in t6032.dtsi also be
updated with capacity-dmips-mhz, operating-points-v2, and
performance-domains?
t6032.dtsi includes t6031-base.dtsi and includes t6031-dieX.dtsi for both
die 0 and die 1, which instantiates cpufreq_{e,p0,p1}_die1. Leaving the
die 1 CPUs in t6032.dtsi without these properties causes
topology_parse_cpu_capacity() to abort capacity scaling across all CPUs on
T6032, causes apple_soc_cpufreq_init() to fail with -ENOENT on all die 1
CPUs, and prevents init_cpu_capacity_callback() from ever emptying
cpus_to_visit.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261121-m3-cpufreq-opp-v1-0-42a0c07c48a4@gmail.com?part=4
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 4/4] arm64: dts: apple: t6031: Add CPU frequency scaling and OPPs
2026-11-21 11:52 ` Michael Reeves
@ 2026-11-21 12:11 ` Michael Reeves
0 siblings, 0 replies; 9+ messages in thread
From: Michael Reeves @ 2026-11-21 12:11 UTC (permalink / raw)
To: michael.reeves077
Cc: Sven Peter, Janne Grunau, Neal Gompa, Rafael J. Wysocki,
Viresh Kumar, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Hector Martin, asahi, linux-arm-kernel, linux-pm, devicetree,
linux-kernel, Yureka Lilian
Hi,
On Sat, Nov 21, 2026 at 10:52 PM Michael Reeves
<michael.reeves077@gmail.com> wrote:
> Oops, I accidentally forgot the capacity-dmips-mhz for these ones.
> It's just 1024 like all the others. Can you apply that when picking
> this up, or would you prefer I send v2?
To fix this and add proper T6032 die1 support (as suggested by Janne
in response to the cover) I will be sending a v2 shortly.
Thanks,
Michael
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2026-11-21 12:11 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-21 11:42 [PATCH 0/4] arm64: dts: apple: Add CPU frequency scaling and OPPs for M3 family Michael Reeves via B4 Relay
2026-11-21 11:42 ` [PATCH 1/4] dt-bindings: cpufreq: apple,cluster-cpufreq: Add M3 family compatibles Michael Reeves via B4 Relay
2026-11-21 11:42 ` [PATCH 2/4] arm64: dts: apple: t8122: Add CPU frequency scaling and OPPs Michael Reeves via B4 Relay
2026-11-21 11:42 ` [PATCH 3/4] arm64: dts: apple: t6030: " Michael Reeves via B4 Relay
2026-11-21 11:42 ` [PATCH 4/4] arm64: dts: apple: t6031: " Michael Reeves via B4 Relay
2026-11-21 11:52 ` Michael Reeves
2026-11-21 12:11 ` Michael Reeves
2026-11-21 11:53 ` sashiko-bot
2026-11-21 11:52 ` [PATCH 0/4] arm64: dts: apple: Add CPU frequency scaling and OPPs for M3 family Janne Grunau
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox