Skip to content

Commit b43889f

Browse files
Radhey Shyam Pandeygregkh
authored andcommitted
dt-bindings: usb: dwc3-xilinx: Describe the reset constraint for the versal platform
AMD Versal platform USB 2.0 IP controller receives one reset input from the SoC controlled by the CRL.RST_USB [RESET] register so accordingly describe reset constraints. Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com> Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> Link: https://patch.msgid.link/20251114123239.1929255-1-radhey.shyam.pandey@amd.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent de7275c commit b43889f

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

Documentation/devicetree/bindings/usb/dwc3-xilinx.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ properties:
4747
- const: ref_clk
4848

4949
resets:
50+
minItems: 1
5051
description:
5152
A list of phandles for resets listed in reset-names.
5253

@@ -56,6 +57,7 @@ properties:
5657
- description: USB APB reset
5758

5859
reset-names:
60+
minItems: 1
5961
items:
6062
- const: usb_crst
6163
- const: usb_hibrst
@@ -95,6 +97,26 @@ required:
9597
- resets
9698
- reset-names
9799

100+
allOf:
101+
- if:
102+
properties:
103+
compatible:
104+
contains:
105+
enum:
106+
- xlnx,versal-dwc3
107+
then:
108+
properties:
109+
resets:
110+
maxItems: 1
111+
reset-names:
112+
maxItems: 1
113+
else:
114+
properties:
115+
resets:
116+
minItems: 3
117+
reset-names:
118+
minItems: 3
119+
98120
additionalProperties: false
99121

100122
examples:

0 commit comments

Comments
 (0)