All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Stein <alexander.stein@ew.tq-group.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Conor Dooley <conor+dt@kernel.org>, Xu Yang <xu.yang_2@nxp.com>,
	Peng Fan <peng.fan@nxp.com>
Cc: Alexander Stein <alexander.stein@ew.tq-group.com>,
	linux-usb@vger.kernel.org, devicetree@vger.kernel.org
Subject: [PATCH 1/1] dt-bindings: usb: ci-hdrc-usb2: Fix number of clocks
Date: Thu,  6 Jul 2023 11:39:28 +0200	[thread overview]
Message-ID: <20230706093928.3580544-1-alexander.stein@ew.tq-group.com> (raw)

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


             reply	other threads:[~2023-07-06  9:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-06  9:39 Alexander Stein [this message]
2023-07-06 19:18 ` [PATCH 1/1] dt-bindings: usb: ci-hdrc-usb2: Fix number of clocks Rob Herring
2023-07-07  5:59   ` Alexander Stein
2023-07-07  7:06     ` [EXT] " Xu Yang
2023-07-07  8:34       ` Alexander Stein

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230706093928.3580544-1-alexander.stein@ew.tq-group.com \
    --to=alexander.stein@ew.tq-group.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=peng.fan@nxp.com \
    --cc=robh+dt@kernel.org \
    --cc=xu.yang_2@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.