diff options
author | Icenowy Zheng <uwu@icenowy.me> | 2024-09-17 17:40:08 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-10-04 15:12:35 +0200 |
commit | 570542810fe539af57a5b9169d79c8b31e83d9d0 (patch) | |
tree | aeee59f629b4445a98ce5eb51cd8f719329044f1 | |
parent | 86ebc1fe902fd0d2cc37b8c9537a6f7eafc53f40 (diff) | |
download | lwn-570542810fe539af57a5b9169d79c8b31e83d9d0.tar.gz lwn-570542810fe539af57a5b9169d79c8b31e83d9d0.zip |
dt-bindings: usb: genesys,gl850g: allow downstream device subnodes
As this binding describes USB hubs, it's natural for them to have
downstream devices.
Change "additionalProperties" to "unevaluatedProperties" to allow
properties defined in usb-device.yaml (for DT cells properties) and add
a pattern-based downstream device subnode rule to match those subnodes.
These changes allow downstream devices get defined under the hub.
Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240917094008.283529-1-uwu@icenowy.me
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | Documentation/devicetree/bindings/usb/genesys,gl850g.yaml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml b/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml index fc833363cfb4..6fe2d356dcbd 100644 --- a/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml +++ b/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml @@ -62,7 +62,14 @@ allOf: peer-hub: true vdd-supply: true -additionalProperties: false +patternProperties: + "^.*@[0-9a-f]{1,2}$": + description: The hard wired USB devices + type: object + $ref: /schemas/usb/usb-device.yaml + additionalProperties: true + +unevaluatedProperties: false examples: - | |