[PATCH 0/3] Apple T7000 (A8) die temperature sensors and thermal zones

From: Jeroen Trappers

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


The Apple A8 has had no thermal zones in Linux: unlike Apple Silicon
Macs it has no SMC doing thermal management in firmware, and on iOS the
kernel reads the die sensors itself. With nothing reading them, the
only protection is the hardware failsafe (SoCHOT) at 120 C.

This adds a binding and a driver for the A8's five die temperature
sensors (two in the power manager, three in the CPU complex), and
thermal zones in t7000.dtsi on three of them that throttle the CPUs
from 70 C, with 90 C hot and 100 C critical.

The register interface is the one iOS drives (AppleT700XTempSensor):
only 32-bit accesses, a freeze / read / restart of each sensor's
accumulator, no writes to calibration, alarm or SoCHOT registers, and
the per-sensor offsets from the tempsensor0..4 nodes of the iPhone 6
device tree. The driver is adapted from Berkay Kösebay's out-of-tree
A9 (S8003) driver for the same block. The A8X (t7001) has the same
block; a compatible for it can follow once it is tested there.

Testing, on an iPhone 6 (N61), with this driver byte-identical on a
7.3-rc1 based kernel (the iPhone 6 port this work comes from), whose
t7000.dtsi has the same sensor node and whose n61 zones use the same
sensors and trips (plus a GPU cooling map for a GPU driver that is not
upstream); the v7.4-rc5 tree itself was not booted:
- the used sensors (IDs 0, 1, 4) accumulate about 400 samples a
second; the unused TCC0 / TCC1 are left untouched; unbinding the
driver stops the used ones again;
- 37 / 38 / 40 C (SOC0 / SOC1 / CPU complex) idle after boot;
- two busy cores take the CPU complex sensor past 70 C within 10 s;
the zone steps the CPUs to 1128 MHz and holds 67-74 C, while the
power manager sensors stay at 55-61 C.
On v7.4-rc5: W=1 / W=12 builds (arm64, and x86_64 with COMPILE_TEST),
checkpatch --strict, dt_binding_check and CHECK_DTBS for every t7000
board are clean.

Tool use (Documentation/process/generated-content.rst): the series was
written with an LLM coding assistant over a longer working session. It
drafted the driver (adapting the A9 driver to the A8 offsets and the
iOS register sequence), the binding, the device tree nodes and the
changelogs, and ran the on-device register checks, thermal tests and
build and schema checks under my direction; a separate LLM review pass
found issues that were fixed before posting. I have reviewed the
series and can answer for it.

Jeroen Trappers (3):
dt-bindings: thermal: Add Apple T7000 die temperature sensors
thermal/drivers/apple: Add T7000 (A8) on-die temperature sensor driver
arm64: dts: apple: t7000: Add die temperature sensors and thermal
zones

.../bindings/thermal/apple,t7000-thermal.yaml | 65 +++++
MAINTAINERS | 8 +
arch/arm64/boot/dts/apple/t7000.dtsi | 119 +++++++++
drivers/thermal/Kconfig | 13 +
drivers/thermal/Makefile | 1 +
drivers/thermal/apple_t7000_thermal.c | 239 ++++++++++++++++++
6 files changed, 445 insertions(+)
create mode 100644 Documentation/devicetree/bindings/thermal/apple,t7000-thermal.yaml
create mode 100644 drivers/thermal/apple_t7000_thermal.c


base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244
--
2.47.3