From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.45 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796370214; b=dBcW6v4BJMXS9mM7cgba83ySVjl9dAYsfI9BWSncNOEJ1BkBrIioA+xNpKVDRgAVW4Ug BfqeWVVFC/8c7NuwGGAJgc22Wo0f9R+rbOmAwIInVZuRtS4iM72d1tG6efjUSKD4F12oK geSes2Y2ZRA/vGsS7GIFbJXZaEIxVYuGfS1VTZU4uzmYlttkpTHXkwzadzd9DwQaW9CE2 ThKNDflfCencREoYtzeUC+7B66BmabG/1UN9CHOEqNEE2jlPXNyRcLJIfRs1Lx8Z22JGt un01WXsoNPx9uT8y4S+hkGoH06WY0whhabGxhHHSpersb2o5O75vQWJkwGobwmdk61Q== 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=zt8UKs13d/ImTxrjLKY3Qbmt8dlE2Frr+C9h/ugA70pAXYak0KvRnwFbpwpCjoUXkoTh qC+lUxu7sWYzvv5um4dwjn6H/OwFbnpAD0GQaK1LR4A9Hnh/K2FVP/Ktlrp7jEb3ANYUQ tM8yuW/eSg2vznJUFwpc1KP7M0/5CNvK0zE1eGc0hp9AXNG7RA7GZ6Ra5/If8JeeOdetX 0O6XJAg1Md6xdx4p9Fzuc3FwNBUqxXximmBV8oLRO0pD47KgapLKz+tR0SbDNBsfytqqG rbxbYTtcqDCTB91jSnCZT3EH1InEDq9FPQiGj7L1pbpW6DSIoIcLFaVtFIq4qvgJCcQ== 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.221.45 Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (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 CCF25606A684 for ; Fri, 4 Dec 2026 07:43:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org CCF25606A684 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-wr1-f45.google.com with SMTP id ffacd0b85a97d-491971ac844so554507f8f.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=pwMM5OMXVIB/Y3O9RE7eNidEaMVVu0YfLSqd5G7XI/1dePrrDHptrMOV8Vj9y87AZw cpfa1RIjAKoqi6P3XCywIXjDNOBZesup2OkA1p/ipvZx8XGRieAKbsBrNROCkp0U2sn6 Cwqh/4bUNxNlDCfS4VqxRgH3bE5Q88eTFkATPSgo3u/fsvsws3/fF6KuELN+gCuB6U9l EOyTXiDB1U+yrLh9ANROGM6fLjuiRsGE2zGdLmyjIwZhw5BIUj6rZa2hZXcpcQEui1+l U7lK0jZWFnfupmq7x/cmBkn9qCn17fjbozSQHgObLWbz0YFhgyWQu5TlqQ5hQP8uBxfp AEBg== X-Forwarded-Encrypted: i=1; AL+hErGovvObkRQfwS3OnsuXrucZWZi3aQKkw2eBEYws7yRyvkgEGcH5g9iZGq6SV1csSjClE5SBWeHLcIWvm+8=@vger.kernel.org X-Gm-Message-State: APuU4Z8Fk63CbyBJIE4WBwWES282ZlL6zOo+fVIXb9LuAHiBk1N13O4j 3E/odNw42Q7VUqBIkx4rwt3VwbqYU6rKNfzciEBMAlfER3oCHqz4tbfU X-Gm-Gg: AZFdTZegdQ346dlsbuXMlhLeZ7DSNDYXvh3Oop5VfeYLvhcTlw7owiG74nGvveFOI1Y hrtfcNvxj/RCvC1pFLCZT4nAZJbs0OYX3zzWPQcDo+JYSyQGExvaayl9FQa8biANuv2OCGwcsQD xhdqmOhU5srKW9dXdMrTh97qw4lZ0qbhBbHmG0YzdYCLdCMtMmN8ODvFIRve/lqqJ1DBN6l4vgN S3nchwC2xNvzWL0VTf0NXUO1e7qmi4XmIG8nj58/t2SiIItmzRVNQPPvI5itbD9LnVnDEfSu57D 6043tiWWdWRfhRbLxIihZLizhve1DWa7kgv9m/Zfa8sqMnh9Cd7iSUu6TDgqLsVpn1thpmW4pIH 7PAnV+KMtYNvpLYkVV3If39Dvz/a+a2YIZ10wYQUWhCeZRAybE50/T1G4szeWSxhqKkVuT8RKMM 0AKi8L0ygL0YKUeRYZ3ZPlPwCx8fI//NP3Th3K8CFxzXELllRCFNcvHCr98tdk374lvTdRfZR0W jqto0tYKkv8lsIkZsVgMePl2qdlsmYgC8gpgtsquRZbzG7wyZ72pfjyVwRu01UeEEhEXMU0czAY W8LCdxU0PrRlZYyatKNpZTC62MX2l0Kog4NehKwl9BtRFbfDBw6eU/P2L9xIzTLKLcKIt+xwwgS h1LZRUZIhnvCNH5wI5a3HKhlCGmnPlfFPIbmtEneTO5UhGonaWoA5TvdcNMU2RfmVWw== 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-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, 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