arm64: tegra: Make the RTC a wakeup source on Jetson Nano and TX1
authorJon Hunter <jonathanh@nvidia.com>
Wed, 20 May 2020 15:13:18 +0000 (16:13 +0100)
committerThierry Reding <treding@nvidia.com>
Fri, 22 May 2020 12:56:54 +0000 (14:56 +0200)
The RTC found on the MAX77620 PMIC can be used as a wakeup source on
Jetson Nano and TX1, which is useful to wake the system from suspend
at a given time.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi
arch/arm64/boot/dts/nvidia/tegra210-p3450-0000.dts

index f87d2437d11c3e738911200fa3dd1e2d76a066ff..cc6ed45a2b485875368716315f22814db3cfbf28 100644 (file)
@@ -38,7 +38,8 @@
                pmic: pmic@3c {
                        compatible = "maxim,max77620";
                        reg = <0x3c>;
-                       interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
+                       interrupt-parent = <&tegra_pmc>;
+                       interrupts = <51 IRQ_TYPE_LEVEL_LOW>;
 
                        #interrupt-cells = <2>;
                        interrupt-controller;
index 374ce58b2b38bab62d3463546359e6bc23623137..9bc52fdb393c84578e27a64f173990c8a20ca8ac 100644 (file)
                pmic: pmic@3c {
                        compatible = "maxim,max77620";
                        reg = <0x3c>;
-                       interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
+                       interrupt-parent = <&tegra_pmc>;
+                       interrupts = <51 IRQ_TYPE_LEVEL_LOW>;
 
                        #interrupt-cells = <2>;
                        interrupt-controller;