[PATCH v2 4/5] dt-bindings: pinctrl: airoha: Document AN7583 Pin Controller

Conor Dooley conor at kernel.org
Fri Nov 7 09:24:21 PST 2025


On Fri, Nov 07, 2025 at 12:57:07AM +0100, Christian Marangi wrote:
> Document Airoha AN7583 Pin Controller based on Airoha EN7581 with some
> minor difference on some function group (PCM and LED gpio).
> 
> To not bloat the EN7581 schema with massive if condition, use a
> dedicated YAML schema for Airoha AN7583.

You went to more effort than I would have here with that conditional!

> +patternProperties:
> +  '-pins$':
> +    type: object
> +
> +    patternProperties:
> +      '^mux(-|$)':
> +        type: object

What's up with this regex? Why does it allow either - or $?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-mediatek/attachments/20251107/71f64dd7/attachment.sig>


More information about the Linux-mediatek mailing list