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: 12263 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 9E2D523F62 for ; Tue, 16 Oct 2012 08:02:46 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 3DBB6A191ED for ; Tue, 16 Oct 2012 08:02:46 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so9053689iej.11 for ; Tue, 16 Oct 2012 01:02:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:x-gm-message-state; bh=tmqJB9b1oQiDIjojv1jUT1yumLdzQsEVpvHh1/O0pTQ=; b=aTP3yhaL60MKh2wdgl0K7NnTP++CnXue2WANMZ1/wxwP2bNYxB0wST/o95DAmXWw/d 36sJY4KZJoYNGGQEugAJvLWPWIVsIZhQjbAqITO9PBStIcFn71sYZso9T666iPb9A5Mc 8tYZOB5WPgPGYS/gPlO9UBa/Fhzfk95ZVip+Cp/e8jVaWjcH/zdLRxHJmJwu3EhMDhHA 47+LBRLWJDR4iMzYE30N4ObmDxwsw6LYxGlDG/8YqeN9nn62ZYDHqfuBaq6iglM4u01P /J8sUbR20v3hIMjINNHjWOD0rrkRvQZlxc8SNT4BUNHJFOL2XZJ5Hgek2fiIr8Q2Q4V0 aiuA== Received: by 10.50.161.169 with SMTP id xt9mr9517573igb.62.1350374565592; Tue, 16 Oct 2012 01:02:45 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp691555igt; Tue, 16 Oct 2012 01:02:44 -0700 (PDT) Received: by 10.180.19.71 with SMTP id c7mr29890301wie.2.1350374563350; Tue, 16 Oct 2012 01:02:43 -0700 (PDT) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx.google.com with ESMTPS id bx18si16930040wib.22.2012.10.16.01.02.42 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 16 Oct 2012 01:02:43 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.50 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=74.125.82.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.50 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) smtp.mail=lee.jones@linaro.org Received: by mail-wg0-f50.google.com with SMTP id 16so4838142wgi.31 for ; Tue, 16 Oct 2012 01:02:42 -0700 (PDT) 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 Cc: arnd@arndb.de, linus.walleij@stericsson.com, Lee Jones , Mark Brown 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: ALoCoQnfY9aSEUJWlnV5z1Q0MKuAiMcXN/9aJ8TK9b5XDq8ad8I2X+vX/u55Bdr8ZsuweX326Boa 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 --- .../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; + };