From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (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 887C0320A00 for ; Fri, 24 Apr 2026 09:53:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777024399; cv=none; b=LZqGr9JzF2cd8kKBHV4sS1uivJTl8yCl8tM159Rd6ZgtcwLlqQu7w+HBaldaL/HjyjvnatVclb+5A+yzkJa5BRDv8rBk14QlHfjX/eTHVCMDwjRiVBCeb38sx+aPWjT6kcScPoXbWq8ePON3W3JXAlu3bFqR80a9UFiXbgPc/Xw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777024399; c=relaxed/simple; bh=qqaeXtSxiTWa6nb7odE0NNpzwlxBegSvuphPOAi08mM=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=rTQLerYIvPB06UO+7GIFqtRHEUA5yYXz+b2ILxux333hVz3Jqz/Dv7So91ocohmHOEiwSf10jHUMC0Uy5b1pM3KFLskEmDJFSp987wQa9+Y/G122jS0YPkm2kOqNeyjFS13ZYweN/pb+ZzV5KFvB0/HmzxlH70gCPTcZfX2OiqI= 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=i3xMf6pC; arc=none smtp.client-ip=209.85.128.54 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="i3xMf6pC" Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-4891c0620bcso48247805e9.1 for ; Fri, 24 Apr 2026 02:53:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1777024396; x=1777629196; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=SBpa+OY6Vx3uYT0JNDbcMHz2F1hz9Z/Yh2ubTX1Ek2I=; b=i3xMf6pC/yWp5I5iwAhUhnaiF2/HSZ3D+ez+RTy59Sv8Ii/d3JG/0vx/XQNX42Agor 1il1Blez2DM3KeFOtqLSGp/HFMhvq+Ht9GT7njc2ZM6tmeaYNGj3FSdQvaxif4gEB5V7 TDYCzDhM7B0f2Lx5S2rFoG0LuI3tYvQM4HZT3rjGUCzbxE7DZQFOpOCnoJ4cPomodj9n mNSykWaJItC46WQaRpAU5M4FiYD9r0liQuZV8jh0l/svScpONeljTRB4x8SIuBlieLAj D2prx9SeSvQZyARSXFzerhlR3FnFG8GwyzPNrGgxV3EVAcu5t5BKFwhbbdK0wQty0TGK si4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777024396; x=1777629196; h=content-transfer-encoding:in-reply-to:organization:autocrypt :content-language:references:cc:to:subject:reply-to:from:user-agent :mime-version:date:message-id:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SBpa+OY6Vx3uYT0JNDbcMHz2F1hz9Z/Yh2ubTX1Ek2I=; b=VSZfo4gUvCk+uvlg8Rz2SCuOf/qEblR++1wcVI/Qqi1sQUoLCWmBhWBftRL88FxYvO DenH4BtH/Dgj8qYYyUKsE23M2AGkl8fT5M4jonBsf884K6XTFvV4r/pyoGHQBWnrBgp/ 1/cfdXdYgSsZjHr+EPCw+vUswssERCDoD0k2201dFXSmjBynJl++ENNjSAYtaVeCVr3h GhQACA/sKz4LgOVd3aEHe5m99eD0aGC0/KOMosG1ITbiV5uKmetC14Hu0PJheTN1w4cS SSiShDxDaRn4QRuQEEO/GRn73ZLwNn+g0vgpS9RAzfsAwVXsVpFfNqZ5uWX1uaQQe5Be xGEA== X-Forwarded-Encrypted: i=1; AFNElJ/gmg/RRbIO520QGImVqrCE6aQqzPoRvaNmCDfUSWR9Si1bX8xzH6zq/3pikzrnWzbOOWNf4OsR3QJr@vger.kernel.org X-Gm-Message-State: AOJu0YyEkeq+JTtx6mwq7h6RNc2hXJpHbNrK6mTvv3aPQ9m3sxTkobW4 EFUFleeDxbJE/o3SMfFDPBIGeeFsooa3dkh48aPRBV0fsAGqIc8Lthh7uAH0YTykoKA= X-Gm-Gg: AeBDieuICb5zvKgQAqm9qfc/DnX1TDM5LGu+UKgK5oe+pnedJ+nxLnVoHHF2c2UA9k1 AZ4KhoXCw/pwB7qHQq2PVUg8FA75zwX3V+RJ/yzHUfVn2I+YIXdwhk2nnQjJ0l1OnWPS16aPUI8 +iXX0IOcml1sH7kZuHsUIdc96CdFNJF1qtDTgq6avTro+MYZuH/rziH+ZKgUuPKn6ROYIBSlvON 7LapvcTmdQuNth1B3+xAsztNbFy/YnWYlT/JQwHUBVnUxr06Vwy40caOgDvG3M72MyXmmg+0MV7 CjlBoC4t/htErwL/NjnC3De2zZCu8CHNNGZgjGQ077vrUeNttnzssNoapIj9rZjJMZHs/mmnG3l eH3vkG70rYid0YarjoW9qT5YIpgYbBEVdzhYE4SUNpAzLQxwr7nLHPn0v0KT7WxDf2oULBKP8T5 Jtg2zEpGgKgtH0rkNp2oYq92Rz2cFckA60fq3Yv7GXtYw0woXajUmIqGNxV9rvrVJFMRS5It7JJ RGFjZPR7tgf/Ixbtg== X-Received: by 2002:a05:600c:34c3:b0:485:41c4:e2e4 with SMTP id 5b1f17b1804b1-488fb792dd0mr421536775e9.23.1777024395930; Fri, 24 Apr 2026 02:53:15 -0700 (PDT) Received: from ?IPV6:2a01:e0a:106d:1080:79e1:f56b:445c:ca9c? ([2a01:e0a:106d:1080:79e1:f56b:445c:ca9c]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4891f98728dsm106060925e9.23.2026.04.24.02.53.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 24 Apr 2026 02:53:14 -0700 (PDT) Message-ID: <3768fc2a-ae1b-4e58-a1a5-1b49d0f0c90c@linaro.org> Date: Fri, 24 Apr 2026 11:53:13 +0200 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Neil Armstrong Reply-To: Neil Armstrong Subject: Re: [PATCH v4 7/8] arm64: dts: amlogic: t7: Add thermal zones To: linux-kernel-dev@aliel.fr, Guillaume La Roque , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kevin Hilman , Jerome Brunet , Martin Blumenstingl Cc: linux-pm@vger.kernel.org, linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20260423-add-thermal-t7-vim4-v4-0-d4c1528d5044@aliel.fr> <20260423-add-thermal-t7-vim4-v4-7-d4c1528d5044@aliel.fr> Content-Language: en-US, fr Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5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Yu3SD6YBYnNi3G5EpbwfBNuT3H8//rVvtOFK4OD8cRYkxXRQmTvqa3 3eDIHu/zr1HMKErm+2SD6PO9umRef8V82o2oaCLvf4WeIssFjwB0b6a12opuRP7yo3E3gTCS KmbUuLv1CtxKQF+fUV1cVaTPMyT25Od+RC1K+iOR0F54oUJvJeq7fUzbn/KdlhA8XPGzwGRy 4zcsPWvwnXgfe5tk680fEKZVwOZKIEuJC3v+/yZpQzDvGYJvbyix0lHnrCzq43WefRHI5XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro In-Reply-To: <20260423-add-thermal-t7-vim4-v4-7-d4c1528d5044@aliel.fr> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 4/23/26 18:07, Ronald Claveau via B4 Relay wrote: > From: Ronald Claveau > > Add thermal zones for all six sensors: a53, a73, gpu, nna, vpu, and hevc. > > Signed-off-by: Ronald Claveau > --- > arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi | 179 ++++++++++++++++++++++++++++ > 1 file changed, 179 insertions(+) > > diff --git a/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi > index 62f259b2b17d2..c6ea0f20a879f 100644 > --- a/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi > +++ b/arch/arm64/boot/dts/amlogic/amlogic-t7.dtsi > @@ -9,6 +9,7 @@ > #include > #include > #include > +#include > > / { > interrupt-parent = <&gic>; > @@ -829,6 +830,184 @@ hevc_tsensor: temperature-sensor@9a000 { > amlogic,secure-monitor = <&sm 5>; > }; > }; > + }; > + > + thermal-zones { > + a53_thermal: a53-thermal { > + polling-delay = <1000>; > + polling-delay-passive = <100>; > + thermal-sensors = <&a53_tsensor>; > + > + trips { > + a53_passive: a53-passive { > + temperature = <85000>; /* millicelsius */ > + hysteresis = <2000>; /* millicelsius */ > + type = "passive"; > + }; > + > + a53_hot: a53-hot { > + temperature = <95000>; /* millicelsius */ > + hysteresis = <2000>; /* millicelsius */ > + type = "hot"; > + }; > + > + a53_critical: a53-critical { > + temperature = <110000>; /* millicelsius */ > + hysteresis = <2000>; /* millicelsius */ > + type = "critical"; > + }; > + }; > + > + cooling-maps { > + map-a53 { > + trip = <&a53_passive>; > + cooling-device = > + <&cpu100 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu101 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu102 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu103 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; > + }; > + }; > + }; > + > + a73_thermal: a73-thermal { > + polling-delay = <1000>; > + polling-delay-passive = <100>; > + thermal-sensors = <&a73_tsensor>; > + > + trips { > + a73_passive: a73-passive { > + temperature = <85000>; /* millicelsius */ > + hysteresis = <2000>; /* millicelsius */ > + type = "passive"; > + }; > + > + a73_hot: a73-hot { > + temperature = <95000>; /* millicelsius */ > + hysteresis = <2000>; /* millicelsius */ > + type = "hot"; > + }; > + > + a73_critical: a73-critical { > + temperature = <110000>; /* millicelsius */ > + hysteresis = <2000>; /* millicelsius */ > + type = "critical"; > + }; > + }; > + > + cooling-maps { > + map-a73 { > + trip = <&a73_passive>; > + cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, > + <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; > + }; > + }; > + }; > + > + gpu_thermal: gpu-thermal { > + polling-delay = <1000>; > + polling-delay-passive = <100>; > + thermal-sensors = <&gpu_tsensor>; > + > + trips { > + gpu_passive: gpu-passive { > + temperature = <95000>; > + hysteresis = <5000>; > + type = "passive"; > + }; > + > + gpu_hot: gpu-hot { > + temperature = <105000>; > + hysteresis = <5000>; > + type = "passive"; > + }; > > + gpu_critical: gpu-critical { > + temperature = <115000>; > + hysteresis = <1000>; > + type = "critical"; > + }; > + }; > + }; > + > + hevc_thermal: hevc-thermal { > + polling-delay = <1000>; > + polling-delay-passive = <100>; > + thermal-sensors = <&hevc_tsensor>; > + > + trips { > + hevc_passive: hevc-passive { > + temperature = <95000>; > + hysteresis = <5000>; > + type = "passive"; > + }; > + > + hevc_hot: hevc-hot { > + temperature = <105000>; > + hysteresis = <5000>; > + type = "passive"; > + }; > + > + hevc_critical: hevc-critical { > + temperature = <115000>; > + hysteresis = <1000>; > + type = "critical"; > + }; > + }; > + }; > + > + nna_thermal: nna-thermal { > + polling-delay = <1000>; > + polling-delay-passive = <100>; > + thermal-sensors = <&nna_tsensor>; > + > + trips { > + nna_passive: nna-passive { > + temperature = <95000>; > + hysteresis = <5000>; > + type = "passive"; > + }; > + > + nna_hot: nna-hot { > + temperature = <105000>; > + hysteresis = <5000>; > + type = "passive"; > + }; > + > + nna_critical: nna-critical { > + temperature = <115000>; > + hysteresis = <1000>; > + type = "critical"; > + }; > + }; > + }; > + > + vpu_thermal: vpu-thermal { > + polling-delay = <1000>; > + polling-delay-passive = <100>; > + thermal-sensors = <&vpu_tsensor>; > + > + trips { > + vpu_passive: vpu-passive { > + temperature = <95000>; > + hysteresis = <5000>; > + type = "passive"; > + }; > + > + vpu_hot: vpu-hot { > + temperature = <105000>; > + hysteresis = <5000>; > + type = "passive"; > + }; > + > + vpu_critical: vpu-critical { > + temperature = <115000>; > + hysteresis = <1000>; > + type = "critical"; > + }; > + }; > + }; > }; > }; > Reviewed-by: Neil Armstrong Thanks, Neil