devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/2] Change the sg2042 timer layout to fit aclint format
@ 2023-11-18  7:06 Inochi Amaoto
  2023-11-18  7:10 ` [PATCH v4 1/2] dt-bindings: timer: thead,c900-aclint-mtimer: separate mtime and mtimecmp regs Inochi Amaoto
  2023-11-18  7:10 ` [PATCH v4 2/2] riscv: dts: sophgo: separate sg2042 mtime and mtimecmp to fit aclint format Inochi Amaoto
  0 siblings, 2 replies; 19+ messages in thread
From: Inochi Amaoto @ 2023-11-18  7:06 UTC (permalink / raw)
  To: Daniel Lezcano, Thomas Gleixner, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Chao Wei, Chen Wang, Paul Walmsley, Palmer Dabbelt,
	Albert Ou, Inochi Amaoto, Xiaoguang Xing, Guo Ren
  Cc: Anup Patel, Samuel Holland, Jisheng Zhang, linux-kernel,
	devicetree, linux-riscv

As the sg2042 uses different address for timer and mswi of its clint
device, it should follow the aclint format. For the previous patchs,
it only use only one address for both mtime and mtimer, this is can
not be parsed by OpenSBI. To resolve this, separate these two registers
in the dtb.

Link: https://lists.infradead.org/pipermail/opensbi/2023-October/005693.html
Link: https://github.com/riscv/riscv-aclint/blob/main/riscv-aclint.adoc

This patch can be tested with upstream SBI with the following patch:
1. https://lists.infradead.org/pipermail/opensbi/2023-November/005926.html

Changed from v3:
1. add all register in the bindings

Changed from v2:
1. Use reg-names to map the registers.

Changed from v1:
1. change the commit to address the reason for ABI change.
2. remove unnecessary link in the commit.

Inochi Amaoto (2):
  dt-bindings: timer: thead,c900-aclint-mtimer: separate mtime and
    mtimecmp regs
  riscv: dts: sophgo: separate sg2042 mtime and mtimecmp to fit aclint
    format

 .../timer/thead,c900-aclint-mtimer.yaml       | 42 +++++++++-
 arch/riscv/boot/dts/sophgo/sg2042.dtsi        | 80 +++++++++++--------
 2 files changed, 89 insertions(+), 33 deletions(-)

--
2.42.1


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

end of thread, other threads:[~2023-11-30 12:31 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-18  7:06 [PATCH v4 0/2] Change the sg2042 timer layout to fit aclint format Inochi Amaoto
2023-11-18  7:10 ` [PATCH v4 1/2] dt-bindings: timer: thead,c900-aclint-mtimer: separate mtime and mtimecmp regs Inochi Amaoto
2023-11-20 16:52   ` Conor Dooley
2023-11-21  1:12     ` Inochi Amaoto
2023-11-21 13:03       ` Conor Dooley
2023-11-22  1:26         ` Inochi Amaoto
2023-11-30  8:03           ` Inochi Amaoto
2023-11-21  5:22   ` Chen Wang
2023-11-30  9:31   ` Anup Patel
2023-11-30  9:57     ` Conor Dooley
2023-11-30 11:21       ` Anup Patel
2023-11-30 11:45         ` Conor Dooley
2023-11-30 11:48           ` Anup Patel
2023-11-30 12:10             ` Conor Dooley
2023-11-30 12:24               ` Anup Patel
2023-11-30 12:31                 ` Inochi Amaoto
2023-11-30 12:23           ` Inochi Amaoto
2023-11-18  7:10 ` [PATCH v4 2/2] riscv: dts: sophgo: separate sg2042 mtime and mtimecmp to fit aclint format Inochi Amaoto
2023-11-21  5:23   ` Chen Wang

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).