From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.208.53 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796313454; b=BwPZcAV+TT4UYHK0I0My3izOuSwgIxLP4cOKQpmB48ixY6/X5TeEmmIpgZ+YWByM+W6L OWHUPoIlMXpvAtSJrPUgRPLqDjuWbg6uE6CDG699a3IRci9vVHMoXxlQiixR+8dp/Ib5G xeWV44kv7myDUzuYTN16UtUnbeJ+ClgHCzPSH63YN+rTlnk5JSHCGtRJDzQSpwAGMP9Ow GZ3uw5RgAlxEWZUbxEvEAXL/wGKsRO8IMV14Vvy7J6crwQP8oQdratXQrZ86uwcfXf1hT IjTljYtdhVSFtnwrRdz3xP7DMXcBoXFUxeX8LZQWVxJFbwwGI2tkXVsL/D7pCfZwDVA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796313454; 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=bq2g9v/f7ZfCZIE+WRUM7Jeo+NW9QM3QQWul+TDVaBw=; b=agpgJvIkCT6QsVlbWxYSmnXiADTgWWO7ZvanUyjzkVW7NbYEtI/HAD5uS3FzsM/nL5qQ MMgXhTYVZcEIXR9o2zewC/EI1YbW+hG3Ixia3z2RjIv6LRso2GKxvAhfi9WaPruvJkbVu DzHUFdKnhNcrHp7RzccTpKuvZwhQtUP+cy/qdzMt3qYgza7fan7PWptU5xa8fVBvnM/Uo w1ngROrREO51/u+QUUZD1OIB69oh2CG+C78OMfDOkIGtCXbblricNphJBy9b1t+DIRmPF H6TCJr1fCbfspam8/oL7W8L0hYC3yDlDY/wElAtTgQSxhF7tKyHuhKTTudUnX5qkDYg== 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=ivapmG53; arc=none smtp.remote-ip=209.85.208.53 Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) (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 C7BD1606A33F for ; Thu, 3 Dec 2026 15:57:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C7BD1606A33F 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=ivapmG53 Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-6b88d143160so16939281a12.1 for ; Thu, 03 Dec 2026 07:57:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796313452; x=1796918252; 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=bq2g9v/f7ZfCZIE+WRUM7Jeo+NW9QM3QQWul+TDVaBw=; b=ivapmG53aw5qmV24qNOKQ134frgq5yShrZ2RjyLwmt/S6guZ7bDShwoorOOl6HZ6wo md+qfVO/ekIlqqoxn9Gnadt+H1eQZtS/DN9Mjg8/ekvwmYMnk53+aFgewGVJTSI6tjTY X7Z4qkjbaeUCFbZxz5uKy+h9iD7H7+2oyBRNufQeWsyHgPsVCikasohxuDKFhAxVd54G OphxvdjsTU0KlIdgEHOIeCN34370F9JoQkjgLhDnvKIEpxCzry64HjnKJRjoCz6tbvqk qmGsII9lcXfxMdrkpwOmtI3ZHbuRuKU6NHxm58mVucvo8Ztt7wZF9ERRCaEnjUaWgPU3 5MQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796313452; x=1796918252; 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=bq2g9v/f7ZfCZIE+WRUM7Jeo+NW9QM3QQWul+TDVaBw=; b=NTQSZAwsyGSsgu0U2Gyzy6zxjJAL0GxbxNvpi+ruk4cRjAYw/NgerovT44lziTO/v/ t0x+f2F5z/DKyjjaQ+jtOChTHJDyIGmBj9zxUQPfw3E9M8tIETeHqoQIxQ2fCH6/bE7X 5JcM5JmugzyQTmL+ln1ZJzR6RAEeS/khsdzikiXQmEwUTB9oKsOZ1zhA0V5+TlgHsGYU QD68+aOXZ+exGI/BFRKV/99cC+BmrvBQm3lYRJwL0KvcqWJ3KS9imDrDxpGfNGDOLaHa jHfGoswaSnXsrNt5jPevkBKgeEiExJ5MGX9iV/Nc+uSfBrbXCRCX+uauFy7SHbk5YH++ cj2w== X-Forwarded-Encrypted: i=1; AL+hErGKqwFtv0SEb/FyPLYO/Cy7MqCxS3SbRRr2lVNAYnLf0ALgw5O7T3UMLiyDryHbvhwYjjBxWF02QiY/ZTw=@vger.kernel.org X-Gm-Message-State: APuU4Z98RrRvhn3UiXJIEiW2GQFRmQ1C0ejYgg+/WKfWSNbRxbWR7IYi c9Pb/gzFQN462LDoP2retzJRqrysFoab8kap0qUkOyEF9ipYsxY2g5tm X-Gm-Gg: AZFdTZfYowy2ZaHPYXNm7UR7059vxk9Q+ve7slWn+hR0wwEk1RwHCBa3a+DXAXMPWLR Jo5gqWVVtPFyOxik530bj2kLcMk9ITReAcjw4NWxxe76vq0TXmPyMBE5nBfMwG4wGf2j3bT4fyL QyP4gl8tFG4HmcolXBjt47nyVJWF+bD6mVA3tvSnBEpooCO5q3frztlvG/ajEmkXKOqRAjt1IQd GiN9ZRyrGApcHoI8JDZ2hh9CzKLlDb8UTNnjiBkJTD1EzT/EspRbSGJeP+1Gn9/+xMRpVe2EMne lqnpPiSN7ykBVW20TQyWa6kBuIDOsscIjV9/uDSAuGdDS9f5haXapyD+VmIDrCFbwVUlc1tR2Ho E8A2NJt19gToPPibbQ/pHH/17CbHihCVagNO98j5kNcXHjy3F7ftadohVI6r2mtPLEuuxmQ+xq8 JQBqC+zGoU85O7VdPgDJevGpEE9WPOtjqbfoagPd7A5DOy3XE3EzNcR6bPSRRFA4ihbAJbv+2fj EALAVc8KW0d89fvxqEKMgzqu2UykYghSb3wt8ZBfRUEuWzO/7RPOEINTrjyE5WOYIKbwunaCoGn KQ4rL9WQERkf0GK580BWAjuqEyYFQ6A/Y2JlR2XOe2mRDCu40cALcESaq/p6yKRU5SUm40/7wAH 7RcB0OC9jbPgAXYtdmTYwj0IpQqLJygcf8IcIuEUgkprN X-Received: by 2002:a05:6402:1e90:b0:6b6:8ed8:765a with SMTP id 4fb4d7f45d1cf-6ba37eb79cdmr30419889a12.38.1796313451916; Thu, 03 Dec 2026 07:57:31 -0800 (PST) Received: from thinkpad16.ts.appmire.be ([94.110.48.221]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-6bc65ddf159sm1896383a12.10.2026.12.03.07.57.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2026 07:57: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 Subject: [PATCH 1/3] dt-bindings: thermal: Add Apple T7000 die temperature sensors Date: Thu, 3 Dec 2026 16:55:58 +0100 Message-ID: <20261203155600.3911447-2-jeroen.trappers@gmail.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261203155600.3911447-1-jeroen.trappers@gmail.com> References: <20261203155600.3911447-1-jeroen.trappers@gmail.com> X-Mailing-List: linux-kernel@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: 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 --- .../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 + +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 +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