From: Alex Elder <elder@riscstar.com>
To: Jerome Brunet <jbrunet@baylibre.com>
Cc: sboyd@kernel.org, bmasney+clk@redhat.com,
jbrunet+clk@baylibre.com, robh@kernel.org, krzk+dt@kernel.org,
conor+dt@kernel.org, p.zabel@pengutronix.de,
andersson@kernel.org, konradybcio@kernel.org,
abelvesa@kernel.org, arnd@arndb.de, gregkh@linuxfoundation.org,
daniel@riscstar.com, mohd.anwar@oss.qualcomm.com,
lorenzo.bianconi@oss.qualcomm.com, fabrice.gasnier@foss.st.com,
alexandre.torgue@foss.st.com, marex@nabladev.com,
changhuang.liang@starfivetech.com, linux-clk@vger.kernel.org,
devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4 2/4] clk: toshiba: introduce a TC9564 clock driver
Date: Thu, 3 Dec 2026 11:59:30 -0600 [thread overview]
Message-ID: <a09adc5d-2c1e-4257-99f1-ed8c8c1cccb7@riscstar.com> (raw)
In-Reply-To: <179630594987.3767986.3213089189763552642.b4-review@b4>
On 12/3/26 7:52 AM, Jerome Brunet wrote:
>> +static const struct fixed_init fixed_init[] = {
>> + [TC9564_CLK_312_5M] = {
>> + .name = "312.5MHz",
>> + .div = 4,
>> + },
>> + [TC9564_CLK_250M] = {
>> + .name = "250MHz",
>> + .div = 5,
>> + },
>> + [TC9564_CLK_125M] = {
>> + .name = "125MHz",
>> + .div = 10,
>> + },
>> + [TC9564_CLK_62_5M] = {
>> + .name = "62.5MHz",
>> + .div = 20,
> I've already commented on way to make a onecell here
> If you need to iterate per type, keep those table
> just add
> .id = <TC9564_WHATEVER_IT_IS_DT_BINDINGS>
>
> and fill the right index of the provider table with it
Each fixed clock has a unique rate.
The gate clocks, each of which has a fixed clock as parent,
looks up its parent's clk_hw pointer by scanning the
registered fixed clocks and finding the one that has the
rate they want.
I therefore no longer define special IDs for the fixed clocks
(like TC9564_CLK_250M). The fixed clock initialization array
is not indexed, and entries do not need to specify an ID.
If we someday get a clock tree that indicates the clocks
are derived another way, this can be change.
-Alex
next prev parent reply other threads:[~2026-12-03 17:59 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 16:08 [PATCH v4 0/4] clk: tc9564: introduce clock and reset drivers Alex Elder
2026-12-01 16:08 ` [PATCH v4 1/4] dt-bindings: toshiba: introduce toshiba,tc9564-clock.yaml Alex Elder
2026-12-03 13:52 ` Jerome Brunet
2026-12-03 15:59 ` Alex Elder
2026-12-03 16:15 ` Jerome Brunet
2026-12-03 16:29 ` Alex Elder
2026-12-03 18:36 ` Jerome Brunet
2026-12-01 16:08 ` [PATCH v4 2/4] clk: toshiba: introduce a TC9564 clock driver Alex Elder
2026-12-03 13:52 ` Jerome Brunet
2026-12-03 17:59 ` Alex Elder [this message]
2026-12-01 16:08 ` [PATCH v4 3/4] reset: toshiba: introduce a TC9564 reset driver Alex Elder
2026-12-01 17:11 ` Philipp Zabel
2026-12-03 13:51 ` Jerome Brunet
2026-12-03 14:56 ` Philipp Zabel
2026-12-03 15:59 ` Alex Elder
2026-12-03 16:18 ` Jerome Brunet
2026-12-03 16:29 ` Alex Elder
2026-12-03 15:59 ` Alex Elder
2026-12-01 18:36 ` Lorenzo Bianconi
2026-12-01 16:08 ` [PATCH v4 4/4] arm64: dts: qcom: qcs6490-rb3gen2: add TC9564 clock node Alex Elder
2026-12-03 13:52 ` [PATCH v4 0/4] clk: tc9564: introduce clock and reset drivers Jerome Brunet
2026-12-03 15:59 ` Alex Elder
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=a09adc5d-2c1e-4257-99f1-ed8c8c1cccb7@riscstar.com \
--to=elder@riscstar.com \
--cc=abelvesa@kernel.org \
--cc=alexandre.torgue@foss.st.com \
--cc=andersson@kernel.org \
--cc=arnd@arndb.de \
--cc=bmasney+clk@redhat.com \
--cc=changhuang.liang@starfivetech.com \
--cc=conor+dt@kernel.org \
--cc=daniel@riscstar.com \
--cc=devicetree@vger.kernel.org \
--cc=fabrice.gasnier@foss.st.com \
--cc=gregkh@linuxfoundation.org \
--cc=jbrunet+clk@baylibre.com \
--cc=jbrunet@baylibre.com \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lorenzo.bianconi@oss.qualcomm.com \
--cc=marex@nabladev.com \
--cc=mohd.anwar@oss.qualcomm.com \
--cc=p.zabel@pengutronix.de \
--cc=robh@kernel.org \
--cc=sboyd@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®