b4-sent.feeds.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
To: mricon@kernel.org
Subject: [PATCH RESEND v7 2/4] arm64: dts: allwinner: h6: Add cooling map for GPU
Date: Wed, 31 Aug 2022 17:34:47 -0400	[thread overview]
Message-ID: <20220825-test-endpoint-send-2-v7-2-4f04b9e94ea1@linuxfoundation.org> (raw)
In-Reply-To: <20220825-test-endpoint-send-2-v7-0-4f04b9e94ea1@linuxfoundation.org>

From: Clément Péron <peron.clem@gmail.com>

Add a simple cooling map for the GPU.

Signed-off-by: Clément Péron <peron.clem@gmail.com>
Acked-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>

diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi
index 5a28303d3d4c..943ae5374dd6 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi
@@ -186,6 +186,7 @@ gpu: gpu@1800000 {
 			clocks = <&ccu CLK_GPU>, <&ccu CLK_BUS_GPU>;
 			clock-names = "core", "bus";
 			resets = <&ccu RST_BUS_GPU>;
+			#cooling-cells = <2>;
 			status = "disabled";
 		};
 
@@ -1075,6 +1076,27 @@ gpu-thermal {
 			polling-delay-passive = <0>;
 			polling-delay = <0>;
 			thermal-sensors = <&ths 1>;
+
+			trips {
+				gpu_alert: gpu-alert {
+					temperature = <85000>;
+					hysteresis = <2000>;
+					type = "passive";
+				};
+
+				gpu-crit {
+					temperature = <100000>;
+					hysteresis = <0>;
+					type = "critical";
+				};
+			};
+
+			cooling-maps {
+				map0 {
+					trip = <&gpu_alert>;
+					cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
+				};
+			};
 		};
 	};
 };

-- 
b4 0.10.0-dev-3b344

  parent reply	other threads:[~2022-08-31 21:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-31 21:34 [PATCH RESEND v7 0/4] Completely fake series Konstantin Ryabitsev
2022-08-31 21:34 ` [PATCH RESEND v7 1/4] arm64: defconfig: Enable devfreq cooling device Konstantin Ryabitsev
2022-08-31 21:34 ` Konstantin Ryabitsev [this message]
2022-08-31 21:34 ` [PATCH RESEND v7 3/4] arm64: dts: allwinner: h6: Add GPU OPP table Konstantin Ryabitsev
2022-08-31 21:34 ` [PATCH RESEND v7 4/4] arm64: dts: allwinner: beelink-gs1: Enable GPU OPP Konstantin Ryabitsev
2022-09-01 14:31 [PATCH RESEND v7 0/4] Completely fake series Konstantin Ryabitsev
2022-09-01 14:31 ` [PATCH RESEND v7 2/4] arm64: dts: allwinner: h6: Add cooling map for GPU Konstantin Ryabitsev
2022-09-01 19:41 [PATCH RESEND v7 0/4] Completely fake series Konstantin Ryabitsev
2022-09-01 19:41 ` [PATCH RESEND v7 2/4] arm64: dts: allwinner: h6: Add cooling map for GPU Konstantin Ryabitsev
2022-09-02 14:59 [PATCH RESEND v7 0/4] Completely fake series Konstantin Ryabitsev
2022-09-02 14:59 ` [PATCH RESEND v7 2/4] arm64: dts: allwinner: h6: Add cooling map for GPU Konstantin Ryabitsev
2022-09-02 15:17 [PATCH RESEND v7 0/4] Completely fake series Konstantin Ryabitsev
2022-09-02 15:17 ` [PATCH RESEND v7 2/4] arm64: dts: allwinner: h6: Add cooling map for GPU Konstantin Ryabitsev

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=20220825-test-endpoint-send-2-v7-2-4f04b9e94ea1@linuxfoundation.org \
    --to=konstantin@linuxfoundation.org \
    --cc=mricon@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;
as well as URLs for NNTP newsgroup(s).