Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4184361imm; Tue, 11 Sep 2018 08:10:19 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaxjMrY/R47YCgxiIU6oCxo3WevQM5o6VLuCq3E2A4MV8EjBF6N/+Xvl9+yqpDNAgq5VtXJ X-Received: by 2002:a63:334c:: with SMTP id z73-v6mr8923306pgz.220.1536678619767; Tue, 11 Sep 2018 08:10:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536678619; cv=none; d=google.com; s=arc-20160816; b=BdDbas4WFLM3cDVuRI3sUqGer3jLT0Q+uc04d5ajLfWSViyhtSIAI8mJvCjWLXv7TU scPYNJ6qUkSMJSQusLcWO44MeCgqPOXsYbAtLzWDy2AG0BMenpeb8l4aYs1EBfL4s44d 7utMBTE9i/P28DJ+/OABmWsPJsMKrsJdQrOAsTP1CLkPytIDNF2iTIvpQhXeUbfPpwo3 m9E02iLS3zQdkGokoS3KQixqYKF8X8UQElz6USJ1EuXsfj3Y1rEPQ5k40+tKejsNshI7 XqJf/LuNTN52o4vDJy0uPX2T/HbJ+gDAM1CzksMVwi/9tmLWif5Cn383/7sLGmU8xD9d zDyw== 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=4kKweHoyCehHpa0H0mkYR8UHlONl/+APni7rzoa85qY=; b=uPLy5paFqJc1IkTZQhjzsa/+S+UO4TwYb6O8YfO4iBXUNIUe3B6IFx2/iPGjfK3Seh DmN98JWtIDkgc0bhD6/8YB2hn36EXzF4r/LSw4TSpbEINrbVstMGYIpXxAH8rfS1hdSO 1GTEZAkDE2xPEeBDDtCBiPK6eVC4JYP0PemnFC24mD6a44mq8ez0/FqfPWUWykEhcrU7 8r4DBjJTkQQyasr1Usao38Pg+1tq/TC5Z+2z4mpLxhLenFcR9HW/k+vFLUijrEaQ1bHh 29sONM0dPi7LzLoNHLi8V75ppkdvZrE8Gfc/fTSRWcneZ7xjKXRy/RyKvznsgS3PZzC8 Pgkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=bJEKvIV+; 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 v5-v6si18568155plo.380.2018.09.11.08.09.58; Tue, 11 Sep 2018 08:10:19 -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=bJEKvIV+; 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 S1727752AbeIKUJX (ORCPT + 99 others); Tue, 11 Sep 2018 16:09:23 -0400 Received: from us01smtprelay-2.synopsys.com ([198.182.47.9]:56638 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726622AbeIKUJX (ORCPT ); Tue, 11 Sep 2018 16:09:23 -0400 Received: from mailhost.synopsys.com (mailhost2.synopsys.com [10.13.184.66]) by smtprelay.synopsys.com (Postfix) with ESMTP id EAF0424E214F; Tue, 11 Sep 2018 08:09:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1536678580; bh=JQ2w1TjaJmRj86/EaRFySVFU3qM4zRrI9mZBAhvH0t4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bJEKvIV+nnE46Ge13wMfpMgigvWB5ClaZRZM9duuaDqx9TDpvoHKF08z0GOqT4iVO xBvh6SrHMQYbsQvtCPs+Ac1CklSRtwzSGytM74Vmi3daq7KLTXZlxz1udRmr4TeX92 50nBXn7Xbf3PDc7Bz24/VYCDk0U1iy+srClTxsRfHGt8aIZEm5GLsNLCeYH2GiCIms YtTryfonNld14pNOfIQBHSErjaAejWeeLAMc97wGOcq9o3sDaaqxT/lp2lJA4ztQxS QsGzdosik+J7ErLtlrozM0qeSbYjByj9FlHGmzB8TGji15zcTm7iNsCm+4o46CqFq/ Y6NPXjEQ1c4PA== Received: from paltsev-e7480.internal.synopsys.com (paltsev-e7480.internal.synopsys.com [10.121.3.37]) by mailhost.synopsys.com (Postfix) with ESMTP id 251643B2E; Tue, 11 Sep 2018 08:09:36 -0700 (PDT) From: Eugeniy Paltsev To: linux-snps-arc@lists.infradead.org, linux-gpio@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Vineet Gupta , Alexey Brodkin , Linus Walleij , Rob Herring , devicetree@vger.kernel.org, Mark Rutland , Eugeniy Paltsev Subject: [PATCH v3 2/2] dt-bindings: Document the Synopsys GPIO via CREG bindings Date: Tue, 11 Sep 2018 18:09:25 +0300 Message-Id: <20180911150925.19460-3-Eugeniy.Paltsev@synopsys.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180911150925.19460-1-Eugeniy.Paltsev@synopsys.com> References: <20180911150925.19460-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. Signed-off-by: Eugeniy Paltsev --- .../devicetree/bindings/gpio/snps,creg-gpio.txt | 18 ++++++++++++++++++ 1 file changed, 18 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..11aba2f34066 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/snps,creg-gpio.txt @@ -0,0 +1,18 @@ +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 : Should be one - the pin number. +- 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 = <1>; + ngpios = <2>; +}; -- 2.14.4