From patchwork Sun Aug 21 17:30:49 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: 12950022 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 14B67C00140 for ; Sun, 21 Aug 2022 17:33:03 +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=e5FEIU/+h0S8AH/pyEF93v+H3HTHAHOxcUYn2KjbsSw=; b=x4sj8o8Rm7r85y TJPmvr6F48si63blrem6xiixAJTbjCCiGyxJIu0I0O0QXyx0B8yTmerWv/1mYB1RYb1fp4KUbT9WW rPpS/t7a5jVEBhhvkD2pErtLCCm0DxgzlrdsqSWCMAO0eWcCFCQ4QkdBd21lvGM9C43J+32pdgIO0 wLYXO/tYUltiXl7jeY94SxmV3Hb+HXU4jclW3U4hq8mnNfheDEsIT+4i4A7AOxkh1SdQ7oK/SsAw5 a9Lkr3etDpwK8aS2gtMWPKBau08r7URC8ebFZVKhNVpKwH541PFqpYWQ6/AG8ix+voTeZXgeEh6lT Bn9/s/AUdIhntPE87FXw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oPonc-00Cq4h-EG; Sun, 21 Aug 2022 17:31:48 +0000 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oPomy-00Cpt6-Tw for linux-arm-kernel@lists.infradead.org; Sun, 21 Aug 2022 17:31:10 +0000 Received: by mail-wr1-x42f.google.com with SMTP id d16so5354976wrr.3 for ; Sun, 21 Aug 2022 10:31:08 -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=xXtd3T1/ZmQUyro/3HUWSi05URHaw6Uj3JAxrNnokZQ=; b=WrCaNmPmrBGJvcCKPkD/xrN9evhffeqMgS/b4hmh1mBEAG1Ow5N7Zlj9BKGmeGuRTS afuBjwzks5LCQ3PW0m6IJJLbkIGaOzMU61twhKeaK+a3jSc+HVE/e9OwQF5pGnG0TXTd XHJfJh5GchRTl5S7oIvp9AT1+WvBSk/Y2iAdc2kV9tDYRm69BZKtf1t4v/LkukH/OD0j 9pdGK/Nb9rZFvsTDw2Z6SQdxGe1KsQ/RvNxSnw64Ems1gjopQnrZ3AN9oI6V5eXvqt4X 0fCk39/so6YeaVn06GZkQgl84qmoxDZ29mwKlXyUnYzJTpCxDOmlkU55l8lPiNhuph6X olBg== 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=xXtd3T1/ZmQUyro/3HUWSi05URHaw6Uj3JAxrNnokZQ=; b=hZxUJ4yUuFAadT52x7XUf/HJq/U/LLaMv4LnKO2DcbB3mBQmJ6I5UfEau/UYSws+j5 zwJt0/FBZo1NN8ie8MGtJgKGg3rx0/h9Xu+htjL7+lXUKhJ8w/Qf34jifXX39bJGvmZf 2b3aVnqzJMTqEx3Igu48S9kqxP17FhHJPGPjd3ZcHZfCJWj5UrRnfBaiES9Ru8jGbfBC wmfD17jjTROBgfmMdM3N7vHAbZ1gwURyCt1Qksl7rAgxn5leUq+Y9dUCus/9Y7AIyeUs uUF3OuFZUkBdPJeh39iXLPADNNwOgk95zPbw+kSAGab4qWBHX6mK7pKv2bzOvqI2CUWg BoOw== X-Gm-Message-State: ACgBeo0YNMfgpPPSfHoskK6xaDJSvzdUul3rnHPYz/ZoOSGoOd8GsT7k 8sU9Utf9jqt76aqrDMgOTpM= X-Google-Smtp-Source: AA6agR4viVgw7SRXAAacJiqkBrwpN7r4KswavSgQ6UWx06oXqqUMu6VnRmfkNRqzLYnrE+PRPvYBUQ== X-Received: by 2002:a5d:43d1:0:b0:225:2707:dee with SMTP id v17-20020a5d43d1000000b0022527070deemr8873986wrr.25.1661103067713; Sun, 21 Aug 2022 10:31:07 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:a77:3d70:9d84:ec8d:98d9:c29a]) by smtp.gmail.com with ESMTPSA id b18-20020adff912000000b00224f7c1328dsm9387205wrr.67.2022.08.21.10.31.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Aug 2022 10:31:07 -0700 (PDT) From: =?utf-8?b?Q2zDqW1lbnQgUMOpcm9u?= To: Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, =?utf-8?b?Q2w=?= =?utf-8?b?w6ltZW50IFDDqXJvbg==?= Subject: [PATCH v2 2/4] arm64: dts: allwinner: h6: Add cooling map for GPU Date: Sun, 21 Aug 2022 19:30:49 +0200 Message-Id: <20220821173051.155038-3-peron.clem@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220821173051.155038-1-peron.clem@gmail.com> References: <20220821173051.155038-1-peron.clem@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220821_103109_058008_E2B3AD8F X-CRM114-Status: GOOD ( 11.87 ) 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 Add a simple cooling map for the GPU. Signed-off-by: Clément Péron Acked-by: Samuel Holland --- 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>; + }; + }; }; }; };