From patchwork Thu Apr 5 10:25:31 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 7664 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 383DF23E47 for ; Thu, 5 Apr 2012 10:25:44 +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 E3A8AA1822E for ; Thu, 5 Apr 2012 10:25:43 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so2173069iag.11 for ; Thu, 05 Apr 2012 03:25:43 -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=SW9wwaJGYsdgsMm1jia8HL4ZN0bBOngz/LRPLwlrF8fZyDEPLS6nXy2vXyegyh04/j EVPdb/gp/DbevrudDN6tcSHknFNn2zpB+hm8okKGGuGmC75cWpTG5KO8FgcB2SUPL2Ih xDJqHUa60nVISCXavl11qLzpLupvpPg5IMsfMPimj0Pwr+H9G4jvIuq+nbpj1bSyBdWf Bpeurb6PJ7OsuolWP984PJDBs2MTo0VISxpXiaNnxBnPJn8eTEKv+tawG6OmFohxxMH9 ci/CV/UhFOziAYcBnn0tY9l8ASmj+FfM1LYUO9+0q06palTHPEf19/c9rZTgD2iwqnoG hBXA== Received: by 10.50.173.35 with SMTP id bh3mr4221750igc.38.1333621543662; Thu, 05 Apr 2012 03:25:43 -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 f25csp53788iby; Thu, 5 Apr 2012 03:25:43 -0700 (PDT) Received: by 10.216.137.22 with SMTP id x22mr1498978wei.69.1333621541872; Thu, 05 Apr 2012 03:25:41 -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 t6si4297507wiz.4.2012.04.05.03.25.41 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 05 Apr 2012 03:25:41 -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 ds12so1138611wgb.31 for ; Thu, 05 Apr 2012 03:25:41 -0700 (PDT) Received: by 10.180.88.67 with SMTP id be3mr3494883wib.20.1333621541383; Thu, 05 Apr 2012 03:25:41 -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 l5sm12490310wia.11.2012.04.05.03.25.39 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 05 Apr 2012 03:25:40 -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 11:25:31 +0100 Message-Id: <1333621534-29627-4-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.1 In-Reply-To: <1333621534-29627-1-git-send-email-lee.jones@linaro.org> References: <1333621534-29627-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQkm0+LBo+P8UVDW6jmObuZtSfQ9a14Kl1LjGCeWcJD4pNReQDarw5ncUd9V7AODnbGKuMBs 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>; + };