From patchwork Sun May 10 16:55:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= X-Patchwork-Id: 11539827 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6E6DE912 for ; Mon, 11 May 2020 07:18:31 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4BA31207FF for ; Mon, 11 May 2020 07:18:31 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hkGNQyc/" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4BA31207FF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9A1C96E266; Mon, 11 May 2020 07:18:02 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6F7E389FDB for ; Sun, 10 May 2020 16:55:57 +0000 (UTC) Received: by mail-wr1-x444.google.com with SMTP id x17so7960589wrt.5 for ; Sun, 10 May 2020 09:55:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=msywohSuGh6swONibcP6F+70WAKAL/uMsF9k7te5F+k=; b=hkGNQyc/x4KmNhR09Y2373rMJ+tldHIgVAtQ5VwfCBsP8haDn+N554iEOj/zvNyHXG 2apeoK0tQG+mCZe97atPSgr5GjCqVes/Vgfs61/9MXW6B0/NaycoQm9quf+iHnLJpxfn EdOP0OBpcI+8rSXiKPOUWE1n30U81mOmraEgodeYJpyKJu38h+3/GKIkcd+Szc6UV9qd NQf0r9ZCLRFpAZHtAhEpxwT/l5YlSSP94UTc2Z/IWWgFz2c4CA1+Z3ZT+t/8dGPIe+ac 33uMRKEFmjB204J9WZxdHkaJp9PZ0z38gHVu99IcR/xD1X804ASAGwRe1OlbaHnF1ljh H3QA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=msywohSuGh6swONibcP6F+70WAKAL/uMsF9k7te5F+k=; b=hYZhE3BB2/Q6sP34qIyedoMSuYDyAsUv/NX3ynSfRDAJZtXgcC+/THPIe0g5rtO/r0 Th0UUOdAUJSX5dvY8YgbHIhLrLHhmHAPRKQqTsZ3msP4r2BILMO8BEYgj2iK3ntw5Kpj Q84Aknmvr/IUGC8LOrKsJ0NjgYihDDOk5pE+fq6ly1SSv/5d7CqTF3oJkudma7/bHJOl R2+ixc0Xpja8yFByFHnWwBeEAIusK3E8M9/uysFdFgZ/LjpsER0LQGORJaJSE/ZugGbL 03bX4Dpy3E+2MSGEyyczZbdGWTIzWFqVQ8mCVfGIVB6I61Dfb8NohKY2Ukdmln2RPHYW to2g== X-Gm-Message-State: AGi0PublHjP50NDPMDWVtgoOCgaQjyxjneqzjhffqAPHILki/JjHR2Gy WwVBeEdM9qZeAzJvqwma+wo= X-Google-Smtp-Source: APiQypJQLiGZ3inhyarOnjxz5H8I+2somPxs9/69ewsW1D9UgAjT/OiP3usqGH5auhmMYmhn3EFEJA== X-Received: by 2002:a5d:69c3:: with SMTP id s3mr13817785wrw.305.1589129756050; Sun, 10 May 2020 09:55:56 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:1f1:d0f0:1cc8:b1f1:a2b8:a1ee]) by smtp.gmail.com with ESMTPSA id g15sm13637670wrp.96.2020.05.10.09.55.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 May 2020 09:55:55 -0700 (PDT) From: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= To: Rob Herring , Tomeu Vizoso , Steven Price , Alyssa Rosenzweig , Viresh Kumar , Nishanth Menon , Stephen Boyd , Maxime Ripard , Chen-Yu Tsai Subject: [PATCH 13/15] arm64: dts: allwinner: h6: Add cooling map for GPU Date: Sun, 10 May 2020 18:55:36 +0200 Message-Id: <20200510165538.19720-14-peron.clem@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200510165538.19720-1-peron.clem@gmail.com> References: <20200510165538.19720-1-peron.clem@gmail.com> MIME-Version: 1.0 X-Mailman-Approved-At: Mon, 11 May 2020 07:17:27 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add a simple cooling map for the GPU. Signed-off-by: Clément Péron --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 22 ++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi index 2e31632c6ca8..b26f735201c7 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi @@ -173,6 +173,7 @@ clocks = <&ccu CLK_GPU>, <&ccu CLK_BUS_GPU>; clock-names = "core", "bus"; resets = <&ccu RST_BUS_GPU>; + #cooling-cells = <2>; status = "disabled"; }; @@ -1002,6 +1003,27 @@ 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>; + }; + }; }; }; };