]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: amlogic: C3: Add RTC controller node
authorXianwei Zhao <xianwei.zhao@amlogic.com>
Thu, 17 Jul 2025 09:38:38 +0000 (17:38 +0800)
committerNeil Armstrong <neil.armstrong@linaro.org>
Thu, 4 Sep 2025 13:08:21 +0000 (15:08 +0200)
Add the RTC controller node for C3 SoC family.

Signed-off-by: Xianwei Zhao <xianwei.zhao@amlogic.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20250717-rtc-c3-node-v1-2-4f9ae059b8e6@amlogic.com
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi

index cb9ea3ca6ee0f9552172066346096859959305d1..b81bffac77324024e82864adbda05b7707266673 100644 (file)
                #clock-cells = <0>;
        };
 
+       xtal_32k: xtal-clk-32k {
+               compatible = "fixed-clock";
+               clock-frequency = <32768>;
+               clock-output-names = "xtal_32k";
+               #clock-cells = <0>;
+       };
+
        sm: secure-monitor {
                compatible = "amlogic,meson-gxbb-sm";
 
                                clock-names = "core", "device";
                                status = "disabled";
                        };
+
+                       rtc@9a000 {
+                               compatible = "amlogic,c3-rtc",
+                                            "amlogic,a5-rtc";
+                               reg = <0x0 0x9a000 0x0 0x38>;
+                               interrupts = <GIC_SPI 131 IRQ_TYPE_EDGE_RISING>;
+                               clocks = <&xtal_32k>, <&clkc_periphs CLKID_SYS_RTC>;
+                               clock-names = "osc", "sys";
+                       };
                };
 
                ethmac: ethernet@fdc00000 {