From patchwork Thu Apr 5 09:55:45 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 7657 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 A1B2223ED0 for ; Thu, 5 Apr 2012 09:56:08 +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 59723A18220 for ; Thu, 5 Apr 2012 09:56:08 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so2131028iag.11 for ; Thu, 05 Apr 2012 02:56: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=Y13FMv39RpzzcxfU1UJMm37PCeNi8gOp5gcIiY+4530=; b=JOhbtgsxCEBufZiWU5ftMRP4rrxdqiJ5RxhzYRaqQankdP9e71iF23LP2ADRTt0HKA yFkXPUThuBG3RpDVdf+wgNpx2N2TrPo5HP/yTuOC6Q9TSAg/DvOF3eT/LwE68tnJAJQ1 jTfp+Mi7IhWOQV6kNNF/d4Hr7xilT5iZ6gfqmkCMKYbp8M5+e4j0aq7WoLZUwYa/K6kr U8Gyie1KK8WVjaq/F5P+dvGX43imtXaNzF/UL8ivEOzOnGtdVkXGk/s7K2DylaK6XwF0 frWCzwMVtoNSJgf/3fcO/4TgIrjgCE0Yvrxz6uxHtjryX6XYWzgwjvsIlnHCLat1RxGg NPjA== Received: by 10.50.156.229 with SMTP id wh5mr4174714igb.28.1333619768084; Thu, 05 Apr 2012 02:56: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.231.164.217 with SMTP id f25csp52732iby; Thu, 5 Apr 2012 02:56:07 -0700 (PDT) Received: by 10.180.102.3 with SMTP id fk3mr3270006wib.9.1333619766552; Thu, 05 Apr 2012 02:56: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 y43si3743958weq.58.2012.04.05.02.56.06 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 05 Apr 2012 02:56: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 hq7so924954wib.13 for ; Thu, 05 Apr 2012 02:56:06 -0700 (PDT) Received: by 10.180.85.69 with SMTP id f5mr3256366wiz.18.1333619766062; Thu, 05 Apr 2012 02:56: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 e6sm12308845wix.8.2012.04.05.02.56.04 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 05 Apr 2012 02:56:05 -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: Thu, 5 Apr 2012 10:55:45 +0100 Message-Id: <1333619748-16126-5-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.1 In-Reply-To: <1333619748-16126-1-git-send-email-lee.jones@linaro.org> References: <1333619748-16126-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQlyvY+ICEnYOBDSq/JTWuQ2Z92pDNlITC1v+4WQX33yOmy4CtXYdzowSz2WDulpCVykoL8Q 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..1555029 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/gpio-nmk.txt @@ -0,0 +1,29 @@ +Nomadik GPIO controller + +Required properties: +- compatible : Should be "stmicroelectronics,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 = "stmicroelectronics,nomadik-gpio"; + reg = <0x8012e080 0x80>; + interrupts = <0 120 0x4>; + #gpio-cells = <2>; + gpio-controller; + supports-sleepmode; + gpio-bank = <1>; + };