From patchwork Fri Apr 13 14:05:06 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 7786 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 DC46323E23 for ; Fri, 13 Apr 2012 14:05:32 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id A4AC6A18163 for ; Fri, 13 Apr 2012 14:05:32 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so5854428iag.11 for ; Fri, 13 Apr 2012 07:05:32 -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=OUTtFT2qFRDzmIJ5jQQ9OwPubSwl/6SmklMEA+cRLVk=; b=KLFKXZ1DbFOhhPdzPG1Ht4+CZp6dVAXx53dU4iFIkptKCX0ouwv3rFUXOFjDZ3ssRC t/CE0pUgpUlHEVZTtJG2O74EDuYMuPkeUK1FvMrZVjl2PZeb8iaMPC6UCUHLqNtn5Jbu a093peeIkHPMKXVaUqniEK79oliYg+wzEoy3aBMaCl2i9qsZ/yVfJgan7uOU+NvEDyHY N14XhtOMQjTjL5sIX87LKUiwHIe48NpJg0w3IsKzyGQ0EnPtSN1MbyVN6IYOwjMIe51K 4MZ1/Kc0l8EjXrB+GNG+4xZsSI4asu9cjmCrvC+Sb5uquBHWxJSO/ONHmvM7wxj1v82a OcCg== Received: by 10.50.34.200 with SMTP id b8mr1656371igj.50.1334325932314; Fri, 13 Apr 2012 07:05:32 -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.231.70.69 with SMTP id c5csp30169ibj; Fri, 13 Apr 2012 07:05:30 -0700 (PDT) Received: by 10.180.100.230 with SMTP id fb6mr5817542wib.3.1334325924827; Fri, 13 Apr 2012 07:05:24 -0700 (PDT) Received: from mail-we0-f178.google.com (mail-we0-f178.google.com [74.125.82.178]) by mx.google.com with ESMTPS id dn7si2389551wib.25.2012.04.13.07.05.24 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 13 Apr 2012 07:05:24 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.178 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=74.125.82.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.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-we0-f178.google.com with SMTP id a13so2641698wer.37 for ; Fri, 13 Apr 2012 07:05:24 -0700 (PDT) Received: by 10.216.135.225 with SMTP id u75mr980717wei.97.1334325924210; Fri, 13 Apr 2012 07:05:24 -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 h8sm8338466wix.4.2012.04.13.07.05.22 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 13 Apr 2012 07:05:23 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org Cc: arnd@arndb.de, linus.walleij@stericsson.com, grant.likely@secretlab.ca, cjb@laptop.org, linux@arm.linux.org.uk, Lee Jones Subject: [PATCH 4/7] drivers/gpio: gpio-nomadik: Provide documentation for Device Tree bindings Date: Fri, 13 Apr 2012 15:05:06 +0100 Message-Id: <1334325909-5779-5-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.1 In-Reply-To: <1334325909-5779-1-git-send-email-lee.jones@linaro.org> References: <1334325909-5779-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQk89eA4WoQlVCEFGDwW/QK1esfnWQMzUg95F1TxaXCMgpsv4DQEAxVRcw4mp+t7TkOOfQPu Add required documentation for specific gpio-nomadik DT bindings. Signed-off-by: Lee Jones --- .../devicetree/bindings/gpio/gpio-nmk.txt | 29 ++++++++++++++++++++ 1 files changed, 29 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-nmk.txt diff --git a/Documentation/devicetree/bindings/gpio/gpio-nmk.txt b/Documentation/devicetree/bindings/gpio/gpio-nmk.txt new file mode 100644 index 0000000..7427b63 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/gpio-nmk.txt @@ -0,0 +1,29 @@ +Nomadik GPIO controller + +Required properties: +- compatible : Should be "st,nomadik-gpio". +- reg : Physical base address and length of the controller's registers. +- interrupts : The interrupt outputs from the controller. +- #gpio-cells : Should be two: + The first cell is the pin number. + The second cell is used to specify optional parameters: + - bits[3:0] trigger type and level flags: + 1 = low-to-high edge triggered. + 2 = high-to-low edge triggered. + 4 = active high level-sensitive. + 8 = active low level-sensitive. +- gpio-controller : Marks the device node as a GPIO controller. +- supports-sleepmode : Specifies whether controller can sleep or not +- gpio-bank : Specifies which bank a controller owns. + +Example: + + gpio1: gpio@8012e080 { + compatible = "st,nomadik-gpio"; + reg = <0x8012e080 0x80>; + interrupts = <0 120 0x4>; + #gpio-cells = <2>; + gpio-controller; + supports-sleepmode; + gpio-bank = <1>; + };