mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
To: Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	 Conor Dooley <conor+dt@kernel.org>,
	 Matthias Brugger <matthias.bgg@gmail.com>,
	 AngeloGioacchino Del Regno
	<angelogioacchino.delregno@collabora.com>,
	 Henry Chen <henryc.chen@mediatek.com>,
	Georgi Djakov <djakov@kernel.org>
Cc: kernel@collabora.com, devicetree@vger.kernel.org,
	 linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	 linux-mediatek@lists.infradead.org, linux-pm@vger.kernel.org,
	 Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Subject: [PATCH v2 02/13] dt-bindings: soc: mediatek: dvfsrc: Document clock
Date: Mon, 24 Nov 2025 12:06:51 +0100	[thread overview]
Message-ID: <20251124-mt8196-dvfsrc-v2-2-d9c1334db9f3@collabora.com> (raw)
In-Reply-To: <20251124-mt8196-dvfsrc-v2-0-d9c1334db9f3@collabora.com>

The DVFSRC hardware has a clock on all platforms.

Instead or proliferating the culture of omitting clock descriptions in
the clock controller drivers or marking them critical instead of
declaring these types of relationships, add this one to the binding.

Any device that wishes to use this binding should figure out their
incomplete or incorrect clock situation first before piling more
features on top.

Acked-by: Rob Herring (Arm) <robh@kernel.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
---
 .../devicetree/bindings/soc/mediatek/mediatek,mt8183-dvfsrc.yaml    | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Documentation/devicetree/bindings/soc/mediatek/mediatek,mt8183-dvfsrc.yaml b/Documentation/devicetree/bindings/soc/mediatek/mediatek,mt8183-dvfsrc.yaml
index 5673d242afcb..d5c42f992a21 100644
--- a/Documentation/devicetree/bindings/soc/mediatek/mediatek,mt8183-dvfsrc.yaml
+++ b/Documentation/devicetree/bindings/soc/mediatek/mediatek,mt8183-dvfsrc.yaml
@@ -35,6 +35,10 @@ properties:
     maxItems: 1
     description: DVFSRC common register address and length.
 
+  clocks:
+    items:
+      - description: Clock that drives the DVFSRC MCU
+
   regulators:
     type: object
     $ref: /schemas/regulator/mediatek,mt6873-dvfsrc-regulator.yaml#
@@ -51,6 +55,7 @@ additionalProperties: false
 
 examples:
   - |
+    #include <dt-bindings/clock/mt8195-clk.h>
     soc {
         #address-cells = <2>;
         #size-cells = <2>;
@@ -58,6 +63,7 @@ examples:
         system-controller@10012000 {
             compatible = "mediatek,mt8195-dvfsrc";
             reg = <0 0x10012000 0 0x1000>;
+            clocks = <&topckgen CLK_TOP_DVFSRC>;
 
             regulators {
                 compatible = "mediatek,mt8195-dvfsrc-regulator";

-- 
2.52.0


  parent reply	other threads:[~2025-11-24 11:07 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-24 11:06 [PATCH v2 00/13] MediaTek Interconnect Cleanup and MT8196 Enablement Nicolas Frattaroli
2025-11-24 11:06 ` [PATCH v2 01/13] dt-bindings: soc: mediatek: dvfsrc: Add support for MT8196 Nicolas Frattaroli
2026-01-08  9:29   ` AngeloGioacchino Del Regno
2025-11-24 11:06 ` Nicolas Frattaroli [this message]
2025-11-24 11:06 ` [PATCH v2 03/13] dt-bindings: interconnect: mt8183-emi: Add support for MT8196 EMI Nicolas Frattaroli
2025-11-24 11:06 ` [PATCH v2 04/13] soc: mediatek: mtk-dvfsrc: Change error check for DVFSRCv4 START cmd Nicolas Frattaroli
2025-11-24 11:06 ` [PATCH v2 05/13] soc: mediatek: mtk-dvfsrc: Add and propagate DVFSRC bandwidth type Nicolas Frattaroli
2025-11-24 11:06 ` [PATCH v2 06/13] soc: mediatek: mtk-dvfsrc: Add a new callback for calc_dram_bw Nicolas Frattaroli
2025-11-24 11:06 ` [PATCH v2 07/13] soc: mediatek: mtk-dvfsrc: Write bandwidth to EMI DDR if present Nicolas Frattaroli
2025-11-24 11:06 ` [PATCH v2 08/13] soc: mediatek: mtk-dvfsrc: Add support for DVFSRCv4 and MT8196 Nicolas Frattaroli
2025-11-24 11:06 ` [PATCH v2 09/13] soc: mediatek: mtk-dvfsrc: Get and Enable DVFSRC clock Nicolas Frattaroli
2025-11-24 11:06 ` [PATCH v2 10/13] soc: mediatek: mtk-dvfsrc: Rework bandwidth calculations Nicolas Frattaroli
2025-11-24 11:07 ` [PATCH v2 11/13] interconnect: mediatek: Add support for MediaTek MT8196 EMI ICC Nicolas Frattaroli
2026-01-09 16:30   ` Georgi Djakov
2025-11-24 11:07 ` [PATCH v2 12/13] interconnect: mediatek: Don't hijack parent device Nicolas Frattaroli
2025-11-24 11:07 ` [PATCH v2 13/13] interconnect: mediatek: Aggregate bandwidth with saturating add Nicolas Frattaroli
2026-01-08  9:28 ` (subset) [PATCH v2 00/13] MediaTek Interconnect Cleanup and MT8196 Enablement AngeloGioacchino Del Regno

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=20251124-mt8196-dvfsrc-v2-2-d9c1334db9f3@collabora.com \
    --to=nicolas.frattaroli@collabora.com \
    --cc=angelogioacchino.delregno@collabora.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=djakov@kernel.org \
    --cc=henryc.chen@mediatek.com \
    --cc=kernel@collabora.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=matthias.bgg@gmail.com \
    --cc=robh@kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®