Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp748529imm; Fri, 28 Sep 2018 06:16:11 -0700 (PDT) X-Google-Smtp-Source: ACcGV63/Y+Rsud8T0gcLKUsJRaT+wg4/bFn5nRGEaIj2+Da64RynhQS6ibVX2gMkhm0URjFIuess X-Received: by 2002:a63:ca0d:: with SMTP id n13-v6mr7283058pgi.283.1538140571047; Fri, 28 Sep 2018 06:16:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538140571; cv=none; d=google.com; s=arc-20160816; b=ZQUHBI7gq2thm3b4VqzRUJPgCD76XVCI6ed4rUpdUfRoxEga96RibI0S/Vk3LBsvvQ eBKvOMBue+k2mfzDepe612XLDJd8exGNv05yCZEDKP3xrXChM7Iz32VPiMhU7qedBRhq k7r+pABCGcIhrSwxVWYzjh8uu20nasZHdR04O1AXLD9c9NWb4mXcwEhBpifj5ZVszqpT GAHNljUdGNXxdAWnU4l6pHUFtFpkaUS7iIuSYiQ0VwNV5ho3pIYWg2/NXmWJZ9+KmaDr pN3TU3SRitK48x9LVsJrOeJYo7fwNBPYYKgHr/+ioZV/qWw4NWLoMH/sljtAK6H3wSVE ViaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=hS/+1h9LH0dSrKhKkhmE1qmPgTReBC+dMTYwWwKcPy0=; b=L5io42o9hO2YyE2eRQU4O0Zg+HuEqGiTB/Iq+ghIspTyVpyxs+HNdQ7pc+pFzRpRAL 1KNZYZE+Oa581v1SAutyZPVGuyrmDdkj7v7oV93LLnQa128YT4w6qM8ad+kgqtHBupWn wgspxfuCgF0Ww6+we7o9Cto6hps85k0Z9QjwveHirMiGv7Dm3uFQoHV8Rpbz1bG/vAGE CVVP9q3Xv4QG200UW+xRxUyrua4Avvzk7mhisT8v2N+A7/OwGYRwMf694E5Gvk6RWUDF jY7nPUq7ARtsiGrIzUcMRdKirjKw4S7H5JmyHOLom8ba2fM1RFcJ5C2ObZ5CNXL7m7ag j0DA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=jCwP6yIO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f11-v6si4953870plm.244.2018.09.28.06.15.54; Fri, 28 Sep 2018 06:16:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=jCwP6yIO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729039AbeI1Tj1 (ORCPT + 99 others); Fri, 28 Sep 2018 15:39:27 -0400 Received: from us01smtprelay-2.synopsys.com ([198.182.60.111]:37628 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726068AbeI1Tj0 (ORCPT ); Fri, 28 Sep 2018 15:39:26 -0400 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 Cc: linux-kernel@vger.kernel.org, Vineet Gupta , Alexey Brodkin , Rob Herring , devicetree@vger.kernel.org, Eugeniy Paltsev 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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>; +}; -- 2.14.4