[PATCH v1 0/2] Add System-1 CRG for JHB100 SoC
From: Changhuang Liang
Date: Sat Nov 28 2026 - 03:36:33 EST
The JHB100 SoC includes CRG (Clock and Reset Generator) for multiple
subsystems:
The JHB100 SoC is divided into multiple subsystems, and basically
each subsystem includes a CRG(Clock and Reset Generator):
- sys0crg/sys1crg/sys2crg/
- per0crg/per1crg/per2crg/per3crg/
- voutcrg
- vcecrg
- gpu0crg/gpu1crg
- cpucrg
- usbcrg
- host0crg/host1crg
- pcierpcrg
- husb0crg/husb1crg
- husbcmncrg
- husbd0crg/husbd1crg
- npucrg
[1]: https://lore.kernel.org/all/20261008123338.11081-1-changhuang.liang@xxxxxxxxxxxxxxxx/
This is a split of the previously sent large series [1].
The original series had too many patches, and there was a lot of
similar logic among the patches. To reduce the burden of repeating
similar comments and reviews, the original series of patches was
split up and a new series was established.
This series is based on the clk-next branch.
Changes since previous submission:
- Change RESET_STARFIVE_JHB100 from select to imply.
- Describe each clock parent with a struct jh71x0_parent_data. The clock
table is now made of struct jh71x0_crg_clk_data entries, filled with
JH71X0_EXT_PARENT() and JH71X0_INT_PARENT().
- Drop the ext_clk/num_ext_clk members of struct jh71x0_crg_domain_info.
- Drop the CLK_IS_CRITICAL and CLK_IGNORE_UNUSED flags.
- Index the reset map by reset ID and drop .discontiguous.
Changhuang Liang (2):
clk: starfive: Add JHB100 System-1 clock generator driver
reset: starfive: jhb100: Add System-1 reset controller support
drivers/clk/starfive/Kconfig | 10 +++
drivers/clk/starfive/Makefile | 1 +
.../clk/starfive/clk-starfive-jhb100-sys1.c | 89 +++++++++++++++++++
.../reset/starfive/reset-starfive-jhb100.c | 23 +++++
4 files changed, 123 insertions(+)
create mode 100644 drivers/clk/starfive/clk-starfive-jhb100-sys1.c
base-commit: d8f05ec001e838cdb94fc14efa7c411e676f9ab9
--
2.25.1