From: Alex Elder <elder@riscstar.com>
To: 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
Cc: 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, devicetree@vger.kernel.org,
linux-clk@vger.kernel.org, linux-arm-msm@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH v3 0/3] clk: tc9564: introduce a clock and reset driver
Date: Wed, 25 Nov 2026 14:21:38 -0600 [thread overview]
Message-ID: <20261125202141.1288493-1-elder@riscstar.com> (raw)
This series introduces a devicetree binding and single driver to support
the clock and reset components present within the Toshiba TC9564 chip.
The Toshiba TC9564 is an SoC that attaches to a host system via PCIe.
It includes a PCIe switch with three downstream ports. To one of
these ports an embedded PCIe endpoint is attached, and that implements
two PCI functions. BAR 4 for both PCI functions provides access to
registers controlling blocks within the SoC, including the clock and
reset controllers supported by this series.
The first version of this series included a system controller, which
has since been removed. This version addresses all review feedback
received on version 2.
-Alex
Version 2 is available here:
https://lore.kernel.org/all/20261120183212.1264522-1-elder@riscstar.com/
Between version 2 and version 3:
- Added Lorenzo's Reviewed-by on the devicetree binding patch
- The devicetree binding now uses @kernel.org e-mail addresses
for Daniel and me
- Cleaned up the patch header text in patch 2
- The Kconfig option now depends on RESET_CONTROLLER
- The Kconfig option can now be enabled if COMPILE_TEST is enabled
- The generic gate clock controller code is now used rather than
implementing a custom one
- Only the gate clock IDs are now published in "toshiba,tc9564.h";
the PLL and internal fixed clocks are implemented and accessed
only within "clk-tc9564.c"
- The PLL is initialialized, followed by all fixed rate clocks,
followed by the gate clocks, to ensure each clock's parent is
initialized before the clock is
- Updating the reset registers (read/modify/write) is now protected
by a spinlock
- There are no more "unnecessary newlines" in the initialization
arrays for clocks and resets
- An update to the DTS file is now included as the last patch in
this series
The version prior to v2 of this code was included in this series:
https://lore.kernel.org/all/20261104004332.2141282-1-elder@riscstar.com/
Between that series (v1) and this one (v2):
- There is no more syscon, so its devicetree binding and driver have
been dropped
- The clock and reset components now have a single devicetree binding
- We no longer use a syscon-generated regmap for accessing the common
range of memory used by multiple drivers; specific sub-ranges are
instead mapped
- The clock and reset drivers have been combined into a single driver
located under drivers/clk
- The config option for the driver includes COMPILE_TEST, as requested
(last month) by Jerome Brunet
- The help text for the config option is simplified, first suggested
by Philipp Zabel
- The driver now names clocks using dev_name() rather than trying to
hand-code a unique name into a fixed-size name array (also suggested
by Jerome)
- Certain functions now always return 0, which simplifies callers
so they can simply return what the called function returns
- As suggested by sashiko, a counted-by field in a flex array is now
assigned explicitly
Alex Elder (3):
dt-bindings: toshiba: introduce toshiba,tc9564-clock.yaml
clk: toshiba: introduce a TC9564 clock/reset driver
arm64: dts: qcom: qcs6490-rb3gen2: add TC9564 clock node
.../bindings/clock/toshiba,tc9564-clock.yaml | 73 +++
MAINTAINERS | 9 +
arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts | 15 +
drivers/clk/Kconfig | 9 +
drivers/clk/Makefile | 1 +
drivers/clk/clk-tc9564.c | 456 ++++++++++++++++++
include/dt-bindings/clock/toshiba,tc9564.h | 40 ++
7 files changed, 603 insertions(+)
create mode 100644 Documentation/devicetree/bindings/clock/toshiba,tc9564-clock.yaml
create mode 100644 drivers/clk/clk-tc9564.c
create mode 100644 include/dt-bindings/clock/toshiba,tc9564.h
base-commit: 9437046953b2fb3bf55b36582450ea0267df82a7
--
2.53.0
next reply other threads:[~2026-11-25 20:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 20:21 Alex Elder [this message]
2026-11-25 20:21 ` [PATCH v3 1/3] dt-bindings: toshiba: introduce toshiba,tc9564-clock.yaml Alex Elder
2026-11-25 20:21 ` [PATCH v3 2/3] clk: toshiba: introduce a TC9564 clock/reset driver Alex Elder
2026-11-25 20:21 ` [PATCH v3 3/3] arm64: dts: qcom: qcs6490-rb3gen2: add TC9564 clock node Alex Elder
2026-11-25 20:33 ` [PATCH v3 0/3] clk: tc9564: introduce a clock and reset driver 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=20261125202141.1288493-1-elder@riscstar.com \
--to=elder@riscstar.com \
--cc=abelvesa@kernel.org \
--cc=alexandre.torgue@foss.st.com \
--cc=andersson@kernel.org \
--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=jbrunet+clk@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®