Re: [PATCH 1/3] dt-bindings: usb: vialab,vl817: use unevaluatedProperties
From: Icenowy Zheng
Date: Tue Nov 24 2026 - 14:32:32 EST
在 2026-11-24二的 18:16 +0000,Conor Dooley写道:
> On Tue, Nov 24, 2026 at 04:31:01PM +0800, Icenowy Zheng wrote:
> > Currently the VL817 binding has additionalProperties set to false
> > instead of unevaluatedProperties, which disallows properties documented
> > in the parent schema.
>
> This is not quite true though, they're permitted if the binding contains
> "foo: true" etc - which this one does.
>
> > Change it to unevaluatedProperties, which is the better practice for
> > derived schemas.
>
> Not really, it's fine to do addtionalProps: false + foo: true if only
> a subset of the inherited properties are valid.
The main meaning here is to allow downstream nodes described in the usb-
hub.yaml file, especially downstream device nodes (which was a regular
expression match in usb-hub.yaml).
I don't think it wise to duplicate that regular expression in all hub
binding files.
However maybe I should change the commit message?
>
> IMO this series should be two patches, or maybe even just one that
> changes the ref (as your patch 2 does) and sets the then derived
> property to true. Otherwise, this should be two patches, with patch 3
> split into whichever of patch 1 and 2 is relevant.
I'm okay to just drop patch 3; in fact I send it as a split patch just
because I'm feeling that it's not so needed.
In addtion I'm also okay to squash patch 1 and 2.
Thanks,
Icenowy
>
> >
> > Signed-off-by: Icenowy Zheng <zhengxingda@xxxxxxxxxxx>
> > ---
> > Documentation/devicetree/bindings/usb/vialab,vl817.yaml | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/Documentation/devicetree/bindings/usb/vialab,vl817.yaml b/Documentation/devicetree/bindings/usb/vialab,vl817.yaml
> > index c815010ba9c2e..d0484e48e319c 100644
> > --- a/Documentation/devicetree/bindings/usb/vialab,vl817.yaml
> > +++ b/Documentation/devicetree/bindings/usb/vialab,vl817.yaml
> > @@ -40,7 +40,7 @@ required:
> > - vdd-supply
> > - peer-hub
> >
> > -additionalProperties: false
> > +unevaluatedProperties: false
> >
> > examples:
> > - |
> >
> > --
> > 2.56.0
> >
> >