From patchwork Sun Mar 22 00:29:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 6065971 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7F750BF90F for ; Sun, 22 Mar 2015 00:37:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A90762025B for ; Sun, 22 Mar 2015 00:37:43 +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 BFE6C2025A for ; Sun, 22 Mar 2015 00:37:42 +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 1YZTqv-000117-4F; Sun, 22 Mar 2015 00:34:53 +0000 Received: from mout.kundenserver.de ([212.227.126.130]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YZTqi-0000gm-TX for linux-arm-kernel@lists.infradead.org; Sun, 22 Mar 2015 00:34:42 +0000 Received: from localhost.localdomain ([178.25.105.80]) by mrelayeu.kundenserver.de (mreue002) with ESMTPSA (Nemesis) id 0LZZIC-1ZEKus3eTU-00lRoD; Sun, 22 Mar 2015 01:30:22 +0100 From: Stefan Wahren To: , , , , , , , , , , Subject: [PATCH 3/7] DT: add binding for MXS regulator Date: Sun, 22 Mar 2015 00:29:59 +0000 Message-Id: <1426984203-9133-4-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1426984203-9133-1-git-send-email-stefan.wahren@i2se.com> References: <1426984203-9133-1-git-send-email-stefan.wahren@i2se.com> X-Provags-ID: V03:K0:wtlodfn0+8D1MHGK4ZHy2RCirgyisV9YtzdR3+CZlGtEPkKz7Wx M7ZgT2nWazOuUCoeH8jHLqtCThzvs3RyYgpoPnikBIWh4rpZQ2VK+er05eZVB44HENtgTqn 3cwNM6KyXNA/NMMq46gVK6BP54AJjqZ2qp7e4H29R+2BUEZiDtpc2mMe2R3swYKAXNcMnHx rixtg4po4gzeeMYgDwvMw== X-UI-Out-Filterresults: notjunk:1; X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150321_173441_364417_E2190828 X-CRM114-Status: UNSURE ( 8.71 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.0 (/) Cc: fabio.estevam@freescale.com, marex@denx.de, devicetree@vger.kernel.org, viresh.kumar@linaro.org, linux-pm@vger.kernel.org, rjw@rjwysocki.net, Stefan Wahren , kernel@pengutronix.de, sebastien.szymanski@armadeus.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=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_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 adds the device tree bindings for the Freescale MXS on-chip regulators. Signed-off-by: Stefan Wahren --- .../bindings/regulator/mxs-regulator.txt | 70 ++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/mxs-regulator.txt diff --git a/Documentation/devicetree/bindings/regulator/mxs-regulator.txt b/Documentation/devicetree/bindings/regulator/mxs-regulator.txt new file mode 100644 index 0000000..88452d2 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/mxs-regulator.txt @@ -0,0 +1,70 @@ +Regulators for Freescale i.MX23/i.MX28 + +Required properties: +For imx23 regulators +- compatible: + - "fsl,imx23-dcdc" for DC-DC converter + - "fsl,imx23-vddd" for VDDD linear regulator + - "fsl,imx23-vdda" for VDDA linear regulator + - "fsl,imx23-vddio" for VDDIO linear regulator +For imx28 regulators +- compatible: + - "fsl,imx28-dcdc" for DC-DC converter + - "fsl,imx28-vddd" for VDDD linear regulator + - "fsl,imx28-vdda" for VDDA linear regulator + - "fsl,imx28-vddio" for VDDIO linear regulator +- reg: Address and length of the register set for the device. It contains + the information of registers in the same order as described by reg-names +- reg-names: Should contain the reg names + - "base-address" - contains base address of regulator + - "status-address" - contains status address of regulator + - "v5ctrl-address" - contains 5V control address of DC-DC converter + (required only for linear regulators) + - "misc-address" - contains misc control address of DC-DC converter + (required only for DC-DC converter) + +Optional properties: +- switching-frequency: switching frequency of the DC-DC converter in Hz. + Possible values are <19200000>, <22000000> or <24000000> (default). + +Any regulator property defined as part of the core regulator +binding, defined in regulator.txt, can also be used. + +Example for i.MX28: + + power: power@80044000 { + compatible = "fsl,imx28-power"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0x80044000 0x2000>; + interrupts = <6>; + ranges; + + dcdc: regulator@80044010 { + reg = <0x80044010 0x10>, + <0x80044090 0x10>, + <0x800440c0 0x10>; + reg-names = "base-address", + "misc-address", + "status-address"; + compatible = "fsl,imx28-dcdc"; + regulator-name = "dcdc"; + regulator-boot-on; + regulator-always-on; + switching-frequency = <24000000>; + }; + + reg_vddd: regulator@80044040 { + reg = <0x80044040 0x10>, + <0x80044010 0x10>, + <0x800440c0 0x10>; + reg-names = "base-address", + "v5ctrl-address", + "status-address"; + compatible = "fsl,imx28-vddd"; + regulator-name = "vddd"; + regulator-min-microvolt = <1350000>; + regulator-max-microvolt = <1550000>; + }; + }; +