diff mbox series

[v5,09/10] MIPS: X1000: Add rtc DT node.

Message ID 1574937467-101907-10-git-send-email-zhouyanjie@zoho.com (mailing list archive)
State Superseded
Delegated to: Paul Burton
Headers show
Series [v5,01/10] MIPS: Ingenic: Initial X1000 support. | expand

Commit Message

Zhou Yanjie Nov. 28, 2019, 10:37 a.m. UTC
Add the appropriate DT node to probe the rtc driver
using the devicetree.

Signed-off-by: Zhou Yanjie <zhouyanjie@zoho.com>
---

Notes:
    v5:
    New patch.

 arch/mips/boot/dts/ingenic/x1000.dtsi | 11 +++++++++++
 1 file changed, 11 insertions(+)
diff mbox series

Patch

diff --git a/arch/mips/boot/dts/ingenic/x1000.dtsi b/arch/mips/boot/dts/ingenic/x1000.dtsi
index 8b8d335..2a0810b 100644
--- a/arch/mips/boot/dts/ingenic/x1000.dtsi
+++ b/arch/mips/boot/dts/ingenic/x1000.dtsi
@@ -69,6 +69,17 @@ 
 		interrupts = <27 26 25>;
 	};
 
+	rtc: rtc@10003000 {
+		compatible = "ingenic,x1000-rtc", "ingenic,jz4780-rtc";
+		reg = <0x10003000 0x4c>;
+
+		interrupt-parent = <&intc>;
+		interrupts = <32>;
+
+		clocks = <&cgu X1000_CLK_RTCLK>;
+		clock-names = "rtc";
+	};
+
 	pinctrl: pin-controller@10010000 {
 		compatible = "ingenic,x1000-pinctrl";
 		reg = <0x10010000 0x800>;