ARM: dts: at91: sama5d2: add shutdown controller node
authorNicolas Ferre <nicolas.ferre@atmel.com>
Tue, 26 Apr 2016 12:19:25 +0000 (14:19 +0200)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Wed, 27 Apr 2016 12:08:57 +0000 (14:08 +0200)
Add the SAMA5D2-Compatible Shutdown Controller node to sama5d2.dtsi
and the use of it in the sama5d2 Xplained board dts file.

Enable the RTC wakeup event and the "wake up" button support through the
input "0" that is present on the board.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
arch/arm/boot/dts/at91-sama5d2_xplained.dts
arch/arm/boot/dts/sama5d2.dtsi

index 21c780fab7612c0b5c6f1d8f047c1b85b31c5cae..eb4f1ac962714bfc59e7ae36a9d069eb00b3d330 100644 (file)
                                };
                        };
 
+                       shdwc@f8048010 {
+                               atmel,shdwc-debouncer = <976>;
+
+                               input@0 {
+                                       reg = <0>;
+                                       atmel,wakeup-type = "low";
+                               };
+                       };
+
                        watchdog@f8048040 {
                                status = "okay";
                        };
index 12cc1d34097de1dab82005ecc9910bef60ebe824..43015c2ad3950638dc07d453c6aedc3ea5a67f66 100644 (file)
                                clocks = <&clk32k>;
                        };
 
+                       shdwc@f8048010 {
+                               compatible = "atmel,sama5d2-shdwc";
+                               reg = <0xf8048010 0x10>;
+                               clocks = <&clk32k>;
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                               atmel,wakeup-rtc-timer;
+                       };
+
                        pit: timer@f8048030 {
                                compatible = "atmel,at91sam9260-pit";
                                reg = <0xf8048030 0x10>;