Re: [PATCH v2 1/2] dt-bindings: pinctrl: xilinx: Add support for function with pins

From: Rob Herring
Date: Wed May 22 2024 - 10:48:54 EST


On Mon, May 20, 2024 at 11:04:23AM -0400, Sean Anderson wrote:
> Support specifying the function per-pin. The driver doesn't care
> whethern you use pins or groups for this purpose.
>
> Signed-off-by: Sean Anderson <sean.anderson@xxxxxxxxx>
> ---
>
> (no changes since v1)
>
> .../bindings/pinctrl/xlnx,zynqmp-pinctrl.yaml | 344 +++++++++---------
> 1 file changed, 176 insertions(+), 168 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/pinctrl/xlnx,zynqmp-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/xlnx,zynqmp-pinctrl.yaml
> index f13d315b5d5e..d3b258245e28 100644
> --- a/Documentation/devicetree/bindings/pinctrl/xlnx,zynqmp-pinctrl.yaml
> +++ b/Documentation/devicetree/bindings/pinctrl/xlnx,zynqmp-pinctrl.yaml
> @@ -42,179 +42,187 @@ patternProperties:
> $ref: pinmux-node.yaml#
>
> properties:
> + pins:
> + description:
> + List of pins to select (either this or "groups" must be specified)

Express as a schema:

oneOf:
- required: [pins]
- required: [groups]


> + items:
> + pattern: '^MIO([0-9]|[1-6][0-9]|7[0-7])$'
> +
> groups:
> description:
> List of groups to select (either this or "pins" must be
> specified), available groups for this subnode.
> items: