From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oa1-f54.google.com (mail-oa1-f54.google.com [209.85.160.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 04E5E10FD for ; Wed, 11 Feb 2026 04:42:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770784971; cv=none; b=ahSqyrv++iElvC2ZhEDxhQK4O5dKkpth1/jZc988TzFWXadUicxxO1M94IywQ+9tmyxBnKGHtJwrY0jySg7o8m8JbR0VBNSw5mOp+70viPegX70AxYwyKYzNaKFcnDFNiQCBofWp9sIYCHX4uF9eEP16Uf2bShXJNdoiG6sLYcw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770784971; c=relaxed/simple; bh=pQeaDOzPamoeAF5ooQECreYyUnj19b18eNZDNf80rdY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AtOxpEaYvad2Hlv4hddsxC1+2IPX/AHtCRAqe3b0xzaoL1uJubPKTEzS4qnVjuEzG2hG+f07TYEVhLCBSH9Rq0GzsqKenqMVxi7TfzF/ZTpz734ROEKiXotHnHkhVhNcUg+sbLe9IgnMtVmQem5cPOvsTBUX+ub5nH5tHvG3vvg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=P8WzXhdS; arc=none smtp.client-ip=209.85.160.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="P8WzXhdS" Received: by mail-oa1-f54.google.com with SMTP id 586e51a60fabf-40866608701so834001fac.1 for ; Tue, 10 Feb 2026 20:42:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770784969; x=1771389769; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=/9Z7oU+P7jRFZrLVuDGug2HJhb2WxlffNp9qdHif4WU=; b=P8WzXhdSNrCtQvg2wJwKfg9ksjHo0lM5YgzkQcCIhEBkk7swVEaCirvULCQPW07C7+ hoN0wgJiCAOYJMKNjuGxTrA3tGpZaltI5zypP85OYBp0u9LGx1fK9II82R5YHkNqcF91 GC3ebT3jaESWD5MXIaIkSXwnDptaY3xbXvtnh5D+ogmmYExrHQbYoE2/Pc0JMOzpoavs 0v2r1WcFQodziStJpaDXbipX7tbEbN8UjCx2YPQRVsxBKhy1Rp2K60KnglDSX4VEAZnJ gR8Ko8oJfOHElCnZKLXyEpQb3KmpG3YvL4WI2FIAGDH/K1qqEWLKPDZ4AyzVFLpyJo0t H8Kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770784969; x=1771389769; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=/9Z7oU+P7jRFZrLVuDGug2HJhb2WxlffNp9qdHif4WU=; b=WrUN6HsldB8+5R+zUXfmXGZjHCtGyJB8Gu0LXbRbOCUQKp7tXzjTj4j8PSk/pJjnVv RPwmY+68uLYIq1QXKS2LfXk5vEYvvDPrISHT9uT7zu2I2UtbW/CIdd6Y0P0E+7BGXW99 8CXNG2MIbVMnBI6PjiITLDUwzV/mcEEd2brv0JIQq+Jyd5ClL5rCKNdW4cE9ybrBvdtZ fi4IwtTpjRdu6e3J//UP49uHQ6BtPtHLb4FMOtyBkSg714XOMfHZ49Mz4vgU4ZoPEciL 7G42p6uaBJb2nr4hRN1FYRCOBLNk2VpSkC3x57ujhRSOC/q09iupnNVD4fH82GPMugQ/ lfGA== X-Forwarded-Encrypted: i=1; AJvYcCWBs1AwIIh+15nZzyPdYnMwrqGs/zLms5GVfPv6ea2Y3B9xQGEbQjgPaM1I5tN/1LnP6Fj79o+6j7rIkgQ=@vger.kernel.org X-Gm-Message-State: AOJu0Yz8cyn6ylQVzi+zBQj1YsFL7u0GQ3d0tkZmROTxq2pXrvSn7a8I kKedNGEilyOat+gxft2dLORuWI/yqFppQInbwLGoMaGFdDsa3XeDBWwqcXa7vw== X-Gm-Gg: AZuq6aIri40gTE9kbv5Cir4CegMBB4CV50MLbR98JSBnKJ2cvGRqMIF19YtSM72WIuX /1ybD8KkYRFFqoTXQL4YIx1ZlpAVEp/t2WyiKDl1q07POYpNnGz3XD1QzGYhvl7PHEEdbSIQvAA 25D0cgCia56sv4XPAjIBUNqSUM691y8yC8UKaukus2tPv60M7UhNJnFypblADYzpkLQJTsEhRFo Zp+pd50I3X70MBayLNSQ/IptVgZmypFj+VvcvoOTNJ10Vpi29t2vQYjxnvRupK5w5wTDnUM252U Y9CIMoTWoOnUz5Moissb4anpuQPgQWHMIhJgg7XbOH9i+lJ1QPm8cmugGZGjLy5K7KRPPou2SwJ NtAUKv5hkAs5qAJDv6p4s083Eo2A5qgdvjwKmZoPYlBuMqqNGH2AZ5Vr8Mu9bBTgkaBVVAYxXw8 73smzvIBBoJ9PclOdOfYQr2ha8DYnNmfVSjwV7nXszicpY56eQsPX8KtwzmIbE59+eLZ2TmpORU 5Ds2lETOEKBQepuh0BtG8HJkMZtyAWwCTnlrQmD/HFOYVtqnFtNp0MPH/m58EVcYbGSBKOASQ== X-Received: by 2002:a05:6871:3401:b0:404:1525:10e6 with SMTP id 586e51a60fabf-40a970480c2mr7112051fac.49.1770784968730; Tue, 10 Feb 2026 20:42:48 -0800 (PST) Received: from james-x399.localdomain (71-218-105-26.hlrn.qwest.net. [71.218.105.26]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-40eaf16c383sm541309fac.14.2026.02.10.20.42.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Feb 2026 20:42:48 -0800 (PST) From: James Hilliard To: linux-gpio@vger.kernel.org Cc: James Hilliard , Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Alexander Stein , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/1] gpio: aggregator: add gpio-aggregator DT compatible Date: Tue, 10 Feb 2026 21:42:12 -0700 Message-ID: <20260211044216.2885718-1-james.hilliard1@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add an OF match entry for gpio-aggregator so the forwarder can be instantiated without using the delay-specific compatible. Add a minimal DT schema for gpio-aggregator documenting compatible. Signed-off-by: James Hilliard --- .../bindings/gpio/gpio-aggregator.yaml | 57 +++++++++++++++++++ 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 + +description: | + This binding describes a GPIO forwarder that exposes selected GPIO + 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 + + 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>; + }; diff --git a/drivers/gpio/gpio-aggregator.c b/drivers/gpio/gpio-aggregator.c index 416f265d09d0..a09752fc5fe2 100644 --- a/drivers/gpio/gpio-aggregator.c +++ b/drivers/gpio/gpio-aggregator.c @@ -1635,6 +1635,9 @@ static int gpio_aggregator_probe(struct platform_device *pdev) } static const struct of_device_id gpio_aggregator_dt_ids[] = { + { + .compatible = "gpio-aggregator", + }, { .compatible = "gpio-delay", .data = (void *)FWD_FEATURE_DELAY, -- 2.43.0