Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Fabrice Gasnier and committed by
Greg Kroah-Hartman
817f9ee0 2d945194

+1 -6
+1 -6
Documentation/devicetree/bindings/usb/generic-ehci.yaml
··· 130 130 Set this flag to indicate that the hardware sometimes turns on 131 131 the OC bit when an over-current isn't actually present. 132 132 133 - companion: 134 - $ref: /schemas/types.yaml#/definitions/phandle 135 - description: 136 - Phandle of a companion. 137 - 138 133 phys: 139 134 minItems: 1 140 135 maxItems: 3 ··· 150 155 - reg 151 156 - interrupts 152 157 153 - additionalProperties: false 158 + unevaluatedProperties: false 154 159 155 160 examples: 156 161 - |