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: 12234 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 3300623DE2 for ; Mon, 15 Oct 2012 13:17:09 +0000 (UTC) Received: from mail-ia0-f180.google.com (mail-ia0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id DE269A19094 for ; Mon, 15 Oct 2012 13:17:08 +0000 (UTC) Received: by mail-ia0-f180.google.com with SMTP id f6so3595465iag.11 for ; Mon, 15 Oct 2012 06:17:08 -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:in-reply-to:references :x-gm-message-state; bh=rzEn1P/pBBRHiE+8KxGWZffR7DPcTXaBj1Ty8rJKfQA=; b=eG19bDuNuq/iOkKLNwYZAA81g9JShSmnVEAgzrqSYuLWPmV/n9SUNN47BY0gmKYpbV fgHkwCdvVQpdxCUnPrUZcri5vi0dahdNO9nGx/CJLNHuwhYTQKvm1vgEwyHrZSqc8aWD xxelhX84hMmPgCYrkgRYggY+aaiMgD8iPXtJInzKo6T8pu2nCpkYy41JLW+UP9tZK2YR 56h8ik+o7t4AjCKuci8g2LUB5RQHsfaIxnhS9Vfah1gUwUrVIMf+kUBEwp4Gvw8rSWVH 5CsAYyaKDsZphQ9jXL5tfCY0eNI4SWnDfEAr4z9FsXa+JqlTxPuGbVxIHbgrjkkYqFZe J1Pg== Received: by 10.50.100.137 with SMTP id ey9mr8568191igb.57.1350307028260; Mon, 15 Oct 2012 06:17:08 -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 n20csp572905igt; Mon, 15 Oct 2012 06:17:07 -0700 (PDT) Received: by 10.180.90.201 with SMTP id by9mr23799080wib.5.1350307026533; Mon, 15 Oct 2012 06:17:06 -0700 (PDT) Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by mx.google.com with ESMTPS id f79si16782887weo.20.2012.10.15.06.17.06 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 15 Oct 2012 06:17:06 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.178 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=209.85.212.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.178 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-wi0-f178.google.com with SMTP id hr7so1673493wib.13 for ; Mon, 15 Oct 2012 06:17:06 -0700 (PDT) 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 Cc: arnd@arndb.de, linus.walleij@stericsson.com, Lee Jones 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: ALoCoQlHFaLryPTSsCkCfuLbuyqPKewGh1+bvSHI2h3NN2gbOBO9CpSTruIxaOFz2f3jFR7sOMUL 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; + };