From patchwork Tue Jul 8 11:02:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harini Katakam X-Patchwork-Id: 4504011 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C5D829F392 for ; Tue, 8 Jul 2014 11:05:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EF2ED202B8 for ; Tue, 8 Jul 2014 11:05:05 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 33E54202A1 for ; Tue, 8 Jul 2014 11:05:05 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1X4TBK-000668-54; Tue, 08 Jul 2014 11:03:30 +0000 Received: from mail-qg0-x22e.google.com ([2607:f8b0:400d:c04::22e]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1X4TBF-0005vf-K4 for linux-arm-kernel@lists.infradead.org; Tue, 08 Jul 2014 11:03:26 +0000 Received: by mail-qg0-f46.google.com with SMTP id q107so4630782qgd.19 for ; Tue, 08 Jul 2014 04:03:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=ViAENH9uIu62h1bn3HytW/FyAFuEGZO+PA2H5tfosS8=; b=lhl1JxyfD6Awj13NH7vJ5L56/kVYzWQwrqAdjZj7YFXjHtkMq4JNn4KNIdxfYVHxed /zhHTmjkN2nhiWJtMiurkn+TBrh5/x3mJaxs47+wdC++d3svQtoK+DueoPPMFAo0gQaQ 8Z08QTkvA5Fx5QOAmhTnATxeXmbiPKbpZjDOA+w583V3flyWr/9sgXORfzURb5BZYf7p ShQ7BaGZHtAdm5z+Qae7uvumYXjQwWatJjv3ztsPqQWrrndqn/B+kAYBFYsI8+ebMVG+ xn6Dob4auIfCpZus8QEl2Ss0nLWs+VtQGlKVCmqU4upwVkSmhO3N+TreHlIjdNZkXJ20 GQ3A== X-Received: by 10.224.119.198 with SMTP id a6mr57253363qar.39.1404817383855; Tue, 08 Jul 2014 04:03:03 -0700 (PDT) Received: from localhost ([149.199.62.254]) by mx.google.com with ESMTPSA id g35sm1890737qgf.49.2014.07.08.04.03.02 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 08 Jul 2014 04:03:03 -0700 (PDT) From: Harini Katakam To: linus.walleij@linaro.org, gnurou@gmail.com, grant.likely@linaro.org, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, rob@landley.net Subject: [PATCH v3 2/2] devicetree: Add Zynq GPIO devicetree bindings documentation Date: Tue, 8 Jul 2014 16:32:36 +0530 Message-Id: <1404817356-21568-2-git-send-email-harinik@xilinx.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1404817356-21568-1-git-send-email-harinik@xilinx.com> References: <1404817356-21568-1-git-send-email-harinik@xilinx.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140708_040325_743944_5986EE4D X-CRM114-Status: GOOD ( 10.64 ) X-Spam-Score: 0.0 (/) Cc: devicetree@vger.kernel.org, Harini Katakam , linux-doc@vger.kernel.org, michal.simek@xilinx.com, harinikatakamlinux@gmail.com, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, soren.brinkmann@xilinx.com, Harini Katakam , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Harini Katakam Add gpio-zynq bindings documentation. Signed-off-by: Harini Katakam Signed-off-by: Soren Brinkmann --- v3 changes: Change description of #gpio-cells - use 'gpio-line' instead of 'pin' v2 changes: Improve description. --- .../devicetree/bindings/gpio/gpio-zynq.txt | 26 ++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-zynq.txt diff --git a/Documentation/devicetree/bindings/gpio/gpio-zynq.txt b/Documentation/devicetree/bindings/gpio/gpio-zynq.txt new file mode 100644 index 0000000..986371a --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/gpio-zynq.txt @@ -0,0 +1,26 @@ +Xilinx Zynq GPIO controller Device Tree Bindings +------------------------------------------- + +Required properties: +- #gpio-cells : Should be two + - First cell is the GPIO line number + - Second cell is used to specify optional + parameters (unused) +- compatible : Should be "xlnx,zynq-gpio-1.0" +- clocks : Clock specifier (see clock bindings for details) +- gpio-controller : Marks the device node as a GPIO controller. +- interrupts : Interrupt specifier (see interrupt bindings for + details) +- interrupt-parent : Must be core interrupt controller +- reg : Address and length of the register set for the device + +Example: + gpio@e000a000 { + #gpio-cells = <2>; + compatible = "xlnx,zynq-gpio-1.0"; + clocks = <&clkc 42>; + gpio-controller; + interrupt-parent = <&intc>; + interrupts = <0 20 4>; + reg = <0xe000a000 0x1000>; + };