riscv: dts: k1: add reset controller node in device tree
authorHuan Zhou <me@per1cycle.org>
Tue, 11 Mar 2025 01:38:50 +0000 (09:38 +0800)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Tue, 25 Mar 2025 08:31:44 +0000 (16:31 +0800)
Add reset-controller in k1 device tree.

Signed-off-by: Huan Zhou <me@per1cycle.org>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
arch/riscv/dts/k1.dtsi

index fa1cb50..7c0f1b9 100644 (file)
                        reg-io-width = <4>;
                        status = "reserved"; /* for TEE usage */
                };
+
+               reset: reset-controller@d4050000 {
+                       compatible = "spacemit,k1-reset";
+                       reg = <0x0 0xd4050000 0x0 0x209c>,
+                               <0x0 0xd4282800 0x0 0x400>,
+                               <0x0 0xd4015000 0x0 0x1000>,
+                               <0x0 0xd4090000 0x0 0x1000>,
+                               <0x0 0xd4282c00 0x0 0x400>,
+                               <0x0 0xd8440000 0x0 0x98>,
+                               <0x0 0xc0000000 0x0 0x4280>,
+                               <0x0 0xf0610000 0x0 0x20>;
+                       reg-names = "mpmu", "apmu", "apbc", "apbs", "ciu", "dciu", "ddrc", "apbc2";
+                       #reset-cells = <1>;
+                       status = "disabled";
+               };
        };
-};
+};
\ No newline at end of file