From patchwork Fri Sep 19 07:40:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Shiyan X-Patchwork-Id: 391143 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id EEB07140161 for ; Fri, 19 Sep 2014 17:59:30 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751244AbaISH7a (ORCPT ); Fri, 19 Sep 2014 03:59:30 -0400 Received: from fallback4.mail.ru ([94.100.181.169]:36910 "EHLO fallback4.mail.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751154AbaISH73 (ORCPT ); Fri, 19 Sep 2014 03:59:29 -0400 X-Greylist: delayed 885 seconds by postgrey-1.27 at vger.kernel.org; Fri, 19 Sep 2014 03:59:28 EDT Received: from smtp15.mail.ru (smtp15.mail.ru [94.100.176.133]) by fallback4.mail.ru (mPOP.Fallback_MX) with ESMTP id 2596C32E48B; Fri, 19 Sep 2014 11:40:41 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From; bh=VNNXw6n33XalRhL81i6Sa+VuAoR1+rwAWAPdm1GN53w=; b=Od+3uRqNKnIAAu7U41kWVWcphrTX2XZ8/9igrwA7SgGm4iv2H+D+kk3slLByFetBnA0eOmsPnbnLTl4Ctut4dtfrSZmTULVeRAMdoR072tjSl/HK2Sa26g2u4zNnCMYX9dItTrTQjO6Ci7kOw63ly9pylzREAbA6KLqIv46AzAs=; Received: from [217.119.30.118] (port=38874 helo=shc.milas.spb.ru) by smtp15.mail.ru with esmtpa (envelope-from ) id 1XUsne-0006dQ-Aj; Fri, 19 Sep 2014 11:40:14 +0400 From: Alexander Shiyan To: linux-gpio@vger.kernel.org Cc: Alexandre Courbot , Linus Walleij , devicetree@vger.kernel.org, Alexander Shiyan Subject: [PATCH 2/2] GPIO: 74xx-mmio: Add DT bindings documentation Date: Fri, 19 Sep 2014 11:40:04 +0400 Message-Id: <1411112404-16040-3-git-send-email-shc_work@mail.ru> X-Mailer: git-send-email 1.8.5.5 In-Reply-To: <1411112404-16040-1-git-send-email-shc_work@mail.ru> References: <1411112404-16040-1-git-send-email-shc_work@mail.ru> X-Spam: Not detected X-Mras: Ok Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org This patch adds DT binding documentation for the 74xx-mmio GPIO driver. Signed-off-by: Alexander Shiyan --- .../devicetree/bindings/gpio/gpio-74xx-mmio.txt | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-74xx-mmio.txt diff --git a/Documentation/devicetree/bindings/gpio/gpio-74xx-mmio.txt b/Documentation/devicetree/bindings/gpio/gpio-74xx-mmio.txt new file mode 100644 index 0000000..202dce7 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/gpio-74xx-mmio.txt @@ -0,0 +1,30 @@ +* 74XX MMIO GPIO driver + +Required properties: +- compatible: Should contain one of the following: + "ti,74ahc1g125": for 74AHC1G125 (1-bit Input), + "ti,74auc1g174": for 74AUC1G74 (1-bit Output), + "ti,74lvc2g125": for 74LVC2G125 (2-bit Input), + "ti,74hc74": for 74HC74 (2-bit Output), + "ti,74hc125": for 74HC125 (4-bit Input), + "ti,74hc175": for 74HC175 (4-bit Output), + "ti,74hc365": for 74HC365 (6-bit Input), + "ti,74hc174": for 74HC174 (6-bit Output), + "ti,74hc244": for 74HC244 (8-bit Input), + "ti,74hc273": for 74HC273 (8-bit Output), + "ti,74ac1624": for 74AC1624 (16-bit Input), + "ti,74ac16374": for 74AC16374 (16-bit Output). +- reg: Physical base address and length where IC resides. +- gpio-controller: Marks the device node as a gpio controller. +- #gpio-cells: Should be two. The first cell is the pin number and + the second cell is used to specify the GPIO polarity: + 0 = Active High, + 1 = Active Low. + +Example: + ctrl: gpio@30008004 { + compatible = "ti,74hc174"; + reg = <0x30008004 0x1>; + gpio-controller; + #gpio-cells = <2>; + };