[PATCH v5 0/4] Devicetree support for Loongson-1 clock

From: Keguang Zhang
Date: Tue Mar 21 2023 - 07:19:03 EST


Removes the old Loongson-1 clock driver and related code
mainly because of no DT support and outdated implementation.

Then, re-implement it to solve the above issues,
along with the devicetree binding document.

Changelog
V4 -> V5: Include the necessary header files
Add error handling for ls1x_clk_init()
Remove MODULE_AUTHOR and MODULE_DESCRIPTION
Some fixes and cleanups
V3 -> V4: Fix the build error of missing linux/module.h
Add Reviewed-by tag from Krzysztof Kozlowski
V2 -> V3: Add 'reg' property into the 'required' field
Delete the unnecessary property 'clock-names'
Use the same license as binding document for the header file.
Add MODULE_AUTHOR and MODULE_DESCRIPTION info
Add patch "MIPS: loongson32: Update the clock initialization" into this series
Add Acked-by tag from Stephen Boyd and Thomas Bogendoerfer
V1 -> V2: Change to one clock controller (suggested by Krzysztof Kozlowski)
Add clock-related dt-binding header file
Fix the warning of dt_binding_check
Split the driver removal to a separate patch
Implement one clock controller instead of single clocks
(suggested by Krzysztof Kozlowski)

Keguang Zhang (4):
dt-bindings: clock: Add Loongson-1 clock
clk: loongson1: Remove the outdated driver
clk: loongson1: Re-implement the clock driver
MIPS: loongson32: Update the clock initialization

.../bindings/clock/loongson,ls1x-clk.yaml | 45 +++
.../include/asm/mach-loongson32/platform.h | 1 -
arch/mips/loongson32/common/time.c | 3 +-
drivers/clk/Makefile | 2 +-
drivers/clk/clk-loongson1.c | 303 ++++++++++++++++++
drivers/clk/loongson1/Makefile | 4 -
drivers/clk/loongson1/clk-loongson1b.c | 118 -------
drivers/clk/loongson1/clk-loongson1c.c | 95 ------
drivers/clk/loongson1/clk.c | 41 ---
drivers/clk/loongson1/clk.h | 15 -
include/dt-bindings/clock/loongson,ls1x-clk.h | 19 ++
11 files changed, 370 insertions(+), 276 deletions(-)
create mode 100644 Documentation/devicetree/bindings/clock/loongson,ls1x-clk.yaml
create mode 100644 drivers/clk/clk-loongson1.c
delete mode 100644 drivers/clk/loongson1/Makefile
delete mode 100644 drivers/clk/loongson1/clk-loongson1b.c
delete mode 100644 drivers/clk/loongson1/clk-loongson1c.c
delete mode 100644 drivers/clk/loongson1/clk.c
delete mode 100644 drivers/clk/loongson1/clk.h
create mode 100644 include/dt-bindings/clock/loongson,ls1x-clk.h


base-commit: d8bb7bcf754c39de7347b746766ed45932e787d1
--
2.34.1