From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.43 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796370214; b=oUoawoq2IHrlUnKmUcXzm+EIDQQulY2y4iAEd3lDNoT5+2VlG6mSai567Krfa+fcsrnP SAQ3tNokmyY0W1k2XAMkdHEJxa2PkFent+ghej0BxeL8qYOp4vFRQvrDl9aFWUkZ8CgRC zHgSTFMzDpMfBRaFmk6BNbVh3HgYIT6MeX88t44VkSbKazq9k/o57zkCiCrFIE5buS/h8 sir/6yZ5MNtq3iXgU50kcl2izE+pLDd8FCxHsXf5NmyqS3vNNHNWq6SgHncdVMItp7+Dn zpc5lPEOyrEXQYj/TvI2/cCec2+8WwxMFTzTvNp1j3Rlz6v3hgxhmUdqlSmewzmh4Gg== 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=IHEBlB8PRctJiXrLZG4efN+BhMn1tvGke/aQMRJs03aQu/dl46mZ3dQlD4bgaXd5Ivb2 5QH7XIrPzv3wUWFLMVntxknaHBbAZpVXbWGtpFSnOsp9QVnIqtHrzpUR0s8P2KX+Dt+hB SpkRWS0tOfcrvKM7IELaWz4+wjTEJB+fLqerZr22Y1P/xog5S5nggGGAjs6XSJGw2CXFj 8BXJl/tvPZrhFITgPTzaQprmPjiRqAGQxKJOGIArI6YLOm0JezETEPq3KmzfYGr3VwCsc JnPNZ2xQL+2LgZSky6snFyOS5YQSFHh7ZJbJlrROK7V5/lB33xiAC+FshczbI1u1hqw== 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.43 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (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 CA45A606A68A for ; Fri, 4 Dec 2026 07:43:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org CA45A606A68A 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-f43.google.com with SMTP id 5b1f17b1804b1-4bb85e07aadso6555265e9.1 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=CP3H6A44nqEkChrue+upTPvUp8VwFGdKiyta40whiKIi1RR2nxICSA9aN0q8jiFi/W i7Bw7e7M4LI0VdqO/X6fWGoefi3sRCnz/WPrE5Fhf+W9eUyXGA2t1HVF+udEZc+5k3Yp UCCyUoagvOYNfOgAL/MhqoVRdWEhhlXAWoH7Yw393BRSEZQtko6xBqmjXpAAm3NqQ9ds ritDJ+p5nSINOf8VUF/9VH8/lGdEyfz4vnHL+PGFVOiVo+6k9B4Uiyvr2ml8KW+N+7XE XMElOdEFeXtmRz95XAb1XTRVU/U0bn0ZfamdMNwYv8aHJMOj2A7BiPRzD5TlZuSENe6U UDzg== X-Forwarded-Encrypted: i=1; AL+hErEKCE4ilvrINwht8Nl3Fww+d6d8zgSBtjk2ILZ3p0ukPwTab+0wU3p3/Xr+5tdWcmJPeSXfZ4SZgw==@vger.kernel.org X-Gm-Message-State: APuU4Z8HOD6kbRKka1Nz7eUZId04qui51YDMSWRKP9LgdSjXL8rLTpTr LY6XbAigr2dOhvtz/IKUBkj188JAA/YNBj8nMKbeJRoTv0wCiQ4ziBcL X-Gm-Gg: AZFdTZd2RKf4HDO/Zo1599DRb+26aGZoZ/us0h3t6QSVEKBly3Z28VWez2LFsZTZ1Vi hStkF5yeq3QgbduL+KF8gmTrnvB3wHUrNQI/cmEQQ1h1a5hLctojvwx/MjUQVxMLcEms843GI7g /2JqBu1N+0briWyV7MG/L7srI6W0FbRrgE+/zY3PJeJ75VZacCGn5x2+sopzQkuBsamVH3FA/Nl pPUsoZfa9HKbXRg7tZe/fO0dElBv2ZHRbE6AsRa75GOoH8VW+kr03nmDbcSdznvMBQULBn1+uGJ nNRXZfB1k92AwlbTPzl2uEJXTfoEzcycgmVug+gYiY3n+xiIvXuhnub3NyAFSjrxwGakfwY0CZ2 bC0dBrpaEncqcCmo/G/+60oH18QhAmY9TM7LFmdFQDCRbMmt/23cmjwxCtKWv2gpkWr761LMrkp nEZp/NKNdI+KOxkMKY8JeGVIdgRjrPjZk86EWCGaYdK5QXBiGrFWbEzKlMQEyhdF6haFfMU3IUd knD+/Tu2HaM9SQBYR4qS/DcEp9uz1MKjMN2DOb1yLPfOfQAJoWAO2+1cDcqUD3dBhUW8iZuArd6 dVQOF6r8aHltmSxxdCmGf0pGSthFny2y0X548ZkdBFqk941aInbqGK9FwUqopvce0/WsaFaM9lI U5VooDP2V3lAfZ89mNn/1U8NzhlDtRST1kVNmnRIqyX31ItRgBKyOa0mKsF3Y6fWm9Q== 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: linux-pm@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