From patchwork Thu May 29 07:49:21 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gaku Inami X-Patchwork-Id: 4262661 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1E8639F333 for ; Thu, 29 May 2014 07:53:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 287B42034A for ; Thu, 29 May 2014 07:53:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4074F20256 for ; Thu, 29 May 2014 07:53:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756069AbaE2Hxa (ORCPT ); Thu, 29 May 2014 03:53:30 -0400 Received: from relmlor4.renesas.com ([210.160.252.174]:9383 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756062AbaE2Hx3 (ORCPT ); Thu, 29 May 2014 03:53:29 -0400 Received: from unknown (HELO relmlir1.idc.renesas.com) ([10.200.68.151]) by relmlie3.idc.renesas.com with ESMTP; 29 May 2014 16:53:28 +0900 Received: from relmlac2.idc.renesas.com (relmlac2.idc.renesas.com [10.200.69.22]) by relmlir1.idc.renesas.com (Postfix) with ESMTP id ADA724BD56; Thu, 29 May 2014 16:53:28 +0900 (JST) Received: by relmlac2.idc.renesas.com (Postfix, from userid 0) id 81A36280A6; Thu, 29 May 2014 16:53:28 +0900 (JST) Received: from relmlac2.idc.renesas.com (localhost [127.0.0.1]) by relmlac2.idc.renesas.com (Postfix) with ESMTP id 2D8F4280A0; Thu, 29 May 2014 16:53:28 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac2.idc.renesas.com with ESMTP id SAM15912; Thu, 29 May 2014 16:53:28 +0900 X-IronPort-AV: E=Sophos;i="4.98,932,1392130800"; d="scan'208";a="161919966" Received: from mail-sg1lp0090.outbound.protection.outlook.com (HELO APAC01-SG1-obe.outbound.protection.outlook.com) ([207.46.51.90]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES128-SHA; 29 May 2014 16:53:27 +0900 Received: from [10.164.207.238] (211.11.155.149) by HKNPR06MB370.apcprd06.prod.outlook.com (10.141.35.24) with Microsoft SMTP Server (TLS) id 15.0.949.11; Thu, 29 May 2014 07:53:26 +0000 Message-ID: <5386E681.4070107@bp.renesas.com> Date: Thu, 29 May 2014 16:49:21 +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 5/7] ARM: dts: r8a7791-koelsch: Add DVFS parameters into cpu0 node for r8a7791 X-Originating-IP: [211.11.155.149] X-ClientProxiedBy: SIXPR04CA012.apcprd04.prod.outlook.com (10.141.119.32) To HKNPR06MB370.apcprd06.prod.outlook.com (10.141.35.24) X-Forefront-PRVS: 022649CC2C X-Forefront-Antispam-Report: SFV:NSPM; SFS:(6009001)(6049001)(428001)(189002)(199002)(4396001)(64706001)(77982001)(66066001)(47776003)(80022001)(65806001)(83506001)(65956001)(79102001)(76482001)(20776003)(64126003)(54356999)(87266999)(86362001)(65816999)(81542001)(92566001)(92726001)(50986999)(42186004)(59896001)(81342001)(74502001)(33656002)(50466002)(21056001)(102836001)(31966008)(83322001)(46102001)(99396002)(83072002)(23736002)(85852003)(74662001)(19580405001)(101416001)(87976001)(19580395003); DIR:OUT; SFP:; SCL:1; SRVR:HKNPR06MB370; 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 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 --- arch/arm/boot/dts/r8a7791.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 {