Received: by 10.213.65.68 with SMTP id h4csp1217564imn; Mon, 26 Mar 2018 03:18:39 -0700 (PDT) X-Google-Smtp-Source: AG47ELsL5i5ss2yz+qKFi3/OlSph+psxCFzpe7aoSPfRT37tZ4/axQYySz+i5R9LmE9KSzBUEogw X-Received: by 10.99.176.71 with SMTP id z7mr26432658pgo.74.1522059519715; Mon, 26 Mar 2018 03:18:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522059519; cv=none; d=google.com; s=arc-20160816; b=InUzDu+ezvMpJISW/5P+dNY0pJ7aqJq3C3I1msl9dIpwIUBvaR53aUwvKUWopjoyVJ Dg1vmcsLyJ6x8oeljAUHVYT4KqEYnCcUl5XrnShBKdvdLrZkQMSNWbWk3x+88kNTWn5L xH2+RNA0jXYAX7J3mJHANeSgBKxmH4WxRNHiJRGbwynwBX6TpatnWMKndvd4eqnPwYPJ sf/YjO/bpZMcVmc7z2W35rzvA98Zz3sSQjd5bsxYDgyvekoJGdsqtTjSMDGr1uhuHMcm N+nIspQn0IzZ0g78L5XMXvS4bWe9/f4G0uCnlfA9fNZkbC8dhYCjJRY4u8AJLZXxrCTu uV/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=ZKqOul/kec4iDidMaORhkR9f2Fbr1JLdFyV1peJH0Rk=; b=cvNYqKHQ8BizS5Oz7L6XfR/4WfR4ldVpNk9ZXR84TC+VYvZJxjOaW6rCi+Ht5Jh6VH M8k6TB0FsEkx5TU+Y0lWvuiyY/wNRh3ydDfEBUJDVF5Q1P1t/iymYI6W+/qhO4FwfwyT sc29tr0sGGgLAvMMqvgIiWEbHaAIYxTQEUEOpDCLNCuaNygSFrrwzWI1EHAQvFzpLVJT aPaaFxe2jJHM1KiLX7IW4oavugBfm2Jw/+5uvhpurKSUAisqjcViO/E8NW0O7n8KUeDn C/YEfN+vGxBR6ss/w/mXgkSwCOqNkqOatfA93vRQUgu+2ZsXJS/kcaenDVrJ0PEb3qp8 3Ejw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Zpmzi/7E; 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 z12si9754228pgp.572.2018.03.26.03.18.24; Mon, 26 Mar 2018 03:18:39 -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=fail header.i=@gmail.com header.s=20161025 header.b=Zpmzi/7E; 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 S1751134AbeCZKRb (ORCPT + 99 others); Mon, 26 Mar 2018 06:17:31 -0400 Received: from mail-qt0-f195.google.com ([209.85.216.195]:43575 "EHLO mail-qt0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750973AbeCZKR2 (ORCPT ); Mon, 26 Mar 2018 06:17:28 -0400 Received: by mail-qt0-f195.google.com with SMTP id s48so18953702qtb.10; Mon, 26 Mar 2018 03:17:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=ZKqOul/kec4iDidMaORhkR9f2Fbr1JLdFyV1peJH0Rk=; b=Zpmzi/7EBoHd+7COogm95hijSbafEDSANOmv8fcHyO1uZIaKkEqrVJt+7TJobqzagD iiKV93PjezsXlu76GxRHQBLbLDLxtazI/GfrPIBvHL0ZvFcX2oWA+956++kPvBv1zXev mywZI0avaSJ1Xq8WyZHXdPXz0OiyqXImWDFSxMJf7akM0LsQ/k+dPR+VhAMFbWK/+YIh 1oiqgfmEnJ79VwkZhwrxj6IU9H5QtnQD/NT7iA6Tf45Hs4gUaCMMLr2TTaw5FOpzzar8 CWou4vL65OaQJvIUTHJAnbuGmpE9NG/SXznqUxC7CxlNBu+BfvtrSulOkWwiKgtzuVWm /AoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=ZKqOul/kec4iDidMaORhkR9f2Fbr1JLdFyV1peJH0Rk=; b=sdOZTCwgi4KXd0RzgarsmOeX9zPpp71h621xi/DumG+wHNeB/PSWYLyf2wMzZb2SNr N43k9wgYoNQGe6wON1Yp/qtXs1d5hOJ1kAqY5fJCwTDVweWZtfY70YBg24HKqS/GZpTP Ngrw8UaCElC3cyko57bxHbehJuEaazALFQyRrKEuUpVMx34CBkU+bScZ+WrUH8gU/vKC A0R/FS65Il+v9cM88xf3hUoYaWkc50XDo5FenuLwYGPXbKVosNW40atrxEnw5i/VixKi k2Pb8pOnLXwBq4oOC1xIxpdwnD/C+QjZZnZl+QBu76NshB3J2oT4zUJcoISw6EyQ86d9 nrZQ== X-Gm-Message-State: AElRT7HUwzYzN7OiZaI0+z8TxcAKnxHvM0IdWGylEhh6EPTN4Z4yFj09 AC6NyA/Z3lMzd1wW5O7s6Ehtk3mMoBZiKPXmJlM= X-Received: by 10.200.27.3 with SMTP id y3mr56865415qtj.161.1522059447613; Mon, 26 Mar 2018 03:17:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.54.147 with HTTP; Mon, 26 Mar 2018 03:17:26 -0700 (PDT) In-Reply-To: <20180323110020.19080-12-boris.brezillon@bootlin.com> References: <20180323110020.19080-1-boris.brezillon@bootlin.com> <20180323110020.19080-12-boris.brezillon@bootlin.com> From: Geert Uytterhoeven Date: Mon, 26 Mar 2018 12:17:26 +0200 X-Google-Sender-Auth: ju2M0xymCiqy35mqHjEvEgkJzKc Message-ID: Subject: Re: [PATCH v3 11/11] dt-bindings: gpio: Add bindings for Cadence I3C gpio expander To: Boris Brezillon 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" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? > +- 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? > + reg = <0 0x392 0x0>; > + gpio-controller; > + #gpio-cells = <2>; > + interrupt-controller; > + #interrupt-cells = <2>; > + }; > + ... > + }; Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds