Skip to content

Add clkcfg driver for Microchip PolarFire SoC

[email protected] linux-clk linux-devicetree 8 versions – Applied

Status from this message: Applied to clk-next

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v12 Latest1 patch 3 repliesApplied
  2. v111 patch 1 replySuperseded
  3. v10 posting 2/21 patch 1 replySuperseded
Earlier versions · 5
VersionPostedPatchesRepliesStatus
v10 posting 1/21 patch0 repliesSuperseded
v92 patches5 repliesApplied
v82 patches2 repliesSuperseded
v72 patches2 repliesSuperseded
v62 patches4 repliesSuperseded

Changes in v12 from the cover letter

* add newline at end of Kconfig

Patches in v12 Applied

#Subject and filesSizeRepliesApplied
1/1clk: microchip: Add driver for Microchip PolarFire SoCdrivers/clk/Kconfig drivers/clk/Makefile drivers/clk/microchip/Kconfig +2 more+394 -43 replies

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchGeert Uytterhoeven
1/1R-b T-b

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

Read the v12 thread

Cover letter [PATCH v12 0/1] Add clkcfg driver for Microchip PolarFire SoC

From: Conor Dooley <[email protected]>

This patch adds support for the clkcfg hardware block on the Microchip PolarFire SoC

Change since v11:
* add newline at end of Kconfig

Change since v10:
* clks are not one based, don't use the CLK_DIVIDER_ONE_BASED flag

Changes since v9:
* removed devm_clk_get, replaced by index 0 clk_parent_data
* moved CLK_HW_INIT_x out of register functions
* dropped no longer needed name/flags/parent struct members
* added CLK_DIVIDER_ONE_BASED flags
* added rationale for critical clocks
* use lock directly
* dropped mpfs_periph_clk_recalc_rate
* dropped manual devm_ _unregisters
* dropped goto err in probe function
* dropped dt-binding (already in clk-next)

Changes since v8:
* Use devm_clk_hw_unregister directly
* Get parent clk in probe rather than register function

Changes since v7:
* Dropped clock-output-names again (oops)

Changes since v6:
* Dropped clock-output-names *as a required property*
* Dropped if(lock) check on spinlocks, added spinlocks to all read-modify-write register access
* Removed kfree()s on non-dynamically allocated variables
* Use devm_clk_get to get the reference clock
* Account for reserved clock when calculating the size of num_clks

Changes since v5:
* Dropped clock-output-names property

Major changes since v4:
* Adjusted license for microchip,mpfs-clock.h to match microchip,mpfs.yaml
* Corrected the number of clocks to 33 from 32

Major changes since v3:
* Patch reformatted so microchip,mpfs-clock.h is part of device-tree patch

Major changes since v2:
* In mpfs_cfg_clk_set_rate, return immediately if divider_get_val returns <0
* rebased to v5.12-rc1

Major changes since v1:
* Dependency on SOC_MICROCHIP_POLARFIRE
* All references to PFSOC/pfsoc changed to MPFS/mpfs
* Cleaned error handling in _probe
* Re-ordered code to place structs et al at top

Daire McNamara (1):
clk: microchip: Add driver for Microchip PolarFire SoC

 drivers/clk/Kconfig              |   4 +-
 drivers/clk/Makefile             |   2 +-
 drivers/clk/microchip/Kconfig    |  10 +
 drivers/clk/microchip/Makefile   |   1 +
 drivers/clk/microchip/clk-mpfs.c | 381 +++++++++++++++++++++++++++++++
 5 files changed, 394 insertions(+), 4 deletions(-)
 create mode 100644 drivers/clk/microchip/Kconfig
 create mode 100644 drivers/clk/microchip/clk-mpfs.c
Signature · 1 line
2.35.1