]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ARM: dts: at91: sama7g5: add shdwc node
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Mon, 23 Aug 2021 13:19:15 +0000 (16:19 +0300)
committerNicolas Ferre <nicolas.ferre@microchip.com>
Tue, 14 Sep 2021 14:52:27 +0000 (16:52 +0200)
Add shutdown controller node and enable it.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Link: https://lore.kernel.org/r/20210823131915.23857-5-claudiu.beznea@microchip.com
arch/arm/boot/dts/at91-sama7g5ek.dts
arch/arm/boot/dts/sama7g5.dtsi

index 4cbed98cc2f43ce91065f626db64c1654ff4ebda..8b13b031a167446100754f5930db748b0b6ff979 100644 (file)
        pinctrl-0 = <&pinctrl_sdmmc2_default>;
 };
 
+&shdwc {
+       atmel,shdwc-debouncer = <976>;
+       status = "okay";
+
+       input@0 {
+               reg = <0>;
+       };
+};
+
 &spdifrx {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_spdifrx_default>;
index 3a4315ac0eb02fbba1b3efd7b23de171e6b59406..e50806cf766015b7dbc2c6b3d9e4a699d818b65f 100644 (file)
                        clock-names = "td_slck", "md_slck", "main_xtal";
                };
 
+               shdwc: shdwc@e001d010 {
+                       compatible = "microchip,sama7g5-shdwc", "syscon";
+                       reg = <0xe001d010 0x10>;
+                       clocks = <&clk32k 0>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       atmel,wakeup-rtc-timer;
+                       atmel,wakeup-rtt-timer;
+                       status = "disabled";
+               };
+
                rtt: rtt@e001d020 {
                        compatible = "microchip,sama7g5-rtt", "microchip,sam9x60-rtt", "atmel,at91sam9260-rtt";
                        reg = <0xe001d020 0x30>;