From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2D55F3ABD8C for ; Mon, 6 Jul 2026 16:08:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783354121; cv=none; b=smD77dPu0I1zc0f71Uz/ZfHc1bRN7r4hHc0PEas7YGDLMy0r59fBzxDgKUbwa2ZosBqx2bGYwG4N63oGuSO2BWCqenNEYSO5GVp4UzO9TAqZp96gsk2OmcZXRumZ27W3bz8CEbROonGDA6snV7XaBqvuh4AUCvn6u64IkDPJRFg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783354121; c=relaxed/simple; bh=csBCDgH3M6DZ4OQcPp6xjLvnA/f4U6oeBWnobJdNGXA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=myjErIXzTRsQTCliWFvliZLsXkdp4DR1WAAeOO0ervvACwQbNZi5UnDuGjGkjNkTB+uo3B+DGdK9NNcN/2cV9ZHZoij5G2TjK2eef03zSMNGneduv9N9juN2qOWWnzL5kjz7eSyXJFGRqbwKQWcAl3hFEErQJ50hklrUpf2Arh8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=XTtGgCGv; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=dU5b1OnI; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="XTtGgCGv"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="dU5b1OnI" Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 666FF0KE825594 for ; Mon, 6 Jul 2026 16:08:39 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=Pf9tIRdfDyri9p8ozQjkuW mmRnclsJ800KP5REMMFqI=; b=XTtGgCGvGdLie3cMoJt2TWHkM60JPxucgH2NKQ m3eOHlToTMrTqcRPG31j2BvMX/MAJ/BjralgXjuEkxaaZPRCcD9oLcqpHShg6eui AvJ7rLhVB/k9L/pOGHZCn2AQygYlVc8ek0C+byEVtHxJObWkb2EvNzWpIq2VQH5k F1/+ALVQnnEb7+VsWpe+e2IpcyNCGJaw7V98tVBzwAs3d7cxH02mc4dK/KqCN6o2 hZH33woLbRo8cT67vkba1ATPeo/zDukD/m/2jnwxeKsZBwc4wD60/YOYMKqQhkYp bWD3HhZAqhdqa2RJrt1PjxN2TYlfLuMlLuHXX3Vzjh3GBOZg== Received: from mail-vk1-f200.google.com (mail-vk1-f200.google.com [209.85.221.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4f88t8a2gd-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 06 Jul 2026 16:08:39 +0000 (GMT) Received: by mail-vk1-f200.google.com with SMTP id 71dfb90a1353d-5be0de8bf7cso263753e0c.1 for ; Mon, 06 Jul 2026 09:08:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1783354118; x=1783958918; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Pf9tIRdfDyri9p8ozQjkuWmmRnclsJ800KP5REMMFqI=; b=dU5b1OnINFzA0L2L9K8Kkp5c946mtYMl+tN7rdVUGZQ1tHfb1skI5wcADZyLbLLuHf C6RUvbZXVW3C6OKcUoREdyfNzTm2B8zUT7V+uTzu2tmASQ79gJoC8DYPMDKq4fSfb5bp 5JRUjm7wzNyW+UPso+9nhxdcur5Z/HZgmruA/KkKLlqrn0sBgpNgjOwj7SbOoibNaSC6 pAhiu7mBAiCxjhLuOqJuF86916Gr1hslQzr7tZo0T6ybt5xY4KV9vmo/Xv3jHXGO4I5I IZYwMXyTqD8tXfPnTNKWn/WDj+R8LdFY4fGlIJfnb4Fgw00NV+VXoWk7kphEp6Qb90gl qlLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783354118; x=1783958918; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Pf9tIRdfDyri9p8ozQjkuWmmRnclsJ800KP5REMMFqI=; b=i1spVYu/OjJe3F1BCSl+FgRugOfRgq8zSFwKciTy82yhwyXlGrS5NThRB2FeaYo4uE anyyIyk/EqFQjtdqd4vq6O6jpTTY/T1QAWCLeMjnm1CzG/tshHQnKM2Wd872YHeaSkOb yVgwLYhFrdDdE65GNUyuAg24EnBNkQ17xjNdD+cbY0YQXUT2CZB98F/CCa3ggdpdZTI2 Bfuz5k8NlS1VmAKVOrqCtzi5l5sCC8R4VUsnqNY9xJuP4Xgly0nVd+mtm+rJAqVRxoyw b7/3SB6NJbOSeJG6gLRgAwwS9sNKqY2Fsz9yBUUMDQpXnDCqqlCOoytRJaxWGcmzCwwf HxBQ== X-Forwarded-Encrypted: i=1; AHgh+Rq2heHCHUg0BZZJxbZ4fqGlG2r844qqXosTmJ2+LExom8aug65u6DcwniY1qG2Fd2Xj7rMawLhzJhEdwf0=@vger.kernel.org X-Gm-Message-State: AOJu0Yx+9pDY433MZF80huHm9BNml9NFpPFbT1SKxaCTPrMB1ugyZsEm Q5l3sX12bJ3vQ/pjQgmcNUT9NxOBk3gx45MLulF2yXuTG2PWe+JDNe2RZ243mZObAmYBOrllzo7 sVlcKQeKOfjDp8kpA92VgjWEvZiOIHz62mbpQJAz7PMFwRunZ6XEXHsukEw87N4cYtEY= X-Gm-Gg: AfdE7cl0YVZimUQzmN8q9+BENywGgPbTkQDcUCg5ucAeGoGEH3EbhTU2OLeltEhq8gE VVdH4kuPAIwqP5sgcgwq9kq+b+0ipQRoRheh/O790lLiLj57JweKLVxgF9JuxmyQkxS+pHSX5Kq UYXEYjKUAaFYqPiu7vQKxfkEoR0VQpe7fOLZrbqW6x41tXpSMdYdqb4bo3TSrZsq0TrBr7tTxwX W+6Mvzcx3vdkK8TEmwc3pwP+57f1EBjB0BEirsOPdt62PF43cKw7435DNiQSU2dK1otB5BPyK0/ pn0TwZ+V3227aNSqZaUd4rVNNu3GedFrUOj8P01hiiaMiUy+r4irOeUIbRPro9jPyVxVXnlQ1kR UvvdM1vqY2gAGAfkNLmhLzEPHYLLgo8ET2hafGEq0dIMitA== X-Received: by 2002:a05:6122:8288:b0:575:352f:eac0 with SMTP id 71dfb90a1353d-5be907a7cd9mr685206e0c.7.1783354118310; Mon, 06 Jul 2026 09:08:38 -0700 (PDT) X-Received: by 2002:a05:6122:8288:b0:575:352f:eac0 with SMTP id 71dfb90a1353d-5be907a7cd9mr685142e0c.7.1783354117748; Mon, 06 Jul 2026 09:08:37 -0700 (PDT) Received: from juillet.box.freepro.com ([2a05:6e02:1041:c10:8405:4a9c:95fc:4b8f]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-47a9e3e2702sm26071966f8f.9.2026.07.06.09.08.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2026 09:08:36 -0700 (PDT) From: Daniel Lezcano To: sre@kernel.org, hansg@kernel.org, ilpo.jarvinen@linux.intel.com, linux@roeck-us.net, andersson@kernel.org, konradybcio@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org Cc: bryan.odonoghue@linaro.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, neil.armstrong@linaro.org, gaurav.kohli@oss.qualcomm.com, manaf.pallikunhi@oss.qualcomm.com, priyansh.jain@oss.qualcomm.com Subject: [PATCH v4 0/2] Lenovo ThinkPad T14s EC thermal monitoring and thermal zone integration Date: Mon, 6 Jul 2026 18:08:27 +0200 Message-ID: <20260706160830.17698-1-daniel.lezcano@oss.qualcomm.com> X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-Spam-Info: AW1haW4tMjYwNzA2MDE2NCBTYWx0ZWRfX1jZCftDKfYAk 6Fn6r4ZlU+aa3FWv7Gw2KhEobxj9wI0mqpDwyRSJ0ef30Cz8ThXe6TZIk61E+R7gi5Vq0RK77YQ k8Q+V2YHYz+jMY30Qn3SxGCUPj+i7xU= X-Proofpoint-GUID: tM8JUK5Tw8_H47rZCSkpYwsDcQ9MIURH X-Authority-Analysis: v=2.4 cv=C6zZDwP+ c=1 sm=1 tr=0 ts=6a4bd307 cx=c_pps a=wuOIiItHwq1biOnFUQQHKA==:117 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=YMgV9FUhrdKAYTUUvYB2:22 a=Jz99LMs1rTwwAPREzXgA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=XD7yVLdPMpWraOa8Un9W:22 X-Proofpoint-ORIG-GUID: tM8JUK5Tw8_H47rZCSkpYwsDcQ9MIURH X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzA2MDE2NCBTYWx0ZWRfX4BMsJKXap4+H W+CWv6u5wYvRc9AKAMBbqn8mrP7NK3FX6sT+vDUxPGNssovZWLMm9nff1PZ7VFxFrfRZj3uYCQA mcqD5lMin6bwj6KAAcwomx2pNgkOqTi1eWaWGIuhISktBbK1ZpaUkXPweAmDc7c6WmP3a8Ll1kw e+cwfzJVkaqLkBlQPzhco5dsmHToiZne3ZwluqeHVPxfbWcXRYpOANio5U4su4r0XuSufDJmuLP Rio6w853d+nn/VNdU5PVy70jv0DL4XZ5zRnqzV8Za+wDAtg82MlbE2GnXh26YlEUG6RYCNQtD2w DJOKi/9BdbAYZ2ckUCEBEbcCaMaAfaMA2NIULuWQcmAjMVVaoTFaLhOhJmrywCkzlBR1Jrh8WnM zVVFU1ZT4P2GhlmETBpeQ/nLdDmqmfCiDCLFwkPMgpx+kKZfFhRSJjaAZdJ4F1yjzffh9EPlhLS AKtpH0uaozMZkmb+Ybg== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-07-06_02,2026-07-06_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 phishscore=0 clxscore=1015 spamscore=0 adultscore=0 bulkscore=0 priorityscore=1501 lowpriorityscore=0 suspectscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607060164 Hi, This series extends the Lenovo ThinkPad T14s embedded controller driver with environmental monitoring capabilities and integrates the exposed sensors into the Linux thermal framework. The EC provides access to several platform temperature sensors covering the SoC, keyboard area, bottom cover, charging circuitry, QTM module and SSD. These sensors are currently used by the firmware for thermal management but are not exposed to Linux. The first patch adds hwmon support for the EC temperature sensors. The second patch exposes the EC as a thermal sensor provider in the device tree and defines thermal zones for the keyboard skin temperature and the charging circuitry temperature. This allows the generic thermal framework to react to EC-reported temperatures and apply standard Linux thermal mitigation policies. As the EC protocol is not fully decoded, the passive trip points get/set actions are missing, so it is not possible to program a threshold and receive an interrupt when crossed the way up or down. Consequently, the thermal zone related to the charging circuitry is polled every two seconds until we can set the trip points in the EC. This series fixes critical thermal issues happening on this platform where a kernel compilation, or heavy workloads, lead to a system reboot. Tested on a Lenovo ThinkPad T14s Gen 6 (Snapdragon X Elite). Please make sure scmi-cpufreq.ko is loaded before testing Thanks, Daniel --- Changelog: v4: - Added the missing HWMON_C_REGISTER_TZ attribute (Sashiko) - Fixed dependency with HWMON (Sashiko) - Added tags v3: - Removed event based because trip point are not yet well supported - Added an empty line after variable declaration (Ilpo Järvinen) - Used MILLIDEGREE_PER_DEGREE from units.h (Ilpo Järvinen) - Made switch consistent (Ilpo Järvinen) v2: - Fixed patch 1 subject prefix - Removed the fan information part - Added HWMON_T_ALARM - Fixed DT change description to reflect what it does really Daniel Lezcano (2): platform: arm64: lenovo-thinkpad-t14s-ec: Add hwmon support for temperatures arm64: dts: qcom: x1e78100-t14s: Add thermal zones for keyboard skin and charging sensors .../qcom/x1e78100-lenovo-thinkpad-t14s.dtsi | 67 ++++++++- drivers/platform/arm64/Kconfig | 1 + drivers/platform/arm64/lenovo-thinkpad-t14s.c | 131 ++++++++++++++++++ 3 files changed, 198 insertions(+), 1 deletion(-) -- 2.53.0