{"id":818904,"url":"http://patchwork.ozlabs.org/api/patches/818904/?format=json","web_url":"http://patchwork.ozlabs.org/project/devicetree-bindings/patch/1506480343-9597-2-git-send-email-yamada.masahiro@socionext.com/","project":{"id":37,"url":"http://patchwork.ozlabs.org/api/projects/37/?format=json","name":"Devicetree Bindings","link_name":"devicetree-bindings","list_id":"devicetree.vger.kernel.org","list_email":"devicetree@vger.kernel.org","web_url":"","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<1506480343-9597-2-git-send-email-yamada.masahiro@socionext.com>","list_archive_url":null,"date":"2017-09-27T02:45:42","name":"[v7,1/2] dt-bindings: gpio: uniphier: add UniPhier GPIO binding","commit_ref":null,"pull_url":null,"state":"not-applicable","archived":true,"hash":"a9c3811f76ec5a9c0c5e2e77d032cca55834838f","submitter":{"id":65882,"url":"http://patchwork.ozlabs.org/api/people/65882/?format=json","name":"Masahiro Yamada","email":"yamada.masahiro@socionext.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/devicetree-bindings/patch/1506480343-9597-2-git-send-email-yamada.masahiro@socionext.com/mbox/","series":[{"id":5271,"url":"http://patchwork.ozlabs.org/api/series/5271/?format=json","web_url":"http://patchwork.ozlabs.org/project/devicetree-bindings/list/?series=5271","date":"2017-09-27T02:45:42","name":"gpio: uniphier: UniPhier GPIO driver","version":7,"mbox":"http://patchwork.ozlabs.org/series/5271/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/818904/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/818904/checks/","tags":{},"related":[],"headers":{"Return-Path":"<devicetree-owner@vger.kernel.org>","X-Original-To":"incoming-dt@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming-dt@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=devicetree-owner@vger.kernel.org; receiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=nifty.com header.i=@nifty.com\n\theader.b=\"OMKhOMyx\"; dkim-atps=neutral"],"Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3y22K2289vz9sPr\n\tfor <incoming-dt@patchwork.ozlabs.org>;\n\tWed, 27 Sep 2017 12:46:46 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S967571AbdI0Cqo (ORCPT <rfc822; incoming-dt@patchwork.ozlabs.org>);\n\tTue, 26 Sep 2017 22:46:44 -0400","from conuserg-07.nifty.com ([210.131.2.74]:56376 \"EHLO\n\tconuserg-07.nifty.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S934771AbdI0Cqn (ORCPT\n\t<rfc822; devicetree@vger.kernel.org>); Tue, 26 Sep 2017 22:46:43 -0400","from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp\n\t[153.142.97.92]) (authenticated)\n\tby conuserg-07.nifty.com with ESMTP id v8R2jiYN009483;\n\tWed, 27 Sep 2017 11:45:46 +0900"],"DKIM-Filter":"OpenDKIM Filter v2.10.3 conuserg-07.nifty.com v8R2jiYN009483","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com;\n\ts=dec2015msa; t=1506480346;\n\tbh=P4nFzQKMWibQFU0QwvqMPvI6Eei29vRx/+/3NWAsb+8=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=OMKhOMyx+qu56E/CzE71+76xOwkzI6+QiVgNnZ/wCFQQhiPlzbLpc+ei0kpSe64/n\n\tm37oIVSeEo6Cb9va2Mgcyf2lHzOGbcW21AjTmmwabzixCZG1/nX+YjJLt7BRUzeM8n\n\tsS/LCtSKGq9LU5whH+9U6VFRfY1Z0As8QPOLl6C5I8g91cxd/pxQhYnMgUbKr6YIdp\n\tqbkLhZOG/702uscgDknoWZsPpa9X3wc2tcgvIaY34yRXuVYCpv9tJLKpIzrP4sYrpe\n\tLxjHLMi8FntsSobbxM3W5p2l5zeUyGDNwvMigk3HYOnrVHN96Q1MDUGaPlWp1YQ7a1\n\t5tp6o1oz7LQ7g==","X-Nifty-SrcIP":"[153.142.97.92]","From":"Masahiro Yamada <yamada.masahiro@socionext.com>","To":"linux-gpio@vger.kernel.org","Cc":"devicetree@vger.kernel.org, Rob Herring <robh@kernel.org>,\n\tMasami Hiramatsu <mhiramat@kernel.org>,\n\tJassi Brar <jaswinder.singh@linaro.org>,\n\tMasahiro Yamada <yamada.masahiro@socionext.com>,\n\tLinus Walleij <linus.walleij@linaro.org>,\n\tlinux-kernel@vger.kernel.org, Rob Herring <robh+dt@kernel.org>,\n\tMark Rutland <mark.rutland@arm.com>, linux-arm-kernel@lists.infradead.org","Subject":"[PATCH v7 1/2] dt-bindings: gpio: uniphier: add UniPhier GPIO\n\tbinding","Date":"Wed, 27 Sep 2017 11:45:42 +0900","Message-Id":"<1506480343-9597-2-git-send-email-yamada.masahiro@socionext.com>","X-Mailer":"git-send-email 2.7.4","In-Reply-To":"<1506480343-9597-1-git-send-email-yamada.masahiro@socionext.com>","References":"<1506480343-9597-1-git-send-email-yamada.masahiro@socionext.com>","Sender":"devicetree-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<devicetree.vger.kernel.org>","X-Mailing-List":"devicetree@vger.kernel.org"},"content":"This GPIO controller is used on UniPhier SoC family.\n\nThe vendor specific property \"socionext,interrupt-ranges\" is for\nspecifying interrupt mapping to the parent interrupt controller\nbecause the mapping is not contiguous.  It works like \"ranges\",\nbut transforms \"interrupts\" instead of \"reg\".\n\nSigned-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>\nAcked-by: Rob Herring <robh@kernel.org>\n---\n\n\n .../devicetree/bindings/gpio/gpio-uniphier.txt     | 40 ++++++++++++++++++++++\n 1 file changed, 40 insertions(+)\n create mode 100644 Documentation/devicetree/bindings/gpio/gpio-uniphier.txt","diff":"diff --git a/Documentation/devicetree/bindings/gpio/gpio-uniphier.txt b/Documentation/devicetree/bindings/gpio/gpio-uniphier.txt\nnew file mode 100644\nindex 0000000..6d9251a\n--- /dev/null\n+++ b/Documentation/devicetree/bindings/gpio/gpio-uniphier.txt\n@@ -0,0 +1,40 @@\n+UniPhier GPIO controller\n+\n+Required properties:\n+- compatible: Should be \"socionext,uniphier-gpio\".\n+- reg: Specifies offset and length of the register set for the device.\n+- gpio-controller: Marks the device node as a GPIO controller.\n+- #gpio-cells: Should be 2.  The first cell is the pin number and the second\n+  cell is used to specify optional parameters.\n+- interrupt-parent: Specifies the parent interrupt controller.\n+- interrupt-controller: Marks the device node as an interrupt controller.\n+- #interrupt-cells: Should be 2.  The first cell defines the interrupt number.\n+  The second cell bits[3:0] is used to specify trigger type as follows:\n+    1 = low-to-high edge triggered\n+    2 = high-to-low edge triggered\n+    4 = active high level-sensitive\n+    8 = active low level-sensitive\n+  Valid combinations are 1, 2, 3, 4, 8.\n+- ngpios: Specifies the number of GPIO lines.\n+- gpio-ranges: Mapping to pin controller pins (as described in gpio.txt)\n+- socionext,interrupt-ranges: Specifies an interrupt number mapping between\n+  this GPIO controller and its interrupt parent, in the form of arbitrary\n+  number of <child-interrupt-base parent-interrupt-base length> triplets.\n+\n+Optional properties:\n+- gpio-ranges-group-names: Used for named gpio ranges (as described in gpio.txt)\n+\n+Example:\n+\tgpio: gpio@55000000 {\n+\t\tcompatible = \"socionext,uniphier-gpio\";\n+\t\treg = <0x55000000 0x200>;\n+\t\tinterrupt-parent = <&aidet>;\n+\t\tinterrupt-controller;\n+\t\t#interrupt-cells = <2>;\n+\t\tgpio-controller;\n+\t\t#gpio-cells = <2>;\n+\t\tgpio-ranges = <&pinctrl 0 0 0>;\n+\t\tgpio-ranges-group-names = \"gpio_range\";\n+\t\tngpios = <248>;\n+\t\tsocionext,interrupt-ranges = <0 48 16>, <16 154 5>, <21 217 3>;\n+\t};\n","prefixes":["v7","1/2"]}