From patchwork Mon Jun 24 21:14:47 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 2773641 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 4193E9F245 for ; Mon, 24 Jun 2013 21:15:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5E17C2024E for ; Mon, 24 Jun 2013 21:15:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8869120230 for ; Mon, 24 Jun 2013 21:15:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751049Ab3FXVPR (ORCPT ); Mon, 24 Jun 2013 17:15:17 -0400 Received: from moutng.kundenserver.de ([212.227.126.171]:55135 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750900Ab3FXVPQ (ORCPT ); Mon, 24 Jun 2013 17:15:16 -0400 Received: from axis700.grange (dslb-178-001-231-216.pools.arcor-ip.net [178.1.231.216]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0LpAhs-1UNMvk11RE-00f78A; Mon, 24 Jun 2013 23:14:48 +0200 Received: by axis700.grange (Postfix, from userid 1000) id BA30B40BB4; Mon, 24 Jun 2013 23:14:47 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by axis700.grange (Postfix) with ESMTP id B80C840BB3; Mon, 24 Jun 2013 23:14:47 +0200 (CEST) Date: Mon, 24 Jun 2013 23:14:47 +0200 (CEST) From: Guennadi Liakhovetski X-X-Sender: lyakh@axis700.grange To: linux-sh@vger.kernel.org cc: Sergei Shtylyov , Magnus Damm , Simon Horman , linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH v3 3/4] ARM: shmobile: ape6evm: add CPUFreq support Message-ID: MIME-Version: 1.0 X-Provags-ID: V02:K0:BKigwtkUZFcqoM6j+60a1TeSZesIRWtbRPcyFJOUQla 8WtTF4EU/MtOsBfr8lv6wB2XZPVfqNMOOfP1b4xP+rwWP1TIZK WSXFxMnNRYfYt05JCa218KRTmOAYo5cTR60Nc6s7NrpcXqzBDz rjWRAxEI2n09lSGaZl0QQlLssM7S2bCZ32u0pCNUQiOZVDAaEi KtlT3F2ZpWiWH08JYr89/RpoiofyT9yL6+H8kKlTsMYgQ0gtQP L5oW16V7oycqcwDwAVS6GT3f77F25rREHcLrFhu41OGSaW5aaC vL/YOwvM6izow6qjdSpesW13LIw0riLOeYw0mfLMR6fTVVG58h tBKGeAEwy2gxlLaR6RlEq00PREe02UYX3DXK7MHQ4y82A7CKqs 8b6yx2TZNbx/w== 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 --- v3: fix a typo s/maxium/maxim/ 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 = "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% */ +};