Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1240703pxb; Wed, 10 Feb 2021 03:49:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJyZuTncrqsk3H8qO/KMeBEt+GlL8SOYhvPlfi0BAcilmJSX2YDSnG8llS6skxLm847oyMTg X-Received: by 2002:a17:907:75c6:: with SMTP id jl6mr2446105ejc.243.1612957739850; Wed, 10 Feb 2021 03:48:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612957739; cv=none; d=google.com; s=arc-20160816; b=zkPbiNTW9sDF/wlLeZ1eyZunlY/2ONiOtpip50wrF9oQiiC5yrLxiZ1QulAJEMLYTx olLZs0EfghiTJTsiMmug1qHkhScA5NGBZgtHb8Yj5/TZ+Q47rEzyuAMuJ+lmXvqFly/H 17X9Kh+/VeqSjs/4T9oY8DEcDcvr35v/yWumdzmawkhVomg3QltwmDrg/JCqDlfa06JT 9Dfjx3a/6icK578yF3H9TIWQnE2SLNA041v2F+gxA7466VAAH2ezXLOBm1jSKnWD8IzW Kgqui8Do8jQKHzTkGtRmyK/XIDrNm8fpeJ7ZWAKHihk52uBKiqb0sGCNX3XTDqiJxeFt wMoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:subject:reply-to:cc:from:to:dkim-signature:date; bh=sq5qGtUgy8PiKaUloWYV0Rn3UxNBbao5MT92ExM8mqc=; b=Dda3e35LefvNjWgni0AinmAKsFRka86oSJCzhdcoXUr5OI31GdQQRc/U5RkC7Fs5zK 02Ji4b5I4lQR8tZy8r9kHw0kPFPYku12fqiU9rTGZEZeCjjtzrKuXqWx58mtBGdapsrC hUSnAQAkSdGwTVRv1+KIs59eI6i5i5lUaSGY68GR5dtP6bnW7MuZ/c3LghxiWgJc6z7o zfdjYKOfDat6AqCV/2iXOgGUpCVJG1QzJYWJqGAD8qajwx45GpuJnEPHqaFxoun34HTp ChXcKxoHAIWvSM7XMqK/GKGs9ADvKQ864e/GRW+Ef/DeKX4khl9LkJHFFHAyRkTs7B44 pf8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail header.b=ZuMGEVfA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id eb13si1501417edb.8.2021.02.10.03.48.12; Wed, 10 Feb 2021 03:48:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail header.b=ZuMGEVfA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231316AbhBJLrI (ORCPT + 99 others); Wed, 10 Feb 2021 06:47:08 -0500 Received: from mail-03.mail-europe.com ([91.134.188.129]:40916 "EHLO mail-03.mail-europe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229870AbhBJLo0 (ORCPT ); Wed, 10 Feb 2021 06:44:26 -0500 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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qc= om/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 / { =09interrupt-parent =3D <&intc>; @@ -618,7 +619,7 @@ hdmi_phy: hdmi-phy@9a0600 { =09=09=09=09=09 "ref"; =09=09=09}; =09=09}; -=09=09gpu@b00000 { +=09=09gpu: gpu@b00000 { =09=09=09compatible =3D "qcom,adreno-530.2", "qcom,adreno"; =09=09=09#stream-id-cells =3D <16>; @@ -650,6 +651,8 @@ gpu@b00000 { =09=09=09operating-points-v2 =3D <&gpu_opp_table>; +=09=09=09#cooling-cells =3D <2>; + =09=09=09gpu_opp_table: opp-table { =09=09=09=09compatible =3D"operating-points-v2"; @@ -2305,7 +2308,14 @@ trips { =09=09=09=09gpu1_alert0: trip-point0 { =09=09=09=09=09temperature =3D <90000>; =09=09=09=09=09hysteresis =3D <2000>; -=09=09=09=09=09type =3D "hot"; +=09=09=09=09=09type =3D "passive"; +=09=09=09=09}; +=09=09=09}; + +=09=09=09cooling-maps { +=09=09=09=09map0 { +=09=09=09=09=09trip =3D <&gpu1_alert0>; +=09=09=09=09=09cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>= ; =09=09=09=09}; =09=09=09}; =09=09}; @@ -2320,7 +2330,14 @@ trips { =09=09=09=09gpu2_alert0: trip-point0 { =09=09=09=09=09temperature =3D <90000>; =09=09=09=09=09hysteresis =3D <2000>; -=09=09=09=09=09type =3D "hot"; +=09=09=09=09=09type =3D "passive"; +=09=09=09=09}; +=09=09=09}; + +=09=09=09cooling-maps { +=09=09=09=09map0 { +=09=09=09=09=09trip =3D <&gpu2_alert0>; +=09=09=09=09=09cooling-device =3D <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>= ; =09=09=09=09}; =09=09=09}; =09=09}; -- 2.30.0