Re: [PATCH v3 1/1] dt-bindings: pinctrl: Update pinctrl-single to use yaml

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jan 16, 2023 at 07:10:59PM +0200, Tony Lindgren wrote:
> * Rob Herring <robh+dt@xxxxxxxxxx> [230116 16:39]:
> > I imagine you don't want to go change all these node names, so I'd
> > make the schema accept them.
> 
> Heh yeah, I was wondering about that too :) Some can be handled with a
> regex, but there are still a lot of completely custom names. If you have
> some preferred solution in mind, please let me know.

If just allowing 'pins' anywhere in the name is not enough, you can 
match on any other property with 'additionalProperties'. There's some 
examples in pinctrl bindings.

additionalProperties:
  type: object
  properties:
    ...

Or use 'unevaluatedProperties' if there's properties defined behind a 
$ref.

There's also this hack, but I try to avoid it:

patternProperties:
 '.*':
   if:
     type: object
   then:
     ...


Rob



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux