From patchwork Tue Jun 3 12:02:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gaku Inami X-Patchwork-Id: 4287931 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 B5321BEEA7 for ; Tue, 3 Jun 2014 12:07:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D14BC2027D for ; Tue, 3 Jun 2014 12:07:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E9B88202E6 for ; Tue, 3 Jun 2014 12:07:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754465AbaFCMHJ (ORCPT ); Tue, 3 Jun 2014 08:07:09 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:63613 "EHLO relmlie1.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752736AbaFCMHH (ORCPT ); Tue, 3 Jun 2014 08:07:07 -0400 Received: from unknown (HELO relmlir2.idc.renesas.com) ([10.200.68.152]) by relmlie1.idc.renesas.com with ESMTP; 03 Jun 2014 21:07:06 +0900 Received: from relmlac1.idc.renesas.com (relmlac1.idc.renesas.com [10.200.69.21]) by relmlir2.idc.renesas.com (Postfix) with ESMTP id E3936462EA; Tue, 3 Jun 2014 21:07:06 +0900 (JST) Received: by relmlac1.idc.renesas.com (Postfix, from userid 0) id E4FD880195; Tue, 3 Jun 2014 21:07:06 +0900 (JST) Received: from relmlac1.idc.renesas.com (localhost [127.0.0.1]) by relmlac1.idc.renesas.com (Postfix) with ESMTP id DF94A80193; Tue, 3 Jun 2014 21:07:06 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac1.idc.renesas.com with ESMTP id XAD00955; Tue, 3 Jun 2014 21:07:06 +0900 X-IronPort-AV: E=Sophos;i="4.98,964,1392130800"; d="scan'208";a="162257329" Received: from mail-sg1lp0092.outbound.protection.outlook.com (HELO APAC01-SG1-obe.outbound.protection.outlook.com) ([207.46.51.92]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES128-SHA; 03 Jun 2014 21:07:06 +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:07:04 +0000 Message-ID: <538DB973.9020803@bp.renesas.com> Date: Tue, 3 Jun 2014 21:02:59 +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 5/8] ARM: shmobile: koelsch dts: Add VDD MPU regulator for DVFS X-Originating-IP: [211.11.155.149] X-ClientProxiedBy: SINPR04CA013.apcprd04.prod.outlook.com (10.141.109.33) 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:(6009001)(6049001)(428001)(199002)(189002)(79102001)(4396001)(42186004)(65806001)(81342001)(77982001)(59896001)(81542001)(76482001)(65956001)(46102001)(66066001)(80022001)(47776003)(64706001)(20776003)(50466002)(54356999)(87266999)(65816999)(101416001)(83072002)(50986999)(85852003)(19580395003)(83322001)(19580405001)(83506001)(21056001)(74662001)(31966008)(99396002)(92726001)(92566001)(74502001)(86362001)(33656002)(23736002)(87976001)(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 The CA15 cluster is capable of voltage scaling. Add the regulator in the i2c6 node, to allow the generic CPUFreq driver to use it. Enable the i2c6 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: Gaku Inami --- Changes since version 1: - added this patch for enabling da9210 regulator. - fixed subject. arch/arm/boot/dts/r8a7791-koelsch.dts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts b/arch/arm/boot/dts/r8a7791-koelsch.dts index 05d44f9..95331d7 100644 --- a/arch/arm/boot/dts/r8a7791-koelsch.dts +++ b/arch/arm/boot/dts/r8a7791-koelsch.dts @@ -293,6 +293,11 @@ "msiof0_tx"; renesas,function = "msiof0"; }; + + i2c6_pins: i2c6 { + renesas,groups = "i2c6"; + renesas,function = "i2c6"; + }; }; ðer { @@ -408,3 +413,19 @@ spi-cpha; }; }; + +&i2c6 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c6_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; + }; +};