[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250523104552.32742-1-ziyao@disroot.org>
Date: Fri, 23 May 2025 10:45:44 +0000
From: Yao Zi <ziyao@...root.org>
To: Michael Turquette <mturquette@...libre.com>,
Stephen Boyd <sboyd@...nel.org>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Huacai Chen <chenhuacai@...nel.org>,
WANG Xuerui <kernel@...0n.name>,
Yinbo Zhu <zhuyinbo@...ngson.cn>
Cc: linux-clk@...r.kernel.org,
devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org,
loongarch@...ts.linux.dev,
Mingcong Bai <jeffbai@...c.io>,
Kexy Biscuit <kexybiscuit@...c.io>,
Yao Zi <ziyao@...root.org>
Subject: [PATCH 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]. This series depends on v3
of series "Initial support for CTCISZ Forever Pi"[2] to apply.
[1]: https://gist.github.com/ziyao233/8cd3ab8ebbf291b5a4643284309274ea
[2]: https://lore.kernel.org/loongarch/20250523095408.25919-1-ziyao@disroot.org/
Yao Zi (8):
dt-bindings: clock: Document Loongson 2K0300 clock controller
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,ls2k0300-clk.yaml | 52 ++++++++
.../dts/loongson-2k0300-ctcisz-forever-pi.dts | 1 -
arch/loongarch/boot/dts/loongson-2k0300.dtsi | 17 ++-
drivers/clk/clk-loongson2.c | 124 +++++++++++++++---
.../dt-bindings/clock/loongson,ls2k0300-clk.h | 54 ++++++++
5 files changed, 224 insertions(+), 24 deletions(-)
create mode 100644 Documentation/devicetree/bindings/clock/loongson,ls2k0300-clk.yaml
create mode 100644 include/dt-bindings/clock/loongson,ls2k0300-clk.h
--
2.49.0
Powered by blists - more mailing lists