From patchwork Wed Apr 29 22:32:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 466322 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id EE3F5140312 for ; Thu, 30 Apr 2015 08:33:50 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751266AbbD2Wdl (ORCPT ); Wed, 29 Apr 2015 18:33:41 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:63294 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751772AbbD2Wdi (ORCPT ); Wed, 29 Apr 2015 18:33:38 -0400 Received: from localhost.localdomain ([178.25.141.12]) by mrelayeu.kundenserver.de (mreue002) with ESMTPSA (Nemesis) id 0MPdcf-1YrhHN4AjZ-004mu6; Thu, 30 Apr 2015 00:33:13 +0200 From: Stefan Wahren To: Liam Girdwood , Mark Brown Cc: Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Shawn Guo , Sascha Hauer , Russell King , Sebastian Reichel , Dmitry Eremin-Solenikov , David Woodhouse , , , , , , Stefan Wahren Subject: [PATCH V2 4/6] DT: add binding for mxs on-chip regulators Date: Wed, 29 Apr 2015 22:32:25 +0000 Message-Id: <1430346747-28728-5-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1430346747-28728-1-git-send-email-stefan.wahren@i2se.com> References: <1430346747-28728-1-git-send-email-stefan.wahren@i2se.com> X-Provags-ID: V03:K0:1O+xOAKAqEKkfQzuCRmiprOivpd36DJi3WdRa6NahW2Z4j71H87 I6CPsR8/YdrCFzgVOK4lYbp9/Mr+pEojPkw0Hkb46SbogiUyRRluh/NY7qQg6F1QT0AW9ci NJlKZK+PztD8bMGG8HLCzH9QEfSZ/PFb4tpEc2XB6KYr410HpJg2fCOcZchsoUuP5H6qQQ/ 8L6Eh5fRWawJR61nQyhWA== X-UI-Out-Filterresults: notjunk:1; Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This patch adds the device tree bindings for the Freescale MXS on-chip regulators. Signed-off-by: Stefan Wahren --- .../bindings/regulator/mxs-regulator.txt | 65 ++++++++++++++++++++ 1 file changed, 65 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..e7092fc --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/mxs-regulator.txt @@ -0,0 +1,65 @@ +Regulators on Freescale i.MX23/i.MX28 + +On-chip linear regulator daisy chain: + ++------------+ VDD5V +---------+ VDDIO +| DC-DC | +--------> LINREG +--------->+ +| | | VDDIO | | +| | +---------+ | +| DCDC_VDDIO +->-+-----------------------------+ +| | | +| | | VDDIO +---------+ VDDA +| | +--------> LINREG +--------->+ +| | | VDDA | | +| | +---------+ | +| DCDC_VDDA +->-+-----------------------------+ +| | | +| | | VDDA +---------+ VDD1P5 +| | +--------> LINREG +---------> +| | | | VDD1P5 | +| | | +---------+ +| | | VDDA +---------+ VDDD +| | +--------> LINREG +--------->+ +| | | VDDD | | +| | +---------+ | +| DCDC_VDDD +->-------------------------------+ ++------------+ | + v + +Required properties: +- compatible (imx23 and imx28 supported): + - "fsl,-dcdc" for DC-DC converter + - "fsl,-vddd" for VDDD linear regulator + - "fsl,-vdda" for VDDA linear regulator + - "fsl,-vddio" for VDDIO linear regulator + +Optional properties: +- switching-frequency: switching frequency for the DC-DC converter in Hz. + Possible values are <1200000>, <1250000> or <1500000> (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", "syscon"; + reg = <0x80044000 0x2000>; + interrupts = <6>; + + dcdc: regulator@1 { + compatible = "fsl,imx28-dcdc"; + regulator-name = "dcdc"; + regulator-boot-on; + regulator-always-on; + switching-frequency = <1250000>; + }; + + reg_vddd: regulator@2 { + compatible = "fsl,imx28-vddd"; + regulator-name = "vddd"; + regulator-min-microvolt = <1350000>; + regulator-max-microvolt = <1550000>; + }; + }; +