From patchwork Fri Jun 21 07:10:37 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 2760531 Return-Path: X-Original-To: patchwork-linux-arm@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 2AD829F756 for ; Fri, 21 Jun 2013 07:11:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 58D74200F4 for ; Fri, 21 Jun 2013 07:11:21 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3288420103 for ; Fri, 21 Jun 2013 07:11:20 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UpvV7-0008Cp-4I; Fri, 21 Jun 2013 07:11:17 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UpvV4-0001xO-58; Fri, 21 Jun 2013 07:11:14 +0000 Received: from moutng.kundenserver.de ([212.227.126.171]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UpvV0-0001vo-Ix for linux-arm-kernel@lists.infradead.org; Fri, 21 Jun 2013 07:11:11 +0000 Received: from axis700.grange (dslb-084-061-108-118.pools.arcor-ip.net [84.61.108.118]) by mrelayeu.kundenserver.de (node=mreu3) with ESMTP (Nemesis) id 0MWtTj-1Umm8R1Ckl-00XvQT; Fri, 21 Jun 2013 09:10:40 +0200 Received: from 6a.grange (6a.grange [192.168.1.11]) by axis700.grange (Postfix) with ESMTPS id C2B4F40BB6; Fri, 21 Jun 2013 09:10:39 +0200 (CEST) Received: from lyakh by 6a.grange with local (Exim 4.72) (envelope-from ) id 1UpvUU-0002kO-G8; Fri, 21 Jun 2013 09:10:38 +0200 From: Guennadi Liakhovetski To: linux-sh@vger.kernel.org Subject: [PATCH 3/4] ARM: shmobile: ape6evm: add CPUFreq support Date: Fri, 21 Jun 2013 09:10:37 +0200 Message-Id: <1371798638-10530-4-git-send-email-g.liakhovetski@gmx.de> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1371798638-10530-1-git-send-email-g.liakhovetski@gmx.de> References: <1371798638-10530-1-git-send-email-g.liakhovetski@gmx.de> X-Provags-ID: V02:K0:FMrztorG7IQX6jo/kPb2/zMvTxx8JtaBCqzsJk3CATX adqnfQCnGwYz7r0COxUGSjXNjeuU+7fws6Ilhd30mpuO6ieW+e uy23L1msUdf+eCz1w/Bg1fGuaCeSQ1/gFmNaeWhLSGyHEDlYEZ raU0ZVA22Akmnwi/qkuFTyuWYuAotsMpwZpo7PgnX+5s/gzgJe EXlZ75RPgjADfdDK79RXlGPvRBedYG2wP5lJe4qDXqRhFf16ux UHsFAIHrURADKNFgxUvogWQ3SzeoYe2hvQeLBDX+2cCq1v2Ug2 QzWH0aL8vdfUzlylRbseBugX06PuSwlLDlxBavHmxiqoQsYjaP A39yfu0clEMgbgDkynzI9eVkvaH8eP8I09LExsz/yLKeJEv1Y4 V00pvrB50alNw== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130621_031110_864911_D216F896 X-CRM114-Status: GOOD ( 10.31 ) X-Spam-Score: -3.2 (---) Cc: Guennadi Liakhovetski , Simon Horman , Magnus Damm , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.7 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 This patch adds OPPs to the CA15 DT node and a max8973 DT node to support clock and voltage scaling, using the cpufreq-cpu0 CPUFreq driver. Signed-off-by: Guennadi Liakhovetski --- arch/arm/boot/dts/r8a73a4-ape6evm.dts | 26 ++++++++++++++++++++++++++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/r8a73a4-ape6evm.dts b/arch/arm/boot/dts/r8a73a4-ape6evm.dts index 4fb0102..af6bd40 100644 --- a/arch/arm/boot/dts/r8a73a4-ape6evm.dts +++ b/arch/arm/boot/dts/r8a73a4-ape6evm.dts @@ -52,3 +52,29 @@ }; }; }; + +&i2c5 { + max8973@1b { + compatible = "maxium,max8973"; + reg = <0x1b>; + + regulators { + vdd_dvfs: dcdc { + regulator-min-microvolt = <935000>; + regulator-max-microvolt = <1200000>; + regulator-boot-on; + regulator-always-on; + }; + }; + }; +}; + +&cpu0 { + cpu0-supply = <&vdd_dvfs>; + operating-points = < + /* kHz uV */ + 1950000 1115000 + 1462500 995000 + >; + voltage-tolerance = <1>; /* 1% */ +};