Received: by 10.213.65.68 with SMTP id h4csp1266498imn; Mon, 26 Mar 2018 04:23:13 -0700 (PDT) X-Google-Smtp-Source: AG47ELvrwvioL2Odfb3xDJBFdZguZSLEtH5b6tVV0mrwiqEBbtVsBQx8sysk9JQFRwHeG1Wd+91x X-Received: by 10.167.130.205 with SMTP id f13mr15737461pfn.20.1522063393907; Mon, 26 Mar 2018 04:23:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522063393; cv=none; d=google.com; s=arc-20160816; b=DCqG8Cv+05ZAtjIJ68SMDXVYkpkCbx+e2UST+XIJNSrcUr3ELHRO0hypAE9biRYhwj VUVbgNmVugAIr0VjqQjUGLF8EfxX1/GFylob2EThRbk4lPPgqK2t9aD+x013HN50VWal iVQC/b3zvfSDlW8eAT71gO3lM37W9uImHstYZaIXUQAPqQ6fZQ7WfIE4OPFEjYyI9KvF EFQbxHAnkeGl4TD8JuMeNrpoU5d6jz/9uS+gulFNZQnAvKp2GesDc2U8WwV7VujZUQmm fmI+gq2+VbpBHj+vxQUMt1LJ8J7mAW5qAeMLqPiO+y7BNemRFlUhbvjLkMDvpq66YGBT 7OkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=2jQw4yxVrKaZD0HjLyX5qwXh1nB5i96hKzKhK9Gzp24=; b=pX8U9EQiaWetSNaeYOfdWu/gK5OY/aip4EEYitT3W0cVV9GMMVPcyzt5p8gv02wS3P W7ZjHWC1oUlIwMyVhd+6XrnJMlPe28RCyc6NHCXY5uSKachwSqiK9Tgyrv6f9mbOQk3E Xgsj5wzlDeqyFz2xsCh6Hx1dpBYwk/B5lV8hkst23lqDLXlOrHqHf3nm5DmOaRcdeK7t EnYZPnvQ36ldWTNB3U3bbk7qM1ov+iX5//0K7Bt492FpiLBSlEvBF04q4nh8iRr+Elbz ZbOc35MCYOOji9f2Ib4I9KLrIKWjb5N2HCSj2DvK2Mp7EsqN0Dx8Yes9ufvhAJIFeeG8 lnnA== 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 h1-v6si14527832pln.216.2018.03.26.04.22.58; Mon, 26 Mar 2018 04:23:13 -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 S1751380AbeCZLWG (ORCPT + 99 others); Mon, 26 Mar 2018 07:22:06 -0400 Received: from mail.bootlin.com ([62.4.15.54]:40835 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750984AbeCZLWE (ORCPT ); Mon, 26 Mar 2018 07:22:04 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 569C320728; Mon, 26 Mar 2018 13:22:01 +0200 (CEST) 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 bbrezillon (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id 54CA2200FB; Mon, 26 Mar 2018 13:21:50 +0200 (CEST) Date: Mon, 26 Mar 2018 13:21:50 +0200 From: Boris Brezillon To: Geert Uytterhoeven Cc: Wolfram Sang , Linux I2C , 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 , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List , Vitor Soares , Linus Walleij , Xiang Lin , "open list:GPIO SUBSYSTEM" Subject: Re: [PATCH v3 11/11] dt-bindings: gpio: Add bindings for Cadence I3C gpio expander Message-ID: <20180326132150.31dda65f@bbrezillon> In-Reply-To: References: <20180323110020.19080-1-boris.brezillon@bootlin.com> <20180323110020.19080-12-boris.brezillon@bootlin.com> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Geert, On Mon, 26 Mar 2018 12:17:26 +0200 Geert Uytterhoeven wrote: > Hi Boris, > > On Fri, Mar 23, 2018 at 12:00 PM, Boris Brezillon > wrote: > > Document the Cadence I3C gpio expander bindings. > > > > Signed-off-by: Boris Brezillon > > Thanks for your patch! > > > --- /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>. > > No compatible value? See my other reply. > > > +- 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 { > > gpio@0,392,0? Actually, if I follow the DT bindings, it should be gpio@0,39200000000 Thanks, Boris -- Boris Brezillon, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com