linux-riscv.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Add clock controller support for Spacemit K1
@ 2024-09-16 22:20 Haylen Chu
  2024-09-16 22:23 ` [PATCH v2 1/3] dt-bindings: soc: spacemit: Add spacemit,k1-syscon Haylen Chu
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Haylen Chu @ 2024-09-16 22:20 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley
  Cc: linux-riscv, linux-clk, devicetree, linux-kernel, Inochi Amaoto,
	Chen Wang, Jisheng Zhang, Haylen Chu

The clock tree of Spacemit K1 is managed by several independent
controllers in different SoC parts. In this series, all clock hardwares
in APBS, MPMU, APBC and APMU, are implemented. With some changes to UART
driver, CPU cores and UARTs could be brought up (see below). More clocks
will be implemented later soon.

No device tree changes are included since Spacemit K1 UART needs two
clocks to operate, but for now the driver gets only one. I would like to
defer the changes until this is resolved.

Tested on BananaPi-F3 board, a clock tree dump could be obtained here[1].

This series depends on
https://lore.kernel.org/all/20240730-k1-01-basic-dt-v5-0-98263aae83be@gentoo.org/

[1]: https://gist.github.com/heylenayy/425f4efff93b135f8b17584fa1d0f135

Link: https://developer.spacemit.com/documentation?token=LCrKwWDasiJuROkVNusc2pWTnEb

Changed from v1
- add SoC prefix (k1)
- relicense dt-binding header
- misc fixes and style improvements for dt-binding
- document spacemit,k1-syscon
- implement all APBS, MPMU, APBC and APMU clocks
- code cleanup
- Link to v1: https://lore.kernel.org/all/SEYPR01MB4221B3178F5233EAB5149E41D7902@SEYPR01MB4221.apcprd01.prod.exchangelabs.com/

Haylen Chu (3):
  dt-bindings: soc: spacemit: Add spacemit,k1-syscon
  dt-bindings: clock: spacemit: Add clock controllers of Spacemit K1 SoC
  clk: spacemit: Add clock support for Spacemit K1 SoC

 .../bindings/clock/spacemit,k1-ccu.yaml       |   71 +
 .../soc/spacemit/spacemit,k1-syscon.yaml      |   51 +
 drivers/clk/Kconfig                           |    1 +
 drivers/clk/Makefile                          |    1 +
 drivers/clk/spacemit/Kconfig                  |   20 +
 drivers/clk/spacemit/Makefile                 |    5 +
 drivers/clk/spacemit/ccu-k1.c                 | 1341 +++++++++++++++++
 drivers/clk/spacemit/ccu_common.h             |   55 +
 drivers/clk/spacemit/ccu_ddn.c                |  166 ++
 drivers/clk/spacemit/ccu_ddn.h                |   82 +
 drivers/clk/spacemit/ccu_mix.c                |  336 +++++
 drivers/clk/spacemit/ccu_mix.h                |  348 +++++
 drivers/clk/spacemit/ccu_pll.c                |  226 +++
 drivers/clk/spacemit/ccu_pll.h                |   82 +
 include/dt-bindings/clock/spacemit,k1-ccu.h   |  198 +++
 15 files changed, 2983 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/clock/spacemit,k1-ccu.yaml
 create mode 100644 Documentation/devicetree/bindings/soc/spacemit/spacemit,k1-syscon.yaml
 create mode 100644 drivers/clk/spacemit/Kconfig
 create mode 100644 drivers/clk/spacemit/Makefile
 create mode 100644 drivers/clk/spacemit/ccu-k1.c
 create mode 100644 drivers/clk/spacemit/ccu_common.h
 create mode 100644 drivers/clk/spacemit/ccu_ddn.c
 create mode 100644 drivers/clk/spacemit/ccu_ddn.h
 create mode 100644 drivers/clk/spacemit/ccu_mix.c
 create mode 100644 drivers/clk/spacemit/ccu_mix.h
 create mode 100644 drivers/clk/spacemit/ccu_pll.c
 create mode 100644 drivers/clk/spacemit/ccu_pll.h
 create mode 100644 include/dt-bindings/clock/spacemit,k1-ccu.h


base-commit: 3d5f968a177d468cd13568ef901c5be84d83d32b
prerequisite-patch-id: 47dcf6861f7d434d25855b379e6d7ef4ce369c9c
prerequisite-patch-id: 77787fe82911923aff15ccf565e8fa451538c3a6
prerequisite-patch-id: b0bdb1742d96c5738f05262c3b0059102761390b
prerequisite-patch-id: 3927d39d8d77e35d5bfe53d9950da574ff8f2054
prerequisite-patch-id: a98039136a4796252a6029e474f03906f2541643
prerequisite-patch-id: c95f6dc0547a2a63a76e3cba0cf5c623b212b4e6
prerequisite-patch-id: 66e750e438ee959ddc2a6f0650814a2d8c989139
prerequisite-patch-id: 29a0fd8c36c1a4340f0d0b68a4c34d2b8abfb1ab
prerequisite-patch-id: 0bdfff661c33c380d1cf00a6c68688e05f88c0b3
prerequisite-patch-id: 99f15718e0bfbb7ed1a96dfa19f35841b004dae9
-- 
2.46.0


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-11-27 11:26 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-16 22:20 [PATCH v2 0/3] Add clock controller support for Spacemit K1 Haylen Chu
2024-09-16 22:23 ` [PATCH v2 1/3] dt-bindings: soc: spacemit: Add spacemit,k1-syscon Haylen Chu
2024-09-16 23:27   ` Rob Herring (Arm)
2024-09-17  6:15   ` Krzysztof Kozlowski
2024-09-16 22:23 ` [PATCH v2 2/3] dt-bindings: clock: spacemit: Add clock controllers of Spacemit K1 SoC Haylen Chu
2024-09-16 23:27   ` Rob Herring (Arm)
2024-09-17  6:39   ` Krzysztof Kozlowski
2024-10-16 12:10     ` Haylen Chu
2024-10-16 12:57       ` Krzysztof Kozlowski
2024-09-16 22:23 ` [PATCH v2 3/3] clk: spacemit: Add clock support for " Haylen Chu
2024-09-19 23:08   ` Stephen Boyd
2024-11-27 11:20     ` Haylen Chu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).