From patchwork Tue Oct 16 08:02:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 1599471 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 692B43FD86 for ; Tue, 16 Oct 2012 08:04:33 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TO26z-0002yT-Iy; Tue, 16 Oct 2012 08:02:49 +0000 Received: from mail-we0-f177.google.com ([74.125.82.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TO26u-0002xO-2y for linux-arm-kernel@lists.infradead.org; Tue, 16 Oct 2012 08:02:46 +0000 Received: by mail-we0-f177.google.com with SMTP id u50so3734245wey.36 for ; Tue, 16 Oct 2012 01:02:42 -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:x-gm-message-state; bh=tmqJB9b1oQiDIjojv1jUT1yumLdzQsEVpvHh1/O0pTQ=; b=d7nkWNxZIriT/JJp9gPTgeKQWvAhWyMK5j7IFxQ4yuIMrFb1WTvk6Vs+DHSPOFOyxZ Q8zLK0PG1P7NA6u0/VjjFEQ8O+0oAi7dgKPjMf7aHaGGphdK3JimbQe+feMn/orNPEfy LNVQ5h8Pm1godvnDQkMSH4BnMroWkbNdt+btWwAaNlru9gNt4KeW15cy9KPVmSLvsZnz q91UbMNb1T/ikzkFJIu+jXm/PYp55v0FqO7OfhQTimEXMTo45A/gmQCYWPUytYtjIuCa oeYAr/Z0aZl3XVb2vtPdGVOa2yUyo4rJNlX8Ge7xvsF8xVsgvBJWDs4zbKPcOnATORmt LRdw== Received: by 10.180.100.97 with SMTP id ex1mr29814894wib.17.1350374562362; Tue, 16 Oct 2012 01:02:42 -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 v3sm20462708wiy.5.2012.10.16.01.02.40 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 16 Oct 2012 01:02:41 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/1] Documentation: Describe Device Tree bindings for GPIO Regulator driver Date: Tue, 16 Oct 2012 09:02:33 +0100 Message-Id: <1350374553-12678-1-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQnVdg3MUQjqZEYYbOfAd/F6qb7qQFAwr9WE4DDkgtlz8fX7bnfxySf02lby9j9Eu14WM3l+ 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 [74.125.82.177 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Mark Brown , 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. Cc: Mark Brown Signed-off-by: Lee Jones Reviewed-by: Stephen Warren --- .../bindings/regulator/gpio-regulator.txt | 36 ++++++++++++++++++++ 1 file changed, 36 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..3703be2 --- /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>; + regulator-boot-on; + + 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; + };