arm64: tegra: Allow the PMIC RTC to wakeup Jetson Xavier
authorJon Hunter <jonathanh@nvidia.com>
Thu, 7 May 2020 10:13:49 +0000 (11:13 +0100)
committerThierry Reding <treding@nvidia.com>
Wed, 20 May 2020 13:26:09 +0000 (15:26 +0200)
The PMIC RTC is currently unable to wakeup Tegra194 on the Jetson Xavier
platform because the interrupt from the PMIC is not usin the PMC as the
interrupt parent but the GIC directly. Update the PMIC interrupt to use
the PMC as the interrupt parent so that the PMIC RTC alarms can wakeup
the device.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm64/boot/dts/nvidia/tegra194-p2888.dtsi

index 8e3136dfdd624bc631354320ef7943630c04f460..b96eb4e14556aa5999e08120c7b841ecaa39eed2 100644 (file)
                                compatible = "maxim,max20024";
                                reg = <0x3c>;
 
-                               interrupts = <GIC_SPI 209 IRQ_TYPE_LEVEL_HIGH>;
+                               interrupt-parent = <&pmc>;
+                               interrupts = <24 IRQ_TYPE_LEVEL_LOW>;
                                #interrupt-cells = <2>;
                                interrupt-controller;