From patchwork Sun Sep 7 11:37:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 4858501 Return-Path: X-Original-To: patchwork-linux-arm@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 964C0C033A for ; Sun, 7 Sep 2014 11:19:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C285C20131 for ; Sun, 7 Sep 2014 11:19:42 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B4B8A20145 for ; Sun, 7 Sep 2014 11:19:41 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XQaT1-0002ME-5P; Sun, 07 Sep 2014 11:17:11 +0000 Received: from www.augenpunkt.de ([213.239.207.9]) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XQaSm-0002JQ-Am for linux-arm-kernel@lists.infradead.org; Sun, 07 Sep 2014 11:17:00 +0000 Received: from erde.kosmos.lan (ipb2196950.dynamic.kabel-deutschland.de [178.25.105.80]) by www.augenpunkt.de (Postfix) with ESMTP id C968AE86A8; Sun, 7 Sep 2014 13:16:35 +0200 (CEST) From: Stefan Wahren To: lgirdwood@gmail.com, broonie@kernel.org, shawn.guo@linaro.org, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org Subject: [PATCH RFC 3/3] DT: ARM: mxs: enable regulator support for i.MX28 Date: Sun, 7 Sep 2014 13:37:49 +0200 Message-Id: <1410089869-6611-4-git-send-email-info@lategoodbye.de> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1410089869-6611-1-git-send-email-info@lategoodbye.de> References: <1410089869-6611-1-git-send-email-info@lategoodbye.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140907_041656_701537_C646622C X-CRM114-Status: UNSURE ( 7.91 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) Cc: stefan.wahren@i2se.com, devicetree@vger.kernel.org, Stefan Wahren , linux-kernel@vger.kernel.org, festevam@gmail.com, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 enables the regulator support for i.MX28. Signed-off-by: Stefan Wahren --- arch/arm/boot/dts/imx28.dtsi | 50 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx28.dtsi b/arch/arm/boot/dts/imx28.dtsi index a95cc53..10c7cdf 100644 --- a/arch/arm/boot/dts/imx28.dtsi +++ b/arch/arm/boot/dts/imx28.dtsi @@ -979,8 +979,56 @@ }; power: power@80044000 { + compatible = "fsl,imx28-power"; + #address-cells = <1>; + #size-cells = <0>; reg = <0x80044000 0x2000>; - status = "disabled"; + + /* + reg_curr: regulator-overall_current@80044010 { + reg = <0x80044010>; + compatible = "fsl,mxs-regulator"; + regulator-name = "overall_current"; + regulator-min-microvolt = <>; + regulator-max-microvolt = <>; + regulator-min-microamp = <>; + regulator-max-microamp = <>; + regulator-always-on; + regulator-boot-on; + }; + */ + + reg_vddd: regulator-vddd@80044040 { + reg = <0x80044040>; + compatible = "fsl,mxs-regulator"; + regulator-name = "vddd"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <1575000>; + regulator-always-on; + mxs-max-reg-val = <0x1f>; + }; + + reg_vdda: regulator-vdda@80044050 { + reg = <0x80044050>; + compatible = "fsl,mxs-regulator"; + regulator-name = "vdda"; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <2275000>; + regulator-always-on; + mxs-max-reg-val = <0x1f>; + }; + + reg_vddio: regulator-vddio@80044060 { + reg = <0x80044060>; + compatible = "fsl,mxs-regulator"; + regulator-name = "vddio"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <3600000>; + regulator-microvolt-offset = <80000>; + regulator-always-on; + mxs-max-reg-val = <0x10>; + mxs-default-microvolt = <3300000>; + }; }; saif1: saif@80046000 {