Re: [PATCH 1/3] dt-bindings: usb: vialab,vl817: use unevaluatedProperties

From: Conor Dooley

Date: Tue Nov 24 2026 - 13:17:02 EST


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.

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.

>
> 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
>
>

Attachment: signature.asc
Description: PGP signature