From: Krzysztof Kozlowski <krzk@kernel.org>
To: James Hilliard <james.hilliard1@gmail.com>
Cc: linux-gpio@vger.kernel.org, Linus Walleij <linusw@kernel.org>,
Bartosz Golaszewski <brgl@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Geert Uytterhoeven <geert+renesas@glider.be>,
Alexander Stein <linux@ew.tq-group.com>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/1] gpio: aggregator: add gpio-aggregator DT compatible
Date: Wed, 11 Feb 2026 08:04:35 +0100 [thread overview]
Message-ID: <20260211-accurate-mini-mustang-2b2c9e@quoll> (raw)
In-Reply-To: <20260211044216.2885718-1-james.hilliard1@gmail.com>
On Tue, Feb 10, 2026 at 09:42:12PM -0700, James Hilliard wrote:
> Add an OF match entry for gpio-aggregator so the forwarder can be
> instantiated without using the delay-specific compatible.
Why? What problems or real hardware are you solving here?
>
> Add a minimal DT schema for gpio-aggregator documenting compatible.
>
> Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
> ---
> .../bindings/gpio/gpio-aggregator.yaml | 57 +++++++++++++++++++
Please run scripts/checkpatch.pl on the patches and fix reported
warnings. After that, run also 'scripts/checkpatch.pl --strict' on the
patches and (probably) fix more warnings. Some warnings can be ignored,
especially from --strict run, but the code here looks like it needs a
fix. Feel free to get in touch if the warning is not clear.
> drivers/gpio/gpio-aggregator.c | 3 +
> 2 files changed, 60 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/gpio/gpio-aggregator.yaml
>
> diff --git a/Documentation/devicetree/bindings/gpio/gpio-aggregator.yaml b/Documentation/devicetree/bindings/gpio/gpio-aggregator.yaml
> new file mode 100644
> index 000000000000..ec1d08f3db2c
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/gpio/gpio-aggregator.yaml
> @@ -0,0 +1,57 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/gpio/gpio-aggregator.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: GPIO aggregator controller
> +
> +maintainers:
> + - Alexander Stein <linux@ew.tq-group.com>
> +
> +description: |
Do not need '|' unless you need to preserve formatting.
> + This binding describes a GPIO forwarder that exposes selected GPIO
Explain the hardware, not the binding. Drop "this binding ......"
> + lines as a virtual GPIO controller.
> +
> +properties:
> + compatible:
> + const: gpio-aggregator
> +
> + "#gpio-cells":
> + description: Specifies the line offset and GPIO flags.
> + const: 2
> +
> + gpios:
> + description: Array of GPIOs to aggregate
> + minItems: 1
> + maxItems: 32
> +
> + gpio-controller: true
> +
> + gpio-line-names:
> + minItems: 1
> + maxItems: 32
> +
> +required:
> + - compatible
> + - "#gpio-cells"
> + - gpio-controller
> + - gpios
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/gpio/gpio.h>
> +
> + gpio_agg: gpio-aggregator {
> + compatible = "gpio-aggregator";
> + #gpio-cells = <2>;
> + gpio-controller;
> + gpios = <&gpio0 3 GPIO_ACTIVE_LOW>,
> + <&gpio3 1 GPIO_ACTIVE_HIGH>;
> + };
> +
> + consumer {
> + enable-gpios = <&gpio_agg 0 GPIO_ACTIVE_LOW>;
> + };
Drop node, not relevant. Anyway, I do not see any point in referencing
"gpio_agg 0" instead of "gpio0 3" and your commit msg fails to explain
that.
Best regards,
Krzysztof
prev parent reply other threads:[~2026-02-11 7:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-11 4:42 James Hilliard
2026-02-11 7:04 ` Krzysztof Kozlowski [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260211-accurate-mini-mustang-2b2c9e@quoll \
--to=krzk@kernel.org \
--cc=brgl@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=geert+renesas@glider.be \
--cc=james.hilliard1@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=linusw@kernel.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@ew.tq-group.com \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®