From patchwork Fri Oct 3 07:32:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Shiyan X-Patchwork-Id: 396156 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 A977E14016A for ; Fri, 3 Oct 2014 17:33:12 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750827AbaJCHdL (ORCPT ); Fri, 3 Oct 2014 03:33:11 -0400 Received: from fallback6.mail.ru ([94.100.181.147]:50345 "EHLO fallback6.mail.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750754AbaJCHdL (ORCPT ); Fri, 3 Oct 2014 03:33:11 -0400 Received: from smtp33.i.mail.ru (smtp33.i.mail.ru [94.100.177.93]) by fallback6.mail.ru (mPOP.Fallback_MX) with ESMTP id 0CF90552D574; Fri, 3 Oct 2014 11:32:22 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=Message-Id:Date:Subject:Cc:To:From; bh=UoockR9V2hB5VSAkxxwxqL6TTimomGYIfSN101y8Gjk=; b=ENNlSgRbKKbixxqytPeT9ATe+l7D5d8WrcC4WZ0msLD7Gs7o4v1IQiCF22Ykz9WAwx02bOg44mL+bHnRStZ7tT22wozlFb+scYbSpcN3LsI14d2jxDYMn6/s2Evj+yzP7RNMtNMtUh4h1iUu99DrEgfBhuQgLsACoYYHmW3gB1w=; Received: from [217.119.30.118] (port=44452 helo=shc.milas.spb.ru) by smtp33.i.mail.ru with esmtpa (envelope-from ) id 1XZxLf-0003P7-Iv; Fri, 03 Oct 2014 11:32:20 +0400 From: Alexander Shiyan To: Linus Walleij Cc: Alexandre Courbot , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, Alexander Shiyan Subject: [PATCH v2 2/2] GPIO: 74xx-mmio: Add DT bindings documentation Date: Fri, 3 Oct 2014 11:32:15 +0400 Message-Id: <1412321535-28441-1-git-send-email-shc_work@mail.ru> X-Mailer: git-send-email 2.0.4 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..7bb1a9d --- /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,741g125": for 741G125 (1-bit Input), + "ti,741g174": for 741G74 (1-bit Output), + "ti,742g125": for 742G125 (2-bit Input), + "ti,7474" : for 7474 (2-bit Output), + "ti,74125" : for 74125 (4-bit Input), + "ti,74175" : for 74175 (4-bit Output), + "ti,74365" : for 74365 (6-bit Input), + "ti,74174" : for 74174 (6-bit Output), + "ti,74244" : for 74244 (8-bit Input), + "ti,74273" : for 74273 (8-bit Output), + "ti,741624" : for 741624 (16-bit Input), + "ti,7416374": for 7416374 (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,74174"; + reg = <0x30008004 0x1>; + gpio-controller; + #gpio-cells = <2>; + };