[PATCH v3 1/1] dt-bindings: pinctrl: Update pinctrl-single to use yaml
Rob Herring
robh at kernel.org
Tue Jan 17 12:04:37 PST 2023
On Mon, Jan 16, 2023 at 07:10:59PM +0200, Tony Lindgren wrote:
> * Rob Herring <robh+dt at kernel.org> [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
More information about the linux-arm-kernel
mailing list