From: Jeroen Trappers <jeroen.trappers@gmail.com>
To: rafael@kernel.org, daniel.lezcano@kernel.org, sven@kernel.org,
j@jannau.net, robh@kernel.org, krzk+dt@kernel.org,
conor+dt@kernel.org
Cc: rui.zhang@intel.com, lukasz.luba@arm.com, neal@gompa.dev,
towinchenmi@gmail.com, konradybcio@kernel.org,
asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org,
linux-pm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
Jeroen Trappers <jeroen.trappers@gmail.com>
Subject: [PATCH v2 1/3] dt-bindings: thermal: Add Apple T7000 die temperature sensors
Date: Fri, 4 Dec 2026 08:43:26 +0100 [thread overview]
Message-ID: <20261204074328.3741080-2-jeroen.trappers@gmail.com> (raw)
In-Reply-To: <20261204074328.3741080-1-jeroen.trappers@gmail.com>
The Apple A8 (T7000) has five die temperature sensors, the tempsensor0..4
nodes of Apple's device tree, in two independent blocks with their own
register pages and layouts: two sensors in the power manager (PMGR) and
three in the CPU complex (TCC). Describe each block as its own thermal
sensor node, with a compatible per block and the sensor within the block
as the cell.
The binding was drafted with an LLM coding assistant and reviewed by me.
Signed-off-by: Jeroen Trappers <jeroen.trappers@gmail.com>
---
.../bindings/thermal/apple,t7000-thermal.yaml | 57 +++++++++++++++++++
MAINTAINERS | 7 +++
2 files changed, 64 insertions(+)
create mode 100644 Documentation/devicetree/bindings/thermal/apple,t7000-thermal.yaml
diff --git a/Documentation/devicetree/bindings/thermal/apple,t7000-thermal.yaml b/Documentation/devicetree/bindings/thermal/apple,t7000-thermal.yaml
new file mode 100644
index 000000000000..1d969a8fbab2
--- /dev/null
+++ b/Documentation/devicetree/bindings/thermal/apple,t7000-thermal.yaml
@@ -0,0 +1,57 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/thermal/apple,t7000-thermal.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Apple T7000 (A8) die temperature sensors
+
+maintainers:
+ - Jeroen Trappers <jeroen.trappers@gmail.com>
+
+description:
+ The Apple A8 (T7000) has two blocks of die temperature sensors, each with
+ its own register page and layout. The power manager (PMGR) block has two
+ sensors; the CPU complex (TCC) block has three. Each sensor accumulates
+ samples between a start and a freeze of its control register; the result
+ is a signed fixed-point temperature in degrees Celsius, converted with the
+ calibration the boot chain programs.
+
+$ref: thermal-sensor.yaml#
+
+properties:
+ compatible:
+ enum:
+ - apple,t7000-pmgr-thermal
+ - apple,t7000-tcc-thermal
+
+ reg:
+ maxItems: 1
+
+ "#thermal-sensor-cells":
+ const: 1
+ description:
+ The sensor within the block, 0 to 1 in the power manager block and
+ 0 to 2 in the CPU complex block.
+
+required:
+ - compatible
+ - reg
+ - "#thermal-sensor-cells"
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ thermal-sensor@e02b000 {
+ compatible = "apple,t7000-pmgr-thermal";
+ reg = <0x0e02b000 0x1000>;
+ #thermal-sensor-cells = <1>;
+ };
+
+ - |
+ thermal-sensor@2230000 {
+ compatible = "apple,t7000-tcc-thermal";
+ reg = <0x02230000 0x1000>;
+ #thermal-sensor-cells = <1>;
+ };
diff --git a/MAINTAINERS b/MAINTAINERS
index 84cb98ef4c49..667f9f37b824 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -2140,6 +2140,13 @@ L: linux-hwmon@vger.kernel.org
S: Odd fixes
F: drivers/hwmon/applesmc.c
+APPLE T7000 THERMAL DRIVER
+M: Jeroen Trappers <jeroen.trappers@gmail.com>
+L: asahi@lists.linux.dev
+L: linux-pm@vger.kernel.org
+S: Maintained
+F: Documentation/devicetree/bindings/thermal/apple,t7000-thermal.yaml
+
APPLETALK NETWORK LAYER
L: netdev@vger.kernel.org
S: Obsolete
--
2.47.3
next prev parent reply other threads:[~2026-12-04 7:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 7:43 [PATCH v2 0/3] Apple T7000 (A8) die temperature sensors and thermal zones Jeroen Trappers
2026-12-04 7:43 ` Jeroen Trappers [this message]
2026-12-04 7:43 ` [PATCH v2 2/3] thermal/drivers/apple: Add T7000 (A8) on-die temperature sensor driver Jeroen Trappers
2026-12-04 7:43 ` [PATCH v2 3/3] arm64: dts: apple: t7000: Add die temperature sensors and thermal zones Jeroen Trappers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261204074328.3741080-2-jeroen.trappers@gmail.com \
--to=jeroen.trappers@gmail.com \
--cc=asahi@lists.linux.dev \
--cc=conor+dt@kernel.org \
--cc=daniel.lezcano@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=j@jannau.net \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=lukasz.luba@arm.com \
--cc=neal@gompa.dev \
--cc=rafael@kernel.org \
--cc=robh@kernel.org \
--cc=rui.zhang@intel.com \
--cc=sven@kernel.org \
--cc=towinchenmi@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox