Skip to content

Add clock support for Loongson 2K0300 SoC

Yao Zi linux-clk linux-devicetree lkml loongarch 4 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. v4 Latest8 patches 6 repliesApplied
  2. v38 patches 10 repliesSuperseded
  3. v28 patches 6 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v18 patches6 repliesSuperseded

Changes in v4 from the cover letter

- Collect review tags
- Change "Loongson 2K0300" to "Loongson-2K0300", and "2K0300" to "LS2K0300" in commit messages
- dt-bindings
- Merge loongson,ls2k0300-clk.h into loongson,ls2k-clk.h
- Change LS2K0300_PLL_{NODE,DDR,PIX} to LS2K0300_{NODE,DDR,PIX}_PLL for consistency
- driver
- Fold clock definition into a single line if possible
- Link to v3: https://lore.kernel.org/all/[email protected]/

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/8dt-bindings: clock: loongson2: Add Loongson-2K0300 compatibleDocumentation/devicetree/bindings/clock/loongson,ls2k-clk.yaml include/dt-bindings/clock/loongson,ls2k-clk.h+51 -31 reply
2/8clk: loongson2: Allow specifying clock flags for gate clockdrivers/clk/clk-loongson2.c+15 -11 reply
3/8clk: loongson2: Support scale clocks with an alternative modedrivers/clk/clk-loongson2.c+23 -31 reply
4/8clk: loongson2: Allow zero divisors for dividersdrivers/clk/clk-loongson2.c+2 -11 reply
5/8clk: loongson2: Avoid hardcoding firmware name of the reference clockdrivers/clk/clk-loongson2.c+17 -161 reply
6/8clk: loongson2: Add clock definitions for Loongson-2K0300 SoCdrivers/clk/clk-loongson2.c+46 -01 reply
7/8LoongArch: dts: Add clock tree for Loongson-2K0300arch/loongarch/boot/dts/loongson-2k0300.dtsi+13 -30 replies
8/8LoongArch: dts: Remove clock-frquency from UART0 of CTCISZ Forever Piarch/loongarch/boot/dts/loongson-2k0300-ctcisz-forever-pi.dts+0 -10 replies

Reviews trailers per patch

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

PatchKrzysztof KozlowskiYanteng Si
1/8R-b R-b
2/8
3/8
4/8
5/8
6/8
7/8
8/8

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

Read the v4 thread

Cover letter [PATCH v4 0/8] Add clock support for Loongson 2K0300 SoC

This series adds support for Loongson-2K0300's clock controller. Loongson 2 clock driver is prepared to support more clock variants and its flexibility is improved. All clock hardwares except the output one for GMAC module are then defined.

A clock tree dump could be obtained here[1]. Devicetree changes (PATCH 7 and 8) depends on v3 of series "Initial support for CTCISZ Forever Pi"[2] to apply.

[1]: https://gist.github.com/ziyao233/5261c5983d7ccb0a4299cfd7f26b2027
[2]: https://lore.kernel.org/all/[email protected]/

Changed from v3:
- Collect review tags
- Change "Loongson 2K0300" to "Loongson-2K0300", and "2K0300" to "LS2K0300" in commit messages
- dt-bindings
- Merge loongson,ls2k0300-clk.h into loongson,ls2k-clk.h
- Change LS2K0300_PLL_{NODE,DDR,PIX} to LS2K0300_{NODE,DDR,PIX}_PLL for consistency
- driver
- Fold clock definition into a single line if possible
- Link to v3: https://lore.kernel.org/all/[email protected]/

Changed from v2:
- Disallow clock-names property for loongson,2k0300-clk's binding, avoid overriding content of clock-names property within an allOf block
- Correct clock-controller's MMIO-region size in SoC devicetree
- Link to v2: https://lore.kernel.org/all/[email protected]/

Changed from v1:
- Fold loongson,ls2k0300-clk.yaml into loongson,ls2k-clk.yaml
- Include the new binding header in MAINTAINERS
- Link to v1: https://lore.kernel.org/all/[email protected]/

Yao Zi (8):
dt-bindings: clock: loongson2: Add Loongson-2K0300 compatible
clk: loongson2: Allow specifying clock flags for gate clock
clk: loongson2: Support scale clocks with an alternative mode
clk: loongson2: Allow zero divisors for dividers
clk: loongson2: Avoid hardcoding firmware name of the reference clock
clk: loongson2: Add clock definitions for Loongson-2K0300 SoC
LoongArch: dts: Add clock tree for Loongson-2K0300
LoongArch: dts: Remove clock-frquency from UART0 of CTCISZ Forever Pi

 .../bindings/clock/loongson,ls2k-clk.yaml     |  18 ++-
 .../dts/loongson-2k0300-ctcisz-forever-pi.dts |   1 -
 arch/loongarch/boot/dts/loongson-2k0300.dtsi  |  16 ++-
 drivers/clk/clk-loongson2.c                   | 122 +++++++++++++++---
 include/dt-bindings/clock/loongson,ls2k-clk.h |  36 ++++++
 5 files changed, 166 insertions(+), 27 deletions(-)
Signature · 1 line
2.50.1