From: Alex Elder <elder@riscstar.com>
To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
mturquette@baylibre.com, sboyd@kernel.org,
p.zabel@pengutronix.de, paul.walmsley@sifive.com,
palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr,
dlan@gentoo.org
Cc: heylenay@4d2.org, inochiama@outlook.com, guodong@riscstar.com,
devicetree@vger.kernel.org, linux-clk@vger.kernel.org,
spacemit@lists.linux.dev, linux-riscv@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: [PATCH v10 0/6] reset: spacemit: add K1 reset support
Date: Tue, 13 May 2025 16:53:38 -0500 [thread overview]
Message-ID: <20250513215345.3631593-1-elder@riscstar.com> (raw)
This series adds reset controller support for the SpacemiT K1 SoC.
A SpacemiT reset controller is implemented as an auxiliary device
associated with a clock controller (CCU). A new header file
holds definitions used by both the clock and reset drivers.
This code builds upon the clock controller driver from Haylen Chu.
No code has changed in this version, however two patches were
reworked while trying to separate the clock from the reset code:
- Patch 4 is new, and consists of clock code that was previously
found in patch 5 in v9
- Patch 5 is now the result of squashing together two patches
from v9 (what remained of patch 5 squashed into patch 4)
*** Stephen, because of various dependencies between the reset
and clock code in this series, would you be willing to take
patches 1-5 through the clock tree? Philipp agreed this
would be simplest and said he would ACK this.
*** Yixun, I am expecting the DTS changes in patch 6 will go
through your tree.
This series is based on the "for-next" branch in the SpacemiT
repository:
https://github.com/spacemit-com/linux/tree/for-next
All of these patches are available here:
https://github.com/riscstar/linux/tree/outgoing/reset-v10
-Alex
Between version 9 and version 10:
- Reviewed-by tags have been added to all patches
- Patches 4 and 5 are changed as described above
Here is version 9 of this series.
https://lore.kernel.org/lkml/20250512183212.3465963-1-elder@riscstar.com/
All other history is available at that link, so I won't reproduce
it again here.
Alex Elder (6):
dt-bindings: soc: spacemit: define spacemit,k1-ccu resets
soc: spacemit: create a header for clock/reset registers
clk: spacemit: set up reset auxiliary devices
clk: spacemit: define three reset-only CCUs
reset: spacemit: add support for SpacemiT CCU resets
riscv: dts: spacemit: add reset support for the K1 SoC
.../soc/spacemit/spacemit,k1-syscon.yaml | 29 +-
arch/riscv/boot/dts/spacemit/k1.dtsi | 18 ++
drivers/clk/spacemit/Kconfig | 1 +
drivers/clk/spacemit/ccu-k1.c | 239 +++++++-------
drivers/reset/Kconfig | 9 +
drivers/reset/Makefile | 1 +
drivers/reset/reset-spacemit.c | 296 ++++++++++++++++++
.../dt-bindings/clock/spacemit,k1-syscon.h | 128 ++++++++
include/soc/spacemit/k1-syscon.h | 160 ++++++++++
9 files changed, 754 insertions(+), 127 deletions(-)
create mode 100644 drivers/reset/reset-spacemit.c
create mode 100644 include/soc/spacemit/k1-syscon.h
base-commit: 3f7ca16338830d8726b0b38458b2916b3b303aad
--
2.45.2
next reply other threads:[~2025-05-13 21:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-13 21:53 Alex Elder [this message]
2025-05-13 21:53 ` [PATCH v10 1/6] dt-bindings: soc: spacemit: define spacemit,k1-ccu resets Alex Elder
2025-05-13 21:53 ` [PATCH v10 2/6] soc: spacemit: create a header for clock/reset registers Alex Elder
2025-05-13 21:53 ` [PATCH v10 3/6] clk: spacemit: set up reset auxiliary devices Alex Elder
2025-05-13 21:53 ` [PATCH v10 4/6] clk: spacemit: define three reset-only CCUs Alex Elder
2025-05-13 21:53 ` [PATCH v10 5/6] reset: spacemit: add support for SpacemiT CCU resets Alex Elder
2025-05-13 21:53 ` [PATCH v10 6/6] riscv: dts: spacemit: add reset support for the K1 SoC Alex Elder
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250513215345.3631593-1-elder@riscstar.com \
--to=elder@riscstar.com \
--cc=alex@ghiti.fr \
--cc=aou@eecs.berkeley.edu \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlan@gentoo.org \
--cc=guodong@riscstar.com \
--cc=heylenay@4d2.org \
--cc=inochiama@outlook.com \
--cc=krzk+dt@kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=mturquette@baylibre.com \
--cc=p.zabel@pengutronix.de \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
--cc=spacemit@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox