From patchwork Mon Oct 15 13:17:00 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 1593981 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 6DC6DDFB34 for ; Mon, 15 Oct 2012 13:19:09 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TNkXt-0000fH-Sj; Mon, 15 Oct 2012 13:17:26 +0000 Received: from mail-wi0-f171.google.com ([209.85.212.171]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TNkXc-0000XT-4Y for linux-arm-kernel@lists.infradead.org; Mon, 15 Oct 2012 13:17:09 +0000 Received: by mail-wi0-f171.google.com with SMTP id hj13so1525103wib.0 for ; Mon, 15 Oct 2012 06:17:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=rzEn1P/pBBRHiE+8KxGWZffR7DPcTXaBj1Ty8rJKfQA=; b=FAhiQCyg3cLixFdzhu1irNnqHudbR4VfOYy9ZE/M/DOamk/FKxOK9CdVgAp1hqrAvB o6ametZBrU/g3lb3cEZiOpxxRDQGQqxBRD7Gk0osVtEJ9+pKfmWwrpzNMygpm3EEqZRX GTVWQjG1L5MPorpMnA+QJ3aVXO+wBeAu/VauaRO11U0xycBzEnuYy97saswLfZQ99aWk 7YUjFsj0jOt3NGCDV5JHpbJPy3Jsefzuml6Ky0s62QnWcCx08HKPKDRUPMLvis+tz11T LVFK9XhIqm6iIO0c1qCG6AujWOLFqDVKpo7qSaDUoD9yaY3FRtbd7JjxMELWqcmQJhO2 S9Wg== Received: by 10.180.93.8 with SMTP id cq8mr23809044wib.16.1350307026068; Mon, 15 Oct 2012 06:17:06 -0700 (PDT) Received: from localhost.localdomain (cpc1-aztw13-0-0-cust473.18-1.cable.virginmedia.com. [77.102.241.218]) by mx.google.com with ESMTPS id a10sm15831429wiz.4.2012.10.15.06.17.04 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 15 Oct 2012 06:17:05 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] Documentation: Describe Device Tree bindings for GPIO Regulator driver Date: Mon, 15 Oct 2012 14:17:00 +0100 Message-Id: <1350307020-5910-2-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1350307020-5910-1-git-send-email-lee.jones@linaro.org> References: <1350307020-5910-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQl6nrQxQFurzsoziN1Xxo/x8weW6u6uy5u2z5YxtTRp5z4dvQMXPElmgGL+MmbgpEJ9YrkY 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.212.171 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Lee Jones , 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: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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 --- .../bindings/regulator/gpio-regulator.txt | 25 ++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/gpio-regulator.txt diff --git a/Documentation/devicetree/bindings/regulator/gpio-regulator.txt b/Documentation/devicetree/bindings/regulator/gpio-regulator.txt new file mode 100644 index 0000000..5f77ee0 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/gpio-regulator.txt @@ -0,0 +1,25 @@ +GPIO controlled regulators + +Required properties: +- compatible : Must be "regulator-gpio". + +Optional properties: +- gpio-enable : GPIO to use to enable/disable the regulator. +- 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 = <&gpio0 24 0x4>; + startup-delay-us = <100000>; + enable-active-high; + regulator-boot-on; + };