Received: by 10.213.65.68 with SMTP id h4csp254150imn; Fri, 23 Mar 2018 04:02:03 -0700 (PDT) X-Google-Smtp-Source: AG47ELs4Q6TZqRqt38IEqI/hTwfbN3ghfb+JjncCdkQvXDBDgku4bf571CL+ZWnL4Y9drf6how+G X-Received: by 2002:a17:902:2d24:: with SMTP id o33-v6mr15690560plb.143.1521802923884; Fri, 23 Mar 2018 04:02:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521802923; cv=none; d=google.com; s=arc-20160816; b=l/mJNb/tFeYvdbDDNfqpps8+nd4UyxHzy1tCLyHPuvzoZOiY6U2FYmadviBr6FQDpT YAO5V3M0gstnWyeLq4xHfBHUZofLa8M2S2ldxWba93PQSqU7DxO4vBE3Qn+Obaxnu0Sy sS/EKOvYPPEtwT3AdSGPcJYI3ce8Nbh8xzX+hmr9UDmnMYwhMMRbj4EO2WcF0bhK7Ege H7TQqLk43puabBwXjz4Fc1csahi0UBzOck+zsDGItdoRv7iFa75u+pOYw6kf5eBJp3Gb icF6s2mLwWVQcWDXb1rk4C182plTRwJ9MTZC0IkrzPeRGXjSyzq6NDJepVf1o+UUiur2 BVnA== 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:arc-authentication-results; bh=gkgdTDR+m/wLpBsG3M/rleTTlEnk5IAv8pE8acAsJ8k=; b=Pr0PtswM1Ry3abSONnmQJdjtAb3P5grks4g1fFDqYvS/nErOL2/19F0KKRWJYITSA/ Vdnag1xLrH5O/CFfi/lCAflLAWoCCUVPP3A7pWOjAKZNkI4U7Fn6OyH0615oyo6Ae53m 1nqU7nHQFtCFr+1G+uou7/osOMHMT9W9OjsWCH9ukibcrjm7yBdO9w8XmyEgvP0OXRR+ e4WCj5zUGa2cR7mI9qOSUDeD5h+5SbsXOc9F6jPGlfUsKg0trLSK6dUeQ1wy9awZgRGx PLMOPhnaM6ozmTqRIHM89xGMycUMsNTpjrI/PfYIyow7nU8ZweDQfaTcFfz6GljUtvbb 1o5w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m9-v6si8101923plt.6.2018.03.23.04.01.48; Fri, 23 Mar 2018 04:02:03 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756013AbeCWLAz (ORCPT + 99 others); Fri, 23 Mar 2018 07:00:55 -0400 Received: from mail.bootlin.com ([62.4.15.54]:43960 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755966AbeCWLAp (ORCPT ); Fri, 23 Mar 2018 07:00:45 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 30934208A6; Fri, 23 Mar 2018 12:00:40 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost.localdomain (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id 55F12208A9; Fri, 23 Mar 2018 12:00:29 +0100 (CET) From: Boris Brezillon To: Wolfram Sang , linux-i2c@vger.kernel.org, Jonathan Corbet , linux-doc@vger.kernel.org, Greg Kroah-Hartman , Arnd Bergmann Cc: Przemyslaw Sroka , Arkadiusz Golec , Alan Douglas , Bartosz Folta , Damian Kos , Alicja Jurasik-Urbaniak , Cyprian Wronka , Suresh Punnoose , Rafal Ciepiela , Thomas Petazzoni , Nishanth Menon , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Vitor Soares , Geert Uytterhoeven , Linus Walleij , Xiang Lin , linux-gpio@vger.kernel.org, Boris Brezillon Subject: [PATCH v3 11/11] dt-bindings: gpio: Add bindings for Cadence I3C gpio expander Date: Fri, 23 Mar 2018 12:00:20 +0100 Message-Id: <20180323110020.19080-12-boris.brezillon@bootlin.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180323110020.19080-1-boris.brezillon@bootlin.com> References: <20180323110020.19080-1-boris.brezillon@bootlin.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document the Cadence I3C gpio expander bindings. Signed-off-by: Boris Brezillon --- .../devicetree/bindings/gpio/gpio-cdns-i3c.txt | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-cdns-i3c.txt diff --git a/Documentation/devicetree/bindings/gpio/gpio-cdns-i3c.txt b/Documentation/devicetree/bindings/gpio/gpio-cdns-i3c.txt new file mode 100644 index 000000000000..634b1f268215 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/gpio-cdns-i3c.txt @@ -0,0 +1,38 @@ +* Cadence I3C GPIO expander + +The Cadence I3C GPIO expander provides 8 GPIOs controllable over I3C. +This GPIOs can be configured in output or input mode and if they are in input +mode they can generate IBIs (In Band Interrupts). + +Required properties for GPIO node: +- reg : 3 cells encoding the I3C static address (none in our case) and the I3C + Provisional ID. See Documentation/devicetree/bindings/i3c/i3c.txt for + more details. + Should be <0x0 0x392 0x0>. +- gpio-controller : Marks the device node as a gpio controller. +- #gpio-cells : Should be two. The first cell is the pin number and + the second cell is used to specify the gpio polarity: + 0 = active high + 1 = active low +- interrupt-controller: Marks the device node as an interrupt controller. +- #interrupt-cells : Should be 2. The first cell is the GPIO number. + The second cell bits[3:0] is used to specify trigger type and level flags: + 1 = low-to-high edge triggered. + 2 = high-to-low edge triggered. + 3 = triggered on both edges. + 4 = active high level-sensitive. + 8 = active low level-sensitive. + +Example: + + i3c-master@xxx { + ... + i3c_gpio_expander: gpio@0,1c9,0 { + reg = <0 0x392 0x0>; + gpio-controller; + #gpio-cells = <2>; + interrupt-controller; + #interrupt-cells = <2>; + }; + ... + }; -- 2.14.1