From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konstantin Ryabitsev Date: Wed, 31 Aug 2022 17:34:47 -0400 Subject: [PATCH RESEND v7 2/4] arm64: dts: allwinner: h6: Add cooling map for GPU MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" Message-Id: <20220825-test-endpoint-send-2-v7-2-4f04b9e94ea1@linuxfoundation.org> References: <20220825-test-endpoint-send-2-v7-0-4f04b9e94ea1@linuxfoundation.org> In-Reply-To: <20220825-test-endpoint-send-2-v7-0-4f04b9e94ea1@linuxfoundation.org> To: mricon@kernel.org X-Mailer: b4 0.10.0-dev-3b344 X-Developer-Signature: v=1; a=openpgp-sha256; l=1268; i=konstantin@linuxfoundation.org; h=from:subject:message-id; bh=gz/Bv4Y5aqsBQGvU2wVXlfJiYntpxOiWdHmLC58TZVQ=; b=owGbwMvMwCW27YjM47CUmTmMp9WSGJL5L//pVcg3jDq+gOvCqymb0yZX3OQUbvoyeWezezdbRa/s ZpuzHaUsDGJcDLJiiixl+2I3BRU+9JBL7zGFmcPKBDKEgYtTACZSKc7wh2tOfqhQftNcjocxLlU3Wq Im3d62bcMJfwEhP9f1BY/0bjL8T23lnMHuufmZ7faI/9cbiwyq6gUln31XqXj679Tcn/tEmQE= X-Developer-Key: i=konstantin@linuxfoundation.org; a=openpgp; fpr=DE0E66E32F1FDD0902666B96E63EDCA9329DD07E X-Endpoint-Received: by B4 Submission Endpoint for konstantin@linuxfoundation.org/default with auth_id=3 List-Id: B4 Web Endpoint Patches From: Clément Péron Add a simple cooling map for the GPU. Signed-off-by: Clément Péron Acked-by: Samuel Holland Signed-off-by: Konstantin Ryabitsev 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