]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: at91/dt: enable the RTT block on the sam9g20ek board
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Fri, 14 Nov 2014 10:08:51 +0000 (11:08 +0100)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Wed, 19 Nov 2014 14:08:51 +0000 (15:08 +0100)
Enable the RTT and GPBR devices and specify the general purpose register
used to store the current time.

Enable wakeup on RTT event on the shutdown controller device.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
arch/arm/boot/dts/at91sam9g20ek_common.dtsi

index d2919108e92d656dea8e7b4e353221a822fdb70b..dfaacb113f2ed5b0d01b664b141dcd79c2461c94 100644 (file)
                                };
                        };
 
+                       shdwc@fffffd10 {
+                               atmel,wakeup-counter = <10>;
+                               atmel,wakeup-rtt-timer;
+                       };
+
+                       rtc@fffffd20 {
+                               atmel,rtt-rtc-time-reg = <&gpbr 0x0>;
+                               status = "okay";
+                       };
+
                        watchdog@fffffd40 {
                                status = "okay";
                        };
+
+                       gpbr: syscon@fffffd50 {
+                               status = "okay";
+                       };
                };
 
                nand0: nand@40000000 {