]> git.karo-electronics.de Git - linux-beck.git/commitdiff
MIPS: jz4740: DTS: Probe the jz4740-rtc driver from devicetree
authorPaul Cercueil <paul@crapouillou.net>
Mon, 31 Oct 2016 20:39:49 +0000 (21:39 +0100)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Fri, 4 Nov 2016 23:01:59 +0000 (00:01 +0100)
Now that the jz4740-rtc driver supports devicetree, we can add a
devicetree node for it.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Acked-by: Maarten ter Huurne <maarten@treewalker.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
arch/mips/boot/dts/ingenic/jz4740.dtsi

index f6ae6ed9c4b1a3849ab078c273c0afa199734d45..3e1587f1f77a37e712f28e6fa61011dea25fc306 100644 (file)
                #clock-cells = <1>;
        };
 
+       rtc_dev: rtc@10003000 {
+               compatible = "ingenic,jz4740-rtc";
+               reg = <0x10003000 0x40>;
+
+               interrupt-parent = <&intc>;
+               interrupts = <15>;
+
+               clocks = <&cgu JZ4740_CLK_RTC>;
+               clock-names = "rtc";
+       };
+
        uart0: serial@10030000 {
                compatible = "ingenic,jz4740-uart";
                reg = <0x10030000 0x100>;