From patchwork Wed Sep 13 08:56:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 9950727 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DF93960245 for ; Wed, 13 Sep 2017 08:58:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D0C8E29005 for ; Wed, 13 Sep 2017 08:58:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C320828FCD; Wed, 13 Sep 2017 08:58:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4909E28FCD for ; Wed, 13 Sep 2017 08:58:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=xofE2BhJppJtVZqOtCZ4GLjYyngMxelag9RKr5DFGsU=; b=l679v/GMLfKF8LcN3I2uWpsWAF 6RyGPSSBLxYVp+xbUX0jrTLJoN3aWO/l9IpLMRRzP4LSBCzS6/8YmEwUPA+7F6l78tdLpDp8cDQhd ks1ve3zLiWzg8uISU/P9BuDtuY/tHhdOddvjhWoTy4Vm7DFLA6iFLwue5zHSwAug6F+V6da6N+aN8 DnAAi+RseL33gDD6P15Fj2PRz9RHERUkSYoHnaiyvrkXnqojOOltGFyabf+ku2VExCsctTb0MiCeF HFsHb4MBPpthZhj07O5/njClL21VbWJawfSzJ6kxZ7bhQSeAjgOPa/RV4eRJaZgSEcZH1qo4C3UD7 /dFXc7Iw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1ds3Uf-0005Xr-2z; Wed, 13 Sep 2017 08:58:01 +0000 Received: from conuserg-09.nifty.com ([210.131.2.76]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ds3Ua-0005RF-13 for linux-arm-kernel@lists.infradead.org; Wed, 13 Sep 2017 08:57:58 +0000 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-09.nifty.com with ESMTP id v8D8ugqk027391; Wed, 13 Sep 2017 17:56:45 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com v8D8ugqk027391 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1505293006; bh=uqRbxwC4hXNT6RP9MedPBl4zsX5Man5LRcidVTDUkKQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=W8vj1DGIEcYVS2BuGp4TJJYt0QkthUe+pO6aJX4zdnvzRcYus+WlB7+N4+axgWxC6 CiQhC3b4xbk12E7bHbDY8t6veV8rAjoMxcqEXrNWMDdfTaXwDDyef7v8os7j/8Nvke m9dAex2YpAiB8w8wiuOjj7j5931K+smLbc8iYllVEs44AOkJ5Liwjn0Lxz8klJd2aX 2PrYRV2AJX74jshmE0J3yJJC72MESjxstFGSB6L5Io5e+zaxt1jg7BQZ6ziHUGVyjQ 7qMu+T2kCgPlqEnM8/qbmn4AlOZEekZZV0WtCvTBvaq5bf5xDfhLgTD66332cGf4aO OpEmRcsztkAog== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Marc Zyngier , linux-gpio@vger.kernel.org Subject: [PATCH v5 2/3] dt-bindings: gpio: uniphier: add UniPhier GPIO binding Date: Wed, 13 Sep 2017 17:56:29 +0900 Message-Id: <1505292990-22957-3-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1505292990-22957-1-git-send-email-yamada.masahiro@socionext.com> References: <1505292990-22957-1-git-send-email-yamada.masahiro@socionext.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170913_015756_342592_759D1225 X-CRM114-Status: GOOD ( 11.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Rob Herring , Jason Cooper , David Daney , Masahiro Yamada , Linus Walleij , linux-kernel@vger.kernel.org, Jassi Brar , devicetree@vger.kernel.org, Rob Herring , Masami Hiramatsu , Thomas Gleixner , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This GPIO controller is used on UniPhier SoC family. Signed-off-by: Masahiro Yamada Acked-by: Rob Herring --- .../devicetree/bindings/gpio/gpio-uniphier.txt | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-uniphier.txt diff --git a/Documentation/devicetree/bindings/gpio/gpio-uniphier.txt b/Documentation/devicetree/bindings/gpio/gpio-uniphier.txt new file mode 100644 index 0000000..0a371bdd --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/gpio-uniphier.txt @@ -0,0 +1,43 @@ +UniPhier GPIO controller + +Required properties: +- compatible: Should be "socionext,uniphier-gpio". +- reg: Specifies offset and length of the register set for the device. +- gpio-controller: Marks the device node as a GPIO controller. +- #gpio-cells: Should be 2. The first cell is the pin number and the second + cell is used to specify optional parameters. +- interrupt-parent: Specifies the parent interrupt controller. +- interrupts: Specifies interrupts connected to the parent interrupt controller. +- interrupt-controller: Marks the device node as an interrupt controller. +- #interrupt-cells: Should be 2. The first cell defines the interrupt number. + The second cell bits[3:0] is used to specify trigger type as follows: + 1 = low-to-high edge triggered + 2 = high-to-low edge triggered + 4 = active high level-sensitive + 8 = active low level-sensitive + Valid combinations are 1, 2, 3, 4, 8. +- ngpios: Specifies the number of GPIO lines. +- gpio-ranges: Mapping to pin controller pins (as described in gpio.txt) + +Optional properties: +- gpio-ranges-group-names: Used for named gpio ranges (as described in gpio.txt) + +Example: + gpio: gpio@55000000 { + compatible = "socionext,uniphier-gpio"; + reg = <0x55000000 0x200>; + interrupt-parent = <&aidet>; + interrupts = <48 0>, <49 0>, <50 0>, <51 0>, + <52 0>, <53 0>, <54 0>, <55 0>, + <56 0>, <57 0>, <58 0>, <59 0>, + <60 0>, <61 0>, <62 0>, <63 0>, + <154 0>, <155 0>, <156 0>, <157 0>, + <158 0>; + interrupt-controller; + #interrupt-cells = <2>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl 0 0 0>; + gpio-ranges-group-names = "gpio_range"; + ngpios = <248>; + };