]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
riscv: dts: spacemit: add reset support for the K1 SoC
authorAlex Elder <elder@riscstar.com>
Wed, 2 Jul 2025 11:37:08 +0000 (06:37 -0500)
committerYixun Lan <dlan@gentoo.org>
Fri, 4 Jul 2025 00:44:56 +0000 (08:44 +0800)
Define syscon nodes for the RCPU, RCPU2, and APBC2 SpacemiT CCUS, which
currently support resets but not clocks in the SpacemiT K1.

Signed-off-by: Alex Elder <elder@riscstar.com>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Yixun Lan <dlan@gentoo.org>
Link: https://lore.kernel.org/r/20250702113709.291748-7-elder@riscstar.com
Signed-off-by: Yixun Lan <dlan@gentoo.org>
arch/riscv/boot/dts/spacemit/k1.dtsi

index 14097f1f6f447bd33ff3aaa07382d27ca8e59a48..4bc69bebfebfa418f0c6b7ced66ee72c288291c6 100644 (file)
                dma-noncoherent;
                ranges;
 
+               syscon_rcpu: system-controller@c0880000 {
+                       compatible = "spacemit,k1-syscon-rcpu";
+                       reg = <0x0 0xc0880000 0x0 0x2048>;
+                       #reset-cells = <1>;
+               };
+
+               syscon_rcpu2: system-controller@c0888000 {
+                       compatible = "spacemit,k1-syscon-rcpu2";
+                       reg = <0x0 0xc0888000 0x0 0x28>;
+                       #reset-cells = <1>;
+               };
+
                syscon_apbc: system-controller@d4015000 {
                        compatible = "spacemit,k1-syscon-apbc";
                        reg = <0x0 0xd4015000 0x0 0x1000>;
                                              <&cpu7_intc 3>, <&cpu7_intc 7>;
                };
 
+               syscon_apbc2: system-controller@f0610000 {
+                       compatible = "spacemit,k1-syscon-apbc2";
+                       reg = <0x0 0xf0610000 0x0 0x20>;
+                       #reset-cells = <1>;
+               };
+
                sec_uart1: serial@f0612000 {
                        compatible = "spacemit,k1-uart", "intel,xscale-uart";
                        reg = <0x0 0xf0612000 0x0 0x100>;