mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
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
Subject: [PATCH 1/3] dt-bindings: thermal: Add Apple T7000 die temperature sensors
Date: Thu,  3 Dec 2026 16:55:58 +0100	[thread overview]
Message-ID: <20261203155600.3911447-2-jeroen.trappers@gmail.com> (raw)
In-Reply-To: <20261203155600.3911447-1-jeroen.trappers@gmail.com>

The Apple A8 (T7000) has five die temperature sensors, the tempsensor0..4
nodes of Apple's device tree: two in the power manager, sharing one
register page, and three in the CPU complex (TCC), sharing a second
page. Describe them as one thermal sensor whose cell is Apple's
tempsensor index; the TCC page is optional.

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 | 65 +++++++++++++++++++
 MAINTAINERS                                   |  7 ++
 2 files changed, 72 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..c5418ba9697b
--- /dev/null
+++ b/Documentation/devicetree/bindings/thermal/apple,t7000-thermal.yaml
@@ -0,0 +1,65 @@
+# 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 five die temperature sensors, the tempsensor0..4
+  nodes of Apple's device tree. Two are in the power manager and share one
+  register page; three are in the CPU complex (TCC) and share a second page.
+  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:
+    const: apple,t7000-thermal
+
+  reg:
+    minItems: 1
+    items:
+      - description: power manager (SOC) sensor page
+      - description: CPU complex (TCC) sensor page
+
+  reg-names:
+    minItems: 1
+    items:
+      - const: soc
+      - const: tcc
+
+  "#thermal-sensor-cells":
+    const: 1
+    description: |
+      The sensor ID, Apple's tempsensor index:
+        0 = power manager (SOC) sensor 0
+        1 = power manager (SOC) sensor 1
+        2 = CPU complex (TCC) sensor 0
+        3 = CPU complex (TCC) sensor 1
+        4 = CPU complex (TCC) sensor 2
+      IDs 2 to 4 need the "tcc" page.
+
+required:
+  - compatible
+  - reg
+  - reg-names
+  - "#thermal-sensor-cells"
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    thermal-sensor@e02b000 {
+        compatible = "apple,t7000-thermal";
+        reg = <0x0e02b000 0x1000>,
+              <0x02230000 0x1000>;
+        reg-names = "soc", "tcc";
+        #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


  reply	other threads:[~2026-12-03 15:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-03 15:55 [PATCH 0/3] Apple T7000 (A8) die temperature sensors and thermal zones Jeroen Trappers
2026-12-03 15:55 ` Jeroen Trappers [this message]
2026-12-03 15:55 ` [PATCH 2/3] thermal/drivers/apple: Add T7000 (A8) on-die temperature sensor driver Jeroen Trappers
2026-12-03 15:56 ` [PATCH 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=20261203155600.3911447-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

all inboxes | Powered by JetHome®