Re: [PATCH v2 4/5] dt-bindings: pinctrl: airoha: Document AN7583 Pin Controller
From: Conor Dooley
Date: Fri Nov 07 2025 - 12:55:48 EST
On Fri, Nov 07, 2025 at 06:49:13PM +0100, Christian Marangi wrote:
> On Fri, Nov 07, 2025 at 05:24:21PM +0000, Conor Dooley wrote:
> > 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!
> >
>
> Well it was suggested by Rob and it's honestly a copy paste of en7581
> with the relevant thing changed.
>
> > > +patternProperties:
> > > + '-pins$':
> > > + type: object
> > > +
> > > + patternProperties:
> > > + '^mux(-|$)':
> > > + type: object
> >
> > What's up with this regex? Why does it allow either - or $?
>
> It's to permit either mux-* or unique node name with mux. Pattern is
> also used by mt7622 or other schema. Other use mux- to require a name
> after the mux.
Ah right, because you can have the config properties like drive
strength in the mux node, so sometimes a -pins has one mux node (mux:) if
all pins share settings and sometimes there could be multiple, which
requires a suffix.
Reviewed-by: Conor Dooley <conor.dooley@xxxxxxxxxxxxx>
pw-bot: not-applicable
Attachment:
signature.asc
Description: PGP signature