From patchwork Tue Jun 3 12:02:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gaku Inami X-Patchwork-Id: 4287871 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 298229F333 for ; Tue, 3 Jun 2014 12:06:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 570F8202A1 for ; Tue, 3 Jun 2014 12:06:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3D17C20259 for ; Tue, 3 Jun 2014 12:06:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752926AbaFCMGW (ORCPT ); Tue, 3 Jun 2014 08:06:22 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:64103 "EHLO relmlie1.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752943AbaFCMGV (ORCPT ); Tue, 3 Jun 2014 08:06:21 -0400 Received: from unknown (HELO relmlir1.idc.renesas.com) ([10.200.68.151]) by relmlie1.idc.renesas.com with ESMTP; 03 Jun 2014 21:06:20 +0900 Received: from relmlac4.idc.renesas.com (relmlac4.idc.renesas.com [10.200.69.24]) by relmlir1.idc.renesas.com (Postfix) with ESMTP id 9D77D4B55A; Tue, 3 Jun 2014 21:06:20 +0900 (JST) Received: by relmlac4.idc.renesas.com (Postfix, from userid 0) id A1207480A6; Tue, 3 Jun 2014 21:06:20 +0900 (JST) Received: from relmlac4.idc.renesas.com (localhost [127.0.0.1]) by relmlac4.idc.renesas.com (Postfix) with ESMTP id 9CA6A480A4; Tue, 3 Jun 2014 21:06:20 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac4.idc.renesas.com with ESMTP id XAV28759; Tue, 3 Jun 2014 21:06:20 +0900 X-IronPort-AV: E=Sophos;i="4.98,964,1392130800"; d="scan'208";a="161210385" Received: from mail-sg1lp0091.outbound.protection.outlook.com (HELO APAC01-SG1-obe.outbound.protection.outlook.com) ([207.46.51.91]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES128-SHA; 03 Jun 2014 21:06:19 +0900 Received: from [10.164.207.238] (211.11.155.149) by SINPR06MB379.apcprd06.prod.outlook.com (10.141.116.26) with Microsoft SMTP Server (TLS) id 15.0.954.9; Tue, 3 Jun 2014 12:06:18 +0000 Message-ID: <538DB944.4060000@bp.renesas.com> Date: Tue, 3 Jun 2014 21:02:12 +0900 From: Gaku Inami User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Linux-sh list CC: Magnus Damm , Simon Horman , Benoit Cousson Subject: [PATCH v2 1/8] ARM: shmobile: lager: Add VDD MPU regulator for DVFS X-Originating-IP: [211.11.155.149] X-ClientProxiedBy: SINPR04CA019.apcprd04.prod.outlook.com (10.141.109.39) To SINPR06MB379.apcprd06.prod.outlook.com (10.141.116.26) X-Microsoft-Antispam: BL:0; ACTION:Default; RISK:Low; SCL:0; SPMLVL:NotSpam; PCL:0; RULEID: X-Forefront-PRVS: 02318D10FB X-Forefront-Antispam-Report: SFV:NSPM; SFS:(6049001)(6009001)(428001)(199002)(189002)(74662001)(31966008)(99396002)(21056001)(74502001)(86362001)(92566001)(92726001)(85852003)(50986999)(83506001)(83322001)(19580405001)(19580395003)(87976001)(33656002)(23736002)(81342001)(59896001)(77982001)(65806001)(65956001)(46102001)(76482001)(81542001)(42186004)(79102001)(4396001)(101416001)(54356999)(87266999)(65816999)(83072002)(50466002)(64706001)(20776003)(80022001)(66066001)(47776003)(217873001); DIR:OUT; SFP:; SCL:1; SRVR:SINPR06MB379; H:[10.164.207.238]; FPR:; MLV:sfv; PTR:InfoNoRecords; A:0; MX:1; LANG:en; Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=gaku.inami.xw@bp.renesas.com; X-OriginatorOrg: bp.renesas.com 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.5 required=5.0 tests=BAYES_00, 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 From: Benoit Cousson The CA15 cluster is capable of voltage scaling. Add the regulator in the i2c3 node, to allow the generic CPUFreq driver to use it. Enable the i2c3 pin mux and the device node as well since the da9210 is connected to that bus. Note: In R-CAR Gen2, each frequency is using the same voltage, and DVS control is not used. Therefore, this patch set the voltage(Vmin/Vmax) to 1000mv. Signed-off-by: Benoit Cousson [gaku.inami.xw@bp.renesas.com: Changes Vmin for disabling DVS] Signed-off-by: Gaku Inami --- Changes since version 1: - added this patch for enabling da9210 regulator. - fixed subject. arch/arm/boot/dts/r8a7790-lager.dts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index 9becef7..8428204 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -204,6 +204,11 @@ "msiof1_tx"; renesas,function = "msiof1"; }; + + i2c3_pins: i2c3 { + renesas,groups = "i2c3"; + renesas,function = "i2c3"; + }; }; ðer { @@ -317,3 +322,19 @@ cd-gpios = <&gpio3 22 GPIO_ACTIVE_LOW>; status = "okay"; }; + +&i2c3 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c3_pins>; + status = "okay"; + + vdd_dvfs: regulator@68 { + compatible = "diasemi,da9210"; + reg = <0x68>; + + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; + regulator-boot-on; + regulator-always-on; + }; +};