From: Yao Zi <ziyao@disroot.org>
To: Drew Fustini <fustini@kernel.org>, Guo Ren <guoren@kernel.org>,
Fu Wei <wefu@redhat.com>, Philipp Zabel <p.zabel@pengutronix.de>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Paul Walmsley <paul.walmsley@sifive.com>,
Palmer Dabbelt <palmer@dabbelt.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Alexandre Ghiti <alex@ghiti.fr>,
Michal Wilczynski <m.wilczynski@samsung.com>
Cc: devicetree@vger.kernel.org, Han Gao <gaohan@iscas.ac.cn>,
linux-kernel@vger.kernel.org, Han Gao <rabenda.cn@gmail.com>,
linux-riscv@lists.infradead.org, Yao Zi <ziyao@disroot.org>
Subject: [PATCH v2 0/5] Add reset controllers for other TH1520 subsystems
Date: Mon, 15 Sep 2025 09:53:26 +0000 [thread overview]
Message-ID: <20250915095331.53350-1-ziyao@disroot.org> (raw)
TH1520 SoC is split into several subsystems, and each of them comes with
distinct reset controllers. We've already had the one for VO subsystem
documented as "thead,th1520-reset" and supported, and this series adds
support for others, including AO, VI, MISC, AP, DSP and VO.
For TH1520_RESET_ID_{NPU,WDT0,WDT1}, these're reset signals that have
been introduced along with support for the VO reset controller. However,
registers in control of these resets don't stay in the VO reset region,
instead they're AP-subsystem resets, thus the original ABI is
problematic. I remove them in PATCH 1 and reintroduce them in PATCH 2.
Note the reset controller for AO subsystem is marked as "reserved" in
devicetree since AON firmware may make use of it and access in Linux
side may cause races.
This series is based on next-20250912, thanks for your time and review.
Changed from v1
- Make a separate patch for the ABI-breaking change of
TH1520_RESET_ID_{NPU,WDT0,WDT1}
- Fix the duplicated dt-binding IDs
- Sort compatibles/reset-signal definitions in alphabetical order in
the driver
- Sort dt-binding IDs in alphabetical order by subsystem names
- Link to v1: https://lore.kernel.org/all/20250901042320.22865-1-ziyao@disroot.org/
Yao Zi (5):
dt-bindings: reset: thead,th1520-reset: Remove non-VO-subsystem resets
dt-bindings: reset: thead,th1520-reset: Add controllers for more
subsys
reset: th1520: Prepare for supporting multiple controllers
reset: th1520: Support reset controllers in more subsystems
riscv: dts: thead: Add reset controllers of more subsystems for TH1520
.../bindings/reset/thead,th1520-reset.yaml | 8 +-
arch/riscv/boot/dts/thead/th1520.dtsi | 37 +
drivers/reset/reset-th1520.c | 835 +++++++++++++++++-
.../dt-bindings/reset/thead,th1520-reset.h | 219 ++++-
4 files changed, 1083 insertions(+), 16 deletions(-)
--
2.50.1
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
next reply other threads:[~2025-09-15 9:55 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-15 9:53 Yao Zi [this message]
2025-09-15 9:53 ` [PATCH v2 1/5] dt-bindings: reset: thead,th1520-reset: Remove non-VO-subsystem resets Yao Zi
2025-09-22 16:04 ` Rob Herring (Arm)
2025-09-15 9:53 ` [PATCH v2 2/5] dt-bindings: reset: thead,th1520-reset: Add controllers for more subsys Yao Zi
2025-09-22 16:05 ` Rob Herring (Arm)
2025-10-03 22:46 ` Drew Fustini
2025-10-04 2:21 ` Yao Zi
2025-10-04 22:15 ` Drew Fustini
2025-10-14 9:49 ` Yao Zi
2025-09-15 9:53 ` [PATCH v2 3/5] reset: th1520: Prepare for supporting multiple controllers Yao Zi
2025-09-15 9:53 ` [PATCH v2 4/5] reset: th1520: Support reset controllers in more subsystems Yao Zi
2025-09-15 9:57 ` [PATCH v2 5/5] riscv: dts: thead: Add reset controllers of more subsystems for TH1520 Yao Zi
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=20250915095331.53350-1-ziyao@disroot.org \
--to=ziyao@disroot.org \
--cc=alex@ghiti.fr \
--cc=aou@eecs.berkeley.edu \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=fustini@kernel.org \
--cc=gaohan@iscas.ac.cn \
--cc=guoren@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=m.wilczynski@samsung.com \
--cc=p.zabel@pengutronix.de \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
--cc=rabenda.cn@gmail.com \
--cc=robh@kernel.org \
--cc=wefu@redhat.com \
/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