Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6163952ybv; Tue, 18 Feb 2020 11:09:47 -0800 (PST) X-Google-Smtp-Source: APXvYqzKhPYWUG4+gtAVZ569yngC4fpIe/Ibjwz9oDqy8aQdahXfeHg4GzLS4RnTzcAvmwmuxKTJ X-Received: by 2002:a9d:10d:: with SMTP id 13mr4407281otu.238.1582052987081; Tue, 18 Feb 2020 11:09:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582052987; cv=none; d=google.com; s=arc-20160816; b=uFu1gz3QWu5ypL/NoGSFvSxWMpcb4DaTGabwbUPwli1fiMTiUgpzrSE4m8BeZ+Kbzd Shb89tGRIHhH2aJM0b4FUoelKBAxHaRYYvjKu2yDWb3eXBa20sguEFJsAO59ndNKlzUK 1udqHQB4CQiNSqLvwRzCINg58AOdHCJJSUOaRxCqDthoJGAdrPwdCdvWfTtfTI1Xxprf d9owWK7CDk4laOhs+w5A6k2sIZ20C8ZZ0pnsshK0lFvXfT4egY7+D2BLhAWf5ruQ++/u IJTVY92NMh/eg45fOOabSWHtOPDbR5+Ira7NYtcgVTNgDl8xxo9w1gs1B48ZGCKdo9Bs uFhg== 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 :in-reply-to:references:mime-version; bh=4zbrnNvTNHgXxwjMJnfhT5sGHXVeYA3py+fC4nnQX1g=; b=Z2YVUAQ2IIhoQCZKlMsyOa8LQYy0TSn7XCpMH6fFUsrQIwroTBoq3F693xr9TPlZ4j VxM0wb1ZqAZsgrCqQo2rP3y9a7ygatXp6CZKNrRt2l4oOlWg1Lo20VH1yLHuyBEqHtG9 AddFq2DNgyAUde4jNQgdJ+d9rhLqTIG4qCjwXwQmQlqtBsAD1j0GxqZ1rC58dm5VkI+k eVV4mjrJkbNqA7tVgtDBmtZmPwxeGcZ3xS4I2IrBOpbjm5u6EUCuDY4ZEA7R/FYLUlU+ 0ebH4Bc2bUrT//S5ZILmarm6m8qRYWSc+NwALXu91SMnqN7ER7myHk35BvXsUFCyFMuZ jgjA== 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 u63si629638oif.88.2020.02.18.11.09.34; Tue, 18 Feb 2020 11:09:47 -0800 (PST) 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 S1726477AbgBRTJZ (ORCPT + 99 others); Tue, 18 Feb 2020 14:09:25 -0500 Received: from mail-oi1-f196.google.com ([209.85.167.196]:33125 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726283AbgBRTJY (ORCPT ); Tue, 18 Feb 2020 14:09:24 -0500 Received: by mail-oi1-f196.google.com with SMTP id q81so21273981oig.0; Tue, 18 Feb 2020 11:09:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4zbrnNvTNHgXxwjMJnfhT5sGHXVeYA3py+fC4nnQX1g=; b=hxHpfGZ1eg9pnSfPg5YL2okaL4jIsS3ewInVnRJIojrOl5G/z0s1qZnXQGBlQykB0f hSlxBgqWb6BCYu8bIp24/4I7qlQDPuGIv4AI3vUioZ4UzFg8hxphPf0RRLzr+cldvXl3 7C8RA+QYFKhThMLd+tcMT8v+n/yY//kQik1u4j95VqkNDyWyFsfU3abb2imPh0UvuMRy JAZWUXCnV6nEgfNcW+hu2OWemlrp55oaqJSU+18nZ18z8euYMqrz5sAdol8ixHfddVpH mlgv/p2nYrTIhUd4U29RfZ7i9N/eqnMUsC2KR+zyUnzpgKnXfQXQ4qa6nu1qDTLsG3i4 IzWQ== X-Gm-Message-State: APjAAAUCcdYj7HXVOR0jJtNGE+s7v2r1hNaO/oyoyr0yqCNQEBSmwIdM 3efZyMZ+BPjiTA5E+uxUwe6QBHivcrjFlUSxGH4= X-Received: by 2002:aca:48cd:: with SMTP id v196mr2308514oia.102.1582052963942; Tue, 18 Feb 2020 11:09:23 -0800 (PST) MIME-Version: 1.0 References: <20200218151812.7816-1-geert+renesas@glider.be> <20200218151812.7816-5-geert+renesas@glider.be> In-Reply-To: From: Geert Uytterhoeven Date: Tue, 18 Feb 2020 20:09:12 +0100 Message-ID: Subject: Re: [PATCH v5 4/5] docs: gpio: Add GPIO Aggregator documentation To: Randy Dunlap Cc: Linus Walleij , Bartosz Golaszewski , Jonathan Corbet , Harish Jenny K N , Eugeniu Rosca , Alexander Graf , Peter Maydell , Paolo Bonzini , Phil Reid , Marc Zyngier , Christoffer Dall , Magnus Damm , Rob Herring , Mark Rutland , "open list:GPIO SUBSYSTEM" , "open list:DOCUMENTATION" , Linux-Renesas , Linux Kernel Mailing List , QEMU Developers 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 Randy, On Tue, Feb 18, 2020 at 7:30 PM Randy Dunlap wrote: > On 2/18/20 7:18 AM, Geert Uytterhoeven wrote: > > Document the GPIO Aggregator, and the two typical use-cases. > > > > Signed-off-by: Geert Uytterhoeven > > --- /dev/null > > +++ b/Documentation/admin-guide/gpio/gpio-aggregator.rst > > @@ -0,0 +1,102 @@ > > +.. SPDX-License-Identifier: GPL-2.0-only > > + > > +GPIO Aggregator > > +=============== > > + > > +The GPIO Aggregator allows to aggregate GPIOs, and expose them as a new > > "allows" really wants an object following the verb [although the kernel sources > and docs have many cases of it not having an object]. Something like > > allows {you, one, someone, users, a user} to aggregate Thanks for the hint! > > + Example: Instantiate a new GPIO aggregator by aggregating GPIO > > + 19 of "e6052000.gpio" and GPIOs 20-21 of "gpiochip2" into a new > > + gpio_chip: > > + > > + .. code-block:: bash > > + > > + echo 'e6052000.gpio 19 gpiochip2 20-21' > new_device > > + > > Does the above command tell the user that the new device is named > "gpio-aggregator.0", as used below? Yes, it will be printed through the kernel log, cfr. the sample session in the cover letter. 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