From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4CD39EEA870 for ; Fri, 13 Feb 2026 09:57:32 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4fC6zG5sf6z2yL8; Fri, 13 Feb 2026 20:57:30 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip="2600:3c0a:e001:78e:0:1991:8:25" ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1770976650; cv=none; b=QiZtT/NhWc2qGpdMDeaCOK/Ag+HzBk50ql20x20Wg26Y8HuZNp3HisT1Dff1F6a/MEVrSP4ADk7BmcXfNmDE/6rirVc5oibJdFotZonrgLhuVmAfOPEklnZMdwf36zTibkWk5Ou9UbOBAfQ4Z9JUduJooycCaon08Xf4tJqi6KxPYRW4lNRkO+Znd+4ymtEgN9DmUWntG7ceDM+cVdyiOUOe0DCnXL79u1562nUHxRzfnC1Wn3bZQlklX55TQf00SbUbRKW+AH5oNlAmSJmenrTotvfhrW20Np09RCjj1mJ1j0bOiWNy78CIsQ70pfUlJGtiigdKIzTqI8X/i/60pw== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1770976650; c=relaxed/relaxed; bh=zUmr4hbNcDYbTKWADGc4qpcDjjSQWQ0xdF/kJFW0B5Y=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=IV/gz1MnFqHM0lJSUvepw/YwyZG6DvkLgWmkpfDhvod1o0v6Rwfud6n1UBhS6Jyn+cddhHJFajxK5Jo7AmdlQ/dI5888sKU8XG0P90k5GEzO+KRBUA56gIr4/R3tMDEUHWUaSuxNo9hvrDsK8PvWhJldsO1SEF+0nQoYBHhN64SLZBKdnA5fdXTPZQLlovGlpElInP5x+XT8rUaASpXb5ZdLR3O/ll9Ve/ZVAC8v9llRfwPiLS6i0IPBqzIG8H1emOeTtbsZ1q/eyXbWpR8USeJgY4ygw2hwzXoeVR6yGVePnftP0zkCgDZ0JRmlqi9aULYB1wEZhNjiKRvNhXAwXw== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=hBTUOxlt; dkim-atps=neutral; spf=pass (client-ip=2600:3c0a:e001:78e:0:1991:8:25; helo=sea.source.kernel.org; envelope-from=krzk@kernel.org; receiver=lists.ozlabs.org) smtp.mailfrom=kernel.org Authentication-Results: lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=hBTUOxlt; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=2600:3c0a:e001:78e:0:1991:8:25; helo=sea.source.kernel.org; envelope-from=krzk@kernel.org; receiver=lists.ozlabs.org) Received: from sea.source.kernel.org (sea.source.kernel.org [IPv6:2600:3c0a:e001:78e:0:1991:8:25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4fC6zF1Lqvz2xdY for ; Fri, 13 Feb 2026 20:57:29 +1100 (AEDT) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 89D0940901; Fri, 13 Feb 2026 09:57:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 21E49C116C6; Fri, 13 Feb 2026 09:57:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1770976646; bh=2AQE3QvHfFwbeib4XB2oHCuNMDAdcVSPDzImHY2Ftfk=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=hBTUOxltPIsaDiVD7gHWR7i0fy2c23VIRLAdoyBQ/Fqi/GPE0FaqQnpZoeLyssC+T huKhljhCUHYTJCGzAs4gvCSGJkSkPyDZpdByeaScn6+aNJ8ADm72Gj/Ctvv5nSqzOd ZWT6aqeSYxruwPCMCpRfmK4eXNxhpnFQLIr/Hju9dqSYIHxGnJAXaPgN9jsjyB5irA xt74TUW3yf2Dw/Xt16L1uk1DiZcOfBVw1m3fZmbnF/WwLhc89vKA/h/aHqIu7csTP9 4GKNPVz/xTQwiDb05fD4Y3IhMjkBqC2n9pyndaKGiLoi93SJLSMuuVi9D0XM308qKq glolakPnznDpw== Message-ID: <5d371a1d-0265-4c59-95dd-19d23bf596d7@kernel.org> Date: Fri, 13 Feb 2026 10:57:21 +0100 X-Mailing-List: linux-aspeed@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , List-Unsubscribe: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC 1/2] dt-bindings: pinctrl: Add pinctrl-packed To: Billy Tsai , Linus Walleij , Tony Lindgren , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Stanley , Andrew Jeffery , Bartosz Golaszewski Cc: patrickw3@meta.com, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, BMC-SW@aspeedtech.com References: <20260213-pinctrl-single-bit-v1-0-c60f2fb80efb@aspeedtech.com> <20260213-pinctrl-single-bit-v1-1-c60f2fb80efb@aspeedtech.com> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+wsGVBBMBCgA/AhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3VBuTQ307QWKbBQJoF1BKBQkWlnSaAAoJEBuTQ307 QWKbHukP/3t4tRp/bvDnxJfmNdNVn0gv9ep3L39IntPalBFwRKytqeQkzAju0whYWg+R/rwp +r2I1Fzwt7+PTjsnMFlh1AZxGDmP5MF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plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 13/02/2026 09:17, Billy Tsai wrote: > Add a Devicetree binding for a generic pin controller where pinmux and/or > pin configuration are represented as fixed-width fields packed > sequentially within shared registers. > > The binding targets controllers that are typically exposed as subnodes of > a syscon node and accessed via regmap-mmio through the parent. > > Signed-off-by: Billy Tsai > --- > .../bindings/pinctrl/pinctrl-packed.yaml | 166 +++++++++++++++++++++ > 1 file changed, 166 insertions(+) > > diff --git a/Documentation/devicetree/bindings/pinctrl/pinctrl-packed.yaml b/Documentation/devicetree/bindings/pinctrl/pinctrl-packed.yaml > new file mode 100644 > index 000000000000..dd01ba2fed71 > --- /dev/null > +++ b/Documentation/devicetree/bindings/pinctrl/pinctrl-packed.yaml > @@ -0,0 +1,166 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/pinctrl/pinctrl-packed.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Generic Pin Controller with Packed-Field Registers > + > +maintainers: > + - Billy Tsai > + > +description: > + This binding describes pin controller hardware where pinmux and/or > + pin configuration fields are represented as fixed-width fields packed > + sequentially within shared registers. > + > + Such controllers are commonly embedded within a larger system control > + unit (SCU) register block and may be exposed as subnodes of a syscon > + device. > + > + Conceptually, this model is related to the pinctrl-single binding, > + but instead of describing individual register offsets via > + tuples, the hardware provides fixed-width, > + per-pin fields packed linearly within shared registers. Why this cannot be part of pinctrl-single then? Why all these properties are needed? I imagine that you need them to customize the generic binding to your device and that would be counter argument - generic bindings are too generic so people need to grow them with hundreds properties (see the very simple binding of simple audio card). > + > +properties: > + compatible: > + oneOf: Drop oneOf > + - enum: > + - pinctrl-packed > + - pinconf-packed > + > + reg: > + maxItems: 1 > + > + '#pinctrl-cells': > + description: > + The pinctrl provider uses standard state nodes referenced by pinctrl-N > + properties; consumers do not pass per-pin arguments via phandle. > + const: 1 > + > + pinctrl-packed,function-mask: > + description: Mask of the allowed register bits for a single pin. > + $ref: /schemas/types.yaml#/definitions/uint32 > + > + pinctrl-packed,gpio-range: > + description: Optional list of pin base, nr pins & gpio function. > + $ref: /schemas/types.yaml#/definitions/phandle-array > + items: > + items: > + - description: phandle of a gpio-range node > + - description: pin base > + - description: number of pins > + - description: gpio function > + > +patternProperties: > + '-pins(-[0-9]+)?$|-pin$': > + type: object > + additionalProperties: false > + > + properties: > + pinctrl-packed,pins: No, use standard pinctrl properties. > + description: Array of pin index and function selector pairs. > + $ref: /schemas/types.yaml#/definitions/uint32-array > + > + pinctrl-packed,bias-pullup: > + description: Optional bias pull-up configuration. > + $ref: /schemas/types.yaml#/definitions/uint32-array > + maxItems: 4 > + items: > + - description: Input value. > + - description: Enabled pull-up bits. > + - description: Disabled pull-up bits. > + - description: Pull-up mask. > + additionalItems: false > + > + pinctrl-packed,bias-pulldown: > + description: Optional bias pull-down configuration. > + $ref: /schemas/types.yaml#/definitions/uint32-array > + maxItems: 4 > + items: > + - description: Input value. > + - description: Enabled pull-down bits. > + - description: Disabled pull-down bits. > + - description: Pull-down mask. > + additionalItems: false > + > + pinctrl-packed,drive-strength: > + description: Optional drive strength configuration. > + $ref: /schemas/types.yaml#/definitions/uint32-array > + maxItems: 2 > + items: > + - description: Drive strength value. > + - description: Drive strength mask. > + additionalItems: false > + > + pinctrl-packed,input-schmitt: > + description: Optional input Schmitt trigger configuration. > + $ref: /schemas/types.yaml#/definitions/uint32-array > + maxItems: 2 > + items: > + - description: Schmitt trigger value. > + - description: Schmitt trigger mask. > + additionalItems: false > + > + pinctrl-packed,input-schmitt-enable: > + description: Optional input Schmitt enable configuration. > + $ref: /schemas/types.yaml#/definitions/uint32-array > + maxItems: 4 > + items: > + - description: Input value. > + - description: Enable bits. > + - description: Disable bits. > + - description: Schmitt mask. > + additionalItems: false > + > + pinctrl-packed,low-power-mode: > + description: Optional low power mode configuration. > + $ref: /schemas/types.yaml#/definitions/uint32-array > + maxItems: 2 > + items: > + - description: Low power value. > + - description: Low power mask. > + additionalItems: false > + > + pinctrl-packed,slew-rate: > + description: Optional slew rate configuration. > + $ref: /schemas/types.yaml#/definitions/uint32-array > + maxItems: 2 > + items: > + - description: Slew rate value. > + - description: Slew rate mask. > + additionalItems: false > + > +required: > + - compatible > + - reg > + - "#pinctrl-cells" > + - pinctrl-packed,function-mask > + > +additionalProperties: false > + > +allOf: > + - $ref: pinctrl.yaml# > + > +examples: > + - | > + syscon@0 { > + compatible = "syscon", "simple-mfd"; This is not allowed and you will have warnings here, which means you did not test the binding correctly (completely). Not even needed here, drop entire node. Best regards, Krzysztof