From patchwork Tue Jun 3 12:03:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gaku Inami X-Patchwork-Id: 4287951 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 C1515BEEA7 for ; Tue, 3 Jun 2014 12:07:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DC86B202E6 for ; Tue, 3 Jun 2014 12:07:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 09962202A1 for ; Tue, 3 Jun 2014 12:07:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754457AbaFCMHb (ORCPT ); Tue, 3 Jun 2014 08:07:31 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:44017 "EHLO relmlie1.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754432AbaFCMH1 (ORCPT ); Tue, 3 Jun 2014 08:07:27 -0400 Received: from unknown (HELO relmlir3.idc.renesas.com) ([10.200.68.153]) by relmlie1.idc.renesas.com with ESMTP; 03 Jun 2014 21:07:26 +0900 Received: from relmlac1.idc.renesas.com (relmlac1.idc.renesas.com [10.200.69.21]) by relmlir3.idc.renesas.com (Postfix) with ESMTP id DCC45481A9; Tue, 3 Jun 2014 21:07:26 +0900 (JST) Received: by relmlac1.idc.renesas.com (Postfix, from userid 0) id D8748801AF; Tue, 3 Jun 2014 21:07:26 +0900 (JST) Received: from relmlac1.idc.renesas.com (localhost [127.0.0.1]) by relmlac1.idc.renesas.com (Postfix) with ESMTP id D6E3780193; Tue, 3 Jun 2014 21:07:26 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac1.idc.renesas.com with ESMTP id XAK00949; Tue, 3 Jun 2014 21:07:26 +0900 X-IronPort-AV: E=Sophos;i="4.98,964,1392130800"; d="scan'208";a="161210412" Received: from mail-sg1lp0087.outbound.protection.outlook.com (HELO APAC01-SG1-obe.outbound.protection.outlook.com) ([207.46.51.87]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES128-SHA; 03 Jun 2014 21:07:17 +0900 Received: from [10.164.207.238] (211.11.155.149) by SINPR06MB379.apcprd06.prod.outlook.com (10.141.116.26) with Microsoft SMTP Server (TLS) id 15.0.954.9; Tue, 3 Jun 2014 12:07:16 +0000 Message-ID: <538DB97E.1060004@bp.renesas.com> Date: Tue, 3 Jun 2014 21:03:10 +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: Linux-sh list CC: Magnus Damm , Simon Horman , Benoit Cousson Subject: [PATCH v2 6/8] ARM: shmobile: r8a7791/koelsch dts: Add DVFS parameters into cpu0 node for r8a7791 X-Originating-IP: [211.11.155.149] X-ClientProxiedBy: SINPR04CA014.apcprd04.prod.outlook.com (10.141.109.34) To SINPR06MB379.apcprd06.prod.outlook.com (10.141.116.26) X-Microsoft-Antispam: BL:0; ACTION:Default; RISK:Low; SCL:0; SPMLVL:NotSpam; PCL:0; RULEID: X-Forefront-PRVS: 02318D10FB X-Forefront-Antispam-Report: SFV:NSPM; SFS:(6009001)(6049001)(428001)(199002)(189002)(79102001)(4396001)(42186004)(65806001)(81342001)(77982001)(59896001)(81542001)(76482001)(65956001)(46102001)(66066001)(80022001)(47776003)(64706001)(20776003)(50466002)(54356999)(87266999)(65816999)(101416001)(83072002)(50986999)(85852003)(19580395003)(83322001)(19580405001)(83506001)(21056001)(74662001)(31966008)(99396002)(92726001)(92566001)(74502001)(86362001)(33656002)(23736002)(87976001); DIR:OUT; SFP:; SCL:1; SRVR:SINPR06MB379; H:[10.164.207.238]; FPR:; MLV:sfv; PTR:InfoNoRecords; A:0; MX:1; 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 DVS is not supported in R-CAR Gen2. - clocks phandle to the CPU clock source. This clock source is used for all the 2 CortexA15 located inside the same cluster. Signed-off-by: Gaku Inami --- Changes since version 1: - added the setting of VDD. - fixed subject. arch/arm/boot/dts/r8a7791-koelsch.dts | 4 ++++ arch/arm/boot/dts/r8a7791.dtsi | 11 +++++++++++ 2 files changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts index 95331d7..b2e6616 100644 --- a/arch/arm/boot/dts/r8a7791-koelsch.dts +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts @@ -429,3 +429,7 @@ regulator-always-on; }; }; + +&cpu0 { + cpu0-supply = <&vdd_dvfs>; +}; diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index 8d7ffae..b9b3c74 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -45,6 +45,17 @@ compatible = "arm,cortex-a15"; reg = <0>; clock-frequency = <1500000000>; + voltage-tolerance = <1>; /* 1% */ + clocks = <&cpg_clocks R8A7791_CLK_Z>; + clock-latency = <300000>; /* 300 us */ + + /* kHz - uV - OPPs unknown yet */ + operating-points = <1500000 1000000>, + <1312500 1000000>, + <1125000 1000000>, + < 937500 1000000>, + < 750000 1000000>, + < 375000 1000000>; }; cpu1: cpu@1 {