From patchwork Fri Jul 5 15:26:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 2824267 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 B2AF6C0AB2 for ; Fri, 5 Jul 2013 15:26:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E30CA2017A for ; Fri, 5 Jul 2013 15:26:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 17C2220171 for ; Fri, 5 Jul 2013 15:26:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757377Ab3GEP0t (ORCPT ); Fri, 5 Jul 2013 11:26:49 -0400 Received: from moutng.kundenserver.de ([212.227.17.9]:53196 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757364Ab3GEP0s (ORCPT ); Fri, 5 Jul 2013 11:26:48 -0400 Received: from axis700.grange (dslb-178-001-146-173.pools.arcor-ip.net [178.1.146.173]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0MZ9aq-1UeYzj0nMq-00LGvv; Fri, 05 Jul 2013 17:26:47 +0200 Received: from 6a.grange (6a.grange [192.168.1.11]) by axis700.grange (Postfix) with ESMTPS id E07EF40BB6; Fri, 5 Jul 2013 17:26:46 +0200 (CEST) Received: from lyakh by 6a.grange with local (Exim 4.72) (envelope-from ) id 1Uv7uI-0005Cj-Qe; Fri, 05 Jul 2013 17:26:46 +0200 From: Guennadi Liakhovetski To: linux-sh@vger.kernel.org Cc: Magnus Damm , Simon Horman , Guennadi Liakhovetski Subject: [PATCH v2 3/4] ARM: shmobile: ape6evm-reference: add CPUFreq support Date: Fri, 5 Jul 2013 17:26:45 +0200 Message-Id: <1373038006-19973-4-git-send-email-g.liakhovetski@gmx.de> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1373038006-19973-1-git-send-email-g.liakhovetski@gmx.de> References: <1373038006-19973-1-git-send-email-g.liakhovetski@gmx.de> X-Provags-ID: V02:K0:unWBtVa2zA6nxBurANwYVGgAr1ERwLH2bukTwsdT7rR 40CfkGB3S9WtJLwIgCAIReXvp8Ko2EgMrBXKZyEN04dQDH72Ep ZyUUq105S6q3tzT/oRcD3d4yc6Vcc94naqKYr80gqh6O2Mtp6e NP14ylvgOFhNpfWxkEYnW0Y4RWyVjFlnltLXtGd2d4GGud87rZ 6FCbTh3UGv5K4ZafeymO6zufobF8+Pylpa6fOoznhZwmRFto7C ZSOf50HiPdXr33rXLjEi79iFn3BUgFBLxzjXiMEgm14u7kkzm4 x6wJxATBEa7sjxHvm5VNUyQoW6Pjk4O3PpG2QOcen8qtjpNFup ckhgBZTml+ZraMiCAHlEZtD4sxpDe0/Rk5Mvo0HH3OEweCkYZq i/Xy8NzwwzPUg== 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.1 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 Add CPUFreq support to ape6evm-reference, using a max8973 regulator, that is supplying V_DVFS for the 4 CA15 cores on r8a73a4. Signed-off-by: Guennadi Liakhovetski --- v2: extracted from patch 2 from v1 arch/arm/boot/dts/r8a73a4-ape6evm-reference.dts | 22 ++++++++++++++++++++++ arch/arm/mach-shmobile/board-ape6evm-reference.c | 1 + 2 files changed, 23 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/r8a73a4-ape6evm-reference.dts b/arch/arm/boot/dts/r8a73a4-ape6evm-reference.dts index 4990076..aa84b09 100644 --- a/arch/arm/boot/dts/r8a73a4-ape6evm-reference.dts +++ b/arch/arm/boot/dts/r8a73a4-ape6evm-reference.dts @@ -31,3 +31,25 @@ ranges = <0 0 0 0x80000000>; }; }; + +&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% */ +}; diff --git a/arch/arm/mach-shmobile/board-ape6evm-reference.c b/arch/arm/mach-shmobile/board-ape6evm-reference.c index 7e3e0d7..ee9f75d 100644 --- a/arch/arm/mach-shmobile/board-ape6evm-reference.c +++ b/arch/arm/mach-shmobile/board-ape6evm-reference.c @@ -56,6 +56,7 @@ static void __init ape6evm_add_standard_devices(void) r8a73a4_pinmux_init(); r8a73a4_add_aux_devices_dt(); of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); + r8a73a4_add_cpufreq_device_dt(); } static const char *ape6evm_boards_compat_dt[] __initdata = {