From: Akari Tsuyukusa <akkun11.open@gmail.com>
To: Stephen Boyd <sboyd@kernel.org>,
Brian Masney <bmasney+clk@redhat.com>,
Jerome Brunet <jbrunet+clk@baylibre.com>,
Matthias Brugger <matthias.bgg@gmail.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>
Cc: "Takashi Sakamoto" <o-takashi@sakamocchi.jp>,
"Danilo Krummrich" <dakr@kernel.org>,
"Uwe Kleine-König (The Capable Hub)"
<u.kleine-koenig@baylibre.com>,
"Bjorn Helgaas" <bhelgaas@google.com>,
"Akari Tsuyukusa" <akkun11.open@gmail.com>,
"Nicolas Frattaroli" <nicolas.frattaroli@collabora.com>,
"Chen-Yu Tsai" <wenst@chromium.org>,
"Laura Nao" <laura.nao@collabora.com>,
"Sjoerd Simons" <sjoerd@collabora.com>,
linux-clk@vger.kernel.org (open list:COMMON CLK FRAMEWORK),
linux-kernel@vger.kernel.org (open list:ARM/Mediatek SoC support),
linux-arm-kernel@lists.infradead.org (moderated
list:ARM/Mediatek SoC support),
linux-mediatek@lists.infradead.org (moderated list:ARM/Mediatek
SoC support)
Subject: [PATCH 4/6] clk: mediatek: Reserve missing MT8173 topckgen IDs
Date: Mon, 21 Sep 2026 19:25:20 +0900 [thread overview]
Message-ID: <20260921102522.1640072-5-akkun11.open@gmail.com> (raw)
In-Reply-To: <20260921102522.1640072-1-akkun11.open@gmail.com>
Reserve the unused clock ID 2 and the binding-defined
CLK_TOP_HDMITX_DIG_CTS slot in the MT8173 topckgen provider.
Neither clock is implemented by topckgen: ID 2 corresponds to
the removed DPI clock, while the HDMI digital clock is provided
by the HDMI PHY.
Keep both onecell slots populated with dummy clocks so the
descriptor-based allocation covers the complete registered ID
range.
Assisted-by: GPT-5.6 Luna
Signed-off-by: Akari Tsuyukusa <akkun11.open@gmail.com>
---
drivers/clk/mediatek/clk-mt8173-topckgen.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/clk/mediatek/clk-mt8173-topckgen.c b/drivers/clk/mediatek/clk-mt8173-topckgen.c
index 42c37541cebb..9c50f66766b4 100644
--- a/drivers/clk/mediatek/clk-mt8173-topckgen.c
+++ b/drivers/clk/mediatek/clk-mt8173-topckgen.c
@@ -624,6 +624,11 @@ static const struct mtk_composite top_muxes[] = {
MUX(CLK_TOP_I2S3_B_SEL, "i2s3_b_ck_sel", i2s3_b_ck_parents, 0x120, 8, 1),
};
+static const struct mtk_gate top_dummy_clks[] = {
+ GATE_DUMMY(2, "topck_reserved_2"),
+ GATE_DUMMY(CLK_TOP_HDMITX_DIG_CTS, "hdmitx_dig_cts_dummy"),
+};
+
static const struct mtk_clk_desc topck_desc = {
.fixed_clks = fixed_clks,
.num_fixed_clks = ARRAY_SIZE(fixed_clks),
@@ -631,6 +636,8 @@ static const struct mtk_clk_desc topck_desc = {
.num_factor_clks = ARRAY_SIZE(top_divs),
.composite_clks = top_muxes,
.num_composite_clks = ARRAY_SIZE(top_muxes),
+ .clks = top_dummy_clks,
+ .num_clks = ARRAY_SIZE(top_dummy_clks),
.clk_lock = &mt8173_top_clk_lock,
};
--
2.55.0
next prev parent reply other threads:[~2026-09-21 10:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-21 10:25 [PATCH 0/6] clk: mediatek: Fix descriptor clock ID allocation Akari Tsuyukusa
2026-09-21 10:25 ` [PATCH 1/6] clk: mediatek: Fix MT6779 clock onecell IDs Akari Tsuyukusa
2026-09-21 10:25 ` [PATCH 2/6] clk: mediatek: Fix MT6797 " Akari Tsuyukusa
2026-09-21 10:25 ` [PATCH 3/6] clk: mediatek: Reserve missing MT8167 clock ID Akari Tsuyukusa
2026-09-21 10:25 ` Akari Tsuyukusa [this message]
2026-09-21 10:25 ` [PATCH 5/6] clk: mediatek: Reserve missing MT8196 MDP clock IDs Akari Tsuyukusa
2026-09-21 10:25 ` [PATCH 6/6] clk: mediatek: Reserve missing MT8516 top " Akari Tsuyukusa
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=20260921102522.1640072-5-akkun11.open@gmail.com \
--to=akkun11.open@gmail.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=bhelgaas@google.com \
--cc=bmasney+clk@redhat.com \
--cc=dakr@kernel.org \
--cc=jbrunet+clk@baylibre.com \
--cc=laura.nao@collabora.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=nicolas.frattaroli@collabora.com \
--cc=o-takashi@sakamocchi.jp \
--cc=sboyd@kernel.org \
--cc=sjoerd@collabora.com \
--cc=u.kleine-koenig@baylibre.com \
--cc=wenst@chromium.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®