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: 10946949 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 A8E05924 for ; Thu, 16 May 2019 17:25:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 87C3020CCF for ; Thu, 16 May 2019 17:25:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7BD18289AF; Thu, 16 May 2019 17:25:23 +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 34FE620CCF for ; Thu, 16 May 2019 17:25:23 +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=dVSRV8y+FamvSpcrUBT+eGs9w6OPTAu/iBjx1B3FNX0=; b=ExIgNz4Ir86zZw 7x5YHTJVbS06C4tqkqhTU+qhimsgjlc+wfKFAt2R302Lv6uIWyGxJGbRNzsLTBUnww471NyrP2Ipb uBW96zl6zGoLBgkET7cyDjx7RLUnpf4C5HfG+C6Uy5EDsYd1Hyu3NthBNPFNaCzs+/Rv+ggy2yiz7 IHPRtLxnK3yKs3nPy2ymYX7Vdbo7uyBV4FviY5Nbeg3+/tSbiV0/4McAGSZ0fWT8QyxefBQ5eJ+B7 7nu2FGD4C8hb8OjVmP9OFBrHLnjyD6m7Goh1Pd8k07YWNf0Op+CErLB+/fLgP/U4oKF5dU0lL+D2k dj6ygbrcVoqTeP9pTwhQ==; 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 1hRK86-0002a0-Aq; Thu, 16 May 2019 17:25:18 +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-0002Yd-Pt for linux-rockchip@lists.infradead.org; Thu, 16 May 2019 17:25:17 +0000 Received: by mail-pg1-x541.google.com with SMTP id t187so1868952pgb.13 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=ETTMHtSY3emNKUJxRhHa6Avjgaksq1NWJPrIe64Cj9ikL922otPY1ABUyrkZYGjzYd 1E5MGrNfwgNEHYLhUzrAj/ZO6mpWlj6yX++zhV4p2kAIfmIL6JgryLV1uAmdKk6ye1UK YfArjWCX1iaVEIR8792o88WF+Jw3IkPaz/DqYSBsHUYHJdEcUH/DRZm2qBOonyitzeGJ fRLB2iWXSIjT88218sPagPljWrbjZKYSoe2Zicg1U4Bwnyqy75HJUEqQCWy3kL3jj/u4 tgLUQf6asGqkUm/Ha8PN4d9RmdppXjNZwO3pa1Aok3/8JsjMbliCSVAl1WogTqsyXXrM bdlg== X-Gm-Message-State: APjAAAXI82kR+w7rjZhnwxfsdJMCEtA2ygyQ/E+EoLVlByhsJrFaGdDO HrrT/P/v83Gr94f3ueTewyp+qQ== 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_869357_B2460CD0 X-CRM114-Status: UNSURE ( 9.53 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms 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-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=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: 10946955 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 7AD5C924 for ; Thu, 16 May 2019 17:25:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5A34E289AB for ; Thu, 16 May 2019 17:25:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4DAEE28AF4; Thu, 16 May 2019 17:25:43 +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 E3D2E289AB for ; Thu, 16 May 2019 17:25:42 +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=KvHqKy2Ze76ovk2a4XKTUos+V8e6N3CNeQcDao6sHbA=; b=gQwkR/15SLnI7A bNWnTXNK+5Ot4XJ3gX/Z5SCUGuPklKph411OplBFfvwj+4AEEkootIY2+eiksGbANOlkzn5o1qF7N oAZlJZaAlVu69BEl+6pNfyShukbr52awp6/HpIBFe/l73Cag5VuSOqhc06uEZj3X44ID0pyeQiWB/ 9Ko0gmVUZbCuz9vHJv2YiN4lw6Kp7UjrETdIcT5k6wOscWhm4Y4QgfG5maPIXJfe3LvIJbO89R5DS 0lY4qzvFJ9E4bciptWAX5CwtRzCfaI4ZyHevkuOXU9Zgq/Uh6RmLJrjLs5PXocQo6/o9yWTk08eLl x/8vutNoTzUTo2+Xq0pQ==; 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 1hRK8Q-00030L-P8; Thu, 16 May 2019 17:25:38 +0000 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hRK85-0002ZO-DB for linux-rockchip@lists.infradead.org; Thu, 16 May 2019 17:25:18 +0000 Received: by mail-pg1-x544.google.com with SMTP id i21so1872775pgi.12 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=DzrR71esn1rENOOLJ9Zw06kikMHdDe7JpUoSzz5qRrLOgDMo43duDLCPkcK8U2FwI3 mjBWYv7+q7BiUxD0MPnjCi0Iom0Quoz0p4qFmALfi2a39W+hOvh1uQ6tzpuntm6Sf8tV tY1yA/iuQOiuTiNoromlQKkGTL1Qbz95D6/ZvSLXspSRCt/bk1cQghkvIyFrfRs6PuL/ +XWiWEsRxvGgi64WjAEv520l/kxxUoOH5UhFN33kcXiTdmdeFYR0aDNHIYOdgf9S/hjA rD8C7p5rCf2elUxP2VStGL4l4x8X9aPmKwAdsjyWlegnx2woH/zaGcxyt6t/KCQeDSEO 3YCg== X-Gm-Message-State: APjAAAXtxg3pqTs7LZmnVP3is51oTAekdkfn8EEX+wa3RGK1Ri2zV3ga pfcQEZ6DMl+wJL2K5nb+CwMNCQ== 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_440631_DA8CE4C8 X-CRM114-Status: GOOD ( 12.28 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms 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-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=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: 10946959 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 B6853112C for ; Thu, 16 May 2019 17:25:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 97639289AB for ; Thu, 16 May 2019 17:25:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8B7B828AF4; Thu, 16 May 2019 17:25:54 +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 40E2D289AB for ; Thu, 16 May 2019 17:25:54 +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=F0tHhPFgMzhlBTs9NBRg8c2PLXJ+KS/QyxkYKJt8md8=; b=puOV3CL6s/fclC 7lV+8X6Bjt2AM0ROiTycfZZInhQ1JmUtrIWI1/GPgn7nfrXyGP1ROZooG9aH4jFs/q1R5WsY8I/Ws Sct03arMFgQ+Pk6evOLAbKsM4zI68fXwmc7pXViGEKL89OCIyou/Pc7bXD+OYx37YyzQKIaJkyWIn 19yv1Sx7oPp++pxKa1oL3sDJhoAQmX8mCXhqR/8lC/eBZaBQHUOMZ4ys7/L2S2OnC03EmiE2RqpL8 L5j/4oXfaOsHmsZkKwNY95jTw7eZkm+PN32jUO++TlWCZIbqFpqd6O5WWxN80Nnfi9PlxC+NMXAkn 511xyD9iP4qvLquVHJDQ==; 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 1hRK8d-0003Fn-19; Thu, 16 May 2019 17:25:51 +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-0002aB-QW for linux-rockchip@lists.infradead.org; Thu, 16 May 2019 17:25:21 +0000 Received: by mail-pl1-x641.google.com with SMTP id d21so1965138plr.3 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=Fd7yIWjsiJuTH0q1DrTaRGpT/7Oi6Xd27zpvo55BKmg4cnzg5Ghk5bnr0gyz/VKYSq VExvm149iByJCeGNdOBH+SPdpLJXtlQTDVLsDuK6I+M1FKOJQ37vYTr8pgYNgekIvzyB jYzXH/SJsJ1DNm5s1P1+KofGtfid6msTwyhpy4C1sjqD05AJbzOs3Zgu5F6Ca+u+h0tr L1OH8Q9gUc+mqDQjBs1E9ZM9nXm9n5qgSgyyf0Lh0f+BL/E5lclGvABw0hgUhkungQxr cs69ExwSVjgmoOvLOnoN7/iLpmWDgBI3MgmBbvvxhWquYmFzLe1PiE6aNtan8Twoqs/b X9Xg== X-Gm-Message-State: APjAAAVgC8qRfUnuoYwRM6GAbLlgQr6DDlqKDx5vPbz3U/vKrbG4cF8P COsYOds3Q66SMqLnPIEXRTyCPQ== 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_146100_64D34E04 X-CRM114-Status: GOOD ( 11.70 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms 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-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=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>; }; }; };