Skip to content

Add Loongson-2k0500 and Loongson-2k2000 clock support

Binbin Zhou linux-clk linux-devicetree loongarch 3 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. v3 Latest6 patches 7 repliesApplied
  2. v28 patches 2 repliesSuperseded
  3. v18 patches 5 repliesSuperseded

Changes in v3 from the cover letter

- Remove the dts-related patches and update dts at once after all relevant drivers are complete.
patch(1/6):
- Drop unsuitable comments.

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/6dt-bindings: clock: Add Loongson-2K expand clock indexinclude/dt-bindings/clock/loongson,ls2k-clk.h+35 -191 reply
2/6clk: clk-loongson2: Refactor driver for adding new platformsdrivers/clk/clk-loongson2.c+199 -2601 reply
3/6dt-bindings: clock: loongson2: Add Loongson-2K0500 compatibleDocumentation/devicetree/bindings/clock/loongson,ls2k-clk.yaml+2 -11 reply
4/6clk: clk-loongson2: Add Loongson-2K0500 clock supportdrivers/clk/clk-loongson2.c+22 -01 reply
5/6dt-bindings: clock: loongson2: Add Loongson-2K2000 compatibleDocumentation/devicetree/bindings/clock/loongson,ls2k-clk.yaml+1 -01 reply
6/6clk: clk-loongson2: Add Loongson-2K2000 clock supportdrivers/clk/clk-loongson2.c+72 -01 reply

Reviews trailers per patch

3 of 6 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchConor DooleyHuacai Chen
SeriesA-b
1/6A-b
2/6
3/6A-b
4/6
5/6A-b
6/6

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

Read the v3 thread

Cover letter [PATCH v3 0/6] Add Loongson-2k0500 and Loongson-2k2000 clock support

Hi all:

As we know, the Loongson-2K family of SoCs (ls2k0500/ls2k1000/ls2k2000) have a similar clock structure, and I support them to be configured with different parameters (e.g., register offsets, etc.).

To make it easier to add support for different SoCs, I refactored the original driver to make the whole driver as understandable as possible.

Briefly, I have divided all clocks into three categories according to their properties and their parent clocks: Independent PLLs, clocks based on frequency scales, and clock dividers.

Thanks.

----
V3:
- Remove the dts-related patches and update dts at once after all relevant drivers are complete.
patch(1/6):
- Drop unsuitable comments.

Link to V2:
https://lore.kernel.org/all/[email protected]/

V2:
patch(1/8):
- Drop LOONGSON2_CLK_END, for it is not a binding.
patch(1/8)(3/8)(5/8):
- Add Acked-by tag from Conor, Thanks.

Link to V1:
https://lore.kernel.org/all/[email protected]/

Binbin Zhou (6):
dt-bindings: clock: Add Loongson-2K expand clock index
clk: clk-loongson2: Refactor driver for adding new platforms
dt-bindings: clock: loongson2: Add Loongson-2K0500 compatible
clk: clk-loongson2: Add Loongson-2K0500 clock support
dt-bindings: clock: loongson2: Add Loongson-2K2000 compatible
clk: clk-loongson2: Add Loongson-2K2000 clock support

 .../bindings/clock/loongson,ls2k-clk.yaml     |   4 +-
 drivers/clk/clk-loongson2.c                   | 549 ++++++++++--------
 include/dt-bindings/clock/loongson,ls2k-clk.h |  54 +-
 3 files changed, 329 insertions(+), 278 deletions(-)
Signature · 1 line
2.43.0