From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
To: Julien Panis <jpanis@baylibre.com>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Matthias Brugger <matthias.bgg@gmail.com>,
Daniel Lezcano <daniel.lezcano@linaro.org>,
Nicolas Pitre <npitre@baylibre.com>
Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org
Subject: Re: [PATCH v4 4/4] arm64: dts: mediatek: mt8188: add default thermal zones
Date: Tue, 21 May 2024 16:19:19 +0200 [thread overview]
Message-ID: <ff12e104-da8b-4800-bfbe-a006ffe1b840@collabora.com> (raw)
In-Reply-To: <20240521-mtk-thermal-mt818x-dtsi-v4-4-b91ee678411c@baylibre.com>
Il 21/05/24 16:05, Julien Panis ha scritto:
> From: Nicolas Pitre <npitre@baylibre.com>
>
> Inspired by the vendor kernel but adapted to the upstream thermal
> driver version.
>
> Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
> Signed-off-by: Julien Panis <jpanis@baylibre.com>
> ---
> arch/arm64/boot/dts/mediatek/mt8188.dtsi | 432 +++++++++++++++++++++++++++++++
> 1 file changed, 432 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt8188.dtsi b/arch/arm64/boot/dts/mediatek/mt8188.dtsi
> index a9f1b9db54a6..2b0f3e03acc1 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi
> @@ -12,6 +12,8 @@
> #include <dt-bindings/pinctrl/mediatek,mt8188-pinfunc.h>
> #include <dt-bindings/power/mediatek,mt8188-power.h>
> #include <dt-bindings/reset/mt8188-resets.h>
> +#include <dt-bindings/thermal/thermal.h>
> +#include <dt-bindings/thermal/mediatek,lvts-thermal.h>
>
> / {
> compatible = "mediatek,mt8188";
..snip..
> +
> + gpu1-thermal {
You forgot to implement my feedback to Nicolas - this must be gpu-thermal
> + polling-delay = <1000>;
> + polling-delay-passive = <250>;
> + thermal-sensors = <&lvts_ap MT8188_AP_GPU1>;
> +
> + trips {
> + gpu1_alert0: trip-alert0 {
> + temperature = <85000>;
> + hysteresis = <2000>;
> + type = "passive";
> + };
> +
> + gpu1_alert1: trip-alert1 {
> + temperature = <95000>;
> + hysteresis = <2000>;
> + type = "hot";
> + };
> +
> + gpu1_crit: trip-crit {
> + temperature = <100000>;
> + hysteresis = <0>;
> + type = "critical";
> + };
> + };
> + };
> +
> + gpu2-thermal {
...and for consistency with the other SoCs, this must be gpu1-thermal.
> + polling-delay = <1000>;
> + polling-delay-passive = <250>;
> + thermal-sensors = <&lvts_ap MT8188_AP_GPU2>;
> +
> + trips {
> + gpu2_alert0: trip-alert0 {
> + temperature = <85000>;
> + hysteresis = <2000>;
> + type = "passive";
> + };
> +
> + gpu2_alert1: trip-alert1 {
> + temperature = <95000>;
> + hysteresis = <2000>;
> + type = "hot";
> + };
> +
> + gpu2_crit: trip-crit {
> + temperature = <100000>;
> + hysteresis = <0>;
> + type = "critical";
> + };
> + };
> + };
> +
> + soc1-thermal {
Any idea of what can "soc1" ever be? What measurement point is that?
VPU? IMG? INFRA?
soc1, soc2, soc3 make little sense.
Regards,
Angelo
next prev parent reply other threads:[~2024-05-21 14:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-21 14:05 [PATCH v4 0/4] Mediatek thermal sensor driver support for MT8186 and MT8188 Julien Panis
2024-05-21 14:05 ` [PATCH v4 1/4] arm64: dts: mediatek: mt8186: add lvts definitions Julien Panis
2024-05-21 14:05 ` [PATCH v4 2/4] arm64: dts: mediatek: mt8186: add default thermal zones Julien Panis
2024-05-21 14:20 ` AngeloGioacchino Del Regno
2024-05-21 14:05 ` [PATCH v4 3/4] arm64: dts: mediatek: mt8188: add lvts definitions Julien Panis
2024-05-21 14:05 ` [PATCH v4 4/4] arm64: dts: mediatek: mt8188: add default thermal zones Julien Panis
2024-05-21 14:19 ` AngeloGioacchino Del Regno [this message]
2024-05-21 14:41 ` Julien Panis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ff12e104-da8b-4800-bfbe-a006ffe1b840@collabora.com \
--to=angelogioacchino.delregno@collabora.com \
--cc=conor+dt@kernel.org \
--cc=daniel.lezcano@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=jpanis@baylibre.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=npitre@baylibre.com \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox