From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 891C93D952A for ; Fri, 3 Jul 2026 10:32:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783074758; cv=none; b=AcpoYbZe1HGJpjGrchWMFujJWS+t2fpRdpFyX/jERSbxNJeK0tXBiSFnwD+M3Is2TDovzbcsvqCL5PAndjIYaNfpxPK3y5ZAlpfdzcEI2M0P+Dp5nh2n+f0jFiMyg1cdHhCCLcDDDX5vInYcTBuH0Lsc7hr76X7RUB9Kk0oO7M0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783074758; c=relaxed/simple; bh=D5ijQV3bUdGx6RAeOYDDyhV2oxFHO7V4Y7ge4JRyKaw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=h1Zv57PO+hjzu5jerJDodn5vCFbwCg+C92CSpKTfLlJVao6Y+BrV2Lq6JOM0ePmI8Zc6oPVIe/U7O5v1h14Uhu3F/BYPdtOE8KVSqC0On1htc1LQslvArV6+9BiCzufselbILy6/YQkVf7WrzG7E37Yp1BueSpoTktlTWd2UgX0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=oGbcWFTh; arc=none smtp.client-ip=209.85.221.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="oGbcWFTh" Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-474bf35cccdso127254f8f.1 for ; Fri, 03 Jul 2026 03:32:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1783074754; x=1783679554; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:from:references:cc:to:subject:reply-to:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=xXqnKE5BVSq5meuyy3aSxrzRU5PavHRibtLm4NqA0hs=; b=oGbcWFTheGuatgzxnFFH6wuCsl5Qb0XbSOH9emVtGr4Wp/p5s+9UGaT95T1+QNp7ON OjOMktfU4yUNmVI4+pIrLqLCBkk0FE6P4Ta8ytqAkknc2s4WZtR6c7+C0imbjlcez0X8 dASoyUvGlF1CG5/vebFc49OJPPn9VTc5aabfhIRDhy/GDoAyyIWjFAI+P5FQzJ9B60nZ cqVW28q5hG/KiFo1ghr7nsW6YugyyvvIqIvRN86V9ioulgmGEL7vt/p/LuKHkfsYfxtB RyvccYfrVkfssvIPiALGePd+e2g2UY8nuXHA9rk48upBsR+KjS3nV6PCFR1ckRIp3CpU +nXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783074754; x=1783679554; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:from:references:cc:to:subject:reply-to:user-agent :mime-version:date:message-id:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xXqnKE5BVSq5meuyy3aSxrzRU5PavHRibtLm4NqA0hs=; b=cBD/nPAsZKL4+7uzB0GxHd8og1hD9e6uBUwauszMs9+sdTCAQpkm4BWtStfyeady2r vmiKdq3FhJQhjIEp44XO1M1xTZuuXxK9B73gsYAJaJbdsjrqZHuLbZJZieRtqfc4939C 16dD9KmypRxKZM+zla8e/mQ7C5H0pGHEipTR68p6beywm2cTzaJQq4wK+ovDLp0kg/95 PTFt6Xd2XyPO0xyAYxvFQ3Ig4eY3spiOy5UjWS2wXYnenKSjfD3QLuh9bPbXyip13vSK kgj+upwmnHI9TY5DA6dv8O+B7JCQo4q/Kt0ddB4QsWRSiLQ5ld4ba6eho8vkHPGWI169 zi+g== X-Forwarded-Encrypted: i=1; AHgh+Rr7IoowDYGwwZSWZkE+0PQUiuTRxTGKr1UKu49VYcBqNL2oO6FQ6PIqM6X6AbWDzGySLjxy12o+zEGj@vger.kernel.org X-Gm-Message-State: AOJu0YzceLyN3j0qNqQPRAUFVseJWKG6hhfEKysAVrlV4JpRU0UsZVjy G9rz84Qd5Pk2hnHFpuk1fcuoCE9BhRAbQpcmBOoAoTRpZEaN+UFiQrFC4DvApGoqbss= X-Gm-Gg: AfdE7cmPraIP3EqXSNNEC4PBAbzevlMUzqUwSTvy7okGPgwvFMZ0aRzALEPPb71oglA nKg+cbzbTbq+E8dE9vMqBX9UgwgVnfloHYVobnxaIMm9RdDo9b6/2eps7pABXT9BMTl6HoYZYWC STYDr1oEART9jZ+3eSs4xt3qRTmpUAENyOfdxizBxb9ZQJ6qH78AfVXl5iPaVOscTDxCN4J/mU5 tE6OrgDWv78e+y6xRBRJP8RO3A/BQGTvO9Gk8B/4ZQS62SNRgwebI3bScU9iNHMQFvziVJPYKwf tjqWhFykjk6MBOa4kgN/3EXuYc1gU4HCUq/J6y9SWlGtPWcmxVwONew7McT1IdX6mrHNYYcu8ee edRRxzcqeJHlhFopuM+dABo2bEqWC9iSAxbrBe0RGSUJtCaKv/8IX0bVLRECptIzfLRyJI9uv/Q LyqA7dm/xWzZ6vU7AqzPZudNIDNe9Y1sx8H7exEAG0ndObsBoWYDkVAx6Vf6o1h3Bto+i4Na0IO ScnAr0= X-Received: by 2002:a05:6000:601:b0:476:5eec:309c with SMTP id ffacd0b85a97d-4775a7cb888mr13583163f8f.24.1783074753843; Fri, 03 Jul 2026 03:32:33 -0700 (PDT) Received: from ?IPV6:2a01:e0a:106d:1080:9b13:921f:4f13:6cbb? ([2a01:e0a:106d:1080:9b13:921f:4f13:6cbb]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-477db8a4ad4sm18103306f8f.11.2026.07.03.03.32.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 03 Jul 2026 03:32:33 -0700 (PDT) Message-ID: <5edfa760-b5b1-4f0e-8a14-2a39d2b99090@linaro.org> Date: Fri, 3 Jul 2026 12:32:32 +0200 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Reply-To: Neil Armstrong Subject: Re: [PATCH v3 0/2] Lenovo ThinkPad T14s EC thermal monitoring and thermal zone integration To: Daniel Lezcano , 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 References: <20260701103714.22583-1-daniel.lezcano@oss.qualcomm.com> From: Neil Armstrong Content-Language: en-US, fr Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE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/zr1HMKErm+2SD6PO9umRef8V82o2oaCLvf4WeIssFjwB0b6a12opuRP7yo3E3gTCS KmbUuLv1CtxKQF+fUV1cVaTPMyT25Od+RC1K+iOR0F54oUJvJeq7fUzbn/KdlhA8XPGzwGRy 4zcsPWvwnXgfe5tk680fEKZVwOZKIEuJC3v+/yZpQzDvGYJvbyix0lHnrCzq43WefRHI5XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro In-Reply-To: <20260701103714.22583-1-daniel.lezcano@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 7/1/26 12:37, Daniel Lezcano wrote: > 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). > > Thanks, > > Daniel > > --- > Changelog: > 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 | 68 ++++++++- > drivers/platform/arm64/lenovo-thinkpad-t14s.c | 130 ++++++++++++++++++ > 2 files changed, 197 insertions(+), 1 deletion(-) > Tested-by: Neil Armstrong # on T14s OLED