Skip to content

clk: tc9564: introduce a clock and reset driver

Alex Elder linux-clk linux-devicetree lkml sashiko-reviews 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 5 repliesIn review
  2. v14 patches 18 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dt-bindings: toshiba: introduce toshiba,tc9564-clock.yamlDocumentation/devicetree/bindings/clock/toshiba,tc9564-clock.yaml MAINTAINERS include/dt-bindings/clock/toshiba,tc9564.h+131 -01 reply
2/2clk: toshiba: introduce a TC9564 clock/reset driverMAINTAINERS drivers/clk/Kconfig drivers/clk/Makefile +1 more+511 -03 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchLorenzo Bianconi
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] clk: tc9564: introduce a clock and reset driver

This code has gone around and around in various forms, having been included most recently in a series that also added a system controller driver. That system controller has now been removed.

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 resets controllers supported by this series.

To avoid any confusion I'm only going to refer back to the "syscon" series", which provides some additional information including links to earlier versions of this code.

-Alex

The previous version of this code was included in this series:
https://lore.kernel.org/all/[email protected]/

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 (2):
dt-bindings: toshiba: introduce toshiba,tc9564-clock.yaml
clk: toshiba: introduce a TC9564 clock/reset driver

 .../bindings/clock/toshiba,tc9564-clock.yaml  |  73 +++
 MAINTAINERS                                   |   9 +
 drivers/clk/Kconfig                           |   8 +
 drivers/clk/Makefile                          |   1 +
 drivers/clk/clk-tc9564.c                      | 501 ++++++++++++++++++
 include/dt-bindings/clock/toshiba,tc9564.h    |  50 ++
 6 files changed, 642 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: 909ef7a9a30fa139e69e555e3606680f5cca7726

Signature · 1 line
2.53.0