Received: by 10.213.65.68 with SMTP id h4csp73457imn; Mon, 26 Mar 2018 15:29:05 -0700 (PDT) X-Google-Smtp-Source: AG47ELtbEO5t8KMV3ALoYQF8f6wWIhYDVHSAgnYhQ82Bny3ui2/rO5H2R6N9bMNEhvkaYX99uYBU X-Received: by 2002:a17:902:a9c7:: with SMTP id b7-v6mr41517485plr.190.1522103345250; Mon, 26 Mar 2018 15:29:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522103345; cv=none; d=google.com; s=arc-20160816; b=VJRaBGQbbs+jBbNhdzUWKxMN+UvKtM+VlMSNnrx1lLSla2JTTZZL6MIaYKu9otVoAp L2oIiNjPl1GflV+1dtWh2Cr2zAKNoW+LEy3oZJWG887xZuyvkXrSxtYSXtsojPaC0v0Y jDdVWJNTKfZIu+e+ng7j54cv7dTOyjCJGC0r/LsIukQu2lVlFbeFO/2LjB6wz5m+DkFD XlY9bK8vZZtPb/da7ONcIJ0pIIcwPIYjtYdZinvxprsnyDB76z2WG+BTIv1MKs+l5GR1 MH6wT81BOkWVAyWd28f8ZL8mmjOC2V6VLg90kDBwIJtJk90zNZt4P40ZXQcg3FZM0t00 JPxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=Xhb1X2YQBeXvwc0QSuxVH7Rv+N5LrS7mdjT64Fsksvs=; b=cbXjo8f66ohQ9kCaEytF1fxQLnZOy69EF2zn9By8SlYCJMDSbbuxZ4BOiqqaWB3R/G IhgxnXFfGFJKmhCc4bsOhumtizh//otQioGJiERu4XxikGfk1XvQgnxs6CVZVWz/oBKL vCI5fbDJ93uQixQO2tXarGh2v51QsGoBawUIHxiSIYVLpmKVZzwMaSFRelLrakvMnUWb DvZRvUWV+Y/5wFccQ9uiU/9LzDqfO3Wmgl8Ygg3DSrSqQnPW5nbbO0TsSBs2xXMOPo48 8nyl8l/dhyOUJLuue5+Jroh0YkwWbaW/oIwJiM2HZIMwokBPj3uCZQJwaX7zDeHJNcl5 2aqA== 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 4-v6si15446131plh.540.2018.03.26.15.28.50; Mon, 26 Mar 2018 15:29:05 -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 S1752739AbeCZW1S (ORCPT + 99 others); Mon, 26 Mar 2018 18:27:18 -0400 Received: from mail-ot0-f194.google.com ([74.125.82.194]:43236 "EHLO mail-ot0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752776AbeCZWZD (ORCPT ); Mon, 26 Mar 2018 18:25:03 -0400 Received: by mail-ot0-f194.google.com with SMTP id m22-v6so22408571otf.10; Mon, 26 Mar 2018 15:25:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Xhb1X2YQBeXvwc0QSuxVH7Rv+N5LrS7mdjT64Fsksvs=; b=SFwTwD2B+fjLm08wJ+YuttMuLetGm6wTd8t5VDifLAdZf5WtAICVHAfcnLqSnaFDHq kjNOlwEPV92YP9EGnVTh50yNF9MdYxft/aWJQ4xCdzHhIlKUK6eiyOvZ3Q1pkfzHb96j R+5ZIciMzym/tzDPVVV9EE1a/QZeod+o4edFKfCq18nXZbNpDWWk5Jy044CyOIWNsZH3 RplQgcr62O3TDlb9HE80j7aA1OhIrvnIh7Ad2zVcyNvShfUosHKSoGGnh1kJ7KrCBJ0G Sp4ENeAznb2wjqbKUiRIcmIszChQfVjPnupvVXeeG4r9jxCVSwn58Btx269aC9UczgQx ICXQ== X-Gm-Message-State: AElRT7G8rF4DU+O0TP6yypaISESPSUvW7DRnt6ft6Vz7qP3gRL9Oed6Q JJTD1p+zLkjHCCnBUUqJHQ== X-Received: by 2002:a9d:5a14:: with SMTP id v20-v6mr4321660oth.349.1522103102524; Mon, 26 Mar 2018 15:25:02 -0700 (PDT) Received: from localhost (216-188-254-6.dyn.grandenetworks.net. [216.188.254.6]) by smtp.gmail.com with ESMTPSA id y8-v6sm10202246otd.67.2018.03.26.15.25.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 26 Mar 2018 15:25:01 -0700 (PDT) Date: Mon, 26 Mar 2018 17:25:01 -0500 From: Rob Herring To: Boris Brezillon Cc: Wolfram Sang , linux-i2c@vger.kernel.org, Jonathan Corbet , linux-doc@vger.kernel.org, Greg Kroah-Hartman , Arnd Bergmann , Przemyslaw Sroka , Arkadiusz Golec , Alan Douglas , Bartosz Folta , Damian Kos , Alicja Jurasik-Urbaniak , Cyprian Wronka , Suresh Punnoose , Rafal Ciepiela , Thomas Petazzoni , Nishanth Menon , 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 Subject: Re: [PATCH v3 11/11] dt-bindings: gpio: Add bindings for Cadence I3C gpio expander Message-ID: <20180326222501.exvvdjb6fbrtsvkv@rob-hp-laptop> References: <20180323110020.19080-1-boris.brezillon@bootlin.com> <20180323110020.19080-12-boris.brezillon@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180323110020.19080-12-boris.brezillon@bootlin.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 23, 2018 at 12:00:20PM +0100, Boris Brezillon wrote: > 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 { The unit address is wrong here. > + reg = <0 0x392 0x0>; > + gpio-controller; > + #gpio-cells = <2>; > + interrupt-controller; > + #interrupt-cells = <2>; > + }; > + ... > + }; > -- > 2.14.1 >