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 f87d243..cc6ed45 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 374ce58..9bc52fd 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;