Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp294849lqt; Thu, 6 Jun 2024 04:03:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV70X/IHs4fL25dGFvclrnlUVumIEUjbjUuarbRFhD1xeMmuk41St7EQudML9SRbuRmb/+NnW+ZHiKMjvWnFrqHrtyULxkq3H5qXXHKYg== X-Google-Smtp-Source: AGHT+IF4APSodtP96T6pB279R2FalR143lmkJQal+GcF0+iz7MHSXGG9woqDLh+RZ6HUwfiZ2i17 X-Received: by 2002:a17:906:3e07:b0:a68:c375:bc03 with SMTP id a640c23a62f3a-a6c764c1f4cmr177320866b.38.1717671833146; Thu, 06 Jun 2024 04:03:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717671833; cv=pass; d=google.com; s=arc-20160816; b=aAvxUZYhmnyZ6iXDHQCwAO17UErXwBN7wTt8/v4X1y6nKf+NWy9K2XSKILhPJKLhae 55ZINMbKE0tdTb+/vZN1lIzAcjtURTcALUJ7v4uIOZiz1sItF+cDyFAXdyq2YlyrZdfo EFTyQoHPnYMNgKhPR3qSqP5jky3VsVTSpQ+n0dQLdul1izf3MiFg+Sv9FltWFYeQCqzn fs3z08a2y/r4XYt6m23cPwICHw71aWLPp8+70Gc0muotyttm/FBOZN0Cojjq7/fCVkGC MAb6dHOXCNs7zpfiS9DWQt+RVmJ5QFExsFFHnCjP3BW+hXSIugw8L3scC3ovhV0pnR2l d99A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=emgin1EcSYg/XiU2eX6KMlGDNnBu9STItuqAnBEEre8=; fh=zZ1vq71WyXNNsYqgrUUne36KCQW+D6WRl4eYbU55ONg=; b=RQsw2sQtnMZ0jOCsGVoPkW6wxRrDuzc1n8jvnnrO9/sBHiKM9rY5brFKhJLuXMQL9l vtMBl5TbVLuZ5IWMhGrYjKO782OPjt9/pd3xw6eMmpUKr8rTbR/fHOE1qlSywNtSZNcm TI0NpFEMb/Np6QSUqbLY3eI0ciTpm7RgzTZOn4nR7LY1j+pi24XL6sv8j3Q29e4RWXyt z3XP36cdCXYZWLDzt+DXxYstvrE6RnfT5ct5d7lyhQszBwqmBop7A7Fyji7774rLFKv1 ni0WDjyRm1jAlR5ilHcu9gLh2nE31ps+2g7Q8NoNoIcng916u4Lpts1EzpRroqB5dooH j/Kw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fCzMSwo+; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-204154-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204154-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6c807494acsi52487366b.1001.2024.06.06.04.03.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 04:03:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-204154-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fCzMSwo+; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-204154-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-204154-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id B14BC1F23949 for ; Thu, 6 Jun 2024 11:03:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 53FEE1922CA; Thu, 6 Jun 2024 11:03:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="fCzMSwo+" Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) (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 AB62514E2C4 for ; Thu, 6 Jun 2024 11:03:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717671824; cv=none; b=ssO8YkzX4Qlt96CyRt7R+LFcJM+AroqMTiuFNO3hkJyIm9Oa+Io4wY6F5SNK6Zgw3C/TuubXoWovy2MO67VMVjq6MmF7lEjj+/FmnNa7+shg+01EBC8e5HTyeRp8iHWGCggoMJV1bpg1omKgAH7CylTt4lErC25SqaiO2DcH2GE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717671824; c=relaxed/simple; bh=O6TzrTzuuPIyiVf2XUGIbRwwCuWNmcXtprbs1qF9JLQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=E8n5OA65Wi5WZ0I5S+bGSewHsjvT06vAR2pZKKOnlZKfo/aCDDwlx9F405WX8XC/cg3REx9p2WPn27JzQJ26qeZsbdgEPS7tJzvABQRPBh5mI2Df1ud/cS6WHVYkswVTEm4RVoIXTg4QcpzuqMFfMMMYcFu07J79kruZG5sAYmo= 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=fCzMSwo+; arc=none smtp.client-ip=209.85.208.52 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 Received: by mail-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-57864327f6eso43854a12.1 for ; Thu, 06 Jun 2024 04:03:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717671820; x=1718276620; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=emgin1EcSYg/XiU2eX6KMlGDNnBu9STItuqAnBEEre8=; b=fCzMSwo+PdQgCsEsNlv/3YphFASKp5UrjuBQyyBWf+szVM9yTlvnV/n8BhAhkTK1Bu frMXI8T4ZMNltnZIUY9+P7gJaKPPSRN1Vs2V1AeS5MfMD1OJZ7jSJ60/aAiZaqyqay6T sd9MNAESzauPvv6ya7mbSedehlDjtSbsOVIyTD0wv8dJ1n1ZU/C/SAWSvRHDt0MaYytB TsFe0NXan9t+vfCmHp/1a4VdvIWfuYKy4ncWU7twSDa8WrGBkpnwDCj3IzzPcr3Qy90g CFQJtbnM5fEba7Tft3RzNcpVdMpqlf3w/PdjwBl3N3pKr1jlfuv4PuM1tGMO9vK08zqK GMRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717671820; x=1718276620; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=emgin1EcSYg/XiU2eX6KMlGDNnBu9STItuqAnBEEre8=; b=CGRMzbd6tmm2mGJ9JZyAuEBBrHoAjV2WOsDjekbZRx635KeVNBIUTRnVSxvnK9JpuM gmTaESrysyVodHgV/g3t43ElBD3zlo6n8V5K5LxkDDn9ujsRy/4AmDV7LGDAD0J9wEPK sCmK2OQgfH30zWpjTXKE+uvXfiJdaEbG0/O6B51aRaQvqT/OnQuWaoDI6PY7zmTY3GnG aC8H35/ybFIay+DiZ3/6K1f/nVtvfFtUOKAnrg8w0OgOPzSuGNlCiSDQp9oZQOeva0dz EtJkHR1DuyD4JtRGW6w8CIkD7JvzWoDCCPTxgkj2Cu+c+l0xz3VS5izM3X7Fbf4hmhmD KWcw== X-Forwarded-Encrypted: i=1; AJvYcCUHScFIC2qPo2mt9qxpQ2z/bi1VFNxVZ3o78hJq4I92yjM3e155RbpHvKzBDfF/j0sd+e6ZNMsf/ew7tOYbi/ww+iZMjubEj+gbyYqy X-Gm-Message-State: AOJu0YzUEqEhYzSEGFhnDxKX01Z+Z5F+kXB69Sw0zJvJFbLbgFAOPTMi uBX6v+KX149jK5aFta5E8US2BdaJ5cGg402bwu3Xj9VKBz0mXmhn1ei6bdu3rdU= X-Received: by 2002:a50:a418:0:b0:579:e690:8349 with SMTP id 4fb4d7f45d1cf-57aa55ae5f1mr2220154a12.15.1717671820001; Thu, 06 Jun 2024 04:03:40 -0700 (PDT) Received: from [192.168.128.139] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-57aae25ecbbsm885464a12.96.2024.06.06.04.03.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Jun 2024 04:03:39 -0700 (PDT) Message-ID: <8de9ef05-6caf-42fc-9547-58e9d340a31f@linaro.org> Date: Thu, 6 Jun 2024 13:03:37 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] arm64: dts: qcom: x1e80100: Enable tsens and thermal nodes To: Abel Vesa , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rajendra Nayak References: <20240527-x1e80100-dts-thermal-v1-1-ea13b8fa6ffc@linaro.org> Content-Language: en-US From: Konrad Dybcio Autocrypt: addr=konrad.dybcio@linaro.org; keydata= xsFNBF9ALYUBEADWAhxdTBWrwAgDQQzc1O/bJ5O7b6cXYxwbBd9xKP7MICh5YA0DcCjJSOum BB/OmIWU6X+LZW6P88ZmHe+KeyABLMP5s1tJNK1j4ntT7mECcWZDzafPWF4F6m4WJOG27kTJ HGWdmtO+RvadOVi6CoUDqALsmfS3MUG5Pj2Ne9+0jRg4hEnB92AyF9rW2G3qisFcwPgvatt7 TXD5E38mLyOPOUyXNj9XpDbt1hNwKQfiidmPh5e7VNAWRnW1iCMMoKqzM1Anzq7e5Afyeifz zRcQPLaqrPjnKqZGL2BKQSZDh6NkI5ZLRhhHQf61fkWcUpTp1oDC6jWVfT7hwRVIQLrrNj9G MpPzrlN4YuAqKeIer1FMt8cq64ifgTzxHzXsMcUdclzq2LTk2RXaPl6Jg/IXWqUClJHbamSk t1bfif3SnmhA6TiNvEpDKPiT3IDs42THU6ygslrBxyROQPWLI9IL1y8S6RtEh8H+NZQWZNzm UQ3imZirlPjxZtvz1BtnnBWS06e7x/UEAguj7VHCuymVgpl2Za17d1jj81YN5Rp5L9GXxkV1 aUEwONM3eCI3qcYm5JNc5X+JthZOWsbIPSC1Rhxz3JmWIwP1udr5E3oNRe9u2LIEq+wH/toH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arzfyiB5wJ9tb9U/nZvhhdfilEDLe0jKJY0RJErbdRHsalwQCrtq/1ewQpMpsRxXzAjgfRN jc4tgxRWmI+aVTzSRpywNahzZBT695hMz81cVZJoZzaV0KaMTlSnBkrviPz1nIGHYCHJxF9r cIu0GSIyUjZ/7xslxdvjpLth16H27JCWDzDqIQMtg61063gNyEyWgt1qRSaK14JIH/DoYRfn jfFQSC8bffFjat7BQGFz4ZpRavkMUFuDirn5Tf28oc5ebe2cIHp4/kajTx/7JOxWZ80U70mA cBgEeYSrYYnX+UJsSxpzLc/0sT1eRJDEhI4XIQM4ClIzpsCIN5HnVF76UQXh3a9zpwh3dk8i bhN/URmCOTH+LHNJYN/MxY8wuukq877DWB7k86pBs5IDLAXmW8v3gIDWyIcgYqb2v8QO2Mqx YMqL7UZxVLul4/JbllsQB8F/fNI8AfttmAQL9cwo6C8yDTXKdho920W4WUR9k8NT/OBqWSyk bGqMHex48FVZhexNPYOd58EY9/7mL5u0sJmo+jTeb4JBgIbFPJCFyng4HwbniWgQJZ1WqaUC nas9J77uICis2WH7N8Bs9jy0wQYezNzqS+FxoNXmDQg2jetX8en4bO2Di7Pmx0jXA4TOb9TM izWDgYvmBE8= In-Reply-To: <20240527-x1e80100-dts-thermal-v1-1-ea13b8fa6ffc@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 27.05.2024 8:51 AM, Abel Vesa wrote: > From: Rajendra Nayak > > Add tsens and thermal nodes for x1e80100 SoC. > > Signed-off-by: Rajendra Nayak > Signed-off-by: Abel Vesa > --- > arch/arm64/boot/dts/qcom/x1e80100.dtsi | 1356 ++++++++++++++++++++++++++++++++ > 1 file changed, 1356 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/x1e80100.dtsi b/arch/arm64/boot/dts/qcom/x1e80100.dtsi > index 5f90a0b3c016..2e34086b0ddd 100644 > --- a/arch/arm64/boot/dts/qcom/x1e80100.dtsi > +++ b/arch/arm64/boot/dts/qcom/x1e80100.dtsi > @@ -2505,6 +2505,66 @@ &config_noc SLAVE_QUP_0 QCOM_ICC_TAG_ALWAYS>, > }; > }; > > + tsens0: thermal-sensor@c271000 { > + compatible = "qcom,x1e80100-tsens", "qcom,tsens-v2"; > + reg = <0 0x0c271000 0 0x1000>, /* TM */ > + <0 0x0c222000 0 0x1000>; /* SROT */ Please drop the comments [...] > + > + thermal-zones { > + aoss0-thermal { > + polling-delay-passive = <0>; > + polling-delay = <0>; Remove polling-delay (irq driven), put something in polling-delay-passive (250 sounds decent) > + thermal-sensors = <&tsens0 0>; > + > + trips { > + thermal-engine-config { > + temperature = <125000>; > + hysteresis = <1000>; > + type = "passive"; > + }; > + > + reset-mon-config { Drop all reset-mon-* stuff > + temperature = <115000>; > + hysteresis = <5000>; > + type = "passive"; > + }; > + }; > + }; > + > + cpu0-0-0-thermal { This naming is a bit too much.. is that cluster:core:sensor? If so, do the sensors have some sensible differentiator, like physical placement that could be used instead of 0/1? [...] > + cpuss0-0-thermal { > + polling-delay-passive = <0>; > + polling-delay = <0>; > + thermal-sensors = <&tsens0 9>; > + > + trips { > + thermal-engine-config { Themal engine is also a downstream invention, replace this with a trip-point0 { temperature = <110000>; hysteresis = <1000>; type = "critical"; } 110 is in line with all the other cpu nodes > + temperature = <125000>; > + hysteresis = <1000>; > + type = "passive"; > + }; > + > + reset-mon-config { > + temperature = <115000>; > + hysteresis = <5000>; > + type = "passive"; > + }; > + }; > + }; > + > + cpuss0-1-thermal { cpuss-x.y also isn't very meaningful.. I'm assuming x is cluster and y is some sensor within? [...] > + gpuss-1-thermal { > + polling-delay-passive = <10>; > + polling-delay = <0>; > + thermal-sensors = <&tsens3 6>; > + > + trips { > + thermal-engine-config { > + temperature = <125000>; > + hysteresis = <1000>; > + type = "passive"; > + }; > + > + thermal-hal-config { > + temperature = <125000>; > + hysteresis = <1000>; > + type = "passive"; > + }; > + > + reset-mon-config { > + temperature = <115000>; > + hysteresis = <5000>; > + type = "passive"; > + }; > + > + gpu1_junction_config: junction-config { > + temperature = <95000>; > + hysteresis = <5000>; > + type = "passive"; > + }; > + }; Please replace with something like: https://lore.kernel.org/linux-arm-msm/20240510-topic-gpus_are_cool_now-v1-12-ababc269a438@linaro.org/ Konrad