[PATCH 2/2] arm64: dts: amlogic: C3: Add RTC controller node
Xianwei Zhao via B4 Relay
devnull+xianwei.zhao.amlogic.com at kernel.org
Thu Jul 17 02:38:38 PDT 2025
From: Xianwei Zhao <xianwei.zhao at amlogic.com>
Add the RTC controller node for C3 SoC family.
Signed-off-by: Xianwei Zhao <xianwei.zhao at amlogic.com>
---
arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi b/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi
index cb9ea3ca6ee0..b81bffac7732 100644
--- a/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi
+++ b/arch/arm64/boot/dts/amlogic/amlogic-c3.dtsi
@@ -53,6 +53,13 @@ xtal: xtal-clk {
#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";
@@ -967,6 +974,15 @@ nand: nand-controller at 8d000 {
clock-names = "core", "device";
status = "disabled";
};
+
+ rtc at 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 at fdc00000 {
--
2.37.1
More information about the linux-arm-kernel
mailing list