From patchwork Mon Oct 15 14:58:11 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 1594311 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id C94A6DFB34 for ; Mon, 15 Oct 2012 15:01:11 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TNm7f-0005kM-Do; Mon, 15 Oct 2012 14:58:27 +0000 Received: from mail-bk0-f49.google.com ([209.85.214.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TNm7Z-0005k8-C0 for linux-arm-kernel@lists.infradead.org; Mon, 15 Oct 2012 14:58:21 +0000 Received: by mail-bk0-f49.google.com with SMTP id j4so2275858bkw.36 for ; Mon, 15 Oct 2012 07:58:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent :x-gm-message-state; bh=1shqLqooAEiUbRjJah8pOlnMf0Rk9my7xNZ7FXKMT2g=; b=A289HOH7UWQPgz454FNVhIkHaxttW2O+HXhjm9nvJKjY6Ig/UdSk3E44rcwyU61sn0 Xs00i00ctJ5UhVZSLwT9U7AzX7wN8q6fa9Ex7ZCQKJlTQ7y7fhh4L3Tccog409kJO++Z nExo1+M6eG53XRSZt8Y7avxjKifoS0+K/JdbPMOaJUENu/vduPoPc8QZm0HTHAvgJKPL 9Qp9aZFfsCNIDSd5UO/a3u05oisRZIrtDDAIVZ0jhrp9hmvhu2aI84N05TfdHh2s/M9c PbdmVI6CLBupg00zFShzn486vGpAOylXHEubxBJvG4vKHMGvW6E4CrolEuKvf7in4zAF 3yeQ== Received: by 10.204.7.213 with SMTP id e21mr3132733bke.32.1350313096697; Mon, 15 Oct 2012 07:58:16 -0700 (PDT) Received: from gmail.com (cpc1-aztw13-0-0-cust473.18-1.cable.virginmedia.com. [77.102.241.218]) by mx.google.com with ESMTPS id v14sm8777841bkv.10.2012.10.15.07.58.13 (version=SSLv3 cipher=OTHER); Mon, 15 Oct 2012 07:58:14 -0700 (PDT) Date: Mon, 15 Oct 2012 15:58:11 +0100 From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] Documentation: Describe Device Tree bindings for GPIO Regulator driver Message-ID: <20121015145811.GA7662@gmail.com> References: <1350307020-5910-1-git-send-email-lee.jones@linaro.org> <1350307020-5910-2-git-send-email-lee.jones@linaro.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1350307020-5910-2-git-send-email-lee.jones@linaro.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Gm-Message-State: ALoCoQltqA8RkDmlnfJhI6ZJ+Fakb0GeUWFpGBA0/KZG+dyZR+8BiFGFmXiMTW01eydu4KmknUqC X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.214.49 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: linus.walleij@stericsson.com, arnd@arndb.de X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Author: Lee Jones Date: Mon Oct 15 13:12:08 2012 +0100 Documentation: Describe Device Tree bindings for GPIO Regulator driver Here we specify all non-standard bindings which can be used when requesting the use of an GPIO controlled regulator from Device Tree. Mark Brown Signed-off-by: Lee Jones diff --git a/Documentation/devicetree/bindings/regulator/gpio-regulator.txt b/Documentation/devicetree/bindings/regulator/gpio-regulator.txt new file mode 100644 index 0000000..a7cdb6e --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/gpio-regulator.txt @@ -0,0 +1,36 @@ +GPIO controlled regulators + +Required properties: +- compatible : Must be "regulator-gpio". + +Optional properties: +- gpio-enable : GPIO to use to enable/disable the regulator. +- gpios : GPIO group used to control voltage. +- states : Selection of available voltages and GPIO configs. +- startup-delay-us : Startup time in microseconds. +- enable-active-high : Polarity of GPIO is active high (default is low). + +Any property defined as part of the core regulator binding defined in +regulator.txt can also be used. + +Example: + + mmciv: gpio-regulator { + compatible = "regulator-gpio"; + + regulator-name = "mmci-gpio-supply"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2600000>; + + gpio-enable = <&gpio0 23 0x4 + gpios = <&gpio0 24 0x4 + &gpio0 25 0x4>; + states = <1800000 0x3 + 2200000 0x2 + 2600000 0x1 + 2900000 0x0>; + + startup-delay-us = <100000>; + enable-active-high; + regulator-boot-on; + };