]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
riscv: dts: sophgo: cv18xx: Add RTCSYS device node
authorAlexander Sverdlin <alexander.sverdlin@gmail.com>
Tue, 13 May 2025 20:31:25 +0000 (22:31 +0200)
committerInochi Amaoto <inochiama@gmail.com>
Wed, 23 Jul 2025 01:55:13 +0000 (09:55 +0800)
Add the RTCSYS MFD node: in Cvitek CV18xx and its successors RTC Subsystem
is quite advanced and provides SoC power management functions as well.

The SoC family also contains DW8051 block (Intel 8051 compatible CPU core)
and an associated SRAM. The corresponding control registers are mapped into
RTCSYS address space as well.

Link: https://github.com/sophgo/sophgo-doc/tree/main/SG200X/TRM
Signed-off-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Reviewed-by: Inochi Amaoto <inochiama@gmail.com>
Link: https://lore.kernel.org/r/20250513203128.620731-1-alexander.sverdlin@gmail.com
Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
Signed-off-by: Chen Wang <wangchen20@iscas.ac.cn>
arch/riscv/boot/dts/sophgo/cv180x.dtsi

index ed06c3609fb2236c1e4c29f4b097adabd5d5fbff..280c45bd3b3dfd77e8b91ce7f6f20b419b000259 100644 (file)
                        snps,data-width = <2>;
                        status = "disabled";
                };
+
+               rtc@5025000 {
+                       compatible = "sophgo,cv1800b-rtc", "syscon";
+                       reg = <0x5025000 0x2000>;
+                       interrupts = <SOC_PERIPHERAL_IRQ(1) IRQ_TYPE_LEVEL_HIGH>,
+                                    <SOC_PERIPHERAL_IRQ(2) IRQ_TYPE_LEVEL_HIGH>,
+                                    <SOC_PERIPHERAL_IRQ(3) IRQ_TYPE_LEVEL_HIGH>;
+                       interrupt-names = "alarm", "longpress", "vbat";
+                       clocks = <&clk CLK_RTC_25M>,
+                                <&clk CLK_SRC_RTC_SYS_0>;
+                       clock-names = "rtc", "mcu";
+               };
        };
 };