From patchwork Thu May 16 17:25:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Kaehlcke X-Patchwork-Id: 10946947 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C7A461708 for ; Thu, 16 May 2019 17:25:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A67BE20CCF for ; Thu, 16 May 2019 17:25:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9A770289AF; Thu, 16 May 2019 17:25:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 429C420CCF for ; Thu, 16 May 2019 17:25:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=EV5ziaQfh/lVmkOVyso19fNbMH6TqRv7lOiD/aQtOqQ=; b=SDhY7JML6L33MH hZsGruOqB6jG+KuRNLaoewNzdzdV/QWrt0+fMp+mqaOuz0g4USrC1tHgtWMymVyKEEvuU3E23Eheh /xPK4gzIN2YVo2ue9NbBCgOQBUYOaRzQ9P8sKj87iq1yOp8ivS58zzsQLFN1ZXDmYyYlKxIQhBNsZ pPqIh01i5j3cLchvHqAbt7JrpYZPprO+y9HvRhJUpJOedollDSa+P4DFVcMG0QC1QXI7P3v2b9daV 43Oo51gwC38ZsIr4C+anILsdQKUomFplg3T6PbsKryAlCd4sWt0wQGj2mofNkRSeouN7ysgustNCv wWZ4iLq7+baEN+eICmug==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hRK88-0002af-1T; Thu, 16 May 2019 17:25:20 +0000 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hRK83-0002Ye-Pz for linux-arm-kernel@lists.infradead.org; Thu, 16 May 2019 17:25:17 +0000 Received: by mail-pg1-x541.google.com with SMTP id z3so1885973pgp.8 for ; Thu, 16 May 2019 10:25:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=EVl8ZXN8JPcw2xaHO9ZTYh60UwjcOeEd2LUYV6FNZrQ=; b=L3pOoCaQskb2Fga/dNWke/VSFUUQxbe+nfTUcxUrOmVHH+LzrUUfkyRywEz99Q4nL2 m2F69hUS3UQsU1/UYxwbVPnwDiHlZv7R4hJ4RU5sRHW+Kb3kXCOs/SWFZz57Bb7K9hiQ cvV1dfJXk2iCJVks9ckJo5aM/Ys5drogaQYgg= 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:mime-version :content-transfer-encoding; bh=EVl8ZXN8JPcw2xaHO9ZTYh60UwjcOeEd2LUYV6FNZrQ=; b=t73c5o80p7alxk4WeiKI6E1JiZxs8eJixFMrdsPMcJYbtp7LbwJv7ipyCywT3RMkDd 4zXy8JZGKaHYJllsyUZRo37hRjweg8B17dNsBBKzTvMUkvS5fneeoYsWLvxZ0o6fZp+J WY4AEFze7Cjzhhws4skhidlK8/+0GN2qfD82AlDk6ClRUkWLj+dKsKB3fSLD8yiDKxpH S9Gh7By9u6IV+CqXH4IL7pnrTHngE8CTGOvZ2H6WnlYimL7g+FfhIAfkk00PCxu5rvDq nw/hsFl+i9T2ZZzp8Ka3p6EnEeBwAsniLyddv1jKDL4rW4Q33gR6VKqvy815wyqCE69e RFdQ== X-Gm-Message-State: APjAAAWIEIMFFyCycx6l0ScGXVLMqrYAdGfznbxKvCVbtWB8VWVgtU/G PCQH7xbpMK0kBhzATYy9pkV5Ow== X-Google-Smtp-Source: APXvYqwpj3INjdyCcYF7eLRtYgUqjMn2YOU0j2bY43pkolET6jRmQIrQb00jKgHVpRrRAInlDPe5xQ== X-Received: by 2002:aa7:9afc:: with SMTP id y28mr55797961pfp.101.1558027515393; Thu, 16 May 2019 10:25:15 -0700 (PDT) Received: from localhost ([2620:15c:202:1:75a:3f6e:21d:9374]) by smtp.gmail.com with ESMTPSA id k63sm9651260pfb.108.2019.05.16.10.25.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 May 2019 10:25:14 -0700 (PDT) From: Matthias Kaehlcke To: David Airlie , Daniel Vetter , Heiko Stuebner , Rob Herring , Mark Rutland Subject: [PATCH v2 1/3] dt-bindings: gpu: add #cooling-cells property to the ARM Mali Midgard GPU binding Date: Thu, 16 May 2019 10:25:08 -0700 Message-Id: <20190516172510.181473-1-mka@chromium.org> X-Mailer: git-send-email 2.21.0.1020.gf2820cf01a-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190516_102515_869693_F3B1FEDD X-CRM114-Status: GOOD ( 10.88 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Douglas Anderson , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Matthias Kaehlcke , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The GPU can be used as a thermal cooling device, add an optional '#cooling-cells' property. Signed-off-by: Matthias Kaehlcke Reviewed-by: Douglas Anderson --- Changes in v2: - patch added to the series --- Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt b/Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt index 18a2cde2e5f3..61fd41a20f99 100644 --- a/Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt +++ b/Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt @@ -37,6 +37,8 @@ Optional properties: - operating-points-v2 : Refer to Documentation/devicetree/bindings/opp/opp.txt for details. +- #cooling-cells: Refer to Documentation/devicetree/bindings/thermal/thermal.txt + for details. Example for a Mali-T760: @@ -51,6 +53,7 @@ gpu@ffa30000 { mali-supply = <&vdd_gpu>; operating-points-v2 = <&gpu_opp_table>; power-domains = <&power RK3288_PD_GPU>; + #cooling-cells = <2>; }; gpu_opp_table: opp_table0 { From patchwork Thu May 16 17:25:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Kaehlcke X-Patchwork-Id: 10946953 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6E194112C for ; Thu, 16 May 2019 17:25:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 47602289AB for ; Thu, 16 May 2019 17:25:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 367B028AF4; Thu, 16 May 2019 17:25:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D3012289AB for ; Thu, 16 May 2019 17:25:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=3lFjlRMjKZEL9Es+uX7shM6+vOQyE90/JSHzlPvexvk=; b=ry7x4tsZSmbq1t UqagWBmjxqjJaaoNN88DHLSfTC+WmAFM+yz4E2T8HLaxQt9Dd0MhbDSIgeRw1YouTHV0jBPVhax0+ NwEtT9o7Vd+AV1JKZxqazhSCpiz2JCOG60NoCLd808wsf+BEL4apliZ+OttxTP+kbeO3I5a4qa/Mh khQ+4UufvoGE+JyFrz48SQEm4zhfJjluvDmfK0TAJKJ0KAVP8QShvxypouY14Wnaf7inqUKguGDBa R8IZ9HXvGvVVh0I0voWBVU10YsN8ojNaykRv+xkI9JANgNXQUisI8GmA68/mBT8HYt+xthhvbAbGh QIRznKTsUC1gxuaa6Z9Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hRK8J-0002oa-0v; Thu, 16 May 2019 17:25:31 +0000 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hRK85-0002ZN-BZ for linux-arm-kernel@lists.infradead.org; Thu, 16 May 2019 17:25:18 +0000 Received: by mail-pf1-x441.google.com with SMTP id u17so2191736pfn.7 for ; Thu, 16 May 2019 10:25:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ousylPICmwH1og6gjNylTr7gaxUc1ig3ZdhjNRxPghU=; b=dgGSuA8VDPXv7Fj5Q5+ofTuWInUTRLCEGimaJ/XwDGZgH8iS5qpn3DIYuedOUERjIX TgF/rxteIL7Z4FgxhseTSJdM60kvzN7B9+j7MOUShrmdYPyIeiqsNXzbHYJYAtdG1MRf sXk2aqJnxCwgTHfdsfrBaJ3wtHTlqnbyhdVh4= 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=ousylPICmwH1og6gjNylTr7gaxUc1ig3ZdhjNRxPghU=; b=HPlkjVTuCKI1BAQKZfSXNnpUlGrWm3IifCSPacJgRYOUC4L1aHkFflnGMzbNJTTR10 yvgr6VRCknO21hxqmsrbmj+CBP1+AePFww1Bg0coCaR6Qb0H6zS2Ju3F0xxAoihyFx+6 +yZpReWrVfE+VDuyjVy/Oyj38BSzUfdUJT/7IXksylFedBao54AUGwSdSeA+8E6IjmKL 5HGb/kIg3f+d1ASvlY/Aq4i2+gf0H/Q099UmejTzE8wQ0isJLCJeF4qiI7IvatKgRKhu qXRamZXZodQBl30+xzJDWeOR04F51aHIQomXLReCSQjphE8lVUmX/zpQp0PtrGP1xI5e +H3A== X-Gm-Message-State: APjAAAV9iyX5SLRVyqE2vO/if/6pvA93Ng0OLEcpE5UswSOCUjLxVc3b 47hVlrUZPER+TK5ADiWwzz7MXw== X-Google-Smtp-Source: APXvYqyRLtHHdZ/6gBoDhAq+Ft8DnEuAOLEu1Tag/6FSXqdLHOz2xTh+/UUVMzZ7Jib/lJnPD2TaUw== X-Received: by 2002:a62:570a:: with SMTP id l10mr54993359pfb.151.1558027516911; Thu, 16 May 2019 10:25:16 -0700 (PDT) Received: from localhost ([2620:15c:202:1:75a:3f6e:21d:9374]) by smtp.gmail.com with ESMTPSA id f29sm17110563pfq.11.2019.05.16.10.25.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 May 2019 10:25:16 -0700 (PDT) From: Matthias Kaehlcke To: David Airlie , Daniel Vetter , Heiko Stuebner , Rob Herring , Mark Rutland Subject: [PATCH v2 2/3] ARM: dts: rockchip: Add #cooling-cells entry for rk3288 GPU Date: Thu, 16 May 2019 10:25:09 -0700 Message-Id: <20190516172510.181473-2-mka@chromium.org> X-Mailer: git-send-email 2.21.0.1020.gf2820cf01a-goog In-Reply-To: <20190516172510.181473-1-mka@chromium.org> References: <20190516172510.181473-1-mka@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190516_102517_393963_8AFF1B98 X-CRM114-Status: GOOD ( 13.62 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Douglas Anderson , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Matthias Kaehlcke , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The Mali GPU of the rk3288 can be used as cooling device, add a #cooling-cells entry for it. Signed-off-by: Matthias Kaehlcke Reviewed-by: Douglas Anderson --- Changes in v2: - added Doug's 'Reviewed-by' tag --- arch/arm/boot/dts/rk3288.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi index a024d1e7e74c..14d9609f0b15 100644 --- a/arch/arm/boot/dts/rk3288.dtsi +++ b/arch/arm/boot/dts/rk3288.dtsi @@ -1273,6 +1273,7 @@ interrupt-names = "job", "mmu", "gpu"; clocks = <&cru ACLK_GPU>; operating-points-v2 = <&gpu_opp_table>; + #cooling-cells = <2>; /* min followed by max */ power-domains = <&power RK3288_PD_GPU>; status = "disabled"; }; From patchwork Thu May 16 17:25:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Kaehlcke X-Patchwork-Id: 10946957 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 616A6112C for ; Thu, 16 May 2019 17:25:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 42AB3289AB for ; Thu, 16 May 2019 17:25:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3682328B30; Thu, 16 May 2019 17:25:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BF9AB289AB for ; Thu, 16 May 2019 17:25:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=VU10LLbjDTgAQXl0QuZu6TkgqCMiK5/xYLS5X0eFC5w=; b=SHZnhxCkToG4uK K8CsiSu1L3wXeLALIN+hswx5YjX6i3mD4CWv0oTnIoKUwGYgtXzOEzSERRNtBJuCBrRI/C+8/lk4U 9Znk0Q3oMahQlMdYlNcjyEAnHDO01/Lwiu0mI+jn+zjRF5rwpgRajE8UbnbP0yoBlko6HDr6dPSE5 tegLlXR7VEOJF3NA64BIdg14o9+nhCpuOYOJY+rV6Z/wsQcO4lB3aHG6HXKX7Sqz5/H27qO9HKs7b M5oSl4c71zfJMdYMcG8Zu+KtWfOYEAx7nmKA6hRZaTSbd2IjEnl71AJGKqAeO159EJDn+31eGR5pQ YKEn69KzVr23DJhTWgtw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hRK8T-00032P-Ig; Thu, 16 May 2019 17:25:41 +0000 Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hRK86-0002a9-Qe for linux-arm-kernel@lists.infradead.org; Thu, 16 May 2019 17:25:21 +0000 Received: by mail-pl1-x641.google.com with SMTP id g69so1949596plb.7 for ; Thu, 16 May 2019 10:25:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lMSAIsZhKZG2h1JTrxIG+7d55aHOlT9g/JHuAffMChU=; b=lm3M7Abais25GdMpfAmlFd1RXZxXFphbeQ7jGJe3AKBVsknHbMxhyrH4vT+MBb28A+ xP4nQPC5QkLetlEYajhKUsKHtuJITm+LT9nnHbWlAddEHLklQyGCAK0zKonDIjCHRuRm n0incRdHOE8Y3OOvZzwBzlqIvRx1Z2ohANK2U= 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=lMSAIsZhKZG2h1JTrxIG+7d55aHOlT9g/JHuAffMChU=; b=RxsNTN5H1mafpUWBybrx6Q9axgDtjs0oq0RACFHXrQkA+tNU2QOIWhWXOcEjBel/dE MRUOtX07t72Q/Pe6fCImg4bJ+B25b+KxZyhRXkvuU+iPMhJEBjbIDFawmu0vxu10nvbf Tn83T+zRXaGGhbc6n1SDWriAS3YKnh9T0wIT+YYpawrXObkgL38lUvBrDSXmulz/4lkW npQ7Yn6wir4uLL5WTbnGJZ5PeCJ72lhxJAAxZQCzeA2+JajkOCqDVx+lEKDt4l+SsTwS Q3Evc6ZdLx540cXztS+ZgNoB/R+FIEqMkcF03Vl8d22BHnHUWWqpIw/4h9CdebeMrv55 MMng== X-Gm-Message-State: APjAAAWNaytxJgcbX/XlsEHs0N9qIK4CaAXsjjPpHpz0/1VK32QP3tD8 vW/1ceyEI0IxT6vRji7pZolQLg== X-Google-Smtp-Source: APXvYqzIUsVmhUrS26/6IMXbb7QozvzV4UhQf72EtAlcEOaL7o68fTla/TZNzSHlTZB49FW8iDdDfw== X-Received: by 2002:a17:902:6809:: with SMTP id h9mr51869145plk.129.1558027518307; Thu, 16 May 2019 10:25:18 -0700 (PDT) Received: from localhost ([2620:15c:202:1:75a:3f6e:21d:9374]) by smtp.gmail.com with ESMTPSA id s77sm13264216pfa.63.2019.05.16.10.25.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 May 2019 10:25:17 -0700 (PDT) From: Matthias Kaehlcke To: David Airlie , Daniel Vetter , Heiko Stuebner , Rob Herring , Mark Rutland Subject: [PATCH v2 3/3] ARM: dts: rockchip: Use GPU as cooling device for the GPU thermal zone of the rk3288 Date: Thu, 16 May 2019 10:25:10 -0700 Message-Id: <20190516172510.181473-3-mka@chromium.org> X-Mailer: git-send-email 2.21.0.1020.gf2820cf01a-goog In-Reply-To: <20190516172510.181473-1-mka@chromium.org> References: <20190516172510.181473-1-mka@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190516_102519_056363_8EBCCE8B X-CRM114-Status: GOOD ( 13.04 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Douglas Anderson , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Matthias Kaehlcke , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Currently the CPUs are used as cooling devices of the rk3288 GPU thermal zone. The CPUs are also configured as cooling devices in the CPU thermal zone, which indirectly helps with cooling the GPU thermal zone, since the CPU and GPU temperatures are correlated on the rk3288. Configure the ARM Mali Midgard GPU as cooling device for the GPU thermal zone instead of the CPUs. Signed-off-by: Matthias Kaehlcke Reviewed-by: Douglas Anderson --- Changes in v2: - patch added to the series --- arch/arm/boot/dts/rk3288.dtsi | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi index 14d9609f0b15..988555c5118d 100644 --- a/arch/arm/boot/dts/rk3288.dtsi +++ b/arch/arm/boot/dts/rk3288.dtsi @@ -547,10 +547,7 @@ map0 { trip = <&gpu_alert0>; cooling-device = - <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, - <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, - <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, - <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; }; }; };