From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.54 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796370214; b=SjN5P00T7Cm99W3xzChcpGLS1CXCuzYWxrubr05uz4UmguZUNqZd6kXQHgG1uOBkL1aO DKZtQqd/Zc5TWMaaXIjBgL641KlC1NXzduzdjPjMihYBPn+icZgCRi/2iR4N8YHKTgbsc akGswJFSxSrlqcFJ1jyji5E3m7ZNlBu2wAQ23exJtklBAFwYb3D4dXqmESbQk7exDE9xm KNdUWOxJVLeAmicoaT96AwC9h6/iXM4+0A/cOev2sFzqoQA8YjPqSol15PUyohEVSVUiT lDEMfcb6UUUG5VayWaR+SRsnow2hLpZkCUxo3vo82aZlML84g0SHHKgdCAk2xi0QdtA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796370214; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=wgBQGL4z2/9BrUXwvBW5+wq4Zf0ZHVKEnlyMS8q4zfw=; b=ttetBoLc1uTwfcih6kXMLZlGZPNNS/E770AwGfdm4zsgW18gjfH0p4Y0uXcEfnuHQGph t7VbsVnPrqLWceh9z17CctkPCQ5dst4pxaNKH36sgfs9beIA07BVO1zZXW4Gp/XL2HMQf H9lGKJ7MDoM83v2+hGhBEzzN84VOO3Z42JoXt0gyv2jBenEhsQ6Xh3JJWBwaWL5IuZoE+ J7yP27EZOPLgCEq2WtrtYrVVecmlt70WblX8P/xQEQDrgh3CYDhJlWnDlvdTy+mfDNS2e Whq/6dkF3RDD66Pp99s9/BIFWo7TpLZ7NtMbh+ce62qVNljijIAWsKVQs/qfHqmOP3w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=cgpyJQKy; arc=none smtp.remote-ip=209.85.128.54 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CF6D8606A68C for ; Fri, 4 Dec 2026 07:43:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org CF6D8606A68C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=cgpyJQKy Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-4bba60271d7so5120195e9.2 for ; Thu, 03 Dec 2026 23:43:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796370212; x=1796975012; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=wgBQGL4z2/9BrUXwvBW5+wq4Zf0ZHVKEnlyMS8q4zfw=; b=cgpyJQKyk2ByDA0Cas3rl9+eP4OjD0JW6+KnUzdrMBUI6PdwpQBypGy3aTb4nKeVRk njG+pxwYXLtFpK177W/Wn+U+xrpZJWWPPMMW5avyOZ2yTDVDFjCbrHzX2kAJQeT4tccZ /nosMQSkj9uV3dxfqXa3oJLQ2yx+idOliRAinQS6k+PcbcDrpgLQY6TfQUViwpJWWzbx Bf9CIlsSObEndOT0SnqdEoN22pspcRT+ZBr1pmrXiOSeWuZjVLpVpSlJaY18o6Pe4BR1 fVQRfRteaTz74tbHrVLxEE15tEQ+HQZz4x9dBXTbIiJm9jjRWX2uk1fa4ZwvNLthJvFW HubA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796370212; x=1796975012; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=wgBQGL4z2/9BrUXwvBW5+wq4Zf0ZHVKEnlyMS8q4zfw=; b=ZjVt8aHyo8u1esrxWvzgzTeZFcz+Sx++VkNpdLNYByD1qaaDaqxHfzonzOEMoDp5zd bWDgz6Yrqu8XFd52uYLO9XiYrgW5xE9baYmm0dBOAKEitd0C3CY+aOcx4xUy4ssz0wUr k6XCc4o9mufM6FqD/0CNb9RzXAqiKZ2pEYUvR5zBDMHhbjByaHrB6BiOmTNt6cVI4Cyb zeVDfDEV3KcDKv7KKz9WVlaO9xrR5XkMcaUvNeYzj/hLMcrPLo57MYSP5w6rm786zOBf 27GIY/XguVJUpKgjgR0i86bYTbpL82+OAge8Id31X/Uz4tON+XvZiHBZdIq75Kdbz2E+ 2V1A== X-Forwarded-Encrypted: i=1; AL+hErF6i9ZYvq9Z35pcVLepE1dt6J/XZG3B77Z8jCQ77rZMG3qXQlDX+ckreAbHUfxHg5Y2Cv3bh7tnZ1n3@vger.kernel.org X-Gm-Message-State: APuU4Z8hf/5dh9s2CeZz0ND7UWstUKff0z6Utw6qOqCHaBNRPhNdbWVY HyKnbRRCq4JDu/YoJQNIJN1LX2s+hptxD/DlScb/lma05FdkY3iBROxQ X-Gm-Gg: AZFdTZclKyCvPIr71hXDPnIwUPh7WWG7+RML+cv+KG7vqU/CQ3XiEI2wlgH9UM2lp18 2nJQnjGU8KuDYqRWXyNmia9fTjG8opK+6G8TgXHJHe7Y2xVOJaaPZE+wzd1IOvrSGluOA8F9ZQf ZN8YTLLRzDbZ5nMk3HWw9n/7/8C8lPf8xTW2ooqvC0C162TUOeqU0Is55GeX3+3coTwBt/kC5QB SI8IOio2Jcj6K0x3oCENtxSR21/1hHTciMF6ccnUUBhxhF9+EyvfrX/yehxA1jqRU38ov/AYvJ4 4EiPkoFyOKkSVYlZGGPv3imYN6AJ5YlI+pEE0BKFEX2OgOBxBAgl2aHX66UvNxzv6y4+3mPJFv+ k7LBhSG5yhoeHKk6caYqulORNdlm3UmRESyVUlQiWZ9mM5eRXJtzyPaWnyENmxuS/Gaa51t4H0U XAd7MNv62YGG14lgftoJNxBVUiF4Bb5SvYI8q9la/3kbdMv/V80egMElH61IXAMfN4ywCyzE2ic 2BMdZdxj3+AkCC78xvIaig115xbcAYmls0hKK7HQvsCRdEEH8Z4UWtGM5wjhRGcFUBa0Q2eM/OJ kRoFBn3UtjLonrSHzFz4umGv9W85BCKZv82q2K5iB1ez1xHK7ZlmEdrLPEfLqmnpIBWxIYi+8W9 BhBemAR7OeEvN2I4mTRUj9PVcuo4oAW4UgbF+xJonuF1D9yvHOijct72hTUEkkhUugQ== X-Received: by 2002:a05:600c:3b04:b0:4bb:6118:4c9a with SMTP id 5b1f17b1804b1-4bbeb8cf058mr18019875e9.30.1796370212247; Thu, 03 Dec 2026 23:43:32 -0800 (PST) Received: from thinkpad16.ts.appmire.be ([94.110.48.221]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bbe003108asm129692405e9.1.2026.12.03.23.43.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2026 23:43:31 -0800 (PST) From: Jeroen Trappers 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 Subject: [PATCH v2 1/3] dt-bindings: thermal: Add Apple T7000 die temperature sensors Date: Fri, 4 Dec 2026 08:43:26 +0100 Message-ID: <20261204074328.3741080-2-jeroen.trappers@gmail.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261204074328.3741080-1-jeroen.trappers@gmail.com> References: <20261204074328.3741080-1-jeroen.trappers@gmail.com> X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- .../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 + +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 +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