mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Chen Wang <unicornxw@gmail.com>
To: aou@eecs.berkeley.edu, chao.wei@sophgo.com, conor@kernel.org,
	krzysztof.kozlowski+dt@linaro.org, palmer@dabbelt.com,
	paul.walmsley@sifive.com, p.zabel@pengutronix.de,
	robh+dt@kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org,
	haijiao.liu@sophgo.com, xiaoguang.xing@sophgo.com,
	guoren@kernel.org, jszhang@kernel.org, inochiama@outlook.com
Cc: Chen Wang <unicorn_wang@outlook.com>
Subject: [PATCH v3 3/4] riscv: dts: add reset generator for Sophgo SG2042 SoC
Date: Tue, 30 Jan 2024 09:50:32 +0800	[thread overview]
Message-ID: <b2f5d7cd2d3fccfc00cf4563d2dd7363b0fa2fca.1706577450.git.unicorn_wang@outlook.com> (raw)
In-Reply-To: <cover.1706577450.git.unicorn_wang@outlook.com>

From: Chen Wang <unicorn_wang@outlook.com>

Add reset generator node to device tree for SG2042.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
---
 arch/riscv/boot/dts/sophgo/sg2042.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/riscv/boot/dts/sophgo/sg2042.dtsi b/arch/riscv/boot/dts/sophgo/sg2042.dtsi
index ead1cc35d88b..eeb341e16bfd 100644
--- a/arch/riscv/boot/dts/sophgo/sg2042.dtsi
+++ b/arch/riscv/boot/dts/sophgo/sg2042.dtsi
@@ -6,6 +6,8 @@
 /dts-v1/;
 #include <dt-bindings/interrupt-controller/irq.h>
 
+#include <dt-bindings/reset/sophgo,sg2042-reset.h>
+
 #include "sg2042-cpus.dtsi"
 
 / {
@@ -327,6 +329,12 @@ intc: interrupt-controller@7090000000 {
 			riscv,ndev = <224>;
 		};
 
+		rstgen: reset-controller@7030013000 {
+			compatible = "sophgo,sg2042-reset";
+			reg = <0x00000070 0x30013000 0x00000000 0x0000000c>;
+			#reset-cells = <1>;
+		};
+
 		uart0: serial@7040000000 {
 			compatible = "snps,dw-apb-uart";
 			reg = <0x00000070 0x40000000 0x00000000 0x00001000>;
-- 
2.25.1


  parent reply	other threads:[~2024-01-30  1:50 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-30  1:49 [PATCH v3 0/4] riscv: sophgo: add reset support for SG2042 Chen Wang
2024-01-30  1:49 ` [PATCH v3 1/4] dt-bindings: reset: sophgo: support SG2042 Chen Wang
2024-02-16  0:00   ` [PATCH v3 3/4] riscv: dts: add reset generator for Sophgo SG2042 SoC Inochi Amaoto
2024-03-14 15:17   ` [PATCH v3 1/4] dt-bindings: reset: sophgo: support SG2042 Palmer Dabbelt
2024-03-15  0:15     ` Chen Wang
2024-03-15 17:21       ` Palmer Dabbelt
2024-03-20  0:20         ` Chen Wang
2024-01-30  1:50 ` [PATCH v3 2/4] reset: simple: add support for Sophgo SG2042 Chen Wang
2024-02-15  8:59   ` Chen Wang
2024-02-15 12:46     ` Philipp Zabel
2024-02-16  1:38       ` Chen Wang
2024-02-15 12:45   ` Philipp Zabel
2024-01-30  1:50 ` Chen Wang [this message]
2024-02-22  0:28   ` [PATCH v3 3/4] riscv: dts: add reset generator for Sophgo SG2042 SoC Inochi Amaoto
2024-01-30  1:50 ` [PATCH v3 4/4] riscv: dts: add resets property for uart node Chen Wang
2024-02-22  0:35   ` Inochi Amaoto
2024-02-05  7:57 ` [PATCH v3 0/4] riscv: sophgo: add reset support for SG2042 Chen Wang
2024-02-21 11:14 ` Philipp Zabel
2024-02-21 12:04   ` Chen Wang
2024-02-23  5:28 ` (subset) " Inochi Amaoto
2024-03-25  4:42 ` patchwork-bot+linux-riscv

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=b2f5d7cd2d3fccfc00cf4563d2dd7363b0fa2fca.1706577450.git.unicorn_wang@outlook.com \
    --to=unicornxw@gmail.com \
    --cc=aou@eecs.berkeley.edu \
    --cc=chao.wei@sophgo.com \
    --cc=conor@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=guoren@kernel.org \
    --cc=haijiao.liu@sophgo.com \
    --cc=inochiama@outlook.com \
    --cc=jszhang@kernel.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-riscv@lists.infradead.org \
    --cc=p.zabel@pengutronix.de \
    --cc=palmer@dabbelt.com \
    --cc=paul.walmsley@sifive.com \
    --cc=robh+dt@kernel.org \
    --cc=unicorn_wang@outlook.com \
    --cc=xiaoguang.xing@sophgo.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

all inboxes | Powered by JetHome®