From patchwork Thu Jun 27 09:47:58 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 2790951 X-Patchwork-Delegate: lethal@linux-sh.org 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 7BA1EC0AB1 for ; Thu, 27 Jun 2013 09:48:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C58E220315 for ; Thu, 27 Jun 2013 09:48:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C596E2030D for ; Thu, 27 Jun 2013 09:48:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752168Ab3F0JsG (ORCPT ); Thu, 27 Jun 2013 05:48:06 -0400 Received: from moutng.kundenserver.de ([212.227.17.8]:64472 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752024Ab3F0JsD (ORCPT ); Thu, 27 Jun 2013 05:48:03 -0400 Received: from axis700.grange (dslb-094-221-112-035.pools.arcor-ip.net [94.221.112.35]) by mrelayeu.kundenserver.de (node=mrbap1) with ESMTP (Nemesis) id 0MIyAj-1UqD050I37-0037HY; Thu, 27 Jun 2013 11:48:00 +0200 Received: from 6a.grange (6a.grange [192.168.1.11]) by axis700.grange (Postfix) with ESMTPS id 70A0640BB5; Thu, 27 Jun 2013 11:47:59 +0200 (CEST) Received: from lyakh by 6a.grange with local (Exim 4.72) (envelope-from ) id 1Us8o3-0003ux-6T; Thu, 27 Jun 2013 11:47:59 +0200 From: Guennadi Liakhovetski To: linux-sh@vger.kernel.org Cc: Magnus Damm , Simon Horman , linux-arm-kernel@lists.infradead.org, Guennadi Liakhovetski Subject: [PATCH 3/3] ARM: shmobile: ape6evm: add CPUFreq support Date: Thu, 27 Jun 2013 11:47:58 +0200 Message-Id: <1372326479-15028-4-git-send-email-g.liakhovetski@gmx.de> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1372326479-15028-1-git-send-email-g.liakhovetski@gmx.de> References: <1372326479-15028-1-git-send-email-g.liakhovetski@gmx.de> X-Provags-ID: V02:K0:KSTtWPWx0++S6lmDoooFKSBnUXv+KQzmCpKgBV1ZN+R a+HNGxVfo0d+euAWPIJeb5p7zexDPCC67aPrfzfZ5e1Bu1nuh6 F1mNdEAhRgnJapQFMIUg7PcdChBFj1l4AakAGr4b7zUkM6ZuHl 5u5KCIRpZ7qNoQ5+CTIw6yrTvK6hTmG+YViAawA7u9HlFiUhqV AH291zA7SSCsBBC0CFWYyyyE6phYOk+uJUOdLg7sqOmp3Vy+4k 2DuNKEub+KBQQTyduQxGOlshnY6apt9QelWVE7cjJw5Vv03Gt/ yvD3fHMOxTaOOknSl185/QjbAES8MZH0VZRqsfYPGvoBLUhR3F XnvewHsnwP/tfDLJsFqTPy1Sig/VuJZ5UrfMh0O2bTZ/Vvxuil j22ERgTRaitbA== Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_00,FREEMAIL_FROM, 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 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 Acked-by: Kuninori Morimoto --- arch/arm/boot/dts/r8a73a4-ape6evm.dts | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/r8a73a4-ape6evm.dts b/arch/arm/boot/dts/r8a73a4-ape6evm.dts index 4fb0102..5c56f23 100644 --- a/arch/arm/boot/dts/r8a73a4-ape6evm.dts +++ b/arch/arm/boot/dts/r8a73a4-ape6evm.dts @@ -52,3 +52,25 @@ }; }; }; + +&i2c5 { + vdd_dvfs: max8973@1b { + compatible = "maxim,max8973"; + reg = <0x1b>; + + 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% */ +};