From patchwork Tue Jul 25 09:22:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caesar Wang X-Patchwork-Id: 9861505 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 E9684602B1 for ; Tue, 25 Jul 2017 09:23:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E59AB27F3E for ; Tue, 25 Jul 2017 09:23:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DA22A284F7; Tue, 25 Jul 2017 09:23:38 +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.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE autolearn=ham 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 931C127F3E for ; Tue, 25 Jul 2017 09:23:38 +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: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=BFruLFwx+LImi4DbXriFpk6X/9ttyZPHsWWIp3wMHZI=; b=QH+ jDQllIeQ/15juqak6XSCSFtj4wAulfiliercjnqdW3HqAMX38iUgOCfmHbJlAfD1BTBVA8iG8Bc3c ycJ65sXgQDzoEnv5bILh25k5kkKgYAPh3qLGE7qK67qKtv/nm0+Gb0/Vt9sfesbl6NRvINPEGCMv2 UPZOiu7DbDLSQkbJdP5IAeAhOtjOPzIok/IQctoFMcP4xsIhr81YfVDvPi9YnIVAIIjiixenKXf+c kk4piOKpTheVo6CfK0CLB87/LpDXePxVoXqywpXIPOV3eJmm4HMsonDhHTu9U44lUQ5vAmJ4B063P uRvHzv0lvS/xhYu954hz8P+M8qlzvUw==; 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 1dZw3x-0004S4-6z; Tue, 25 Jul 2017 09:23:33 +0000 Received: from mail-pf0-f196.google.com ([209.85.192.196]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dZw3t-0004Ex-AM; Tue, 25 Jul 2017 09:23:30 +0000 Received: by mail-pf0-f196.google.com with SMTP id c23so12509165pfe.5; Tue, 25 Jul 2017 02:23:08 -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; bh=YRiP+gj3tKnxW7U9MxuFJCXA3sp359+aBpaj3iFIz1s=; b=A852eP2kH/PzkK90FHR4/zhzLW+UgXBYwwLP4vfAG4wxx7TVJEqEfhShBeWSDpf4qz UP4QC5qR69FUbKVxylsOYT5nfICIA5Eow2oAqz7fI4Hy8btn91HAq6nc8LJOOhhGFKQs /jT64nbItLzFHUOtu0vGblrMWPEcX79qAA4S+jaPk1EGTP9/MZlUYT8HiMDzgnUykYfO RFMhaqrs9ZyJpUtOg+I0pIo3lFRsVetURtpikBQz5ZbXCiwe8WwQWV86mAJdo3Vo2bgE bsT1yPhBB5pUrYXLIikHBbClj3tLP7GBretB3LrREAuknBiGAYngWudn6qKS5vwHa18C haSw== X-Gm-Message-State: AIVw111u9gVaRlvvQItSVU+PAbFIRe0PGNY1eFdRJoeVn0jiEfNR2wfw x1WhiqqBDnaRBA== X-Received: by 10.98.37.196 with SMTP id l187mr18610541pfl.202.1500974588159; Tue, 25 Jul 2017 02:23:08 -0700 (PDT) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id n129sm21992111pfn.27.2017.07.25.02.23.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 25 Jul 2017 02:23:07 -0700 (PDT) From: Caesar Wang To: Heiko Stuebner Subject: [PATCH] arm64: dts: rockchip: update dynamic-power-coefficient for rk3399 Date: Tue, 25 Jul 2017 17:22:55 +0800 Message-Id: <1500974575-2244-1-git-send-email-wxt@rock-chips.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170725_022329_395256_89AC5BE0 X-CRM114-Status: GOOD ( 11.48 ) 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: Mark Rutland , devicetree@vger.kernel.org, Brian Norris , linux-kernel@vger.kernel.org, Shawn Lin , Elaine Zhang , Will Deacon , Kever Yang , Douglas Anderson , linux-rockchip@lists.infradead.org, Rob Herring , Roger Chen , Catalin Marinas , William wu , linux-arm-kernel@lists.infradead.org, Caesar Wang MIME-Version: 1.0 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 This patch updates the dynamic-power-coefficient for big cluster on rk3399 SoCs. The dynamic power consumption of the CPU is proportional to the square of the Voltage (V) and the clock frequency (f). The coefficient is used to calculate the dynamic power as below - Pdyn = dynamic-power-coefficient * V^2 * f Where Voltage is in uV, frequency is in MHz. As the following is the tested data on rk3399's big cluster. frequency(MHz) Voltage(V) Current(mA) Dynamic-power-coefficient 24 0.8 15 48 0.8 23 ~417 96 0.8 40 ~443 216 0.8 82 ~438 312 0.8 115 ~430 408 0.8 150 ~455 So the dynamic-power-coefficient average value is about 436. Signed-off-by: Caesar Wang --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index 9d02006..5d54a06 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -150,7 +150,7 @@ enable-method = "psci"; #cooling-cells = <2>; /* min followed by max */ clocks = <&cru ARMCLKB>; - dynamic-power-coefficient = <100>; + dynamic-power-coefficient = <436>; }; cpu_b1: cpu@101 { @@ -159,7 +159,7 @@ reg = <0x0 0x101>; enable-method = "psci"; clocks = <&cru ARMCLKB>; - dynamic-power-coefficient = <100>; + dynamic-power-coefficient = <436>; }; };