From patchwork Mon Jul 17 08:14:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caesar Wang X-Patchwork-Id: 9844183 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 67BEC60392 for ; Mon, 17 Jul 2017 08:15:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 58FB427FC0 for ; Mon, 17 Jul 2017 08:15:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4DF732821F; Mon, 17 Jul 2017 08:15:28 +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=-1.4 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_SORBS_SPAM autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 0E0D927FC0 for ; Mon, 17 Jul 2017 08:15:28 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=0Iw5gc2RiG+f/Lx+UuKws/pw2FYfx3iZSSKzgBFvSLw=; b=Rub2PWhpEYi9DZ8rSddfGHmIfC nMjeIS11ErnRMWPVEPLLBeoNdKGdP87gZTnvgXgpW1RIHJ1/WUn/LjHjP2dzwEtTrA94hcrGe9BIW O4Rsr5/u3xMkgB5u03Yz7UiaIpKmRxwVzWEZT6ICIcYv+SzxqJS5p56XXVU3W2Wku1ZhStMkeTZTd aT5RW8l8d0TQE+fTQxhxsPP1+NjK7MP+zS98LcZBavt3yhD/aM4otR68++slov5QK0n4FdmmU3him 0SQ9QEY7NIZbxaV6EH3Y5d1LcfzhitykhQX+2I3GVjKPpM9rHk12R89yPC5raM+pcT8WgjNBdQAHC BWZVxh2Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dX1Bf-0003sK-3y; Mon, 17 Jul 2017 08:15:27 +0000 Received: from mail-pf0-f195.google.com ([209.85.192.195]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dX1BO-0002Kk-Ae for linux-rockchip@lists.infradead.org; Mon, 17 Jul 2017 08:15:12 +0000 Received: by mail-pf0-f195.google.com with SMTP id a11so2504973pfj.3 for ; Mon, 17 Jul 2017 01:14:49 -0700 (PDT) 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; bh=6hrJgd/rwDQbypiruJ3meon9V1ihHgJ9EhWFHC1pgvg=; b=XvLT9IFb4TlwlqdVpfL6EyA7qoXI6EVxBrLuz2PlOxO59NBI44vaBoQx8Fzpa+/pMa LbbDXaakxWRDzKh71YlpauMPfUDsCOkeJCTBY04+RNKp5cxgAbyfy84SFj3rfMEqFGJe 8HjNRBU10DFehS5TUrurSo+ng8RFokCsCI29hehpLWYbzsEVR+OGJ/q98EWG2SX5cGNb l4dUTJZizEH19MJofoaId0tmRjhv9+7sZgBs1lawOvl4OOABY4ktZTlQq50KakLl2ZWD 5NDeGvsr4HOAP7hRqloFNSXEubi/3HFvltbar7lmZkXLfg/Xylsa4w+Ha9+MGPgYxQ5Q 6AnQ== X-Gm-Message-State: AIVw111i5u6C5HO1lqstXPrl4j/DzQNpYg5kKYTndaVo+FP5MmDvLwrm a4id47g8+vljcA== X-Received: by 10.84.191.164 with SMTP id a33mr29806664pld.119.1500279289419; Mon, 17 Jul 2017 01:14:49 -0700 (PDT) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id n83sm3224003pfi.1.2017.07.17.01.14.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 17 Jul 2017 01:14:48 -0700 (PDT) From: Caesar Wang To: Heiko Stuebner Subject: [PATCH v2 2/5] dt-bindings: gpu: add a power_model optional properties for MALI Date: Mon, 17 Jul 2017 16:14:28 +0800 Message-Id: <1500279271-15249-3-git-send-email-wxt@rock-chips.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1500279271-15249-1-git-send-email-wxt@rock-chips.com> References: <1500279271-15249-1-git-send-email-wxt@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170717_011510_504354_99BD339F X-CRM114-Status: UNSURE ( 9.24 ) 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: Mark Rutland , devicetree@vger.kernel.org, David Airlie , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, Rob Herring , rocky.hao@rock-chips.com, Caesar Wang MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds the MALI's power-model to set the IPA model to be used for power management. Signed-off-by: Caesar Wang --- Changes in v2: None Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt b/Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt index a461e47..b616e6b 100644 --- a/Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt +++ b/Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt @@ -37,6 +37,18 @@ Optional properties: - operating-points-v2 : Refer to Documentation/devicetree/bindings/power/opp.txt for details. +- power_model : Sets power model parameters. Note that this model was designed for the Juno + platform, and may not be suitable for other platforms. A structure containing : + - compatible: Should be arm,mali-simple-power-model + - dynamic-coefficient: Coefficient, in pW/(Hz V^2), which is multiplied + by v^2*f to calculate the dynamic power consumption. + - static-coefficient: Coefficient, in uW/V^3, which is multiplied by + v^3 to calculate the static power consumption. + - ts: An array containing coefficients for the temperature scaling + factor. This is used to scale the static power by a factor of + tsf/1000000, where tsf = ts[3]*T^3 + ts[2]*T^2 + ts[1]*T + ts[0], + and T = temperature in degrees. + - thermal-zone: A string identifying the thermal zone used for the GPU Example for a Mali-T760: