From patchwork Thu Aug 18 20:39:26 2022 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: 12947866 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 65426C00140 for ; Thu, 18 Aug 2022 20:41:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+WEIIi5VkaFeMC5pZZqGJKWW9YDWje7Hbfhu00IBV9Y=; b=YFC4GpGYQLSmjW CS551fcFaUZ1jL7LdYiqEmKIL0EGE7cKGHzl91DsN8EftceTJzVwm2gBsWr2QxLzBtiO9P8gQtey4 CQ6o0moREA+w3ZDYT0tnRkO54Qtk71M0qLur82FGCsZ/2awPEsyDYRAUDzlSiwCxQHRQdhqpj+N/4 ONAxXM9F/6Ygd+2wC25A0kqzroKjbeXJHKsuV6acRxNrNadGMOqbn4ARGN0iaouQ/oUruvv1hID70 T9aDcmXYFrl00QPzJ0XGvmphLSopzRENqwfVp7O+IYhedrNy6Pkp9zpnJBXHGVM00+HeTUH7MW2nN gfnGIRIfu9apvR90RAaA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oOmJ7-009KOm-5V; Thu, 18 Aug 2022 20:40:01 +0000 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oOmIm-009K5b-2f for linux-arm-kernel@lists.infradead.org; Thu, 18 Aug 2022 20:39:42 +0000 Received: by mail-wr1-x42d.google.com with SMTP id n7so3013635wrv.4 for ; Thu, 18 Aug 2022 13:39:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=cz2xkGMsvByC41KkhoxRGFhYkqJUO48ZE7vPhgR2CEU=; b=RPzK3EqVWgkwzhrUoWt9Lcth8291nLaD3ap5UBCNJePslUbdZbSUUokVZAhDTIH5QU qyEsKGtI5d3wWdjrdU7uY8JeUnOdQereM3LyXEzUTYoX8eeYKp3RWDOozT8jgz8AkH6p /mgmfdjX6W9DlQBOX+kGbZMzIHrH9S2FdYAV1GOdxiADvap//ERYrMq+C5L+0AXbN14n EwUsmfqHnLotsYHEGX1OImAIWnQyifI5bv2miQXdeN4NMOeu+iAhT/QyPqRs4l4P+Upc tz1zP954RUSNCSDi4O6STqrBeBn8YrMLXHTxmZsVfXJJ+M4217EMjIBxitEqs3oxH6qn 86Rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=cz2xkGMsvByC41KkhoxRGFhYkqJUO48ZE7vPhgR2CEU=; b=PrYZ8FPGUaIMWrmKExkvhJw9WTkIcvIq01pF1WA0YJ2XtotdMUyUpRyOlTfef3KzW7 07MCPcu2wY+mPUeMw18FNQDiAbYoV4gmcFk5mrSOnzyQ3yXmES0vSmjAmUt6ZEkXMcTM eAicym/EY8NwduJlYIq0Y0uZc0MiMJNeLE+g7KTtyrGKsLbV6vWJYZc4+QKUsC+Ngazs KgybqW1OCpxZau19B4bJyw/wsDF4H9H4u80DNnkBOJPhoBaI30wucvJ+cr8qtIPi5B6+ ABncg5eQtRbwXSOasRb/gfy9HYnA2vdSMeNUSxDKDkMtWqQssfeyKmbnJSRQMw9IGYCy Mzig== X-Gm-Message-State: ACgBeo1gcKxLg2FjTPG8X+3DkPV4cnWy+2gDH17vtBbLa/KRR/N9bWXC 303VpUB0Xw7aYSVNjih97pA= X-Google-Smtp-Source: AA6agR41I9bNS4f0/4x1g+p1U1HKuv/Abo8MyzgVn0XT48d4RsvzRO+AVYBgyJKukDc5r3B99a2LbA== X-Received: by 2002:a05:6000:1d82:b0:220:5f9b:9a77 with SMTP id bk2-20020a0560001d8200b002205f9b9a77mr2440848wrb.622.1660855176518; Thu, 18 Aug 2022 13:39:36 -0700 (PDT) Received: from localhost.localdomain (2a01cb000c0d3d00cc34c67bc193cac8.ipv6.abo.wanadoo.fr. [2a01:cb00:c0d:3d00:cc34:c67b:c193:cac8]) by smtp.gmail.com with ESMTPSA id u18-20020a05600c19d200b003a54d610e5fsm1571648wmq.26.2022.08.18.13.39.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Aug 2022 13:39:35 -0700 (PDT) From: " =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= " X-Google-Original-From: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= To: Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] arm64: dts: allwinner: h6: Add cooling map for GPU Date: Thu, 18 Aug 2022 22:39:26 +0200 Message-Id: <20220818203928.131059-3-cpe@outsight.tech> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220818203928.131059-1-cpe@outsight.tech> References: <20220818203928.131059-1-cpe@outsight.tech> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220818_133940_227143_970BDD73 X-CRM114-Status: GOOD ( 12.53 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Clément Péron 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 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>; + }; + }; }; }; };