From patchwork Wed Feb 26 23:09:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benoit Cousson X-Patchwork-Id: 3728871 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 7B963BF13A for ; Wed, 26 Feb 2014 23:11:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 999612020F for ; Wed, 26 Feb 2014 23:11:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B910F2020E for ; Wed, 26 Feb 2014 23:11:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751228AbaBZXL0 (ORCPT ); Wed, 26 Feb 2014 18:11:26 -0500 Received: from mail-wi0-f172.google.com ([209.85.212.172]:57381 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751172AbaBZXLZ (ORCPT ); Wed, 26 Feb 2014 18:11:25 -0500 Received: by mail-wi0-f172.google.com with SMTP id e4so6547399wiv.11 for ; Wed, 26 Feb 2014 15:11:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=uzM0kjIGHR5StOZup6P89FYzsTyytDEy2/n9aoJpnOU=; b=PRurjsgl2/9mjUziwM0A3qOODcRMP/XaSDsDVtuKTlsvo7c+zRuq2VdRLFSJJyhnIW AZL8dDS+ftuy/oE4u1j5yX8RGiNMxxmUrXlAHf9BDExCKVhJdjYw6s5kkpReF0yAzo6j iwHn5L5lA4fmCiKEaUEyJrg00VE3tGip3a3EH9HXV634lsnWulDQcpbGBdKj15e+Phhd DaL3FKTuMiqLSLO2XSCql5tt6LUi0dK586RdOKCYLRiNPEHMteS2bvGQYSsCPBZsaRZt p8/PPUtYmkoZAF0aCETg3OOXcaX2rai74IH7psEB76XwozsfOLc7nWQ8WsA5GQrBpinz wePg== X-Gm-Message-State: ALoCoQmA9K7XjBRVHV5vM0ZWfO2LhLfHM9Qva7paS9znQHjjrh+InNNvM0VXbbsjGkwHIRy+73Ta X-Received: by 10.194.62.206 with SMTP id a14mr4825267wjs.26.1393456284516; Wed, 26 Feb 2014 15:11:24 -0800 (PST) Received: from localhost.localdomain (lau06-1-82-228-246-9.fbx.proxad.net. [82.228.246.9]) by mx.google.com with ESMTPSA id br10sm6203145wjb.3.2014.02.26.15.11.23 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 26 Feb 2014 15:11:23 -0800 (PST) From: Benoit Cousson To: magnus.damm@gmail.com Cc: laurent.pinchart@ideasonboard.com, linux-sh@vger.kernel.org, ptitiano@baylibre.com, Benoit Cousson Subject: [RFC 1/4] ARM: dts: r8a7790-lager: Add VDD MPU regulator for DVFS Date: Thu, 27 Feb 2014 00:09:47 +0100 Message-Id: <1393456190-7870-2-git-send-email-bcousson@baylibre.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1393456190-7870-1-git-send-email-bcousson@baylibre.com> References: <1393456190-7870-1-git-send-email-bcousson@baylibre.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=-6.9 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 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: Vmin is set to 0.8v to allow experimentation only. There is no guaranty that the CPUs will still work at this voltage. Signed-off-by: Benoit Cousson --- 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 6e99eb2..5f77e3a 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -159,6 +159,11 @@ renesas,groups = "qspi_ctrl", "qspi_data4"; renesas,function = "qspi"; }; + + i2c3_pins: i2c3 { + renesas,groups = "i2c3"; + renesas,function = "i2c3"; + }; }; ðer { @@ -240,3 +245,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 = <800000>; + regulator-max-microvolt = <1000000>; + regulator-boot-on; + regulator-always-on; + }; +};