From patchwork Mon Jun 24 11:05:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 2770611 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 C7BBFC0AB1 for ; Mon, 24 Jun 2013 11:05:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 85004201EE for ; Mon, 24 Jun 2013 11:05:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5D48E201EC for ; Mon, 24 Jun 2013 11:05:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752288Ab3FXLFb (ORCPT ); Mon, 24 Jun 2013 07:05:31 -0400 Received: from moutng.kundenserver.de ([212.227.126.171]:63576 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751854Ab3FXLFb (ORCPT ); Mon, 24 Jun 2013 07:05:31 -0400 Received: from axis700.grange (dslb-178-001-231-216.pools.arcor-ip.net [178.1.231.216]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0LvxEH-1UCqG01uk1-018Iwa; Mon, 24 Jun 2013 13:05:17 +0200 Received: by axis700.grange (Postfix, from userid 1000) id F0CED40BB4; Mon, 24 Jun 2013 13:05:16 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by axis700.grange (Postfix) with ESMTP id E673D40BB3; Mon, 24 Jun 2013 13:05:16 +0200 (CEST) Date: Mon, 24 Jun 2013 13:05:16 +0200 (CEST) From: Guennadi Liakhovetski X-X-Sender: lyakh@axis700.grange To: linux-sh@vger.kernel.org cc: Magnus Damm , Simon Horman , linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH v2 3/4] ARM: shmobile: ape6evm: add CPUFreq support Message-ID: MIME-Version: 1.0 X-Provags-ID: V02:K0:AfY/ktjWZvlJplORrL4LAW75+vfZQe6KRjOLQ/WV87u 0vDh8Erb5gkEKGslDD4Jvw9dG+hfGOHqN7WVm8mwj3LNDofRzj UJX8YdOZTY/SiyibmaVGvn3sFYmvpPK9EuQ2qozHGTHyAwtIWW hRBQrbv1CfNIeIL+e0XQC+7c7tU9qI0mTF8DlRDF5fQ5YZUsA6 E+mRKOvzMMOLr1wnsGYILKyGjzoXmRYPR6YC/jI1xCGKRpQxof HzqQ5CrNSIXWXsWktu5Y8UqDAga6+X2TCkZSkf+4dT77tXuJke Oj5kt80LCWpl1R9rSdnNYlLuVdUxE4f3TKhNgg0EqM6IX3P2kh U1BbxiiID7RwZVDVLSRhxl/YZbJad6oK9QWnj0vSWwsOzJpsqF UQyGw/JTqTZnw== 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.0 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 --- v2: Subject to Mark acking v2 of my max8973 DT patch, this should be the updated version of my original ape6evm CPUFreq patch. This version puts all max8973 regulator bindings directly under the respective I2C device node instead of creating 2 additional levels. 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..27c5e06 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 = "maxium,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% */ +};