From patchwork Fri Sep 28 13:15:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugeniy Paltsev X-Patchwork-Id: 976297 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=synopsys.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="jEI3aZ17"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=synopsys.com header.i=@synopsys.com header.b="jCwP6yIO"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42MBy74wmWz9sB5 for ; Fri, 28 Sep 2018 23:15:59 +1000 (AEST) 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=aZpWf7Fm+php1ZukgcyMov6o0YmllkqTI0JPQFDvyvk=; b=jEI3aZ17cTxTNGnULiXoUsQD0l vGkSIZdYWpzGkXk/ZEPOXY77i1lE0umj9W5nez5/a7o0H73W1XLQoSsI8oJ25Hx9a72dzcPmE1P0f JkmzFROZmd8t7gSKdXpxdBpkM7NLoxS/Z5CX8SKD0TO1fuRAx/vZthnoxIQgPgJNcFzd9oBrmConb jHJksNZuJMIZz8XUaCD2AXajqutVmGtAUNQZ3hI6Nt4weEjg3xuZAjvZKSbKYp5vdRZWCPAatnKOJ 6SJymmrZr1VoTL2AVNJJpiPWSJkItTxww5TKhUZg3dXUymQPymFOiLKAvwnQ2wyxE3MbP+rcvWBNy lKMnANVQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g5sce-0005gW-Ql; Fri, 28 Sep 2018 13:15:56 +0000 Received: from smtprelay2.synopsys.com ([198.182.60.111] helo=smtprelay.synopsys.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g5scc-0005fX-03 for linux-snps-arc@lists.infradead.org; Fri, 28 Sep 2018 13:15:55 +0000 Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by smtprelay.synopsys.com (Postfix) with ESMTP id 2A21110C1B61; Fri, 28 Sep 2018 06:15:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1538140543; bh=tCETSBm7iosQu/l2vga1+YiXnCQzE3oESrj5exU7j0g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jCwP6yIOw1ZIaBfiWn+dDR8HvoZX7TWnwjjhJ9ScsT76wTxESmIe0reoKZbgQCukT V2SBdUcPcPu5ysFwFCS9WTP8Kr+FcekX2cw+JqEp7JyK3EtycL5PPUaw6uLQMGbzMS 9zAbojRhhPK78dM4g4BjEO0qitPfqWrlF/rvM3hBqULpQm897BlbGBB1KQmAhs129F HIDjtniA/T1UcAQ7P3cHTvpgaKlw/gBUoNWtE2jd01qqw18On1Sj8krqQNqSNyWaEy pCvLHvNIjORPCNI2qYtWWJ6+5Jc7ZflIKA3GjHc7fJQ3e/yKZazRMpvDVk661pq7mf pXwlY/dEgh0+Q== Received: from paltsev-e7480.internal.synopsys.com (paltsev-e7480.internal.synopsys.com [10.121.3.38]) by mailhost.synopsys.com (Postfix) with ESMTP id 65CD95958; Fri, 28 Sep 2018 06:15:39 -0700 (PDT) From: Eugeniy Paltsev To: linux-snps-arc@lists.infradead.org, linux-gpio@vger.kernel.org, Linus Walleij Subject: [PATCH v4 2/2] dt-bindings: Document the Synopsys GPIO via CREG bindings Date: Fri, 28 Sep 2018 16:15:31 +0300 Message-Id: <20180928131531.4598-2-Eugeniy.Paltsev@synopsys.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180928131531.4598-1-Eugeniy.Paltsev@synopsys.com> References: <20180928131531.4598-1-Eugeniy.Paltsev@synopsys.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180928_061554_046622_10CABC09 X-CRM114-Status: GOOD ( 11.16 ) X-Spam-Score: -0.1 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [198.182.60.111 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-snps-arc@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux on Synopsys ARC Processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Vineet Gupta , Alexey Brodkin , linux-kernel@vger.kernel.org, Rob Herring , Eugeniy Paltsev MIME-Version: 1.0 Sender: "linux-snps-arc" Errors-To: linux-snps-arc-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org This patch adds documentation of device tree bindings for the Synopsys GPIO via CREG driver. Reviewed-by: Rob Herring Reviewed-by: Linus Walleij Signed-off-by: Eugeniy Paltsev --- Changes v3->v4: * Fix #gpio-cells description as driver is used generic GPIO binding. Chnages v2->v3: * None. .../devicetree/bindings/gpio/snps,creg-gpio.txt | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/snps,creg-gpio.txt diff --git a/Documentation/devicetree/bindings/gpio/snps,creg-gpio.txt b/Documentation/devicetree/bindings/gpio/snps,creg-gpio.txt new file mode 100644 index 000000000000..1b30812b015b --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/snps,creg-gpio.txt @@ -0,0 +1,21 @@ +Synopsys GPIO via CREG (Control REGisters) driver + +Required properties: +- compatible : "snps,creg-gpio-hsdk" or "snps,creg-gpio-axs10x". +- reg : Exactly one register range with length 0x4. +- #gpio-cells : Since the generic GPIO binding is used, the + amount of cells must be specified as 2. The first cell is the + pin number, the second cell is used to specify optional parameters: + See "gpio-specifier" in .../devicetree/bindings/gpio/gpio.txt. +- gpio-controller : Marks the device node as a GPIO controller. +- ngpios: Number of GPIO pins. + +Example: + +gpio: gpio@f00014b0 { + compatible = "snps,creg-gpio-hsdk"; + reg = <0xf00014b0 0x4>; + gpio-controller; + #gpio-cells = <2>; + ngpios = <2>; +};