* [PATCH 0/3] dt-bindings: usb: vialab,vl817: reparent to usb-hub.yaml
@ 2026-11-24 8:31 Icenowy Zheng
2026-11-24 8:31 ` [PATCH 1/3] dt-bindings: usb: vialab,vl817: use unevaluatedProperties Icenowy Zheng
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Icenowy Zheng @ 2026-11-24 8:31 UTC (permalink / raw)
To: Greg Kroah-Hartman, Matthias Kaehlcke, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Anand Moon
Cc: linux-usb, devicetree, linux-kernel, Icenowy Zheng, Han Gao,
Icenowy Zheng
Currently the VL817 schema is derived from usb-device.yaml despite it's
a USB hub (even a SS hub with a HS peer). In addition, it still sets
additionalProperties to false, which isn't the standard practice now of
derived schemas.
Both problems lead to rejection of downstream nodes, either OF graph
ports or directly attached downstream devices.
This patchset tries to fix these problem by setting
unevaluatedProperties, set allOf schema to usb-hub.yaml and remove
duplicated properties' description.
Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
---
Icenowy Zheng (3):
dt-bindings: usb: vialab,vl817: use unevaluatedProperties
dt-bindings: usb: vialab,vl817: derive from usb-hub.yaml
dt-bindings: usb: vialab,vl817: deduplicate properties in usb-hub.yaml
Documentation/devicetree/bindings/usb/vialab,vl817.yaml | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
---
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
change-id: 20261124-vl817-uneval-prop-9723e7bc36f1
Best regards,
--
Icenowy Zheng <zhengxingda@iscas.ac.cn>
^ permalink raw reply [flat|nested] 7+ messages in thread* [PATCH 1/3] dt-bindings: usb: vialab,vl817: use unevaluatedProperties 2026-11-24 8:31 [PATCH 0/3] dt-bindings: usb: vialab,vl817: reparent to usb-hub.yaml Icenowy Zheng @ 2026-11-24 8:31 ` Icenowy Zheng 2026-11-24 18:16 ` Conor Dooley 2026-11-24 8:31 ` [PATCH 2/3] dt-bindings: usb: vialab,vl817: derive from usb-hub.yaml Icenowy Zheng 2026-11-24 8:31 ` [PATCH 3/3] dt-bindings: usb: vialab,vl817: deduplicate properties in usb-hub.yaml Icenowy Zheng 2 siblings, 1 reply; 7+ messages in thread From: Icenowy Zheng @ 2026-11-24 8:31 UTC (permalink / raw) To: Greg Kroah-Hartman, Matthias Kaehlcke, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Anand Moon Cc: linux-usb, devicetree, linux-kernel, Icenowy Zheng, Han Gao, Icenowy Zheng Currently the VL817 binding has additionalProperties set to false instead of unevaluatedProperties, which disallows properties documented in the parent schema. Change it to unevaluatedProperties, which is the better practice for derived schemas. Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn> --- 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 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 1/3] dt-bindings: usb: vialab,vl817: use unevaluatedProperties 2026-11-24 8:31 ` [PATCH 1/3] dt-bindings: usb: vialab,vl817: use unevaluatedProperties Icenowy Zheng @ 2026-11-24 18:16 ` Conor Dooley 2026-11-24 19:32 ` Icenowy Zheng 0 siblings, 1 reply; 7+ messages in thread From: Conor Dooley @ 2026-11-24 18:16 UTC (permalink / raw) To: Icenowy Zheng Cc: Greg Kroah-Hartman, Matthias Kaehlcke, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Anand Moon, linux-usb, devicetree, linux-kernel, Icenowy Zheng, Han Gao [-- Attachment #1: Type: text/plain, Size: 1516 bytes --] 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@iscas.ac.cn> > --- > 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 #2: signature.asc --] [-- Type: application/pgp-signature, Size: 228 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/3] dt-bindings: usb: vialab,vl817: use unevaluatedProperties 2026-11-24 18:16 ` Conor Dooley @ 2026-11-24 19:32 ` Icenowy Zheng 2026-11-25 18:23 ` Conor Dooley 0 siblings, 1 reply; 7+ messages in thread From: Icenowy Zheng @ 2026-11-24 19:32 UTC (permalink / raw) To: Conor Dooley Cc: Greg Kroah-Hartman, Matthias Kaehlcke, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Anand Moon, linux-usb, devicetree, linux-kernel, Han Gao 在 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@iscas.ac.cn> > > --- > > 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 > > > > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/3] dt-bindings: usb: vialab,vl817: use unevaluatedProperties 2026-11-24 19:32 ` Icenowy Zheng @ 2026-11-25 18:23 ` Conor Dooley 0 siblings, 0 replies; 7+ messages in thread From: Conor Dooley @ 2026-11-25 18:23 UTC (permalink / raw) To: Icenowy Zheng Cc: Greg Kroah-Hartman, Matthias Kaehlcke, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Anand Moon, linux-usb, devicetree, linux-kernel, Han Gao [-- Attachment #1: Type: text/plain, Size: 2485 bytes --] On Wed, Nov 25, 2026 at 03:32:10AM +0800, Icenowy Zheng wrote: > 在 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? Please, and include the reason you've given here. > > 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. Yeah, you can probably just do the whole thing in one go. > > Thanks, > Icenowy > > > > > > > > > Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn> > > > --- > > > 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 #2: signature.asc --] [-- Type: application/pgp-signature, Size: 228 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 2/3] dt-bindings: usb: vialab,vl817: derive from usb-hub.yaml 2026-11-24 8:31 [PATCH 0/3] dt-bindings: usb: vialab,vl817: reparent to usb-hub.yaml Icenowy Zheng 2026-11-24 8:31 ` [PATCH 1/3] dt-bindings: usb: vialab,vl817: use unevaluatedProperties Icenowy Zheng @ 2026-11-24 8:31 ` Icenowy Zheng 2026-11-24 8:31 ` [PATCH 3/3] dt-bindings: usb: vialab,vl817: deduplicate properties in usb-hub.yaml Icenowy Zheng 2 siblings, 0 replies; 7+ messages in thread From: Icenowy Zheng @ 2026-11-24 8:31 UTC (permalink / raw) To: Greg Kroah-Hartman, Matthias Kaehlcke, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Anand Moon Cc: linux-usb, devicetree, linux-kernel, Icenowy Zheng, Han Gao, Icenowy Zheng Currently the VL817 binding is derived from usb-device.yaml instead of usb-hub.yaml, which lacks definitions of downstream subnodes. Switch the parent to usb-hub.yaml to allow downstream OF graph ports and attached fixed USB devices. Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn> --- 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 d0484e48e319c..1900444bec31c 100644 --- a/Documentation/devicetree/bindings/usb/vialab,vl817.yaml +++ b/Documentation/devicetree/bindings/usb/vialab,vl817.yaml @@ -10,7 +10,7 @@ maintainers: - Anand Moon <linux.amoon@gmail.com> allOf: - - $ref: usb-device.yaml# + - $ref: usb-hub.yaml# properties: compatible: -- 2.56.0 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 3/3] dt-bindings: usb: vialab,vl817: deduplicate properties in usb-hub.yaml 2026-11-24 8:31 [PATCH 0/3] dt-bindings: usb: vialab,vl817: reparent to usb-hub.yaml Icenowy Zheng 2026-11-24 8:31 ` [PATCH 1/3] dt-bindings: usb: vialab,vl817: use unevaluatedProperties Icenowy Zheng 2026-11-24 8:31 ` [PATCH 2/3] dt-bindings: usb: vialab,vl817: derive from usb-hub.yaml Icenowy Zheng @ 2026-11-24 8:31 ` Icenowy Zheng 2 siblings, 0 replies; 7+ messages in thread From: Icenowy Zheng @ 2026-11-24 8:31 UTC (permalink / raw) To: Greg Kroah-Hartman, Matthias Kaehlcke, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Anand Moon Cc: linux-usb, devicetree, linux-kernel, Icenowy Zheng, Han Gao, Icenowy Zheng The reg and peer-hub properties are described in usb-hub.yaml (or its parent, usb-device.yaml). Remove definitions of them from the VL817 schema for deduplication. Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn> --- Documentation/devicetree/bindings/usb/vialab,vl817.yaml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/vialab,vl817.yaml b/Documentation/devicetree/bindings/usb/vialab,vl817.yaml index 1900444bec31c..2f57eaa67c366 100644 --- a/Documentation/devicetree/bindings/usb/vialab,vl817.yaml +++ b/Documentation/devicetree/bindings/usb/vialab,vl817.yaml @@ -18,8 +18,6 @@ properties: - usb2109,2817 - usb2109,817 - reg: true - reset-gpios: maxItems: 1 description: @@ -29,11 +27,6 @@ properties: description: phandle to the regulator that provides power to the hub. - peer-hub: - $ref: /schemas/types.yaml#/definitions/phandle - description: - phandle to the peer hub on the controller. - required: - compatible - reg -- 2.56.0 ^ permalink raw reply related [flat|nested] 7+ messages in thread
end of thread, other threads:[~2026-11-25 18:23 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2026-11-24 8:31 [PATCH 0/3] dt-bindings: usb: vialab,vl817: reparent to usb-hub.yaml Icenowy Zheng 2026-11-24 8:31 ` [PATCH 1/3] dt-bindings: usb: vialab,vl817: use unevaluatedProperties Icenowy Zheng 2026-11-24 18:16 ` Conor Dooley 2026-11-24 19:32 ` Icenowy Zheng 2026-11-25 18:23 ` Conor Dooley 2026-11-24 8:31 ` [PATCH 2/3] dt-bindings: usb: vialab,vl817: derive from usb-hub.yaml Icenowy Zheng 2026-11-24 8:31 ` [PATCH 3/3] dt-bindings: usb: vialab,vl817: deduplicate properties in usb-hub.yaml Icenowy Zheng
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox