[PATCH 3/3] arm64: dts: apple: t7000: Add die temperature sensors and thermal zones

From: Jeroen Trappers

Date: Thu Dec 03 2026 - 10:57:45 EST


Describe the A8's die temperature sensors and add three zones: the CPU
complex (TCC sensor 2) and the two power manager sensors. The CPUs
throttle from 70 C (apple-soc-cpufreq is the cooling device), 90 C is
hot and 100 C, the alarm temperature in the boot chain's device tree,
is critical, below the hardware failsafe (SoCHOT) at 120 / 125 C. The
CPUs are the only cooling device, so the power manager sensors, which
also see the GPU's heat, throttle them too.

The sensor page lies after the end of the pmgr node's range
(0x20e000000 + 0x24000), like the watchdog's.

The trips were validated on the iPhone 6 (N61); they are conservative
for the other T7000 devices, which share the SoC.

The nodes were drafted with an LLM coding assistant and reviewed by me.

Signed-off-by: Jeroen Trappers <jeroen.trappers@xxxxxxxxx>
---
arch/arm64/boot/dts/apple/t7000.dtsi | 119 +++++++++++++++++++++++++++
1 file changed, 119 insertions(+)

diff --git a/arch/arm64/boot/dts/apple/t7000.dtsi b/arch/arm64/boot/dts/apple/t7000.dtsi
index 0342455d3444..ecac3d3b59b4 100644
--- a/arch/arm64/boot/dts/apple/t7000.dtsi
+++ b/arch/arm64/boot/dts/apple/t7000.dtsi
@@ -12,6 +12,7 @@
#include <dt-bindings/interrupt-controller/apple-aic.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/pinctrl/apple.h>
+#include <dt-bindings/thermal/thermal.h>

/ {
interrupt-parent = <&aic>;
@@ -34,6 +35,7 @@ cpu0: cpu@0 {
reg = <0x0 0x0>;
cpu-release-addr = <0 0>; /* To be filled in by loader */
performance-domains = <&cpufreq>;
+ #cooling-cells = <2>;
operating-points-v2 = <&typhoon_opp>;
enable-method = "spin-table";
device_type = "cpu";
@@ -47,6 +49,7 @@ cpu1: cpu@1 {
reg = <0x0 0x1>;
cpu-release-addr = <0 0>; /* To be filled in by loader */
performance-domains = <&cpufreq>;
+ #cooling-cells = <2>;
operating-points-v2 = <&typhoon_opp>;
enable-method = "spin-table";
device_type = "cpu";
@@ -216,6 +219,14 @@ wdt: watchdog@20e027000 {
interrupts = <AIC_IRQ 4 IRQ_TYPE_LEVEL_HIGH>;
};

+ die_temp: thermal-sensor@20e02b000 {
+ compatible = "apple,t7000-thermal";
+ reg = <0x2 0x0e02b000 0x0 0x1000>,
+ <0x2 0x02230000 0x0 0x1000>;
+ reg-names = "soc", "tcc";
+ #thermal-sensor-cells = <1>;
+ };
+
aic: interrupt-controller@20e100000 {
compatible = "apple,t7000-aic", "apple,aic";
reg = <0x2 0x0e100000 0x0 0x100000>;
@@ -274,6 +285,114 @@ i2c3_pins: i2c3-pins {
};
};

+ /*
+ * The CPUs throttle from 70 C, 90 C is hot and 100 C (the alarm
+ * temperature in the boot chain's device tree) is critical, below
+ * the hardware failsafe (SoCHOT) at 120 / 125 C. The CPUs are the
+ * only cooling device, so the power manager sensors, which also see
+ * the GPU's heat, throttle them as well.
+ */
+ thermal-zones {
+ cpu-thermal {
+ polling-delay-passive = <250>;
+ polling-delay = <1000>;
+ thermal-sensors = <&die_temp 4>;
+
+ trips {
+ cpu_alert: cpu-alert {
+ temperature = <70000>;
+ hysteresis = <3000>;
+ type = "passive";
+ };
+
+ cpu-hot {
+ temperature = <90000>;
+ hysteresis = <3000>;
+ type = "hot";
+ };
+
+ cpu-crit {
+ temperature = <100000>;
+ hysteresis = <0>;
+ type = "critical";
+ };
+ };
+
+ cooling-maps {
+ map0 {
+ trip = <&cpu_alert>;
+ cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+ };
+ };
+ };
+
+ soc0-thermal {
+ polling-delay-passive = <250>;
+ polling-delay = <1000>;
+ thermal-sensors = <&die_temp 0>;
+
+ trips {
+ soc0_alert: soc0-alert {
+ temperature = <70000>;
+ hysteresis = <3000>;
+ type = "passive";
+ };
+
+ soc0-hot {
+ temperature = <90000>;
+ hysteresis = <3000>;
+ type = "hot";
+ };
+
+ soc0-crit {
+ temperature = <100000>;
+ hysteresis = <0>;
+ type = "critical";
+ };
+ };
+
+ cooling-maps {
+ map0 {
+ trip = <&soc0_alert>;
+ cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+ };
+ };
+ };
+
+ soc1-thermal {
+ polling-delay-passive = <250>;
+ polling-delay = <1000>;
+ thermal-sensors = <&die_temp 1>;
+
+ trips {
+ soc1_alert: soc1-alert {
+ temperature = <70000>;
+ hysteresis = <3000>;
+ type = "passive";
+ };
+
+ soc1-hot {
+ temperature = <90000>;
+ hysteresis = <3000>;
+ type = "hot";
+ };
+
+ soc1-crit {
+ temperature = <100000>;
+ hysteresis = <0>;
+ type = "critical";
+ };
+ };
+
+ cooling-maps {
+ map0 {
+ trip = <&soc1_alert>;
+ cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+ };
+ };
+ };
+ };
+
timer {
compatible = "arm,armv8-timer";
interrupt-parent = <&aic>;
--
2.47.3