From patchwork Thu May 29 07:48:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gaku Inami X-Patchwork-Id: 4262621 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 0BFF9BF90B for ; Thu, 29 May 2014 07:52:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0533B2034A for ; Thu, 29 May 2014 07:52:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 63B2720256 for ; Thu, 29 May 2014 07:52:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752336AbaE2Hwo (ORCPT ); Thu, 29 May 2014 03:52:44 -0400 Received: from relmlor3.renesas.com ([210.160.252.173]:17375 "EHLO relmlie2.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751045AbaE2Hwn (ORCPT ); Thu, 29 May 2014 03:52:43 -0400 Received: from unknown (HELO relmlir3.idc.renesas.com) ([10.200.68.153]) by relmlie2.idc.renesas.com with ESMTP; 29 May 2014 16:52:42 +0900 Received: from relmlac3.idc.renesas.com (relmlac3.idc.renesas.com [10.200.69.23]) by relmlir3.idc.renesas.com (Postfix) with ESMTP id C16AC3F61C; Thu, 29 May 2014 16:52:42 +0900 (JST) Received: by relmlac3.idc.renesas.com (Postfix, from userid 0) id A41F4180A0; Thu, 29 May 2014 16:52:42 +0900 (JST) Received: from relmlac3.idc.renesas.com (localhost [127.0.0.1]) by relmlac3.idc.renesas.com (Postfix) with ESMTP id 99A95180A4; Thu, 29 May 2014 16:52:42 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac3.idc.renesas.com with ESMTP id SAE17476; Thu, 29 May 2014 16:52:42 +0900 X-IronPort-AV: E=Sophos;i="4.98,932,1392130800"; d="scan'208";a="161919922" Received: from mail-hk1lp0125.outbound.protection.outlook.com (HELO APAC01-HK1-obe.outbound.protection.outlook.com) ([207.46.51.125]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES128-SHA; 29 May 2014 16:52:42 +0900 Received: from [10.164.207.238] (211.11.155.149) by HKXPR06MB373.apcprd06.prod.outlook.com (10.141.136.20) with Microsoft SMTP Server (TLS) id 15.0.954.9; Thu, 29 May 2014 07:52:40 +0000 Message-ID: <5386E654.5090108@bp.renesas.com> Date: Thu, 29 May 2014 16:48:36 +0900 From: Gaku Inami User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: , Magnus Damm , Simon Horman Subject: [PATCH 1/7] ARM: dts: r8a7790-lager: Add DVFS parameters into cpu0 node for r8a7790 X-Originating-IP: [211.11.155.149] X-ClientProxiedBy: SIXPR04CA012.apcprd04.prod.outlook.com (10.141.119.32) To HKXPR06MB373.apcprd06.prod.outlook.com (10.141.136.20) X-Forefront-PRVS: 022649CC2C X-Forefront-Antispam-Report: SFV:NSPM; SFS:(6009001)(6049001)(428001)(189002)(199002)(102836001)(19580395003)(21056001)(83322001)(19580405001)(64126003)(42186004)(74662001)(74502001)(101416001)(46102001)(77982001)(59896001)(50466002)(81342001)(79102001)(50986999)(54356999)(87266999)(81542001)(31966008)(76482001)(99396002)(47776003)(64706001)(86362001)(20776003)(85852003)(83072002)(87976001)(83506001)(33656002)(4396001)(23736002)(92726001)(65806001)(92566001)(80022001)(65956001)(65816999)(66066001); DIR:OUT; SFP:; SCL:1; SRVR:HKXPR06MB373; H:[10.164.207.238]; FPR:; MLV:sfv; PTR:InfoNoRecords; MX:1; A:0; LANG:en; Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=gaku.inami.xw@bp.renesas.com; X-OriginatorOrg: bp.renesas.com Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add needed information inside CPU0 for the generic cpufreq-cpu0 driver. - voltage-tolerance = 1% It reflects the tolerance for the CPU voltage defined inside the OPP table. Due to the lack of proper OPP definition, use an arbitrary safe value. - clock-latency = 300 us Approximate worst-case latency to do a full DVFS transition for every OPPs. Due to the lack of HW information, use an arbitrary safe value. Note: The term transition-latency will be more accurate to define this value since the clock transition latency is not the only parameter that will define the overall DVFS transition. - operating-points = < kHz - uV > List of 6 operating points. All of them are using the same voltage since the valid Vmin voltage is not documented in the HW spec. - clocks phandle to the CPU clock source. This clock source is used for all the 4 CortexA15 located inside the same cluster. Signed-off-by: Benoit Cousson --- arch/arm/boot/dts/r8a7790-lager.dts | 4 ++++ arch/arm/boot/dts/r8a7790.dtsi | 11 +++++++++++ 2 files changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index 9becef7..ab73ed0 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -317,3 +317,7 @@ cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>; status = "okay"; }; + +&cpu0 { + cpu0-supply = <&vdd_dvfs>; +}; diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 7ff2960..921225f 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -44,6 +44,17 @@ compatible = "arm,cortex-a15"; reg = <0>; clock-frequency = <1300000000>; + voltage-tolerance = <1>; /* 1% */ + clocks = <&cpg_clocks R8A7790_CLK_Z>; + clock-latency = <300000>; /* 300 us */ + + /* kHz - uV - OPPs unknown yet */ + operating-points = <1300000 1000000>, + <1150000 1000000>, + < 975000 1000000>, + < 770000 1000000>, + < 650000 1000000>, + < 325000 1000000>; }; cpu1: cpu@1 {