From patchwork Wed Feb 10 11:40:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yassine Oudjana X-Patchwork-Id: 380385 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 25639C433DB for ; Wed, 10 Feb 2021 11:44:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D061B64E4B for ; Wed, 10 Feb 2021 11:43:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229702AbhBJLnq (ORCPT ); Wed, 10 Feb 2021 06:43:46 -0500 Received: from mail-40137.protonmail.ch ([185.70.40.137]:58560 "EHLO mail-40137.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229683AbhBJLli (ORCPT ); Wed, 10 Feb 2021 06:41:38 -0500 X-Greylist: delayed 2562 seconds by postgrey-1.27 at vger.kernel.org; Wed, 10 Feb 2021 06:41:37 EST Date: Wed, 10 Feb 2021 11:40:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1612957251; bh=sq5qGtUgy8PiKaUloWYV0Rn3UxNBbao5MT92ExM8mqc=; h=Date:To:From:Cc:Reply-To:Subject:From; b=ZuMGEVfAOj3IxJjy2xeEVTnC/v3rZ8kXzyOAhMCohgRJ4SVD6HGOGpz4CEHmB2HRG PP+V4dIIRlP6kNK6AyK1dM+HkRFaA+CpUu/DfcFCZDt6q4p9urGe/DxH8AoEPeW7ea eTxy7fG3sbjmS2Wn/AwHF0xUs9lxvTerXYWOsz4c= To: "linux-arm-msm@vger.kernel.org" , "phone-devel@vger.kernel.org" From: Yassine Oudjana Cc: "agross@kernel.org" , Bjorn Andersson , "robh+dt@kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Reply-To: Yassine Oudjana Subject: [PATCH] arm64: dts: qcom: msm8996: Add gpu cooling support Message-ID: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add cooling-cells property and cooling maps for the GPU. Signed-off-by: Yassine Oudjana --- arch/arm64/boot/dts/qcom/msm8996.dtsi | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) -- 2.30.0 diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index 7eef07e73e25..19bfca3133a4 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -7,6 +7,7 @@ #include #include #include +#include / { interrupt-parent = <&intc>; @@ -618,7 +619,7 @@ hdmi_phy: hdmi-phy@9a0600 { "ref"; }; }; - gpu@b00000 { + gpu: gpu@b00000 { compatible = "qcom,adreno-530.2", "qcom,adreno"; #stream-id-cells = <16>; @@ -650,6 +651,8 @@ gpu@b00000 { operating-points-v2 = <&gpu_opp_table>; + #cooling-cells = <2>; + gpu_opp_table: opp-table { compatible ="operating-points-v2"; @@ -2305,7 +2308,14 @@ trips { gpu1_alert0: trip-point0 { temperature = <90000>; hysteresis = <2000>; - type = "hot"; + type = "passive"; + }; + }; + + cooling-maps { + map0 { + trip = <&gpu1_alert0>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; }; }; @@ -2320,7 +2330,14 @@ trips { gpu2_alert0: trip-point0 { temperature = <90000>; hysteresis = <2000>; - type = "hot"; + type = "passive"; + }; + }; + + cooling-maps { + map0 { + trip = <&gpu2_alert0>; + cooling-device = <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; }; };