summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/usb/generic-ehci.yaml
diff options
context:
space:
mode:
authorFabrice Gasnier <fabrice.gasnier@foss.st.com>2022-07-26 10:07:05 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-07-27 14:39:51 +0200
commit817f9ee0dad570a6ba6a285f662de657760094cd (patch)
treee451e0e1732cdc53d1593622973c8d1a7ff0002c /Documentation/devicetree/bindings/usb/generic-ehci.yaml
parent2d945194cce11ce2800949c8746bc3e788d89067 (diff)
downloadlinux-stable-817f9ee0dad570a6ba6a285f662de657760094cd.tar.gz
linux-stable-817f9ee0dad570a6ba6a285f662de657760094cd.tar.bz2
linux-stable-817f9ee0dad570a6ba6a285f662de657760094cd.zip
dt-bindings: usb: generic-ehci: allow usb-hcd schema properties
Allow properties and usb-device child nodes as defined in usb-hcd.yaml, by using unevaluatedProperties: false. By the way, remove the "companion" property as it's redundant with usb-hcd.yaml. As example, this allows an onboard hub, to be described in generic-ehci controller node: usb { compatible = "generic-ehci"; #address-cells = <1>; #size-cells = <0>; /* onboard HUB */ hub@1 { compatible = "usb424,2514"; reg = <1>; vdd-supply = <&v3v3>; }; }; Without this, dtbs_check complains on '#address-cells', '#size-cells', 'hub@1' do not match any of the regexes: 'pinctrl-[0-9]+' From schema: ..../generic-ehci.yaml Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com> Link: https://lore.kernel.org/r/20220726080708.162547-2-fabrice.gasnier@foss.st.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/devicetree/bindings/usb/generic-ehci.yaml')
-rw-r--r--Documentation/devicetree/bindings/usb/generic-ehci.yaml7
1 files changed, 1 insertions, 6 deletions
diff --git a/Documentation/devicetree/bindings/usb/generic-ehci.yaml b/Documentation/devicetree/bindings/usb/generic-ehci.yaml
index 1e84e1b7ab27..e50c1cfaa197 100644
--- a/Documentation/devicetree/bindings/usb/generic-ehci.yaml
+++ b/Documentation/devicetree/bindings/usb/generic-ehci.yaml
@@ -130,11 +130,6 @@ properties:
Set this flag to indicate that the hardware sometimes turns on
the OC bit when an over-current isn't actually present.
- companion:
- $ref: /schemas/types.yaml#/definitions/phandle
- description:
- Phandle of a companion.
-
phys:
minItems: 1
maxItems: 3
@@ -155,7 +150,7 @@ required:
- reg
- interrupts
-additionalProperties: false
+unevaluatedProperties: false
examples:
- |