Commit 665029ec authored by Rob Herring's avatar Rob Herring Committed by Greg Kroah-Hartman

dt-bindings: usb: Clean-up "usb-phy" constraints

"usb-phy" has multiple type definitions. Unify the type with the looser
definition, phandle-array, as there are cases with multiple entries
(USB2 and USB3). However, the 'phandle-array' type alone is a bit
ambiguous. It can be either just an array of phandles or an array of
phandles plus args. "usb-phy" is the former and needs to constrain each
entry to a single phandle value.
Signed-off-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20240124190725.1554080-1-robh@kernel.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fd2a052c
...@@ -313,7 +313,7 @@ properties: ...@@ -313,7 +313,7 @@ properties:
usb-phy: usb-phy:
description: phandle for the PHY device. Use "phys" instead. description: phandle for the PHY device. Use "phys" instead.
$ref: /schemas/types.yaml#/definitions/phandle maxItems: 1
deprecated: true deprecated: true
fsl,usbphy: fsl,usbphy:
......
...@@ -25,6 +25,8 @@ properties: ...@@ -25,6 +25,8 @@ properties:
usb-phy: usb-phy:
$ref: /schemas/types.yaml#/definitions/phandle-array $ref: /schemas/types.yaml#/definitions/phandle-array
items:
maxItems: 1
description: description:
List of all the USB PHYs on this HCD to be accepted by the legacy USB List of all the USB PHYs on this HCD to be accepted by the legacy USB
Physical Layer subsystem. Physical Layer subsystem.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment