Linux clock framework development
 help / color / mirror / Atom feed
* [PATCH v4 0/4] clk: tc9564: introduce clock and reset drivers
@ 2026-12-01 16:08 Alex Elder
  2026-12-01 16:08 ` [PATCH v4 1/4] dt-bindings: toshiba: introduce toshiba,tc9564-clock.yaml Alex Elder
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Alex Elder @ 2026-12-01 16:08 UTC (permalink / raw)
  To: sboyd, bmasney+clk, jbrunet+clk, robh, krzk+dt, conor+dt, p.zabel,
	andersson, konradybcio, abelvesa, arnd, gregkh
  Cc: daniel, mohd.anwar, lorenzo.bianconi, fabrice.gasnier,
	alexandre.torgue, marex, changhuang.liang, linux-clk, devicetree,
	linux-arm-msm, linux-kernel

This series introduces a devicetree binding for a clock and reset
controller, along with a clock driver and an auxiliary reset 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.

This version of the series addresses feedback received on version 3.
It includes adding an "imply" statement in the Kconfig for the PCI
driver (located under drivers/misc).

					-Alex

Version 3 is available here:
  https://lore.kernel.org/all/20261125202141.1288493-1-elder@riscstar.com/

Between version 3 and version 4:
  - The reset driver functionality has been separated from the clock
    platform driver source code, into its own auxiliary device driver.
  - The clock driver now creates an auxiliary device representing the
    reset controller.
  - A few definitions are placed in an existing common header file,
    to define the interface between the clock and reset drivers.
  - Reset IDs are defined in a header file separate from the clock IDs.
  - The three clock types implemented by the clock driver (PLL, fixed
    rate, and gate) now have distinct zero-based identifiers, and are
    no longer represented within a single clk_hw_onecell_data->clk_hw[]
    array.
  - Clock and reset ID symbols now have a "TC9564_" prefix.
  - The function that formats clock names using kasprintf() now has the
    suffix "_alloc", to make it more obvious the caller must free the
    returned pointer.
  - The clock driver no longer *depends on* the TC9564_PCI config option
    (for the TC9564 PCI driver).  Instead, the PCI driver *implies* the
    clock driver config option.
  - The clock driver no longer specifies that it prefers asynchronous
    probing.
  - The reset and clock drivers have separate Kconfig options, and the
    reset driver config option is *implied* by the clock driver.
  - The 25 MHz clock crystal is now defined within the "clocks" node
    in the RB3gen2 DTS, rather than inside the TC9564.
  - Added a Reviewed-by tag from Lorenzo on the last patch.

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

Please refer to version 2 for more information about prior versions
of this code.

Alex Elder (4):
  dt-bindings: toshiba: introduce toshiba,tc9564-clock.yaml
  clk: toshiba: introduce a TC9564 clock driver
  reset: toshiba: introduce a TC9564 reset driver
  arm64: dts: qcom: qcs6490-rb3gen2: add TC9564 clock node

 .../bindings/clock/toshiba,tc9564-clock.yaml  |  74 ++++
 MAINTAINERS                                   |  17 +
 arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts  |  15 +
 drivers/clk/Kconfig                           |   9 +
 drivers/clk/Makefile                          |   1 +
 drivers/clk/clk-tc9564.c                      | 401 ++++++++++++++++++
 drivers/misc/Kconfig                          |   1 +
 drivers/reset/Kconfig                         |   7 +
 drivers/reset/Makefile                        |   1 +
 drivers/reset/reset-tc9564.c                  | 190 +++++++++
 include/dt-bindings/clock/toshiba,tc9564.h    |  26 ++
 include/dt-bindings/reset/toshiba,tc9564.h    |  24 ++
 include/linux/soc/qcom/tc9563.h               |   9 +
 13 files changed, 775 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/clock/toshiba,tc9564-clock.yaml
 create mode 100644 drivers/clk/clk-tc9564.c
 create mode 100644 drivers/reset/reset-tc9564.c
 create mode 100644 include/dt-bindings/clock/toshiba,tc9564.h
 create mode 100644 include/dt-bindings/reset/toshiba,tc9564.h


base-commit: 253f86660c1f882fbf554db5eaa34bc5d66dc7e8
-- 
2.53.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-12-01 16:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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-01 16:08 ` [PATCH v4 2/4] clk: toshiba: introduce a TC9564 clock driver Alex Elder
2026-12-01 16:21   ` sashiko-bot
2026-12-01 16:08 ` [PATCH v4 3/4] reset: toshiba: introduce a TC9564 reset driver Alex Elder
2026-12-01 16:16   ` sashiko-bot
2026-12-01 16:08 ` [PATCH v4 4/4] arm64: dts: qcom: qcs6490-rb3gen2: add TC9564 clock node Alex Elder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox