All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] dt-bindings: usb: ci-hdrc-usb2: Fix number of clocks
@ 2023-07-06  9:39 Alexander Stein
  2023-07-06 19:18 ` Rob Herring
  0 siblings, 1 reply; 5+ messages in thread
From: Alexander Stein @ 2023-07-06  9:39 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Xu Yang, Peng Fan
  Cc: Alexander Stein, linux-usb, devicetree

Some (older) IP cores require 3 clocks, named 'ipg', 'ahb' and 'per' while
more recent IP cores just require one. Fix the number and explicitly
state the clock-names.

Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
---
From I can tell, is that imx25, imx27, imx35 have specified 3 clocks in
their DT.
IMHO minItems for 'clock-names' can be removed as I presume that this
property is not set when only one clock is used.

 Documentation/devicetree/bindings/usb/ci-hdrc-usb2.yaml | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.yaml b/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.yaml
index 782402800d4a..8aab1e831578 100644
--- a/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.yaml
+++ b/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.yaml
@@ -76,11 +76,13 @@ properties:
 
   clocks:
     minItems: 1
-    maxItems: 2
+    maxItems: 3
 
   clock-names:
-    minItems: 1
-    maxItems: 2
+    items:
+      - const: ipg
+      - const: ahb
+      - const: per
 
   dr_mode: true
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-07-07  8:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-06  9:39 [PATCH 1/1] dt-bindings: usb: ci-hdrc-usb2: Fix number of clocks Alexander Stein
2023-07-06 19:18 ` Rob Herring
2023-07-07  5:59   ` Alexander Stein
2023-07-07  7:06     ` [EXT] " Xu Yang
2023-07-07  8:34       ` Alexander Stein

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.